IAI America XSEL-S User Manual
Page 111

Chapter 3 Programs
103
3.3.4 Extension Motion Control Board Axis Position Operation Commands
z
XPGT (extension motion control board axis position data read)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O/flag)
Command,
declaration
Operand 1
Operand 2
Output part
operation type
(output/flag)
E
N, Cnd
Cmnd
Operand1
Operand2
Pst
Optional
Optional
XPGT
Axis No.
Position No.
CC
[Function]
Read the position No, of position data specified in operand 2 [mm] of extension motion control
board axis No. specified in operand 1 to variable 199 (valid until 3 decimal places).
[Example 1] XPGT
2
3
Read the position No. 3 of axis 2 to variable 199.
[Example 2] LET
1
2
Assign 2 to variable 1.
LET
2
3
Assign 3 to variable 2.
XPGT
*1
*2
Read position No. 3 (content of variable 2) of axis 2 (content
of variable 1) to variable 199.
Caution: If invalid position data is specified in operand 2, variable 199 cannot be operated and the
output part is turned off.
z
XPPT (extension motion control board axis position data write)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O/flag)
Command,
declaration
Operand 1
Operand 2
Output part
operation type
(output/flag)
E
N, Cnd
Cmnd
Operand1
Operand2
Pst
Optional
Optional
XPPT
Axis No.
Position No.
CP
[Function]
Write the value of variable 199 to the position No. of position data specified in operand 2 of
extension motion control board axis No. specified in operand 1 (valid until 3 decimal places).
[Example 1] LET
199
150
Assign 150 to variable 199.
XPPT
2
3
Write the content 150 of variable 199 to the position No. 3 of
axis 2.
[Example 2] LET
199
150
Assign 150 to variable 199.
LET
1
2
Assign 2 to variable 1.
LET
2
3
Assign 3 to variable 2.
XPPT
*1
*2
Write the content 150 of variable 199 to position No. 3
(content of variable 2) of axis 2 (content of variable 1).