Iai-america XSEL-KE Manuel d'utilisateur Page 194

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 424
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 193
179
Part 4 Commands
z ISXX (Compare strings)
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 ISXX
Column
number
Column
number,
character
literal
CP
[Function] Compare the character strings in the columns specified in operands 1 and 2, and proceed to
the next step if the condition is satisfied.
If the condition is not satisfied, the program will proceed to the step next to the corresponding
ELSE command, if any, or to the step next to the corresponding EDIF command.
Comparison will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, comparison will be performed for the entire
length of the literal.
If the input condition is not satisfied and the ISXX command is not executed, the program will
proceed to the step next to the EDIF.
A maximum of 15 nests are supported when IFXX and DWXX are combined.
ISXX
EQ
Operand 1 = Operand 2
NE
Operand 1 z Operand 2
>([DPSOH@ 6&3<  µ*2)'¶0RYH
forward)
6&3<  µ*2%.¶0RYH
backward)
LET 1 5
LET 2 14
SLEN 4 Set the number of comparing characters to 4.
 ,6(4  µ$;6¶$[LV 6HOHFWDQD[LV
,6(4   6HOHFWDPRYLQJGLUHFWLRQ
-):1   0RYHD[LVIRUZDUG
ELSE
-%:1   0RYHD[LVEDFNZDUG
EDIF
ELSE
,61(   6HOHFWDPRYLQJGLUHFWLRQ
-):1   0RYHD[LVEDFNZDUG
ELSE
-%:1   0RYHD[LVIRUZDUG
EDIF
EDIF
Jog by selecting axis 1/axis 2 by columns 1 to 4 and forward/backward by
columns 5 to 8.
Nothing will happen if flag 600 is OFF, in which case the program will proceed to
the step next to the last EDIF.
If columns 1 to 8 contain the followingGDWDD[LVZLOOEHPRYHGIRUZDUG
1 2 3 4 5 6 7 8
$ ;6 *2 )'
1RWH 8VLQJD*272FRPPDQGWREUDQFKRXWRIor into an ISXX-EDIF syntax is prohibited.
Vue de la page 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 423 424

Commentaires sur ces manuels

Pas de commentaire