Omron CQM1H-SCB41 Computer Hardware User Manual


 
5-7SectionUsing Protocol Macros
87
Operand Areas and Address Ranges
Area C S D
IR and SR Areas IR 000 to IR 255 IR 000 to IR 252
HR Area HR 00 to HR 99
AR Area AR 00 to AR 27
LR Area LR 00 to LR 63
Timer and
Counter Area
TIM/CNT000 to TIM/CNT511
Data Memory
(DM) Area
DM 0000 to DM 6655 DM 0000 to
DM 6143
Extended Data
Memory (EM)
Area
EM 0000 to EM 6143
Indirect DM
address
*DM 0000 to *DM 6655
Indirect EM
address
*EM 0000 to *EM 6143
Constant Area See description of
control data.
#0000 to #FFFF ---
5-7-2 Ladder Program Structure
When creating a ladder program, note the following points.
To ensure that a PMCR(––) instruction is not executed while another
PMCR(––) instruction is being executed, use the Protocol Macro Executing
Flag in an NC input condition.
Use an OFF condition for the Protocol Macro Executing Flag and perform pro-
cessing to read the results of sequence execution, or perform processing
when a sequence ends in an error.
Programming Example
Protocol Macro
Executing Flag
Reading of sequence execution results
Processing of sequence errors
PMCR
Input condition
DIFD (14) A
20708
A
20708