FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
7-1
7: D
ATA
C
OMPARISON
I
NSTRUCTIONS
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 result 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 as required.
CMP= (Compare Equal To)
CMP<> (Compare Unequal To)
CMP< (Compare Less Than)
CMP> (Compare Greater Than)
CMP<= (Compare Less Than or Equal To)
CMP>= (Compare Greater Than or Equal To)
Data type W or I:
S1 = S2
D1 on
Data type D, L, or F:
S1·S1+1 = S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP=(*)
AND/OR
S2(R)
*****
Data type W or I:
S1 S2
D1 on
Data type D, L, or F:
S1·S1+1 S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<>(*)
AND/OR
S2(R)
*****
Data type W or I:
S1 < S2
D1 on
Data type D, L, or F:
S1·S1+1 < S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<(*)
AND/OR
S2(R)
*****
Data type W or I:
S1 > S2
D1 on
Data type D, L, or F:
S1·S1+1 > S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP>(*)
AND/OR
S2(R)
*****
Data type W or I:
S1 S2
D1 on
Data type D, L, or F:
S1·S1+1 S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP<=(*)
AND/OR
S2(R)
*****
Data type W or I:
S1
S2
D1 on
Data type D, L, or F:
S1·S1+1
S2·S2+1
D1 on
When input is on, 16- or 32-bit data designated 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.
REP
**
S1(R)
*****
D1(R)
*****
CMP>=(*)
AND/OR
S2(R)
*****
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...