Fernhill SCADA supports these Type Information functions:
Function | Parameter Type | Description |
---|---|---|
SizeOf | ANY | Returns the size, in bytes, of a type. |
IsTypeOf | ANY, TYPE | Returns TRUE if the first parameter is the type of the second parameter. |
The Type Information functions provide information about a type.
Var A, B : DINT; End_Var A := SizeOf( B );
The variable A will be assigned the value 4.
Function CheckTypeIsInteger : BOOL Var_Input Item : ANY_ELEMENTARY; End_Var CheckType := IsTypeOf( Item, ANY_INT ); End_Function
Type Information functions are an extension to the IEC 61131-3 standard.
To learn about elementary data types such as INT, STRING, TIME.
To learn about generic data types such as ANY_INT, ANY_NUM, ANY_MAGNITUDE.
To learn about other language Common Elements.
For the meaning of terms used in Fernhill SCADA.