Area Range Compare - Zcp(- -) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Comparison Instructions
5-19-8 AREA RANGE COMPARE – ZCP(– –)
Limitations
Description
Precautions
Flags
Ladder Symbol
ZCP(−−)
CD
LL
UL
LL must be less than or equal to UL.
When the execution condition is OFF, ZCP(––) is not executed. When the exe-
cution condition is ON, ZCP(––) compares CD to the range defined by lower
limit LL and upper limit UL and outputs the result to the GR, EQ, and LE flags
in the SR area. The resulting flag status is shown in the following table.
Comparison result
CD < LL
LL ≤ CD ≤ UL
UL < CD
Placing other instructions between ZCP(––) and the operation which
accesses the EQ, LE, and GR flags may change the status of these flags. Be
sure to access them before the desired status is changed.
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
LL is greater than UL.
ON if LL ≤ CD ≤ UL
EQ:
LE:
ON if CD < LL.
GR:
ON if CD > UL.
Operand Data Areas
CD: Compare data
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
LL: Lower limit of range
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
UL: Upper limit of range
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Flag status
GR (SR 25505)
EQ (SR 25506)
0
0
0
1
1
0
Section 5-19
LE (SR 25507)
1
0
0
289

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF