Manual – IPOSplus®
341
23
Set commands
Assembler – Commands
SETI/SET INDI-
RECT H = [H]
Variable X1 gets the value of variable whose number is contained in variable X2.
Structure
Example
SET H1 = 7
SET H7 = 11
SET H3 [H1]
After the program has been run, the variables have the following values:
H1 = 7
H7 = 11
H3 = 11
SETI/SET INDI-
RECT [H] = H
The variable with the number in variable X1 gets the value from variable X2.
INFORMATION
Is the number of the indirectly addressed variables outside the defined range (e. g.
MOVIDRIVE
®
A range 0 ... 512), the fault message IPOS INDEX OVERFL (32) is gen-
erated.
Command structure
Mxxx SETI X1 = [X2]
Mxxx: Label (optional)
X1: Hxxx = Target variable.
X2: Hyyy = Number of the source variable.
INFORMATION
Is the number of the indirectly addressed variables outside the defined range (e. g.
MOVIDRIVE
®
A range 0 ... 512), the fault message IPOS INDEX OVERFL (32) is gen-
erated.