10: D
ATA
C
OMPARISON
I
NSTRUCTIONS
10-4
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
ICMP>= (Interval Compare Greater Than or Equal To)
Applicable CPU Modules
Valid Operands
For the valid operand number range, see pages 6-1 and 6-2.
▲
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1, S2, or S3, the timer/counter current value is read out.
When the data of S1 is smaller than that of S3 (S1 < S3), a user program execution error will result, turning on special
internal relay M8004 and ERR LED on the CPU module.
Valid Data Types
Special Internal Relays M8150, M8151, and M8152 in ICMP>=
Three special internal relays are provided to indicate the comparison result of the ICMP>= instruction. Depending on the
result, one of the three special internal relays turns on. S1 must always be greater than or equal to S3 (S1
≥
S3).
When more than one ICMP>= or CMP= instruction is used, M8150, M8151, or M8152 indicates the result of the instruc-
tion that was executed last.
Example: ICMP>=
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
—
—
—
—
X
Operand
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
Data to compare
X
X
X
X
X
X
X
X
—
S2 (Source 2)
Data to compare
X
X
X
X
X
X
X
X
—
S3 (Source 3)
Data to compare
X
X
X
X
X
X
X
X
—
D1 (Destination 1)
Comparison output
—
X
▲
—
—
—
—
—
—
W (word)
I (integer)
X
X
S1
≥
S2
≥
S3
→
D1 on
When input is on, the 16-bit data designated by S1, S2, and
S3 are compared. When the condition is met, destination
operand D1 is turned on. When the condition is not met, D1 is
turned off.
ICMP>=(*)
S1
*****
S2
*****
S3
*****
D1
*****
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is
designated as the source, 16 points are used.
When a word operand such as T (timer), C (counter), or D (data register) is designated as the
source, 1 point is used.
The destination uses only one output or internal relay regardless of the selected data type.
When S2 > S1, M8150 turns on.
When S2 < S3, M8151 turns on.
When S1 > S2 > S3, M8152 turns on.
S2
Value
M8150 M8151 M8152
D1
Status
(1) S2 < S3
OFF
ON
OFF
OFF
(2) S2 = S3
OFF
OFF
OFF
ON
(3) S3 < S2 < S1
OFF
OFF
ON
ON
(4) S2 = S1
OFF
OFF
OFF
ON
(5) S2 > S1
ON
OFF
OFF
OFF
S2
S3
S1
M8151
M8152
M8150
(2)
(1)
(3)
(5)
(4)
Small
Large
D1
M10
When input I0 is turned on, data of data registers D10, D11, and D12 designated by source operands S1, S2, and S3 are
compared. When the condition is met, internal relay M10 designated by destination operand D1 is turned on. When the con-
dition is not met, M10 is turned off.
S1
D10
I0
ICMP>=(W)
S2
D11
S3
D12
SOTU
D10
≥
D11
≥
D12
→
M10 goes on
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...