7: B
ASIC
I
NSTRUCTIONS
7-16
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
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.
•
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=)
Ladder Diagram (DC
≥
)
Data register # to compare with
Preset value to compare
DC=
50
D2
DC>=
D15
D3
Instruction
Data
DC=
OUT
D2
50
Q0
Program List
Instruction
Data
DC>=
OUT
D3
D15
Q1
Program List
Q0
Q1
Ladder Diagram
Instruction
Data
DC=
OUT
LOD
AND
OUT
D5
10
M0
I0
M0
Q0
Program List
Ladder Diagram
Instruction
Data
DC=
AND
OUT
D5
10
I0
Q0
Program List
Instruction
Data
DC=
OR
OUT
D5
10
I0
Q0
Program List
Ladder Diagram
I0
I0
M0
DC=
10
D5
DC=
10
D5
I0
DC=
10
D5
M0
Q0
Q0
Q0
Содержание FC4A-C10R2
Страница 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Страница 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Страница 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Страница 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Страница 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Страница 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Страница 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Страница 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Страница 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Страница 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Страница 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Страница 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Страница 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...