Calling operators, Type conversions, Type conversion functions – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 487: L-force | plc designer

L-force | PLC Designer
IEC Operators and additional norm extending functions
DMS 3.2 EN 02/2011 TD29
485
9.8
Calling Operators...
9.8.1
CAL
PLC Designer IEC operator: Calling a function block or a program
Use CAL in IL to call up a function block instance. The variables that will serve as the
input variables are placed in parentheses right after the name of the function block
instance.
Example:
Calling up the instance Inst from a function block where input variables Par1 and Par2
are 0 and TRUE respectively.
CAL INST(PAR1 := 0, PAR2 := TRUE)
9.9
Type Conversions...
9.9.1
Type Conversion Functions
Its is forbidden to implicitly convert from a "larger" type to a "smaller" type (for
example from INT to BYTE or from DINT to WORD). Special type conversions are
required if one wants to do this. One can basically convert from any elementary type
to any other elementary type.
Syntax:
Please regard that at ...TO_STRING conversions the string is generated left-justified. If
it is defined to short, it will be cut from the right side.