Adding a variable to a program
- Start editing the real-time application.
- In the menu bar, click Program.
- On the worksheet, click Add.
- Select the tab local variable, global variable or Data storage.
- In the drop-down list, mark the variable.
- Click OK.
If a Program Organisation Unit written in Function Block Diagram contains multiple networks, the order of execution depends on the last element's position on the worksheet:
- From top to bottom.
- On the same level from left to right.
- Drag-and-drop the variable to the desired position in the worksheet.