EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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
Loading...
207
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Sequence Control Instructions
3
FOR/NEXT
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:
Block programming instructions
MULTIPLE JUMP and JUMP END: JMP(515) and JME(516)
STEP DEFINE and STEP START: STEP(008)/SNXT(009)
If the following differentiated instructions are used between FOR and NEXT, the differentiated
instruction will be executed only once. It will not be executed for the number of loops.
UP and DOWN
DIFU and DIFD
Upwardly differentiated versions of instructions (instructions with @ option)
Downwardly differentiated versions of instructions (instructions with % option)
Example Programming
#0000
D200
@D200
D100
&3
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.

Table of Contents

Related product manuals