Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 708

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Subroutines
Variations
Applicable Program Areas
Operands
Operand Specifications
Description
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
N: Subroutine number
Specifies the subroutine number between 0 and 255 decimal.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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
N
---
CIO 0 to CIO 6140
---
W0 to W508
---
H0 to H508
---
A0 to A444
A448 to A956
---
T0000 to T4092
---
C0000 to C4092
---
D0 to D32764
---
@ D0 to @ D32767
---
*D0 to *D32767
0 to 255 (decimal) ---
---
---
---
,IR0 to ,IR15
–2048 to +2047,IR0 to –2048 to
+2047,IR15
DR0 to DR15,IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to ,–(– –)IR15
Section 3-18
MCRO(099)
@MCRO(099)
Not supported
Interrupt tasks
OK
S
D
A448 to A956
675

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents