Siemens High Speed Counter and Encoder Module SIMATIC 505 User Manual

SIMA
TIC 505
High Speed Counter and Encoder Module
User
Manual
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.
, there may be

Contents

Chapter
1.1 Features 1-2.
1.2 Inputs 1–4
1.3 Outputs 1–5
1.4 LED Indicators 1–6.
1.5 Counting Modes 1–7.
Chapter
2.1 Before Installing the Module 2–2.
1
Overview
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5.1 Pulse-Counter
1.5.2 Quadrature
1.5.3 1X
1.5.4 2X
1.5.5 4X
2
Quadratur Quadratur Quadratur
Installation
Mode
Mode
e 1-8. e 1-9. e 1-10.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.1 Visual
2.1.2 Additional
2.1.3 Handling
2.1.4 General Wiring Considerations
2.1.5 Hierarchy
Inspection
Refer
the Module
of Installation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ences 2-2.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1–7. 1–8.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2. 2-2.
2-3. 2-4.
2.2 Selecting Counter Operation 2-5.
2.2.1 Selecting
2.2.2 Selecting
Counter Mode the Reset Filter
2.3 Inserting the Module in the I/O Base 2-7.
2.4 Wiring the Module 2-8.
2.4.1 Wiring
2.4.2 Powering
the Terminal Block
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Up the Module
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5 Logging the Module into the Controller 2-10.
2.5.1 Updating
2.5.2 Selecting
2.5.3 Viewing
Chapter
3
Programming
3.1 Controller Input Wor
3.1.1 WX1
3.1.2 WX2
3.1.3 WY4
3.1.4 WY5
3.1.5 I/O
the I/O Configuration Definition the I/O Configuration
I/O Configuration Chart
ds
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(Status W and WX3 (Channel Count) (Setup W – WY8 (Pr
Update Consideration
ord) 3-2.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ord) 3-3.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
eset W
ords) 3-4.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-10. 2-10. 2-11.
3-2.
Contents iii
2-5. 2-6.
2-8. 2-8.
3-3.
3-4.
Chapter
4
Troubleshooting
4.1 Checking the Operation of the Module 4-2.
Chapter
5.1 Sprayer Example 5-2.
5.2 Flow Rate Example 5-5.
5.3 Tank Filling Example 5-6.
Appendix A Ter
A.1 Terminal Block Worksheet A-1.
Appendix
B.1 Environmental Specifications B-2. B.2 Electrical Specifications B-3.
5
Applications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1.1 Description 5-2.
5.1.2 Solution 5-3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2.1 Description 5-5.
5.2.2 Solution 5-5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3.1 Description 5-6.
5.3.2 Solution 5-6
minal Block W
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
orksheet
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B
Specifications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.3 Additional Compliances B-6.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
iv Contents
List
of Figur
es
1-1 High Speed Counter Module 1-3. 1-2 Output 1-5 1-3 High Speed Counter LEDs 1-6. 1-4 Pulse Counter Mode 0 1-7. 1-5 1X Quadrature Mode 1-8. 1-6 2X Quadrature Mode 1-9. 1-7 4X Quadrature Mode 1-10.
2-1 Hierarchy of Installation 2-4. 2-2 Jumper Settings 2-5. 2-3 Inserting the Module into the I/O Base 2-7. 2-4 Wiring Guidelines 2-8. 2-5 Sample Terminal Block Wiring Diagram 2-9. 2-6 Sample I/O Definition Chart 2-10. 2-7 I/O Configuration Chart 2-11.
3-1 Status Word Format 3-2. 3-2 Setup Word Format 3-3.
5-1 Sprayer Application 5-2. 5-2 HSC Connections 5-3. 5-3 Waveform Pattern 5-3. 5-4 Ladder Logic for Sprayer Example 5-4. 5-5 Ladder Logic for Flow Rate Example 5-5. 5-6 Tank Filling Application 5-6. 5-7 Ladder Logic for Tank Filling Example 5-7.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents v
List
of T
ables
1-1 Determining Count in Pulse Counter Mode 1-7. B-1 Environmental Specifications B-2.
B-2 Electrical Specifications B-3.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
vi Contents
Chapter 1

Overview

1.1 Features 1-2.
1.2 Inputs 1-4
1.3 Outputs 1-5
1.4 LED Indicators 1-6.
1.5 Counting Modes 1-7.
1.5.1 Pulse-Counter Mode 1-7.
1.5.2 Quadrature Mode Overview 1-8.
1.5.3 1X Quadrature 1-8.
1.5.4 2X Quadrature 1-9.
1.5.5 4X Quadrature 1-10.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Series
505 High Speed Counter
and Encoder Module User
s Manual
Overview
1-1

1.1 Features

The
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.
resetinhibit
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.2 Inputs

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.3 Outputs

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
0 P1 P2 65,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.4 LED 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
A Turns B T Y1 T Y2 T
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.5 Counting 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
Edge A
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
2 3 2 1
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
12 10
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
1234 3210
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 8 7 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