Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 240

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
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)
Sample program
&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
203

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents