EasyManuals Logo
Home>Omron>Computer Hardware>SYSMAC CP Series

Omron SYSMAC CP Series Instruction & Reference Manual

Omron SYSMAC CP Series
467 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #94 background imageLoading...
Page #94 background image
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

Table of Contents

Other manuals for Omron SYSMAC CP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP Series and is the answer not in the manual?

Omron SYSMAC CP Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals