1 declaration part, 2 input variables, 3 output variables – Lenze DDS v2.3 User Manual
Page 133: Declaration part, Input variables, Output variables, Drive plc developer studio

Drive PLC Developer Studio
Editors
7-11
l
DDS EN 2.3
7.2.1
Declaration part
The declaration part of an organization unit declares all variables locally.
These may be
•
input variables,
•
output variables,
•
input / output variables,
•
local variables,
•
retentive variables,
•
constants
•
and retentive constants.
The declaration syntax is based on the IEC 61131-3 standard.
7.2.1.1
Declaration keywords
Icon:
-
Menu:
InsertWDeclaration keywords
Keyboard:
-
Use this command to open a list of all keywords available for use in the declaration part of an
organization unit.
•
The keyword will be inserted at the current cursor position once it has been selected and
confirmed.
•
The list will also be displayed when calling the Help Manager and selecting the category
Declarations.
7.2.2
Input variables
Between the keywords VAR_INPUT and END_VAR, all variables are declared that are used as input
variables for an organization unit.
•
The values of these variables can be transferred from the calling unit.
Example:
VAR_INPUT
in1:INT; (* 1. input variable *)
END_VAR
Input variables can be used to transfer data from the calling to the called organization unit.
7.2.3
Output variables
Between the keywords VAR_OUTPUT and END_VAR, all variables are declared that are used as
output variables for an organization unit.
•
The values of these variables are returned to the calling organization unit for further use.
Example:
VAR_OUTPUT
out1:INT; (* 1. output variable *)
END_VAR
Show/Hide Bookmarks