Skip to main content

Address

The ADR function is used to return the pointer address of a variable to be stored in a POINTER variable.

VAR
ptr : POINTER TO STRING;
val : STRING;
END_VAR

ptr := ADR(val);
ptr^ := 'abcd';

print(val);