Adding a variable to a program
- Start editing the real-time application.
- In the menu bar, click Program.
- On the worksheet, click Add.
- A dialogue box is opened.
- Select the Local variables tab, the Global variables tab or the Data storage tab.
- Mark the variable you want to add.
- Click OK.
- The variable is added to the worksheet.

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.