Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 279

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Sequence Control Instructions
Operand Specifications
Description
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
The instructions between FOR(512) and NEXT(513) are executed N times
and then program execution continues with the instruction after NEXT(513).
The BREAK(514) instruction can be used to cancel the loop.
If N is set to 0, the instructions between FOR(512) and NEXT(513) are pro-
cessed as NOP(000) instructions.
Loops can be used to process tables of data with a minimum amount of pro-
gramming.
Repeated program section
FOR-NEXT loops can be nested up to 15 levels. In the example below, pro-
gram sections A, B, and C are executed as follows:
A
B
B
C, A
B
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
A000 to A959
T0000 to T4095
C0000 to C4095
D00000 to D32767
E00000 to E32767
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF (binary) or &0 to &65,535
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Repeated N times
B
C, and A
B
Section 3-5
N
B
C
239

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents