User guide

Page 168
Chapter 4. Programming
[Function] Stores the axis pattern of the position in Operand 2 into the variable in Operand 1.
[Example] PAXS 100 200
Store the axis pattern of position 200 into variable 100. When the points are set as in the position table below,
2 (10 in binary notation) is stored in variable 100.
[Example 2] When the points are set as below, 2 (10 in binary notation) is stored in variable 100.
LET 1 3
LET 2 301
PAXS *1 *2
Assign 3 to variable 1.
Assign 101 to variable 2.
Store the axis pattern of the position for 101 which is the value contained in variable 2, to variable 3
which is contained in variable 1.
When the points are set as below, 3 (11 in binary notation) is stored in variable 3.
2-5 Position Data Operation Command
PAXS (Read Axis Pattern)
· · · 00 = 0 + 0 = 0
· · · 01 = 0 + 1 = 1
· · · 10 = 2 + 0 = 2
· · · 11 = 2 + 1 = 3
When the positions are set as shown in the table, the
values to be stored in the variable will be as follows.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional PAXS Variable no. Position no.
Position No. Axis 2 Axis 1
98 xx.xxx xx.xxx
99 xx.xxx 100.000
100 150.000 xx.xxx
101 100.000 50.000