Declaring local variables

To declare variables using the declaration editor, follow the procedure below. Variables can also be declared very comfortably in the POU body (using LD/FBD, ST/IL or SFC) or in the Variables pane.

  1. Open POU header from Project pane
  2. Under Class, select a variable class
  3. Under Identifier, enter a symbolic name
  4. Under Type, select to open the Type selection dialog
  5. Under Type class, select the desired data type class
    • Elementary data types
    • Data unit types
    • Function blocks
  6. Under Library, select the desired library
  7. OK

    The initial value preset for the selected data type is displayed automatically. You can change this value at any time.

    Optional: Under Comment, enter a text, if desired

Related topics:

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