Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 241

Table of Contents

Advertisement

• 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
&3
D100
@D200
D200
CS/CJ/NSJ Series Instructions Reference Manual (W474)
In the left example, the looped program section transfers
the content of D100 to the address indicated in D200
Repeated 3 times.
and then increments the content of D200 by 1.
D100
#0000
D200
3. Instructions
3
D0
D1
D2
205

Advertisement

Table of Contents
loading

Table of Contents