Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power...

18
Configuring and Reading Meas- ured Values from Two 3-Phase Power Measurement Modules via the WAGO-I/O-SYSTEM Application Note Last revision: 19.01.2011

Transcript of Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power...

Page 1: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Configuring and Reading Meas-ured Values from Two 3-Phase Power Measurement Modules via the WAGO-I/O-SYSTEM

Application Note

Last revision: 19.01.2011

Page 2: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

2 • General

Application Note

Copyright 2011 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved.

WAGO Kontakttechnik GmbH & Co. KG Hansastraße 27 D-32423 Minden

Phone: +49 (0) 571/8 87 – 0 Fax: +49 (0) 571/8 87 – 1 69

E-mail: [email protected]

Web: http://www.wago.com

Technical Support Phone: +49 (0) 571/8 87 – 777 Fax: +49 (0) 571/8 87 – 8777

E-mail: [email protected]

Every conceivable measure has been taken to ensure the accuracy and com-pleteness of this documentation. However, as errors can never be fully ex-cluded, we always appreciate any information or suggestions for improving the documentation.

We wish to point out that the software and hardware terms, as well as the trademarks of companies used and/or mentioned in the present manual, are generally protected by trademark or patent.

Page 3: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Content • 3

Application Note

TABLE OF CONTENTS

1 Important Notes ......................................................................................... 4 1.1 Legal Principles ..................................................................................... 4 1.1.1 Copyright ............................................................................................... 4 1.1.2 Personnel Qualification.......................................................................... 4 1.1.3 Intended Use .......................................................................................... 4 1.2 Scope of Validity ................................................................................... 5 1.3 Symbols ................................................................................................. 5

2 Description.................................................................................................. 6

3 Components ................................................................................................ 6

4 Setup............................................................................................................ 7

5 Programming ............................................................................................. 8 5.1 Main Program ........................................................................................ 8 5.2 1-Phase Power Measurement................................................................. 9 5.3 3-Phase Power Measurement............................................................... 10

6 Configuration Interfaces ......................................................................... 12 6.1 Creating a Visualization Page.............................................................. 12 6.2 Calling-Up the Configuration Interface............................................... 12 6.3 Setting the Configuration Interface ..................................................... 13 6.4 Description of Configuration Interfaces .............................................. 15 6.4.1 Configuration Interface for 1-Phase Power Measurement .................. 15 6.4.2 Configuration Interface for 3-Phase Power Measurement .................. 16

7 Description of the Visualization Page .................................................... 17

Page 4: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

4 • Important Notes

Application Note

1 Important Notes

To ensure quick installation and start-up of the units, we strongly recommend that the following information and explanations are carefully read and adhered to.

1.1 Legal Principles

1.1.1 Copyright

This document, including all figures and illustrations contained therein, is sub-ject to copyright. Any use of this document that infringes the copyright provi-sions stipulated herein, is not permitted. Reproduction, translation into other languages and electronic and photo-graphic archiving and amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG, Minden. Non-observance will entail the right of claims for damages.

WAGO Kontakttechnik GmbH & Co. KG reserves the right to enact changes that serve technical progress. All rights arising from the issue of a patent, or the legal protection of utility patents, are reserved to WAGO Kontakttechnik GmbH & Co. KG. Third-party products are always indicated without any notes concerning patent rights. Thus, the existence of such rights must not be excluded.

1.1.2 Personnel Qualification

The use of the product detailed in this document is exclusively geared to spe-cialists having qualifications in PLC programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the valid standards. WAGO Kontakttechnik GmbH & Co. KG declines any liability re-sulting from improper action and damage to WAGO products and third party products due to non-observance of the information contained in this document.

1.1.3 Intended Use

For each individual application, the components are supplied from the factory with a dedicated hardware and software configuration. Modifications are only admitted within the framework of the possibilities documented in this docu-ment. All other changes to the hardware and/or software and the non-conforming use of the components entail the exclusion of liability on part of WAGO Kontakttechnik GmbH & Co. KG.

Please direct any requirements pertaining to a modified and/or new hardware or software configuration directly to WAGO Kontakttechnik GmbH & Co. KG.

Page 5: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

• 5

1.2 Scope of Validity

This application note is based on the stated hardware and software of the spe-cific manufacturer as well as the associated documentation. This application note is therefore only valid for the described installation. New hardware and software versions may need to be handled differently.

Please note the detailed description in the specific manuals.

1.3 Symbols

ATTENTION Marginal conditions that must always be observed to ensure smooth opera-tion.

NOTE Routines or advice for efficient use of a device and software optimization.

ADDITIONAL INFORMATION References to additional literature, manuals, data sheets and INTERNET pages.

Application Note

Page 6: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

6 • Description

2 Description

This application note describes how current, voltage, effective power, power factor and energy consumption can be measured using 3-phase power meas-urement modules. Both a three-phase load and a single-phase load have been connected to the power measurement modules.

Furthermore, the application note cleary shows how to integrate the configura-tion interfaces for the 3-phase power measurement modules into the visualiza-tion of WAGO I/O PRO CAA.

3 Components

Supplier Pieces Name Item No.

WAGO 1 Programmable Fieldbus Controller 750-8xx

WAGO 2 3-Phase Power Measurement Module 750-493

WAGO 1 End Module 750-600

WAGO 1 WAGO-I/O-PRO CAA 759-333

Optional:

WAGO USB Communication Cable 750-923

NOTE: The node structure described is only an example as to how the measured val-ues of the 3-phase power measurement module can be read out. The modules may be exchanged as required by the respective application.

ADDITIONAL INFORMATION: The library and documentation used are available at www.wago.com /Service/Downloads/Building Automation/Libraries

Application Note

Page 7: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Setup • 7

4 Setup

Figure1: Connecting plan WAGO-IO-SYSTEM / WAGO I/O PRO CAA

2 x 750-493

Communication Cable 750-923

Eth

erne

t Cro

ss-O

ver

Cab

le

NOTE: For the visualization of the WAGO-I/O-PRO CAA, a connection between the PC and the WAGO fieldbus controller must absolutely be established. De-pending on the fieldbus controller used, two options are available. The first option is available for all types of fieldbus controllers. Connection to the service interface of the fieldbus controller is established using the 750-923 USB Communication Cable. Ethernet fieldbus controllers also offer the option to establish the connection via the Ethernet interface.

Application Note

Page 8: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

8 • Programming

5 Programming

5.1 Main Program

Figure 2 shows the basic structure of the project example. For the different measurements of the two 3-phase power measurement modules only both sub-programs are called up in the main program.

Figure 2: PLC_PRG with calling up of both subprograms

Application Note

Page 9: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Programming • 9

5.2 1-Phase Power Measurement

A Fb750_493_ Master1Phase instance is requested in the Measuring1Phase subprogram. This instance configures the power measurement module and reads the measured values of a single phase. The power measurement mod-ule's configuration parameters are located in the "typRegister_750_493" struc-ture variable and may be conveniently changed via WAGO I/O PRO CAA visualization.

Basically, all measured values from the selected phase of the 3-phase power measurement are cyclically read by the SinglePhase instance. A positive edge at the "xReady" output indicates that all measured values have been read out.

The module index of the connected 750-493 3-Phase Power Measurement Module must be indicated at the "bModule_750_493" input of module "Fb750_493_Master1Phase" (first 750-493 module => 1, second 750-493 module Klemme => 2, etc.). Which phase of the power measurement module shall be configured and read out depends on the "bPhase" input.

In the other networks, the power factor (cos ) for the visualization is con-verted into REAL and rescaled.

Figure 3: Subprogram for single-phase measurement

Application Note

Page 10: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

10 • Programming

ATTENTION for 750-493: Translation ratio <= 1000 Maximum power consumption = 4294 kWh * Translation ratio

ATTENTION for 750-493/000-001: Translation ratio <= 200 Maximum power consumption = 4294 kWh * Translation ratio * 5

ATTENTION: With a maximum current of 1 A or 5 A on the 3-phase power measurement module, there is an overrun of the measured power consumption at the earli-est after 2.13 years.

5.3 3-Phase Power Measurement

A Fb750_493_ Master3Phase instance is requested in the Measuring3Phase subprogram. This instance configures the power measurement module and reads the measured values. The power measurement module's configuration parameters are located in the "typConfig3Phase" structure variable and may be conveniently changed via WAGO I/O PRO CAA visualization.

The module index of the connected 750-493 3-Phase Power Measurement Module must be indicated at the "bModule_750_493" input. (first 750-493 Module => 1, second 750-493 Module => 2, etc.).

Basically, all measured values of the 3-phase power measurement module are cyclically read by the ThreePhase instance and written to the respective array index depending on the phase. A positive edge at the "xReady" output indi-cates that all measured values have been read out. In the other networks, the power factor (cos ) for the visualization is con-verted into REAL and rescaled.

Application Note

