IAI America XSEL-QX User Manual

Page 211

Advertising
background image

187

Part 4 Commands

z PAXS (Read axis pattern)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,
declaration

Operand 1

Operand 2

Output

(Output, flag)

Optional Optional

PAXS

Variable

number

Position

number

CP

[Function]

Store the axis pattern at the position specified in operand 2 to the variable specified in
operand 1.

[Example 1]

PAXS

1

98

Read the axis pattern at position 98 to variable 1.
If the position is given as follows, “3” (binary 0011) will
be read to variable 1.

[Example 2]

LET

1

3

Assign 3 to variable 1.

LET

2

101

Assign 101 to variable 2.

PAXS

*1

*2

Read the axis pattern at the content of variable 2
(position 101) to the content of variable 1 (variable 3).
If the point is given as follows, “8” (binary 1000) will be
stored in variable 3.

The table below shows different positions and corresponding values stored in a
variable.

0 0 1 1 = 2 + 1 = 3
0 1 0 1 = 4 + 1 = 5
0
1 0 0 0 = 8

Advertising
This manual is related to the following products: