16 system information acquisition – IAI America XSEL-KX User Manual
Page 208

192
Part 4 Commands
1.16 System Information Acquisition
AXST (Get axis status)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1
Operand 2
Optional
Optional
AXST
Variable
number
Axis
number
CP
[Function]
Store in the variable specified in operand 1 the status (axis error number) of the axis
specified in operand 2.
(Note 1)
If the obtained result is “0,” it means no axis error is present.
(Note 2)
Since the error lists are written in hexadecimals, they must be converted to decimals.
[Example]
AXST
1
2
Read the error number for axis 2 to variable 1.
If 3188 (decimal) is stored in variable 1 after the execution of this command:
3188
ч 16 = 199 ,,,4
199
ч 16 = 12 (= C) ,,,7
3188 = 12 (= C) X 16
2
+ 7 X 16 + 4
= C74 (HEX) (Hexadecimal number)
Therefore, an “Error No. C74, Actual-position soft limit over error” is present.