![Omron SYSMAC C200H Скачать руководство пользователя страница 159](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423159.webp)
146
5-15-4
BLOCK COMPARE – BCMP(68)
CD: Compare data
IR, SR, DM, HR, TC, LR, #
CB: First comparison block word
IR, SR, DM, HR, TC, LR
Ladder Symbols
Operand Data Areas
R: Result word
IR, AR, DM, HR, TC, LR
BCMP(68)
CD
CB
R
@BCMP(68)
CD
CB
R
Each lower limit word in the comparison block must be less than or equal to
the upper limit.
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 of CB, CB+1, CB+2, ..., CB+32. Each range is defined
by two words, the first one providing the lower limit and the second word pro-
viding the upper limit. If CD is found to be within any of these ranges (inclu-
sive 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 comparison are shown below. The rest of the bits in R will be turned
OFF.
CB
≤
CD
≤
CB+1
Bit 00
CB+2
≤
CD
≤
CB+3
Bit 01
CB+4
≤
CD
≤
CB+5
Bit 02
CB+6
≤
CD
≤
CB+7
Bit 03
CB+8
≤
CD
≤
CB+9
Bit 04
CB+10
≤
CD
≤
CB+11
Bit 05
CB+12
≤
CD
≤
CB+13
Bit 06
CB+14
≤
CD
≤
CB+15
Bit 07
CB+16
≤
CD
≤
CB+17
Bit 08
CB+18
≤
CD
≤
CB+19
Bit 09
CB+20
≤
CD
≤
CB+21
Bit 10
CB+22
≤
CD
≤
CB+23
Bit 12
CB+24
≤
CD
≤
CB+25
Bit 13
CB+26
≤
CD
≤
CB+27
Bit 14
CB+28
≤
CD
≤
CB+29
Bit 15
CB+30
≤
CD
≤
CB+31
Bit 16
Flags
ER:
The comparison block (i.e., CB through CB+31) exceeds the data
area.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
Limitations
Description
Data Comparison
Section 5-15
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...