Page 11: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Programming • 11

Figure 4: Subprogram for measuring all 3 phases

ATTENTION for 750-493: Translation ratio <= 1000 Maximum power consumption = 4294 kWh * Translation ratio

ATTENTION for 750-493/000-001: Translation ratio <= 200 Maximum power consumption = 4294 kWh * Translation ratio * 5

ATTENTION: With a maximum current of 1 A or 5 A on the 3-phase power measurement module, there is an overrun of the measured power consumption at the earli-est after 2.13 years.

Application Note

Page 12: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

12 • Configuration Interfaces

6 Configuration Interfaces

6.1 Creating a Visualization Page

1.) Clicking on the "Visualization" index card (bottom left)

2.) The folder appears at the top left

3.) Click on the "Visualization" folder using the right mouse button.

4.) Selection of the option "Insert object..."

5.) Specify the name of the visualization and confirm with "OK"

6.2 Calling-Up the Configuration Interface

1.) Calling-up the menu point "visualization"

2.) Defining the frame for the configuration interface

3.) Selecting the respective configuration interface from the menu "Select visualization"

Figure 5: Calling-up the configuration interface

1.)

2.)

3.)

Application Note

Page 13: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Configuration Interfaces • 13

6.3 Setting the Configuration Interface

1.) Double click on the visualization element

2.) Select "Visualization" category

3.) Remove the tick for frames "Draw“ and "Clip“

4.) Activate "Fixed" view

5.) Click on the "Placeholder..." button with the left mouse button (menu "Replace placeholders" appears)

Figure 6: Configuring the visualization element

2.)

5.)

3.)

4.)

Application Note

Page 14: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

14 • Configuration Interfaces

Figure 7: Linking of the wild-card to the configuration parameters

6.) 9.)

7.) "Press F2"

8.)

6.) Click into the empty "Replacement" field using the left mouse button

7.) Operate the "F2" button on the keyboard (menu "Input assistance" appears)

8.) Select the "ConfigurationParameters" variable of "typRegister750_493" type and confirm with "OK"

9.) Now, the link to the "ConfigurationParameters" appears in the "Re-placement" field

Application Note

Page 15: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Configuration Interfaces • 15

6.4 Description of Configuration Interfaces

6.4.1 Configuration Interface for 1-Phase Power Measurement

1. Undervoltage threshold for the respective error LED

2. Time constants for automatic deletion of minimum and maximum values

3. Measuring cycle period of 3-phase power measurement module

4. Energy measurement is inverted

5. Automatic deletion of minimum and maximum values

6. DC filter is bypassed

7. Reset 3-phase power measurement module to factory settings

8. Manual deletion of the min/max values and of the power consumption

9. Reading of the configuration out of the 3-phase power measurement module

10. Writing of the configuration into the 3-phase power measurement module

Figure 8: Configuration interface for one phase (Config1Phase750_493)

1.) 2.)

3.) 8.)

4.)

5.)

6.)

9.) 10.) 7.)

ATTENTION: Both measuring cycle period and factory settings relate to all 3 phases of the power measurement module.

Application Note

Page 16: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

16 • Configuration Interfaces

6.4.2 Configuration Interface for 3-Phase Power Measurement

The Config3Phase750_493 configuration interface only works together with Fb750_493_Master3Phase and allows all three phases of the power meas-urement module to be configured jointly.

The configuration options correspond to the configuration interface for one single phase (see chapter 6.4.1).

Figure 9: Configuration interface for all phases (Config3Phase750_493)

Application Note

Page 17: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

Description of the Visualization Page • 17

7 Description of the Visualization Page

The visualization page shown in Fig. 10 illustrates two wiring options. The left-hand example shows the 3-phase power measurement of a three-phase motor; the right-hand example displays the 1-phase power measurement for one filament lamp.

The current measured values of the power measurement module are shown in the lower part of the page. The "Configuration" button is linked to the re-spective configuration interface of the 3-phase power measurement module.

Figure 10: Visualization page of the application example

Application Note

Page 18: Configuring and Reading Meas- ured Values from Two 3 … · ured Values from Two 3-Phase Power Measurement Modules via the ... values have been read out. The module index of the ...

WAGO Kontakttechnik GmbH & Co. KG P.O. Box 2880 • D-32385 Minden Hansastraße 27 • D-32423 Minden Phone: +49 (0) 571/8 87 – 0 Fax: +49 (0) 5 71/8 87 – 1 69 E-mail: [email protected] Internet: http://www.wago.com