A variable reference indicates the location of a program variable. These can be used to:
A variable reference can be:
SampleCount
ConveyorLoads[1]
ItemLocation.Distance
%"Pressure.Value"
The above examples use the following Variable Declarations:
TYPE PolarCoordinates : STRUCT Angle : LREAL; Distance : LREAL; End_STRUCT End_TYPE VAR SampleCount : LREAL; ConveyorLoads : ARRAY [0..5] OF REAL; ItemLocation : PolarCoordinates; End_VAR
To learn about array types and how to reference array elements.
To learn about struct types and how to reference structure members.
To learn about pointer types and how to dereference pointer values.
For the meaning of terms used in Fernhill SCADA.