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

Page 83

Advertising
background image

81

ISXX (String Comparison)

[Function]

Compares the character string in the column numbers in Operand 1 and Operand 2. When the condition
is established, the program proceeds to the next step. When the condition is not established, if there is a
corresponding ELSE command, the program proceeds to the next step after that. If not, it proceeds to
the next step after the corresponding EDIF command. The length of the string to be compared is set by
the SLEN command. If there is a literal character in either Operand 1 or Operand 2, the length to be
compared is that of the literal character. When the input condition is not established and there is no IF

XX

command executed, the program proceeds to the step following the corresponding EDIF. Up to 15
levels of nesting are available when IS

XX

and DW

XX

are combined.

IS

XX

EQ

· · ·

Operand 1 = Operand 2

NE

· · ·

Operand 1

Operand 2

SCPY

10

'GOFD'

Go forward

SCPY

14

'GOBK'

Go backward

LET

1

5

LET

2

14

600

ISEQ

1

'1AXS'

Select Axis

SLEN

4

ISEQ

5

10

Select moving direction

JFWN

01

5

Move Axis 1 forward

ELSE
JBWN 01

5

Move Axis 1 backward

EDIF
ELSE
ISNE

*1

*2

Select moving direction

JFWN

10

5

Move Axis 2 forward

ELSE
JBWN 10

5

Move Axis 2 backward

EDIF
EDIF

Column 1 ~ 4 is to select Axis 1, Axis 2 and column 5 ~ 8 is to select the jog direction.
When flag 600 is OFF, nothing is done and the program proceeds to the step after the last EDIF.
When column 1 ~ 8 contains the data shown below, Axis 1 moves forward.

12. SEL Language

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

S

I

X

X

.

o

N

n

m

u

l

o

C

.

o

N

n

m

u

l

o

C

r

e

t

c

a

r

a

h

c

l

a

r

e

t

i

L

1 2 3 4 5 6 7 8

1 A X S G O F D

Advertising