Order Number: PPX:505–81
Manual Assembly Number: 2586546–0019
Second Edition
13–2
Copyright
1992 by Siemens Industrial Automation, Inc.
All Rights Reserved — Printed in USA
Reproduction,
contents is not permitted without express consent of
Siemens Industrial
created by patent grant or registration of a utility model or
design, are reserved.
Since Siemens Industrial Automation, Inc. does not possess
full access to data concerning all of the uses and applications
of customer’s products, we do not assume responsibility either
for customer product design or for any infringements of patents
or rights of others which may result from our assistance.
01/21/92
transmission or use of this document or
Automation, Inc. All rights, including rights
T
echnical data is subject to change.
W
e check the contents of every manual for accuracy at the
time it is approved for printing; however
undetected errors. Any errors found will be corrected in
subsequent editions. Any suggestions for improvement are
welcomed.
Series 505 High Speed Counter (HSC) module (PPX:505-7002)
provides two independent high-speed counter channels.
Each channel has the following features.
Four counter modes:
Pulse counter
Quadrature counter modes: 1X, 2X, 4X
A 10 kHz count rate with a minimum pulse width of 25
Four inputs:
two count inputs
s.
reset
inhibit
T
wo field outputs, each controlled by a separate programmable preset.
LED indicators display the status of the A and B count inputs, and of
Y1 and Y2 outputs.
!
The
All inputs may be sinking or sourcing (with external 24 VDC power
supply).
The HSC module operates asynchronously from the controller scan. Y
ou
can program the controller to monitor the HSC and/or to provide high-level
control of the HSC’
s operation. T
o support these functions, the HSC
provides reset, inhibit, output and counter status to the controller and
accepts reset and inhibit commands, and preset values from the controller
HSC module controls its four outputs. If the controller switches from the Run
mode to the Program mode, the HSC continues to function as programmed, and
outputs may be activated by the HSC. This means that if you switch the controller
to Program mode, any devices controlled by the four outputs of the HSC will
continue to operate as programmed.
.
1-2
Series
and Encoder Module User
505 High Speed Counter
’
s Manual
Bezel Screw
LEDs
Base
Plane
Connector
Terminal
Block
Printed
Circuit
Board
Front Bezel
Bezel Screw
Series 505 High Speed Counter
and Encoder Module User
’
s Manual
Figure 1-1
High
Speed Counter Module
Overview
1-3
1.2Inputs
The
HSC module has two independent channels. Each channel has four
inputs.
Reset
Inhibit
T
wo counter inputs
Each input may be used as either sinking or sourcing (with external 5–24
VDC power supply). The input signals are connected to the field wiring
terminal block on the front bezel.
Counter Inputsą
Each channel has two counter inputs — Input A and
Input B.
Reset
Current flow through the reset input sets the channel’
s counter to
zero. The counter will be held at zero until the reset input becomes
inactive.
Inhibitą
Current flow through the inhibit input inhibits the channel from
counting. The counter holds at the last value and does not change until the
inhibit input becomes inactive.
NOTE:
When in the pulse counter mode, if the A or B input is in a
different state at the beginning and end of an inhibit signal, the count will
change according to the normal counting logic. If both A and B inputs are
in different states, the change may be as much as two counts.
NOTE:
There are also software reset and inhibit functions. See Section 3.
1-4
Series
and Encoder Module User
505 High Speed Counter
’
s Manual
1.3Outputs
Each
channel has two open collector outputs capable of driving TTL level
signals or sinking up to 0.4 Amps of current (at 40_C) from an external 24
VDC source and load.
Y
Output
Output Return
Output Circuit
Y2
Y1
0P1P265,535
Counter V
Figure 1-2
The
output transistor (Y1 or Y2) turns on when the count is greater than or
alue
Output
equal to the corresponding preset. Figure 1-2 shows the field output
operation. Y
ou can invert this operation by setting the appropriate bits in
the setup word, WY4. See Section 4.1.
Series
505 High Speed Counter
and Encoder Module User
’
s Manual
Overview
1-5
1.4LED Indicators
Each
indication of the channel’
channel contains four LED indicators which provide a visual
s status as shown in Figure 1-3.
1-6
Figure 1-3
ATurns
BT
Y1T
Y2T
NOTE:ă
on when there is current flow through the A input.
urns on when there is current flow through the B input.
urns on when Output 1 is on.
urns on when Output 2 is on.
If Reset or Inhibit is turned on, the HSC does not count, and the A
and B LEDs are frozen.
High
Speed Counter LEDs
and Encoder Module User
Series
505 High Speed Counter
’
s Manual
1.5Counting Modes
1.5.1
Pulse
Mode
Counter
Each channel has two inputs, A and B. In the pulse counter mode, counting
occurs on the rising or falling edge of the incoming pulses. The relationship
of the states of these two inputs determines the direction of the count. See
T
able 1-1. T
incremental encoders.
T
able 1-1
Counter
Direction
ypical devices for counting are high-speed static switches or
Deter
mining Count in Pulse Counter Mode
EdgeA
Input
B Input
up
up
down
down
In
the pulse counter mode, the channel senses the edges
input to count up or down. See Figure 1-4. T
”
#
”
#
low
high
o reliably record this transition
from low to high, the pulse width must be at least 8
Pulse Counter Mode
Count Value
Count Input
Input A
Input B
1
8 s
min
2321
11 s
min
high
low
of the A or the B
s.
Series
505 High Speed Counter
and Encoder Module User
’
s Manual
Count Up
Figure 1-4
Pulse
Counter Mode 0
Count Down
Overview
1-7
Counting Modes (continued)
1.5.2
Quadrature
Mode
1.5.3
1X Quadratur
e
For quadrature mode, each channel counts according to rising and/or
falling edges. T
Different quadrature modes are selected based on the resolution required
by the application and the encoder used.
The module counts on the edges of the A input pulses.
When input A leads input B, the HSC counts up on each rising edge of
input A.
When input B leads input A, the HSC counts down on the falling edge
of input A.
Figure 1-5 illustrates the relationship between inputs A and B and the
count value in
1X Quadrature
ypical devices for quadrature inputs are optical encoders.
1X Quadrature mode.
Count Value
A
B
1210
26.7 s
25 s
min
Count Up
(A Leading)
Figure 1-5
min
1X
Quadrature Mode
Count Down
(B Leading)
1-8
Overview
Series
and Encoder Module User
505 High Speed Counter
’
s Manual
1.5.4
Quadratur
2X
e
If input A leads input B, the module counts up on both the rising and
falling edges of input A. If input B leads input A, the module counts down
on the rising and falling edges of input A.
Figure 1-6 illustrates the relationship between inputs A and B and the
count value in the 2X quadrature mode.
2X Quadrature
Count V
A
B
alue
12343210
25 s
min
Counts Up
(A Leading)
Figure 1-6
26.7 s
min
2X
Quadrature Mode
Counts Down
(B Leading)
Series
505 High Speed Counter
and Encoder Module User
’
s Manual
Overview
1-9
Counting Modes (continued)
1.5.5
Quadratur
4X
e
If input A leads input B, the module counts up on rising and falling edges
of both input A and input B. If input B leads input A, the module counts
down on the rising and falling edges of input A and input B.
Figure 1-7 shows the relationship between inputs A and B and the count
value in the 4X
4X Quadrature
quadrature mode.
Count V
A
B
alue
12 34 5 6 7 87 65 4 32 10
25 s
min
Counts Up
(A Leading)
Figure 1-7
26.7 s
min
4X
Quadrature Mode
Counts Down
(B Leading)
1-10
Overview
Series
and Encoder Module User
505 High Speed Counter
’
s Manual
Loading...
+ 37 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.