Sel language – IAI America DS-S-C1 User Manual

Page 73

Advertising
background image

71

12. SEL Language

[Function]

Stores the status (error code) of the axis in Operand 2 in the variable in Operand 1.
Only error codes that begin with the letter "A" will be stored in the register in Operand 1. These error
codes are the same ones that are displayed on the front panel of the controller. (The error codes in the
table are written in hexadecimal numbers. The hexadecimal value in the variable in Operand 1 must be
converted to a decimal number to identify its error code.)

[Example]

AXST

1

2

Read the status for Axis 2 to variable 1.
If 161 was in variable 1, 161

÷

16 = 10 ( = A) with a remainder of 1, then

this means that error code A1 (External Interrupt Error) occurred on Axis 2.

AXST (Axis Status Acquisition)

n

o

i

s

n

a

p

x

E

n

o

i

t

i

d

n

o

c

)

R

O

·

D

N

A

(

t

u

p

n

I

n

o

i

t

i

d

n

o

c

)

g

a

l

F

·

O

/

I

(

d

n

a

m

m

o

C

t

s

o

P

)

g

a

l

F

·

t

r

o

p

t

u

p

t

u

O

(

d

n

a

m

m

o

C

1

d

n

a

r

e

p

O

2

d

n

a

r

e

p

O

l

a

n

o

i

t

p

O

l

a

n

o

i

t

p

O

T

S

X

A

.

o

N

e

l

b

a

i

r

a

V

.

o

N

s

i

x

A

Advertising