Using DUTs in a POU header

  1. Open POU header from Project pane
  2. Enter a new line if necessary
  3. Under Class, select VAR
  4. Under Identifier, enter a symbolic name
  5. Under Type, select to open the Type selection dialog
  6. Under Type class, select Data unit types
  7. Under Type, select the desired DUT
  8. OK
  9. 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).
  10. Change initial value for the desired variable, if necessary
  11. OK
  12. Under Comment, enter a text, if desired
  13. Object > Save

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:

Modified on: 2019-12-10Feedback on this pagePanasonic hotline