Skip to main content

Operator: Content Operator

The operator is an extension of the IEC 61131-3 standard.

The operator allows for dereferencing a pointer. You append the operator as ^ to the pointer identifier.

Caution

When using pointers to addresses, note that applying an online change can shift the contents of addresses.

Example 133. Example

ST

pt : POINTER TO INT;
var_int1 : INT;
var_int2 : INT;
pt := ADR(var_int1);
var_int2 := pt^;