-

Feedback variables in FBD/LD networks

In FBD/LD function block and program POUs, implicit feedbacks can be programmed by connecting an output back to an input.

In FBD/LD, feedbacks can be realized via connection lines or using variables. A variable which is inserted into a feedback connection line is considered as feedback variable. It provides two connection points (in/out). The menu item 'Toggle Feedback Variable' in the context menu of such a variable is marked as selected. Feedback variables must be connected on both sides.

A feedback variable can be created in several ways:

Feedback lines are displayed red in the code, feedback variables have a red border.

Note
No special declaration is necessary for a standard feedback variable in FBD/LD. For safety-related feedback variables in SNOLD the 'Feedback' property must be set in the declaration.

When disconnecting a feedback variable it remains a feedback variable (maintains both connection points) and can be inserted into another feedback loop. To make a feedback variable a variable, deselect its context menu item 'Toggle Feedback Variable'.