Omron CP1E CPU UNIT SOFTWARE User Manual page 365

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
DOUBLE
CMPL
UNSIGNED
COMPARE
SIGNED
CPS
BINARY COM-
PARE
DOUBLE
CPSL
SIGNED
BINARY COM-
PARE
TABLE COM-
TCMP
PARE
UNSIGNED
BCMP
BLOCK COM-
PARE
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
---
CMPL(060)
S
1
S
2
S1: Comparison data 1
S2: Comparison data 2
!
CPS(114)
S
1
S
2
S1: Comparison data 1
S2: Comparison data 2
---
CPSL(115)
S
1
S
2
S1: Comparison data 1
S2: Comparison data 2
@
TCMP(085)
S
T
R
S: Source data
T: 1st word of table
R: Result word
@
BCMP(068)
S
T
R
S: Source data
T: 1st word of table
R: Result word
Function
Compares two double unsigned binary values (constants and/or
the contents of specified words) and outputs the result to the Arith-
metic Flags in the Auxiliary Area.
Unsigned binary
comparison
S1+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
Compares two signed binary values (constants and/or the con-
tents of specified words) and outputs the result to the Arithmetic
Flags in the Auxiliary Area.
Signed binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Compares two double signed binary values (constants and/or the
contents of specified words) and outputs the result to the Arith-
metic Flags in the Auxiliary Area.
Signed binary
comparison
S1+1
Arithmetic Flags
(>, >=, =, <=, <, <>)
Compares the source data to the contents of 16 words and turns
ON the corresponding bit in the result word when the contents are
equal.
Comparison
T: First word of table
Comparison data 0
T
Comparison data 1
T+1
to
to
Comparison data 15
T+15
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 the range.
Ranges
Lower limit
T
to
T+2
to
Source data
S
T+28
to
T+30
to
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
to
to
B+30
Lower limit value 15
B+31
Upper limit value 15
Appendices
S2+1
S2+1
R
1: Data
are equal.
0: Data
aren't equal.
1: In range
0: Not in range
Upper limit
R
0
T+1
1
T+3
14
T+29
T+31
15
A-11

Advertisement

Table of Contents
loading

Table of Contents