Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Application Paper Issue date March 2020

AP912004EN New Issue

KYZ pulsing using the SMP IO-2230


distributed I/O unit

Introduction
Today, most electricity metering devices can display and report information upstream
about energy usage and demand. This is not the case for older metering devices such
as electromechanical watt-hour meters. To work around this problem, the KYZ pulsing
technique is used together with an external device to provide this important information
to the master controller.
In this document, Eaton provides a practical example of the micro PLC programming in
the SMP IO-2230 distributed I/O platform (external device) to achieve energy calculation
from a meter using the KYZ pulsing technique. The SMP IO-2230 platform provides a
micro PLC which can handle energy and/or demand calculation and send it securely to the
master controller.
Application Paper AP912004EN KYZ pulsing using the SMP IO-2230 distributed I/O unit
Issue date March 2020

KYZ pulsing basic explanations The KYZ Form C interface is supplied by the meter, the electric
current travels between K and Y or Z, changing the state of the Y and
KYZ pulsing is used for measuring electricity, either in the form of Z contacts. When one contact closes the other one opens, providing
power demand (kW) or total energy usage (kW). The term KYZ refers security for count accuracy. Each change of state is viewed as a
to the contacts designations (refer to Figure 1). pulse and represent a certain amount of energy which is defined by
the electric meter (e.g. one rotation on the electrical meter can cor-
respond to one pulse).

When measuring the number of pulses, we can calculate the energy


usage and if we measure the frequency of the pulses, we can calcu-
late the power demand.

References: https://en.wikipedia.org/wiki/Electricity_meter

Use case
The KYZ interface of the meter is connected to the KYZ interface
Figure 1: Form C contact configuration of the relay (internal or external to the meter) which creates pulses.
The SMP IO-2230 unit can be used as a logic controller to calculate
the demand or total energy usage just with the rate and quantity of
pulses (refer to Figure 2).

Figure 2: Use case

2 EATON www.eaton.com/smartgrid
Verifying files for integrity and authenticity Application Paper AP912004EN
Issue date March 2020

Configuring the KYZ pulsing on the 7. In the left pane, expand your newly created Micro PLC instance
(KYZ in this example). Then, expand the Publish branch and select
SMP IO-2230 Analog Inputs to assign an analog logic point to your KYZ_Total
Note: The Micro PLC is based on the OPENPLC project : analog input. In this example KYZ_Total is assigned to %QD100,
http://www.openplcproject.com which was created in accordance which is the published data point # 1(AI).
with the IEC 61131-3 standard for software architecture and
programming languages for PLC. The OPENPLC project’s Web site
provides numerous resources for training and understanding the PLC
functionnality. 8. Subscribe to the two rising edge counters used for the KYZ
Also, refer to the SMP IO-2230 User Manual, section Micro PLC pulsing:
for instructions on how to save, generate and build the micro PLC • In the left pane, in the newly created Micro PLC instance,
project. expand the Subscribe branch.
To configure KYZ pulsing: • Right-click on the Analog Inputs branch, select Subscribe
1. Start SMP Manager and select the SMP IO-2230 unit that will be To and select the KYZ-related rising edge counters. In this
used for KYZ pulsing. example, the two rising edge counters (BI 33 and BI34) are
assigned to %ID400 and %ID401, subscribed data points #1
2. From the Tools menu, start SMP Config. and #2 respectively.
3. In SMP Config, in the left pane, expand the IO Configuration
branch and expand the Analog Inputs branch.
4. Under Analog Inputs, select the Logical Inputs branch.
5. Enable the Rising Edge Counters for the specific Binary Input
contacts that you are using for KYZ pulsing. This mean that the
BI_xxRisingEdgeCounter and BI_yyRisingEdgeCounter should
both have their Disabled setting check box cleared. In this
example, KYZ pulsing is using BI 33 and 34.
9. Create the logic to add the two rising edge counters:
• In the left pane, right-click on the Micro-PLC instance and
select Edit Micro PLCProject. You can also use the top menu:
Tools --> Edit Micro PLC Project.
• Create a logic to add the two points.

