![Siemens SIMATIC TI505 User Manual Download Page 94](http://html.mh-extra.com/html/siemens/simatic-ti505/simatic-ti505_user-manual_374681094.webp)
Optional Configurations
5-20
High Speed Counter Encoder Module User Manual
5.10
Basic Programming Steps
To program the High Speed Counter module and place it in Run Mode,
perform the procedure at the beginning of each paragraph heading.
Additional paragraphs provide descriptions of status bits and other actions
that occur as you program the module.
NOTE:
At power-up, the module runs an internal software diagnostic. When
the diagnostic successfully completes, the red
MOD GOOD
LED is turned on.
To signal that the module has not been programmed, the green
RUN
LED
blinks fast, and bits WX18.03 (Error Flag) and WX18.07 (Outputs Disabled)
are set.
You can write the counter preset values to the module in two ways:
•
Forcing the output word values.
•
Writing constants or memory locations in RLL.
Because forcing output word values must be done after every power cycle,
use of RLL programming automates this task, and also updates all of the
I/O words during the same I/O scan.
If you choose to force all of the preset words, do it before setting WY20.01
(Program Mode).
In your RLL program, write the preset values to the words that correspond
to the counters you are setting up. A preset value of all zeros is valid. As
described in Chapter 3, preset values for each counter are stored in the WY
words listed in Table 5-12.
Table 5-12
Word Outputs for Preset Values
Word
Description
Counter
WY21
WY22
WY23
WY24
PRESET 1, high word
PRESET 1, low word
PRESET 2, high word
PRESET 2, low word
Counter 1
WY25
WY26
PRESET 3, word
PRESET 4, word
Counter 2
Counter 3
WY27
WY28
WY29
WY30
PRESET 5, high word
PRESET 5, low word
PRESET 6, high word
PRESET 6, low word
Counter 4
WY31
WY32
PRESET 7, word
PRESET 8, word
Counter 5
Counter 6
Writing the Presets
to the Counters