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

Page 1104

Advertising
background image

L-force | PLC Designer

Programming Reference

1102

DMS 4.1 EN 03/2011 TD29

16.4.4

Functions
In ST a function call can also appear as an operand.
Example:

Result := Fct(7) + 3;


TIME()-Function
This function returns the time (based on milliseconds) which has been passed since the
system was started.
The data type is TIME.
Example in IL:

TIME
ST systime (* Result for example: T#35m11s342ms *)
Example in ST:
systime:=TIME();


Advertising