- Open POU header from Project pane
- Enter a new line if necessary
- Under Class, select VAR
- Under Identifier, enter a symbolic name
- Under Type, select to open the Type selection dialog
- Under Type class, select Data unit types
- Under Type, select the desired DUT
- OK
- Under Initial, select to open the Set initial values dialog
This dialog shows how the individual variables have been defined in the DUT. You can only change the initial values for one single variable (not for the DUT).
- Change initial value for the desired variable, if necessary
- OK
- Under Comment, enter a text, if desired
Now the DUT or a single variable of the DUT can be used in the POU body. The DUT can be assigned with the help of the Variables pane.
NOTE
A DUT defined in the global variable list can be used in a POU body only when copied into the header of the corresponding POU beforehand.
Related topics: