User guide

Page 171
Chapter 4. Programming
[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 IFXX command executed, the program proceeds to
the step following the corresponding EDIF.
Up to 15 levels of nesting are available when ISXX and DWXX are combined.
ISXX (String Comparison)
ISXX
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.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional ISXX Column no.
Column no.
Literal character
12345678
1AXSGOFD