Download CP1E CPU Unit Software

Transcript
5 I/O Memory
5-6
Timer Area (T)
Overview
The Timer Area contains Timer Completion Flags (1 bit each) and timer PVs (16 bits each). The Completion Flag is turned ON when a decrementing timer PV reaches 0 (counting out) or an incrementing/decrementing timer PV reaches the set value or 0.
Notation
T
002
5-6 Timer Area (T)
Time number: 002
I/O memory area designator: T
Range
Timer numbers range from T0 to T255.
5
Details
Types of Timers
The following table shows which instructions are used to refresh timer PVs in BCD and binary mode.
Timer instruction
BCD mode
Binary mode
TIM
TIMX
TEN-MS TIMER
TIMH
TIMHX
ONE-MS TIMER
TMHH
TMHHX
ACCUMULATIVE TIMER
TTIM
TTIMX
HUNDRED-MS TIMER
Timer numbers 0 to 255 are used by all timers listed above.
Timer Example: Timer Number 0 and a Timer Set Value of 1 s
· BCD mode
Timer Completion Flag
T000
TIM
000
#10
· Binary mode
Timer Completion Flag
T000
TIMX
000
#A
or &10
CP1E CPU Unit Software User’s Manual(W480)
5-13