This section explains how the FUP editor is structured and how to handle programming. It does not explain how communication with interfaces and visualization occurs. This can be found in the chapter PLC Basics.
Every element in the structure has its own namespace in the application (PLC). This means that the element is executed completely independently of other elements. The advantage is that any name can be freely chosen. The variable global. forms an exception to this rule.
Each network is processed from top to bottom. Then all function blocks are calculated. This happens in reading direction from left to right. It should be noted that first all inputs of the function block are calculated.

This is important if an additional output is defined and reused between two function blocks. This can lead to unwanted results.
Note: In FUP programming, only the first output of a function block can be connected to an input.
Networks are used to group individual program steps. A network should therefore contain only one set of function blocks and never multiple individual function blocks. Otherwise, the overview of the program is lost.
This example shows a program for a light without visualization with the function of a motion detector.

Some function blocks allow the use of multiple inputs and outputs. This is described in the help for the respective function block.
The use of combined inputs simplifies the use of the FUP editor and significantly reduces computation time, as no intermediate results need to be stored.

The above image shows the same result with multiple inputs from the function block AND.
A global variable can be accessed at any time with the prefix global.
It is not recommended to use the prefix in databases, as this leads to increased load on the PLC. Instead, the result of the calculation should be made globally available.
To list all devices used, you can click with the right mouse button on the global variable in the active Preview. If the variable has been used in another element, these will be displayed under
Used By.
Further information can be found in the chapter Communication With Other Elements.