![Siemens SIMATIC TI505 User Manual Download Page 95](http://html.mh-extra.com/html/siemens/simatic-ti505/simatic-ti505_user-manual_374681095.webp)
Optional Configurations
5-21
High Speed Counter Encoder Module User Manual
To program the HSCE module, set bit WY20.01 (see shaded bit in
Table 5-13). Set bit WY20.01 by writing the programming values to WY19
and WY20 word locations. After you set the program bit (WY20.01), the
RUN
indicator is off.
Table 5-13
Setting Bit 1 to Program the Module
WY20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
WY20.01
RUN Mode Definitions
PROGRAM Mode Definitions
Program module counters
Program module counters
When the module detects that WY20.01 is set, it configures the module by
reading all of the programming bits and the preset words in locations WY19
through WY32. When configuration is complete, the error flag, WX18.03 is
cleared, and WX18.02 (Update Preset Values Complete) is set.
Other status bits, WX17.03 through WX17.16, WX18.04 (Output Power
Failure Detected), and WX18.08 (Counter Format), are set or cleared to
reflect module status.
While still in Program Mode, WX18.01 (RUN Flag) is cleared, the six
current count values report count values, the outputs (WX18.09 through
WX18.16) are disabled, and WX18.05, (Interrupt) is disabled.
If bit WY20.03 (Hold counter values on reset and power-up) was set, then
the counter values remaining are loaded into the Holding Registers.
Clear bit WY20.01 by writing the run-time values to WY19 and WY20 word
locations. If no fault exists, WX18.01 (RUN Flag) is set and the module is
ready to run. WX18.02 (Update Preset Values) and WX18.03 (Error Flag)
are cleared. The
RUN
LED is on.
If WY20.02 was cleared when programmed, WX18.04 reports the status of
the 24 volt power, or else the module sets the Module Fail flag to the PLC.
Restoring the power returns the module to RUN mode. If WY20.05 (Enable
Interrupt) is set, then WX18.05 (Interrupt Enabled) is set.
With WY20.04 (Disable Outputs) cleared, WX18.07 (Outputs Are Disable) is
cleared and WX18.09 through WX19.16 (Outputs 1 – 8 On/Off) report the
output on/off status.
With WY20.05 and WX18.06 (Latched Interrupt Active) set, WX18.09
through WX19.16 report the output that generated an Interrupt Request.
The Holding Registers are cleared, and update when an external INDEX or
internal PERIOD signal occurs, and WY20.03 (Hold Counter Values) is
cleared.
Setting the
Program Bit
Clearing the
Program Bit