You are on page 1of 4

AP05001005E.

fm Page 1 Friday, June 20, 2008 10:53 AM

How to Use PLSY: Pulse Output


Instruction in the ELC
Product Application AP05001005E
Effective June 2008

Application Detailed Procedure


Square-wave pulses, where the frequency can be changed and The PLSY Instruction Format
where the number of pulses sent can be selected, have numerous
applications. This instruction may be used as a signal injector for test- The PLSY Instruction looks like the following:
ing radios and televisions, pulse plating applications, AGV (Automated
Guided Vehicles) control and can be used to test digital circuits by
providing a clock pulse, etc. X0
An advantage of using square-wave pulses is that the signal remains
PLSY K1000 K200 Y0
digital all the way from the ELC to the controlled system, i.e., no digi- (S1) (S2)
tal-to-analog conversion is necessary. The dc voltage is converted to a
square-wave signal alternating between full on and zero.
By keeping the signal digital, noise effects are minimized. Noise can
FIGURE 2. PLSY INSTRUCTION
only affect a digital signal if it is of sufficient energy to change a
logic-1 to a logic-0 or vice versa. The first element represents the frequency of the output pulses in
Hz. In this case, K1000 represents a frequency of 1000 Hz and is
represented by S1.
Overview
The second element represents the number of pulses to send. In this
The purpose of this application note is to describe the operation of case, K200 represents sending 200 pulses out a digital output and is
the PLSY instruction in ELC controllers. This instruction sends square- represented by S2.
wave pulses out a digital output (Y0, or Y1) from an ELC controller.
This instruction allows for the frequency of the pulses to be changed The final element represents the particular output the pulses will be
during operation. Changing the number of pulses sent will not take sent out. In this case it is output Y0. Y0 and Y1 may be used for this
effect until the next time the instruction is executed. The pulses sent instruction.
are always at a 50% duty cycle as shown in Figure 1 below.
PLSY Instruction Description and
1000 ms
Parameter Limits
The PLSY instruction sends pulses out Y0 or Y1 of varying frequency
and count. This instruction may be used twice in the same ELC
program.
The following are some additional facts concerning the operation of
this instruction:
1. PB Models: Output frequency range supported: 1 – 10,000 Hz.
2. PC/PA models: Output frequency range supported: 1 – 32,000
2000 ms Hz.
3. When the PLSY instruction is executed, the specified number of
FIGURE 1. SQUARE WAVE PULSES pulses (S2) will be sent out Y0 or Y1 at the specified frequency
(S1).
4. When using the PLSY instruction with a particular output (Y0
or Y1), that output cannot be used by the PWM or the PLSR
instructions.
5. The PLSY instruction only allows the number of pulses
parameter (S2) to be changed when the instruction is stopped.
6. The frequency of the pulses (S1) in the PLSY instruction may
be changed during operation. The new frequency will take effect
immediately.
AP05001005E.fm Page 2 Friday, June 20, 2008 10:53 AM

Related Bit Addresses in the ELC for PWM The PLSY instruction for this example will look like the following:
Bit address Function
M1010 When ON, the pulse output is continuous for Y0. X0
M1023 When ON, the pulse output is continuous for Y1. PLSY K1000 K200 Y0
M1029 Pulse output execution is complete for output Y0.
M1030 Pulse output execution is complete for output Y1.
FIGURE 4.
M1078 When energized, it will stop sending pulses out Y0
immediately.
When X0 = ON, 200 pulses at a frequency of 1KHz will be sent out
M1079 When energized, it will stop sending pulses out Y1 Y0. When all 200 pulses have been sent, M1029 = ON (execution
immediately. complete).
When X0 = OFF, pulses will stop being sent out Y0 immediately.
Related D-register Addresses in the ELC for PLSY When X0 is turned ON again, the pulse output will restart.
If the frequency of the pulses needs to be changed on the fly, a D-
D1030 Present total number of pulses for output Y0
register address may be used in place of the constant K1000 value.
(low word)
A D-register address may also be used for the number of pulses in
D1031 Present total number of pulses for output Y0 the PLSY instruction, allowing this parameter to be changed with the
(high word) program as well. However, unlike the frequency, the number of
D1032 Present total number of pulses for output Y1 pulses may only be changed when the instruction is stopped.
(low word)
D1033 Present total number of pulses for output Y1 High-Speed Counter and Pulse Output Frequency
(high word) Limits
Example The PB, PA and PC ELC controllers contain a single processor to
Assume the PLSY pulse output will be used to send 200 pulses out handle all high-speed counter and pulse output operations. The PH
Y0 at a frequency of 1KHz. controller has an additional processor to handle high-speed counter
and pulse output functions for Inputs X10 and X11, as well as for
The output pulse train will look like the following:
outputs for Y10 and Y11. Each controller has unique limitations con-
cerning a total maximum frequency, as well as frequency limits for
individual I/O. These frequency limits are shown in the Table 1 below
0.5 ms
for each controller type.

1 2 3 200
Output Y0 ...

1 ms

FIGURE 3.

TABLE 1.

TOTAL FREQUENCY HSC INPUT SINGLE- HSC INPUT 2-PHASE PULSE OUTPUT SINGLE- PULSE OUTPUT 2-PHASE
ELC TYPE (HSC AND PULSE) PHASE (A ONLY) QUADRATURE PHASE (A ONLY) (A AND B) QUADRATURE

PB 40 KHz X0, X1 – 20 KHz X0 & X1 – 4 KHz Y0 – 10 KHz Y0 & Y1 –


Other – 10 KHz Y1 – 10 KHz 10 KHz
PC 40 KHz X0, X1 – 30 KHz X0 & X1 – 4 KHz Y0 – 30 KHz Y0 & Y1 –
Other – 10 KHz X0 & X1 use C253 – 25 KHz Y1 – 10 KHz 10 KHz
PA 40 KHz X0, X1 – 30 KHz X0 & X1 – 4 KHz Y0 – 30 KHz Y0 & Y1 –
Other – 10 KHz X0 & X1 use C253 – 25 KHz Y1 – 10 KHz 10 KHz
PH X0-X5, Y0, Y1 – 40 KHz X0, X1 – 30 KHz X0 & X1 – 4 KHz Y0 – 30 KHz X0-X5, Y0, Y1 – 40 KHz
X10, X11, Y10, Y11 – 130 KHz X10, X11 – 100 KHz X0 & X1 use C255 – 50 KHz Y1 – 10 KHz X10, X11, Y10,
Other – 10 KHz Y10 – 100 KHz Y11 – 130 KHz
Y11 – 100 KHz

2 EATON CORPORATION Cutler-Hammer Pulse Output Instruction Product Application AP05001005E Effective: June 2008
AP05001005E.fm Page 3 Friday, June 20, 2008 10:53 AM

An important point to note is that the total frequency for each Example #3
controller type may not be exceeded, except for one special case PB controller: X0 = 10 KHz high-speed input (50% of maximum for
highlighted in Example 2 below. The maximum frequency for a this terminal)
particular input may also not be exceeded. The following examples
will better illustrate these points. X1 = 5 KHz high-speed input (25% of maximum for this terminal)

Example #1 X2 = 10 KHz high-speed input (100% of maximum for this terminal)

PA controller: X0 = 30 KHz high-speed input (100% of maximum for Y0 = 10 KHz pulse output (100% of maximum for this terminal)
this terminal) Y1 = 5 KHz pulse output (50% of maximum for this terminal)
X1 = 10 KHz high-speed input (33% of maximum for The total frequency of 40 KHz is reached and no additional high-speed
this terminal) inputs or pulse outputs may be used with this controller. Also, none
No additional high-speed inputs or pulse outputs may be used. The of the high-speed inputs or pulse outputs exceed the maximum fre-
maximum frequency of the controller is reached (40 KHz). The X0 quency for each particular input or output terminal, so this application
high-speed input is at the maximum frequency supported by X0 for will function properly.
this controller type, while X1 is operating at 33% of its maximum sup-
ported frequency. The two factors that may not be exceeded are the TABLE 2. SUPPORTING DOCUMENTATION
total maximum frequency of the controller and the maximum fre-
quency of an individual input. MANUAL REFERENCE NUMBER
Example #2 ELC System Manual MN05003003E
PH controller: A 2-phase quadrature encoder is connected to inputs
X10 and X11. The maximum frequency of the encoder in this applica-
tion is 50 KHz on both phase A and B. Due to this high frequency, In the event additional help is needed, please contact the Technical
counter C255 must be used, which implies 4 times mode on X10 and Resource Center at 1-877-ETN-CARE (386-2273).
X11. X10 is the A-phase and X11 the B-phase and both terminals
receive the same frequency of 50 KHz. The maximum frequency as
seen by the controller is 50 KHz multiplied by 4 = 200 KHz. When in
this mode, no other high-speed inputs or pulse outputs may be used.
This is a special case where the maximum total frequency is
exceeded. This is the only exception and it is shown in Table 1.

EATON CORPORATION Cutler-Hammer Pulse Output Instruction Product Application AP05001005E RCopyright 2008 3
AP05001005E.fm Page 4 Friday, June 20, 2008 10:53 AM

Eaton Corporation
Electrical Group
1000 Cherrington Parkway
Moon Township, PA 15108
United States
877-ETN-CARE (877-386-2273)
Eaton.com

© 2008 Eaton Corporation


All Rights Reserved
Printed in USA
Publication No. AP05001005E / Z7252
June 2008

You might also like