Siemens SIMATIC 505 User Manual

Page of 53
Programming
3-2
Series 505 High Speed Counter
 and Encoder Module User
’s Manual
3.1
Controller Input  Words
The HSC module is configured as three word inputs (WX) and five word
outputs (WY). It occupies eight words of the controller’s word image
register.
3.1.1
WX1 (Status Word)
Word 1 (WX) is the module’s status word. Eight bits provide the status of
each of the two channels. Figure 3-1 shows the format of the status word.
9
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
Reserved and will be returned as zeros
CH 1 — INHIBIT STATUS
(1 = Count inhibited)
CH 1 — RESET STATUS
CH 1 — OUTPUT 1 STATUS
(1 = Counter reset)
(1 = On)
CH 1 — OUTPUT 2 STATUS
CH 2 — INHIBIT STATUS
(1 = On)
(1 = Counts inhibited)
CH 2 — RESET STATUS
(1 = Counter reset)
CH 2 — OUTPUT 1 STATUS
(1 = On)
CH 2 — OUTPUT 2 STATUS
(1 = On)
BIT
MSB
LSB
Figure 3-1
Status Word Format
     Each channel has a Reset Status bit in the status word. If
the channel’s RESET field input is active, this bit will be 1; otherwise this
bit will be 0.
 The Reset Command bit (see Setup Word, Section 3.1.3) does not
affect the reset status bit.