Dc= And Dc>= (Data Register Comparison) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

4: B
I
ASIC
NSTRUCTIONS
DC= and DC>= (Data Register Comparison)
The DC= instruction is an equivalent comparison instruction for data register values. This instruction will constantly compare data
register values to the value that has been programmed in. When the data register value equals the given value, the desired output
will be initiated.
The DC>= instruction is an equal to or greater than comparison instruction for data register values. This instruction will constantly
compare data register values to the value that has been programmed in. When the data register value is equal to or greater than
the given value, the desired output will be initiated.
When a data register comparison instruction is programmed, two addresses are required. For a constant, specify the value in the
range of 0 to 65,535.
To indirectly specify the value, specify it with a data register number, and specify the value of the data register in the range of 0 to
65,535.
The preset value can be designated using a decimal constant or a data register. When a data register is used, the data of the data
register becomes the preset value.
For LC (Load Compare) instructions, see "LC= (Load Compare Equal To)" on page 6-8.
Ladder Diagram (DC=)
Data register # to compare with
DC=
D2
50
Q0
Preset value to compare
Ladder Diagram (DC>=)
DC>=
D3
D15
Q1
• The DC= and DC>= instructions can be repeated for different preset values.
• The comparison instructions also serve as an implicit LOD instruction.
• The comparison instructions can be used with internal relays, which are ANDed or ORed at a separate program address.
• Like the LOD instruction, the comparison instructions can be followed by the AND and OR instructions.
Ladder Diagram
DC=
D5
10
M0
I0
M0
Q0
Program List
Instruction
Data
DC=
D5
10
OUT
M0
LOD
I0
AND
M0
OUT
Q0
4-22
Program List
Instruction
DC=
OUT
Program List
Instruction
DC>=
OUT
Ladder Diagram
DC=
D5
10
Program List
Instruction
DC=
AND
OUT
FC6A S
MICROS
L
ERIES
MART
Data
D2
50
Q0
Data
D3
D15
Q1
I0
Q0
Data
D5
10
I0
Q0
P
M
ADDER
ROGRAMMING
ANUAL
Ladder Diagram
DC=
D5
10
I0
Program List
Instruction
DC=
OR
OUT
FC9Y-B1726
Q0
Data
D5
10
I0
Q0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents