Bcmp - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

BCMP

Instruction
BLOCK COMPARE
Symbol
Applicable Program Areas
Area
Usage
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
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
BCMP
@BCMP
Step program areas
OK
Description
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
OFF
P_EQ
• 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 addresses
Constants
@DM
*DM
OK
OK
OK
---
Operation
2 Instructions
Function
Interrupt tasks
OK
Data type
Size
WORD
1
WORD
32
UINT
1
1
0
Comparison result for S and
range B ↔ B+1
Comparison result for S and
range B+2 ↔ B+3
CF
Pulse bits
TR bits
---
---
---
2-103
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents