Block Compare - Bcmp(68) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Comparison Instructions
5-19-3 BLOCK COMPARE – BCMP(68)
Limitations
Description
Flags
Ladder Symbols
BCMP(68)
@BCMP(68)
CD
CB
R
Each lower limit word in the comparison block must be less than or equal to
the upper limit.
DM 6144 to DM 6655 cannot be used for R.
When the execution condition is OFF, BCMP(68) is not executed. When the
execution condition is ON, BCMP(68) compares CD to the ranges defined by
a block consisting of CB, CB+1, CB+2, ..., CB+31. Each range is defined by
two words, the first one providing the lower limit and the second word provid-
ing the upper limit. If CD is found to be within any of these ranges (inclusive of
the upper and lower limits), the corresponding bit in R is set. The comparisons
that are made and the corresponding bit in R that is set for each true compar-
ison are shown below. The rest of the bits in R will be turned OFF.
CB ≤ CD ≤ CB+1
CB+2 ≤ CD ≤ CB+3
CB+4 ≤ CD ≤ CB+5
CB+6 ≤ CD ≤ CB+7
CB+8 ≤ CD ≤ CB+9
CB+10 ≤ CD ≤ CB+11
CB+12 ≤ CD ≤ CB+13
CB+14 ≤ CD ≤ CB+15
CB+16 ≤ CD ≤ CB+17
CB+18 ≤ CD ≤ CB+19
CB+20 ≤ CD ≤ CB+21
CB+22 ≤ CD ≤ CB+23
CB+24 ≤ CD ≤ CB+25
CB+26 ≤ CD ≤ CB+27
CB+28 ≤ CD ≤ CB+29
CB+30 ≤ CD ≤ CB+31
ER:
The comparison block (i.e., CB through CB+31) exceeds the data
area.
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.)
Operand Data Areas
CD: Compare data
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
CB: First comparison block word
CD
IR, SR, DM, EM, HR, TIM/CNT, LR
CB
R
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Bit 00
Bit 01
Bit 02
Bit 03
Bit 04
Bit 05
Bit 06
Bit 07
Bit 08
Bit 09
Bit 10
Bit 11
Bit 12
Bit 13
Bit 14
Bit 15
Section 5-19
R: Result word
283

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

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF