EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals