Chapter 4. programming – IAI America S-SEL-E User Manual
Page 173

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.
E x p a n s io n
c o n d itio n
( A N D · O R )
In p u t
c o n d itio n
( I/O · F la g )
C o m m a n d
P o s t
( O u tp u t p o r t · F la g )
C o m m a n d
O p e ra n d 1
O p e ra n d 2
O p tio n a l
O p tio n a l
PA X S
Va r ia b le n o .
P o s itio n n o .
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