Variables are available for all models of display units. You can use variables without being aware of device addresses.
Variables can be used with modifiers *1 and as arrays *2. When using modifiers, you can access individual bits or bytes in integer variables.
Name |
Type |
Example |
Description |
---|---|---|---|
Variable |
Bit |
(Defined Name) |
Bit-type variable. Supports arrays. |
Integer |
(Defined Name) |
Integer-type variable. Supports arrays and modifiers. |
|
Float |
(Defined Name) |
32-bit float variable. Supports arrays. |
|
Real |
(Defined Name) |
64-bit real variable. Supports arrays. |
|
Timer |
(Defined Name) |
Timer variable. Structure*3 variable |
|
Counter |
(Defined Name) |
Counter variable. Structure*3 variable |
|
Date |
(Defined Name) |
Date variable. Structure*3 variable |
|
Time |
(Defined Name) |
Time variable. Structure*3 variable |
|
PID |
(Defined Name) |
PID variable. Structure*3 variable |
*1 You can use three different types of modifiers: bit modifier, byte modifier, and word modifier. Only integer variables support modifiers.
Specification method: bit -> VariableName.X[0], byte -> VariableName.B[0], word -> VariableName.W [0]
*2 You can specify consecutive memory addresses using arrays with the following variable types: bit, integer, float, and real.
Specification method: VariableName[10]
*3 Multiple variables grouped together are structures. Structure variables include: Timer, Counter, Time, Date, and PID.