Programming
3-2
Series
505 High Speed Counter
and Encoder Module User
’
s Manual
3.1 Controller Input WordsThe
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 W
ord) W
ord 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 ST
ATUS
(1 = Count inhibited)
CH 1 — RESET ST
ATUS
CH 1 — OUTPUT 1 ST
ATUS
(1 = Counter reset)
(1 = On)
CH 1 — OUTPUT 2 ST
ATUS
CH 2 — INHIBIT ST
ATUS
(1 = On)
(1 = Counts inhibited)
CH 2 — RESET ST
ATUS
(1 = Counter reset)
CH 2 — OUTPUT 1 ST
ATUS (1 = On)
CH 2 — OUTPUT 2 ST
ATUS (1 = On)
BIT
MSB
LSB
Figure 3-1
Status W
or
d For
mat
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 W
or
d, Section 3.1.3) does not
af
fect the r
eset status bit.