L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 89

Advertising
background image

L-force | PLC Designer

Concepts and Base Components

DMS 4.1 EN 03/2011 TD29

87

An action can be added via command "Add Object / Action" when the respective
program or function block object is selected in the Devices or POUs tree. In the Add
Action
dialog define the action name and desired implementation language.

Calling an action:
An action is called with
<Program_name>.<Action_name>
or
<Instance_name>.<Action_name>
Regard the notation in FBD (see example below)!
If it is required to call the action within its own block, i.e. in the program or function
block it belongs to, it is sufficient to just use the action name.

Examples for the call of the above described action from another POU:
Declaration for all examples:

PROGRAM PLC_PRG
VAR
Inst : Counter;
END_VAR

Call of action 'Reset' in another POU, which is programmed in IL:

CAL Inst.Reset(In := FALSE)
LD Inst.out
ST ERG

Call of action 'Reset' in another POU, which is programmed in ST:

Inst.Reset(In := FALSE);
Erg := Inst.out;

Call of action 'Reset' in another POU, which is programmed in FBD:

Note: The IEC standard does not recognize actions other than actions of the
sequential function chart (SFC). There actions are an essential part, containing the
instructions to be processed at the particular steps of the chart.

Advertising