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

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

Advertisement

Subroutines
Applicable Program Areas
Operands
Operand Specifications
Description
818
Block program areas
OK
N: Subroutine number
Specifies the subroutine number between 0 and 1023 decimal.
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the subroutine number must
be between the range 0 to 255 decimal.
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
Note For CJ1M-CPU11 and CJ1M-CPU21 CPU Units, the range is 0 to 255 deci-
mal.
MCRO(099) calls the subroutine with the specified subroutine number just like
SBS(091). Unlike SBS(091), MCRO(099) operands S and D can be used to
change bit and word addresses in the subroutine, although the structure of
the subroutine is constant.
When MCRO(099) is executed, the contents of S through S+3 are copied to
A600 through A603 (macro area inputs) and the specified subroutine is exe-
cuted. When the subroutine is completed, the contents of A604 through A607
(macro area outputs) are copied to D through D+3 and program execution
continues with the next instruction after MCRO(099).
Step program areas
Subroutines
OK
OK
N
---
CIO 0000 to CIO 6140
---
W000 to W508
---
H000 to H508
---
A000 to A444
A448 to A956
---
T0000 to T4092
---
C0000 to C4092
---
D00000 to D32764
---
E00000 to E32764
---
En_00000 to En_32764
(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)
0 to 1023 (deci-
---
mal) (See note.)
---
---
---
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to
+2047, IR15
DR0 to DR15, IR0 to IR15, IR0+(++)
to IR015+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-19
Interrupt tasks
OK
S
D
A448 to A956

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents