Skip to main content

Functions

In ST, you can use a function call as an operand.

Example 204. Example:

Result := Fct(7) + 3;



TIME() function

This function yields the time (in milliseconds) that has elapsed since system boot.

The timestamp is a TIME (32 bit) data type. After an overflow, the value starts again at 0.

Example 205. Example in ST
systime := TIME();