
6: D
ATA
C
OMPARISON
I
NSTRUCTIONS
6-8
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
LC= (Load Compare Equal To)
LC<> (Load Compare Unequal To)
LC< (Load Compare Less Than)
LC> (Load Compare Greater Than)
LC<= (Load Compare Less Than or Equal To)
LC>= (Load Compare Greater Than or Equal To)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
When T (timer) or C (counter) is used, the timer/counter current value (TC or CC) is displayed.
When F (float) data is selected, only data register and constant can be designated.
When F (float) data is selected and S1 or S2 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. The output to the following instructions is turned off. For user
program execution errors, see "User Program Execution Errors" on page 3-10.
Valid Data Types
Data type W or I:
S1 = S2
Data type D, L, or F:
S1·S1+1 = S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is equal to
S2 data, the output to the following instructions is turned on. When the condition is not met, the output
is turned off.
LC=(*)
*****
*****
Data type W or I:
S1 S2
Data type D, L, or F:
S1·S1+1 S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is not
equal to S2 data, the output to the following instructions is turned on. When the condition is not met, the
output is turned off.
LC<>(*)
*****
*****
≠
≠
Data type W or I:
S1 < S2
Data type D, L, or F:
S1·S1+1 < S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is less than
S2 data, the output to the following instructions is turned on. When the condition is not met, the output
is turned off.
LC<(*)
*****
*****
Data type W or I:
S1 > S2
Data type D, L, or F:
S1·S1+1 > S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is greater
than S2 data, the output to the following instructions is turned on. When the condition is not met, the
output is turned off.
LC>(*)
*****
*****
Data type W or I:
S1 S2
Data type D, L, or F:
S1·S1+1 S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is less than
or equal to S2 data, the output to the following instructions is turned on. When the condition is not met,
the output is turned off.
LC<=(*)
*****
*****
≤
≤
Data type W or I:
S1
≥
S2
Data type D, L, or F:
S1·S1+1
≥
S2·S2+1
This instruction constantly compares 16- or 32- bit data assigned by S1 and S2. When S1 data is greater
than or equal to S2 data, the output to the following instructions is turned on. When the condition is not
met, the output is turned off.
LC>=(*)
*****
*****
Device
Function
I
Q
M
R
T
C
D
P
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
—
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned, 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, 1 point (word or integer
data) or 2 points (double-word, long, or float data) are used.
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
Содержание MICROSmart FC6A Series
Страница 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Страница 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 158: ...6 DATA COMPARISON INSTRUCTIONS 6 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 216: ...10 DATA CONVERSION INSTRUCTIONS 10 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 248: ...11 WEEK PROGRAMMER INSTRUCTIONS 11 32 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 288: ...15 INTERRUPT CONTROL INSTRUCTIONS 15 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 294: ...16 COORDINATE CONVERSION INSTRUCTIONS 16 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 374: ...18 PULSE OUTPUT INSTRUCTIONS 18 78 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 Setting ...
Страница 450: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 574: ...27 FLOW CALCULATION INSTRUCTIONS 27 28 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 583: ...FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 28 9 28 USER DEFINED MACRO INSTRUCTION ...
Страница 584: ...28 USER DEFINED MACRO INSTRUCTION 28 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...