Variables – IAI America XSEL-QX User Manual
Page 142

118
Part 3 Controller Data Structure
1.5 Variables
(1) Meaning of variable
“Variable” is a technical term used in software programming. Simply put, it means “a box in which a
value is put.” Variables can be used in many ways, such as putting in or taking out a value and
performing addition or subtraction.
Command
Operand 1
Operand 2
ADD 1 1
If this command is applied to variable box 1, which already contains 2, then 1 will be added to the
current value and 3 will result.
Variable
box 1
A variable can be used in many ways, such as:
Putting in a value (1234),
Taking out a value (456), or
Adding a value (+1).
Variable
box 1
1 is added.
(Already contains 2)
This manual is related to the following products: