Ladder Program Structure - Omron CQM1H-SCB41 Operation Manual

Sysmac cqm1h series serial communications board
Hide thumbs Also See for CQM1H-SCB41:
Table of Contents

Advertisement

Using Protocol Macros
Flags
Operand Areas and Address Ranges
5-7-2

Ladder Program Structure

Programming Example
86
received in words starting from D+1 and the number of words of received data
will be automatically stored in D.
Name
Address
Error Flag
SR 25503
Area
IR and SR Areas
IR 000 to IR 255
HR Area
HR 00 to HR 99
AR Area
AR 00 to AR 27
LR Area
LR 00 to LR 63
Timer and Counter
TIM/CNT000 to TIM/CNT511
Area
Data Memory (DM)
DM 0000 to DM 6655
Area
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
control data.
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 Execut-
ing Flag in an NC input condition.
• Use an OFF condition for the Protocol Macro Executing Flag and perform
processing to read the results of sequence execution, or perform process-
ing when a sequence ends in an error.
Input condition
20708
A
ON
Indirectly addressed DM or EM word is non-exis-
tent. (Content of *DM/*EM word is not BCD, or the
area boundary has been exceeded.)
Another PMCR( ) instruction was already in
progress when the instruction was executed
(IR 20708 or IR 20712 is ON).
The port specifier was not 1 or 2.
Note: PMCR( ) will not be executed when SR
25503 is ON.
C
#0000 to #FFFF
Protocol Macro
Executing Flag
20708
Reading of sequence execution results
Processing of sequence errors
Section 5-7
OFF
Other
times.
S
D
IR 000 to IR 252
DM 0000 to
DM 6143
---
PMCR
DIFD (14)
A

Advertisement

Table of Contents
loading

Table of Contents