4. Operation Program
68
4.5.3. Extension Motion Control Axis Position Operation Commands
z
XPGT (extension motion control axis position data read)
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O/flag)
Command, declaration
Output part
operation type
(output/flag)
Command,
declaration
Operand 1
Operand 2
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 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 axis position data write)
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O/flag)
Command, declaration
Output part
operation type
(output/flag)
Command,
declaration
Operand 1
Operand 2
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 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).
ME0364-2B
Содержание RA Series
Страница 2: ......
Страница 4: ...ME0364 2B ...
Страница 22: ...1 Outline of Extension Motion Control Feature 14 ME0364 2B ...
Страница 40: ...3 Basic Settings 32 ME0364 2B ...
Страница 150: ...5 Practical Settings 142 ME0364 2B ...
Страница 170: ...6 Parameter Detail 162 ME0364 2B ...
Страница 174: ...7 Details of Features 166 ME0364 2B ...
Страница 184: ......
Страница 185: ......