6. Each contact change of state is considered one pulse, the number


of pulses indicates the measured energy. To get this measured
energy, the two counter values must be added. To do this, you
must create a Micro PLC instance in SMP Config: 10. Send the resulting value to the master station, using the
• Still in SMP Config, in the left pane, expand the System branch
protocol of your choice (SMP Config --> Server Branch). In this
and select the MicroPLC branch. example, we used the DNP3 protocol: SMP Config --> Server
Branch --> DNP3 --><Slave> --> Analog Inputs --> Analog
• Create a Micro PLC instance and make sure it is enabled. Inputs.

Note: <Slave> is the name given to the DNP3 server protocol


instance for this specific example. Also, make sure you are using
32-bit value in DNP3 --> <Slave> --> Group Default Variation.

EATON www.eaton.com/smartgrid 3
Application Paper AP912004EN KYZ pulsing using the SMP IO-2230 distributed I/O unit
Issue date March 2020

Reporting KYZ pulsing based on a timer 4. Subscribe to the two (2) binary inputs receiving the KYZ pulses
(Subscribe --> Analog Inputs). In this example, we use BI33 and
The micro PLC can be used to create a logic to report KYZ pulsing BI34.
based on a timer.
The following example counts the number of rising edges on BI33 and
BI34 and reports the total KYZ every 2 minutes. The time is of course
configurable.
Note: In this example, the Micro PLC instance is already created. Refer to the
previous section for help on enabling the rising edge counter for the specific BI
contacts you are using and to create the Micro PLC instance.
1. In SMP Config, in the left pane, expand the System branch,
expand the Micro PLC branch and select the KYZ instance that you 5. Launch the MicroPLC Editor and create logic in order to count the
created. In our example the Micro PLC instance is named KYZ. number of rising edges on both binary inputs and report the total
KYZ every x minutes (x=2minutes in this example).
2. Still in the left pane, expand the Publish branch and select the Refer to figure 3 at the bottom of the page for logic example.
Analog Inputs branch.
6. Send the resulting value to the master station, using the protocol
3. In the Right pane, create or rename three (3) variables: of your choice (SMP Config -->Server Branch). In this example, we
• KYZ_Total2Min used the DNP3 protocol: SMP Config Server Branch --> DNP3 -->
• KYZ_Counter1 <Slave> --> Analog Inputs --> Analog Inputs.
• KYZ_Counter2

Note: Make sure you are using 32-bit value in DNP3 --> <Slave> -->
Group Default Variation.

Figure 3: Logic related to step 5 (example)

4 EATON www.eaton.com/smartgrid
Verifying files for integrity and authenticity Application Paper AP912004EN
Issue date March 2020

EATON www.eaton.com/smartgrid 5
Application Note AP912004EN
Issue date March 2020

Technical support
Eaton’s Energy Automation Solutions
Email: eas-support@eaton.com
Phone: 1-800-815-2258
Business hours are from 8 a.m. and 5 p.m. CST, Monday to Friday.

Eaton
1000 Eaton Boulevard
Cleveland, OH 44122
United States Quebec City
Eaton.com 1990 5th Street
Suite 220
Eaton Levis, Quebec
Power System Division Canada G6W 5M6
2300 Badger Drive Phone: +1.418.830.5800
Waukesha, WI 53188 Fax: +1.514.227.5256
United States
Eaton.com/smartgrid Montreal
1155 Boulevard Robert-Bourassa
© 2020 Eaton Suite 1215
All Rights Reserved Montreal, Quebec Eaton is a registered trademark.
Printed in USA Canada H3B 3A7
Publication No. AP912004EN Phone: +1.514.845.6195 All other trademarks are property
March 2020 Fax: +1.514.227.5256 of their respective owners.

You might also like