Dc= And Dc≥ (Data Register Comparison) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

7: 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 com-
pare 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. The circuit for a data register
comparison instruction must be programmed in the following order: the DC= or DC≥ instruction, a data register number
D0 through D399 (all-in-one 10-I/O type CPU module) or D1299 (other CPU modules), or D2000 through D7999 (slim
type CPU modules); followed by a preset value to compare from 0 to 65535.
The preset value can be designated using a decimal constant or a data register D0 through D399 (all-in-one 10-I/O type
CPU module) or D1299 (other CPU modules), or D2000 through D7999 (slim type CPU modules). When a data register is
used, the data of the data register becomes the preset value.
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 used repeatedly for different preset values.
• The comparison instructions also serve as an implicit LOD instruction, and must be programmed at the beginning of a
ladder line.
• 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
7-16
Program List
Instruction
Data
DC=
D2
50
OUT
Q0
Program List
Instruction
Data
DC>=
D3
D15
OUT
Q1
Ladder Diagram
DC=
D5
10
I0
Program List
Instruction
Data
DC=
D5
10
AND
I0
OUT
Q0
« FC4A M
S
U
ICRO
MART
Q0
'
M
»
SER
S
ANUAL
Ladder Diagram
DC=
D5
10
Q0
I0
Program List
Instruction
Data
DC=
D5
10
OR
I0
OUT
Q0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents