Download 1747-6.1, Data Table Access Module, User Manual

Transcript
B-6
SLC 500 Data Files and Logical Addressing
Data File 4 - Timers
Timers are 3-word elements. Word 0 is the control word, word 1
stores the preset value, and word 2 stores the accumulator value. This
is illustrated below.
Timer Element
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word
EN TT DN
Internal Use
Preset Value PRE
Accumulated Value ACC
Addressable Bits
Addressable Words
EN =Enable
TT = Timer Timing
DN =Done
PRE =Preset Value
ACC =Accumulated Value
0
1
2
Bits labeled "Internal Use" are not addressable.
Assign timer addresses as follows:
Format
Tf:e
Examples:
Explanation
T
Timer
f
File number.
:
Element delimiter
e
Element
number
T4:0
Number 4 is the default file. A file
number between 10-255 can be used if
additional storage is required.
Ranges from 0 to 255. These are 3-word
elements. See the figure above.
Element 0, timer file 4.
Address bits and words by using the format TF:e.s/b where Tf:e is explained above, and
. is the word delimiter
s indicates subelement
/ is the bit delimiter
b indicates bit
Publication 1747-6.1
T4:0/15
T4:0/14
T4:0/13
Enable bit
Timer timing bit
Done bit
T4:0.1
T4:0.2
Preset value of the timer
Accumulated value of the timer
T4:0.1/0
T4:0.2/0
Bit 0 of the preset value
Bit 0 of the accumulated value