Action, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 47

L-force | PLC Designer
What is What in PLC Designer
DMS 3.2 EN 02/2011 TD29
45
4.1.9
Action
Actions can be defined and assigned to function blocks and programmes ('Project'
'Add action'). The action represents a further implementation which can be entirely
created in another language as the "normal" implementation. Each action is given a
name.
An action works with the data from the function block or programme which it belongs
to. The action uses the same input/output variables and local variables as the
"normal" implementation uses.
Example for an action of a function block
In the example given, calling up the function block Counter increases or decreases the
output variable "out", depending on the value of the input variable "in". Calling up the
action Reset of the function block sets the output variable to zero. The same variable
"out" is written in both cases.
Calling an action:
An action is called up with <Program_name>.<Action_name> or
<Instance_name>.<Action_name>. Regard the notation in FBD (see example below) !
If it is required to call up the action within its own block, one just uses the name of the
action in the text editors and in the graphic form the function block call up without
instance information.