Omron SYSMAC CP CP1E-N@@D@-@ Instrukcja Użytkownika Strona 94

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 467
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 93
2 Instructions
2-58
CP1E CPU Unit Instructions Reference Manual(W483)
A jump instruction such as JMP(004) may be executed within a FOR-NEXT loop, but do not jump
beyond the FOR-NEXT loop.
The following instructions cannot be used within FOR-NEXT loops:
STEP DEFINE and STEP START: STEP(008)/SNXT(009)
Sample program
&3
Breaks FOR-NEXT loop 2.
Breaks FOR-NEXT loop 1.
Escapes from loop
when condition a
is ON.
Remaining
instructions are
processed as
NOP(000).
FOR
&3
BREAK
NEXT
a
FOR
&2
BREAK
NEXT
FOR
&3
BREAK
NEXT
21
#0000
D100
D0
D1
D2
D200
Repeated 3 times.
In the left example, the looped program section transfers
the content of D100 to the address indicated in D200
and then increments the content of D200 by 1.
FOR
&3
MOV
D100
@D200
++
D200
NEXT
MOV
#0000
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 466 467

Komentarze do niniejszej Instrukcji

Brak uwag