Iai-america XSEL-KX Bedienungsanleitung Seite 199

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 377
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 198
183
Part 4 Commands
1.13 Structural IF
IFXX (Structural IF)
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 IFXX
Variable
number
Data CP
[Function]
Compare the content of the variable specified in operand 1 with the value specified in
operand 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.
If the input condition is not satisfied and the IFXX command is not executed, the program will
proceed to the step next to the corresponding EDIF.
A maximum of 15 nests are supported when ISXX and DWXX are combined.
IFXX
EQ
Operand 1 = Operand 2
NE
Operand 1
Operand 2
GT
Operand 1 > Operand 2
GE
Operand 1
Operand 2
LT
Operand 1 < Operand 2
LE
Operand 1
Operand 2
[Example 1]
SVON
1111
Set the current arm system in variable 99.
PRDQ
1
100
Read the current X coordinate into variable 100.
CPNE
99
0
600
If the arm system is indeterminable, the arm
system whose flag 600 is turned OFF will be
determined. If this arm system is also
indeterminable, the operation will end.
600
IFEQ
99
1
IFGE
100
0
If the X coordinate is 0 or greater:
Move the axis to position No. 1 in PTP mode.
MOVP
1
ELSE
MOVP
2
Move the axis to position No. 2 in PTP mode.
EDIF
ELSE
IFGE
100
0
If the X coordinate is 0 or greater:
Move the axis to position No. 3 in PTP mode.
MOVP
3
ELSE
MOVP
4
Move the axis to position No. 4 in PTP mode.
EDIF
EDIF
EXIT
If the current arm system is the right arm and the X coordinate is 0 or greater, the axis will
move to position No. 1; if the X coordinate is below 0, the axis will move to position No. 2.
If the current arm system is the left arm and the X coordinate is 0 or greater, the axis will
move to position No. 3; if the X coordinate is below 0, the axis will move to position No. 4.
(Note)
Using a GOTO command to branch out of or into an IFXX-EDIF syntax is prohibited.
Seitenansicht 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 376 377

Kommentare zu diesen Handbüchern

Keine Kommentare