![IDEC OpenNet series User Manual Download Page 129](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384129.webp)
7: B
ASIC
I
NSTRUCTIONS
7-16
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
TC= and TC
≥
(Timer Comparison)
The TC= instruction is an equivalent comparison instruction for timer current values. This instruction will constantly com-
pare current values to the value that has been programmed in. When the timer value equals the given value, the desired out-
put will be initiated.
The TC
≥
instruction is an equal to or greater than comparison instruction for timer current values. This instruction will
constantly compare current values to the value that has been programmed in. When the timer value is equal to or greater
than the given value, the desired output will be initiated.
When a timer comparison instruction is programmed, two addresses are required. The circuit for a timer comparison
instruction must be programmed in the following order: the TC= or TC
≥
instruction, a timer number T0 through T255, fol-
lowed by the preset value to compare from 0 to 65535.
The preset value can be designated using a decimal constant or a data register D0 through D7999. When a data register is
used, the data of the data register becomes the preset value.
•
The TC= and TC
≥
instructions can be used repeatedly for different preset values.
•
The comparison instructions only compare the current value. The status of the timer does not affect this function.
•
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.
•
To compare three values, use the ICMP (interval compare greater than or equal to). See page 10-4.
Ladder Diagram (TC=)
Ladder Diagram (TC
≥
)
Timer # to compare with
Preset value to compare
TC=
50
T2
TC>=
D15
T3
Prgm Adrs
Instruction
Data
0
1
2
TC=
OUT
T2
50
Q0
Program List
Prgm Adrs
Instruction
Data
0
1
2
TC>=
OUT
T3
D15
Q1
Program List
Q0
Q1
Ladder Diagram
Prgm Adrs
Instruction
Data
0
1
2
3
4
5
TC=
OUT
LOD
AND
OUT
T5
10
M0
I0
M0
Q0
Program List
Ladder Diagram
Prgm Adrs
Instruction
Data
0
1
2
3
TC=
AND
OUT
T5
10
I0
Q0
Program List
Prgm Adrs
Instruction
Data
0
1
2
3
TC=
OR
OUT
T5
10
I0
Q0
Program List
Ladder Diagram
I0
I0
M0
TC=
10
T5
TC=
10
T5
I0
TC=
10
T5
Q0
Q0
Q0
M0
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]