32.2.5 Variable

Variables are available for all models of display units. You can use the 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

"

Integer-type variable. Supports arrays and modifiers.

Float

"

32-bit float variable. Supports arrays.

Real

"

64-bit real variable. Supports arrays.

Timer

"

Timer variable. Structure*3variable

Counter

"

Counter variable. Structure*3variable

Date

"

Date variable. Structure*3variable

Time

"

Time variable. Structure*3variable

PID

"

PID variable. Structure*3variable.

*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.

32.2.5.1 Structure Variable

32.2.5.2 When defining constants as operands