Introduction

References to variables can be assigned in FBD application programs.

A reference can be de-referenced in FBD application programs.

For more information, refer to Reference Data Type.

FBD Examples using the Reference Data Type:

The EF, REF, takes a variable as an input parameter (type ANY) and provides its address as output parameter (type REF_ANY).

The EF, MOVE, can assign a reference to a variable to another reference. If the input parameter is (REF(MyVariable)), MOVE has the same effect as the REF EF.

The EF, TON, takes ptrToMyBool^ as an input parameter to dereference the reference ptrToMyBool.