Iai-america XSEL-KX Manuel d'utilisateur Page 200

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 377
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 199
184
Part 4 Commands
ISXX (Compare strings)
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 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
Operand 2
[Example 1]
SCPY
10
GOFD(Move
forward)
SCPY
14
GOBK(Move
backward)
SLEN
4
Set the number of comparing characters to 4.
600
ISEQ
1
AXSX(X-axis)
Select an axis.
ISEQ
5
10
Select a moving direction.
MOVL
1
Move the axis to position No. 1 in CP mode.
ELSE
MOVL
2
5
Move the axis to position No. 2 in CP mode.
EDIF
ELSE
ISNE
5
14
Select a moving direction.
MOVL
3
Move the axis to position No. 3 in CP mode.
ELSE
MOVL
4
Move the axis to position No. 4 in CP mode.
EDIF
EDIF
Move in CP mode by selecting position Nos. 1 and 2 by columns 1 to 4 and
position Nos. 3 and 4 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 data, the axis will be moved to position
No. 1 in CP mode.
1 2
3 4
5 6
7 8
AX SX GO FD
(Note)
Using a GOTO command to branch out of or into an ISXX-EDIF syntax is prohibited.
Vue de la page 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 376 377

Commentaires sur ces manuels

Pas de commentaire