IDEC MICROSmart FC6A Series Ladder Programming Manual page 150

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

Advertisement

6: D
C
ATA
OMPARISON
Valid Devices
Device
Repeat Result
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When only S1 and/or S2 is repeated, the logical operation type can be selected from AND or OR.
Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1 or S2, 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 and S2.
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. 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
Special Internal Relays M8150, M8151, and M8152 in CMP=
Three special internal relays are available to indicate the comparison result of the CMP= instruction. Depending on the result, one
of the three special internal relays turns on.
When S1 > S2, M8150 turns on.
When S1 = S2, M8151 turns on.
When S1 < S2, M8152 turns on.
Small
S2
(1)
When more than one CMP= or ICMP>= instruction is used, M8150, M8151, or M8152 indicates the result of the instruction that
was executed last.
6-2
I
NSTRUCTIONS
Function
Logical AND or OR operation
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 repeat is assigned for a
bit device, the quantity of device bits increases in 16- or 32-point increments.
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. When repeat is assigned for a word
device, the quantity of device words increases in 1- or 2-point increments.
When an output or internal relay is assigned as the destination, only 1 point is used regardless of the selected
data type. When repeat is assigned for the destination, outputs or internal relays as many as the repeat cycles
are used.
S1
Large
(2)
(3)
FC6A S
MICROS
ERIES
MART
I
Q
M
X
X
X
X
X
X
X
S2 Value
(1) S1 > S2
(2) S1 = S2
(3) S1 < S2
When repeat is designated, the comparison result of the last repeat cycle
turns on one of the three special internal relays.
L
P
M
ADDER
ROGRAMMING
ANUAL
R
T
C
D
P
Constant
X
X
X
X
X
X
X
X
M8150
M8151
M8152
ON
OFF
OFF
OFF
ON
OFF
OFF
OFF
ON
FC9Y-B1726
Repeat
X
1-99
X
1-99
1-99
D1
Status
OFF
ON
OFF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents