A-11
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-5 Compar
ison Instr
uctions
DOUBLE
UNSIGNED
COMPARE
CMPL
---
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.
SIGNED
BINARY COM-
PARE
CPS
!
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.
DOUBLE
SIGNED
BINARY COM-
PARE
CPSL
---
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.
TABLE COM-
PARE
TCMP
@
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.
T: First word of table
UNSIGNED
BLOCK COM-
PARE
BCMP
@
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.
B: First word of block
Instruction
Mnemonic
Variations
Symbol/Operand
Function
CMPL(060)
S
1
S
2
S1
:
Comparison data 1
S2
:
Comparison data 2
S1+1
S2+1
(>, >=, =, <=, <, <>)
Unsigned binary
comparison
Arithmetic Flags
CPS(114)
S
1
S
2
S1
:
Comparison data 1
S2
:
Comparison data 2
(>, >=, =, <=, <, <>)
Signed binary
comparison
Arithmetic Flags
CPSL(115)
S
1
S
2
S1
:
Comparison data 1
S2
:
Comparison data 2
S1+1
S2+1
(>, >=, =, <=, <, <>)
Signed binary
comparison
Arithmetic Flags
TCMP(0
8
5)
S
T
R
S
:
Source data
T
:
1st word of table
R
:
Result word
R
Comparison
1: Data
are equal.
0: Data
aren't equal.
Comparison data 0
Comparison data 1
to
Comparison data 15
T
T+1
to
T+15
BCMP(06
8
)
S
T
R
S
:
Source data
T
:
1st word of table
R
:
Result word
T+3
1
0
14
15
T+29
T+31
T+1
T+2
T+2
8
T+30
T
S
R
to
to
to
to
Ranges
Upper limit
Source data
Lower limit
1: In range
0: Not in range
B
B+1
B+2
B+3
to
B+30
B+31
Lower limit value 0
Upper limit value 0
Lower limit value 1
Upper limit value 1
to
Lower limit value 15
Upper limit value 15
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......