Bcmp - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

BCMP

Instruction
BLOCK COMPARE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source data
B
First word of block
R
Result word
B: First word of block
B
Lower limit value 0
B+1
Upper limit value 0
B+2
Lower limit value 1
B+3
Upper limit value 1
B+30
Lower limit value 15
B+31
Upper limit value 15
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
B
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
BCMP
@BCMP
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
OFF
=
• ON if the result word is 0000.
(S is not within any of the 16 ranges.)
• OFF in all other cases.
Function
code
Compares the source data to 16 ranges (defined
by 16 lower limits and 16 upper limits) and turns
068
ON the corresponding bit in the result word when
the source data is within a range.
BCMP
BCMP(068)
S
S: Source data
B: First word of block
B
R: Result word
R
Subroutines
OK
R: Result word
15
14
R
Comparison result for S and
range B+28 ↔ B+29
Comparison result for S and
range B+30 ↔ B+31
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
OK
Operation
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
WORD
WORD
32
UINT
1
0
Comparison result for S and
range B ↔ B+1
Comparison result for S and
range B+2 ↔ B+3
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
3
1
1
TR
bits
---
269

Advertisement

Table of Contents
loading

Table of Contents