Cmp= (Compare Equal To); Cmp<> (Compare Unequal To); Cmp< (Compare Less Than); Cmp> (Compare Greater Than) - 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
Introduction
Data can be compared using data comparison instructions, such as equal to, unequal to, less than, greater than, less than or equal
to, and greater than or equal to. When the comparison result is true, an output or internal relay is turned on. The repeat operation
can also be used to compare more than one set of data.
When the repeat operation is enabled, repeated comparison results of CMP instructions can be selected from AND or OR operation,
and the result is outputted to an output or internal relay.
Three values can also be compared using the ICMP>= instruction.
Load comparison instructions load comparison results so that the following instructions can be initiated.
Since the data comparison instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction
should be used.

CMP= (Compare Equal To)

CMP=(*)
S1(R)
AND/OR
*****
CMP<> (Compare Unequal To)
CMP<>(*)
S1(R)
AND/OR
*****
CMP< (Compare Less Than)
CMP<(*)
S1(R)
AND/OR
*****
CMP> (Compare Greater Than)
CMP>(*)
S1(R)
AND/OR
*****
CMP<= (Compare Less Than or Equal To)
CMP<=(*)
S1(R)
AND/OR
*****
CMP>= (Compare Greater Than or Equal To)
CMP>=(*)
S1(R)
AND/OR
*****
OMPARISON
S2(R)
D1(R)
REP
*****
*****
**
S2(R)
D1(R)
REP
*****
*****
**
S2(R)
D1(R)
REP
*****
*****
**
S2(R)
D1(R)
REP
*****
*****
**
S2(R)
D1(R)
REP
*****
*****
**
S2(R)
D1(R)
REP
*****
*****
**
FC6A S
MICROS
ERIES
MART
I
NSTRUCTIONS
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is equal to S2 data, destination device D1 is turned
on. When the condition is not met, D1 is turned off.
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is not equal to S2 data, destination device D1 is
turned on. When the condition is not met, D1 is turned off.
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is less than S2 data, destination device D1 is turned
on. When the condition is not met, D1 is turned off.
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is greater than S2 data, destination device D1 is
turned on. When the condition is not met, D1 is turned off.
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is less than or equal to S2 data, destination device
D1 is turned on. When the condition is not met, D1 is turned off.
Data type W or I:
Data type D, L, or F:
When input is on, 16- or 32-bit data assigned by source devices S1 and S2 are
compared. When S1 data is greater than or equal to S2 data, destination
device D1 is turned on. When the condition is not met, D1 is turned off.
L
P
M
ADDER
ROGRAMMING
ANUAL
S1 = S2 → D1 on
S1·S1+1 = S2·S2+1 → D1 on
S1
S2 → D1 on
S1·S1+1
S2·S2+1 → D1 on
S1 < S2 → D1 on
S1·S1+1 < S2·S2+1 → D1 on
S1 > S2 → D1 on
S1·S1+1 > S2·S2+1 → D1 on
S1
S2 → D1 on
S1·S1+1
S2·S2+1 → D1 on
S1 ≥ S2 → D1 on
S1·S1+1 ≥ S2·S2+1 → D1 on
FC9Y-B1726
6-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents