Lc= (Load Compare Equal To); Lc<> (Load Compare Unequal To); Lc< (Load Compare Less Than); Lc> (Load 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
OMPARISON

LC= (Load Compare Equal To)

LC=(*)
*****
*****
LC<> (Load Compare Unequal To)
LC<>(*)
*****
*****
LC< (Load Compare Less Than)
LC<(*)
*****
*****
LC> (Load Compare Greater Than)
LC>(*)
*****
*****
LC<= (Load Compare Less Than or Equal To)
LC<=(*)
*****
*****
LC>= (Load Compare Greater Than or Equal To)
LC>=(*)
*****
*****
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
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
W (word)
X
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
6-8
I
NSTRUCTIONS
Data type W or I:
Data type D, L, or F:
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.
Data type W or I:
Data type D, L, or F:
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.
Data type W or I:
Data type D, L, or F:
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.
Data type W or I:
Data type D, L, or F:
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.
Data type W or I:
Data type D, L, or F:
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.
Data type W or I:
Data type D, L, or F:
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.
Function
Data to compare
Data to compare
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.
FC6A S
MICROS
ERIES
MART
S1 = S2
S1·S1+1 = S2·S2+1
S1
S2
S1·S1+1
S2·S2+1
S1 < S2
S1·S1+1 < S2·S2+1
S1 > S2
S1·S1+1 > S2·S2+1
S1
S2
S1·S1+1
S2·S2+1
S1 ≥ S2
S1·S1+1 ≥ S2·S2+1
I
Q
M
X
X
X
X
X
X
L
P
M
ADDER
ROGRAMMING
ANUAL
R
T
C
D
P
Constant
X
X
X
X
X
X
X
X
FC9Y-B1726
Repeat
X
X

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents