Icmp>= (Interval Compare Greater Than Or Equal To) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

6: D
C
ATA
OMPARISON
ICMP>= (Interval Compare Greater Than or Equal To)
ICMP>=(*)
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
S3 (Source 3)
D1 (Destination 1)
For the valid device address range, see "Device Addresses" on page 2-1.
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 (TC or CC) is displayed.
When F (float) data is selected, only data register and constant can be designated as S1, S2, and S3.
When F (float) data is selected and S1, S2, or S3 does not comply with the normal floating-point format, a user program execution error will result,
turning on special internal relay M8004 and ERR LED on the FC6A Series MICROSmart.
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 FC6A Series MICROSmart. For user program execution errors, see "User Program Execution Errors" on page 3-10.
W (word)
X
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
Special Internal Relays M8150, M8151, and M8152 in ICMP>=
Three special internal relays are available 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 S2 > S1, M8150 turns on.
When S2 < S3, M8151 turns on.
When S1 > S2 > S3, M8152 turns on.
S3
M8151
Small
S2
(1)
(2)
When more than one ICMP>= or CMP= instruction is used, M8150, M8151, or M8152 indicates the result of the instruction that
was executed last.
6-6
I
NSTRUCTIONS
S1
S2
S3
*****
*****
*****
Function
Data to compare
Data to compare
Data to compare
Comparison output
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source,
16 points (word or integer data) or 32 points (double-word or long data) are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source, 1 point (word
or integer data) or 2 points (double-word, long, or float data) are used.
The destination uses only one output or internal relay regardless of the selected data type.
S1
M8152
M8150
(3)
(4)
(5)
FC6A S
MICROS
ERIES
MART
Data type W or I:
Data type D, L, F:
D1
When input is on, the 16- or 32-bit data assigned by S1, S2, and S3 are
*****
compared. When the condition is met, destination device D1 is turned on.
When the condition is not met, D1 is turned off.
I
Q
X
X
X
X
X
X
X
S2 Value
(1) S2 < S3
(2) S2 = S3
(3) S3 < S2 < S1
(4) S2 = S1
Large
(5) S2 > S1
L
P
M
ADDER
ROGRAMMING
S1
S2
S3
D1 on
S1·S1+1
S2·S2+1
M
R
T
C
D
P
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
M8150
M8151
OFF
ON
OFF
OFF
OFF
OFF
OFF
OFF
ON
OFF
FC9Y-B1726
ANUAL
S3·S3+1
D1 on
Constant
Repeat
X
X
X
D1
M8152
Status
OFF
OFF
OFF
ON
ON
ON
OFF
ON
OFF
OFF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents