FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
5-21
5: B
ASIC
I
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. 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 D1999 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 D1999. When a data register is used,
the data of the data register becomes the preset value.
For LC (Load Compare) instructions, see page 4-8 (Advanced Vol.).
The DC= and DC
instructions can be used repeatedly 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=)
Ladder Diagram (DC
)
Data register # to compare with
Preset value to compare
DC=
50
D2
DC>=
D15
D3
Q0
Q1
DC=
OUT
D2
50
Q0
Program List
Instruction
Data
DC>=
OUT
D3
D15
Q1
Program List
Instruction
Data
Ladder Diagram
Ladder Diagram
Ladder Diagram
I0
I0
M0
DC=
10
D5
DC=
10
D5
I0
DC=
10
D5
M0
Q0
Q0
Q0
DC=
AND
OUT
D5
10
I0
Q0
Program List
Instruction
Data
DC=
OUT
LOD
AND
OUT
D5
10
M0
I0
M0
Q0
Program List
Instruction
Data
DC=
OR
OUT
D5
10
I0
Q0
Program List
Instruction
Data
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...