L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 74
Advertising
L-force | PLC Designer
Concepts and Base Components
72
DMS 4.1 EN 03/2011 TD29
Declaration:
Syntax:
FUNCTION_BLOCK <function block name> | EXTENDS <function block name> |
IMPLEMENTS <comma-separated list of interface names>
This is followed by the declaration of the variables.
Note: In contrast to »PLC Designer« V2.3 "FUNCTIONBLOCK" is no longer a valid
alternative key word.
Example:
FBexample shown in the following picture has two input variables and two output
variables out1 and out2. Out1 is the sum of the two inputs, out2 is the result of a
comparison for equality.
Abb. 7
Example of a function block in ST
Advertising