Reference variables
- Last UpdatedAug 29, 2024
- 1 minute read
A reference variable is a variable that you can use in logic to refer to another register memory or array elements.
For example, the symbolic variable 'TankLevel' is reference to the register memory '%R100'. In this case when user advises 'TankLevel' it will internally refer to memory address of 'R100'.
The syntax for reference variables is similar to the symbolic variables.
Syntax:
#<var_name> <ItemSuffix>
(where "#" and <ItemSuffix> are optional).
Example:
#TankLevel S
Where 'TankLevel' is an reference to register memory 'R100'.