Using Protocol Macros

 

 

 

Section 5-7

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

TIM/CNT000 to TIM/CNT511

 

 

 

Counter Area

 

 

 

 

 

 

 

 

 

 

 

Data Memory

DM 0000 to DM 6655

 

DM 0000 to

 

(DM) Area

 

 

 

DM 6143

 

 

 

 

 

 

 

Extended Data

EM 0000 to EM 6143

 

 

 

 

Memory (EM)

 

 

 

 

 

 

Area

 

 

 

 

 

 

 

 

 

 

 

Indirect DM

*DM 0000 to *DM 6655

 

 

 

address

 

 

 

 

 

 

 

 

 

 

 

Indirect EM

*EM 0000 to *EM 6143

 

 

 

address

 

 

 

 

 

 

 

 

 

 

 

 

Constant Area

See description of

 

#0000 to #FFFF

---

 

 

 

control data.

 

 

 

 

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

Input condition

20708

PMCR

20708

 

 

DIFD (14)

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A

Reading of sequence execution results

Processing of sequence errors

87

Page 98
Image 98
Omron CQM1H-SCB41 operation manual Ladder Program Structure, Operand Areas and Address Ranges, Programming Example