Using power measurement module with TIA A500671

Similar documents
Application Note. Building. Automation WAGO-I/O-PRO V2.3. openvpn with Linux based Devices A500880_en. Version 1.1.1

Application Note. Connection of an WAGO ETHERNET Coupler/Controller to a S controller

Using the WagoAppEtherNetIP_Adapter library with a CompactLogix Controller A500930

Application Note. a HART Tool-routing with Emerson AMS HART over TH LINK PROFIBUS for Asset Management 1.0.0

Library Description. DALI_647_SpecialSensor_02.lib Specific Sensor Solutions. Version 1.0.1

Application Note. WAGO-I/O-SYSTEM 750 Connecting energy meters with M-Bus interface to the WAGO-I/O-SYSTEM

WAGO-I/O-SYSTEM 750 CODESYS-2-Library WagoLibWakeOnLan.lib Wake on lan Remote wake up of network devices

Library Description. MBUS_649_01.lib WAGO M-Bus Library. Version 1.0.1

PROFIsafe modules V2 ipar 75x-66x/ WAGO Safety-Editor-75x Quickstart

WAGO Remote IO with Fanuc Robot using EtherNet/IP Protocol Application note

Fieldbus Independent I/O Modules Bluetooth RF Transceiver Quick Start

Redundant ethernet communication with WAGO Ethernet-Controller Application note

Using PROFIsafe modules in combination with PROFIBUS-DP and PROFINET Application note

Application note. WAGO-I/O-SYSTEM 750 DALI Multi-Master Module Configuration of a DALI Lighting System via WAGO- I/O-PRO V2.

The HART Module on the WAGO ETHERNET Controller Application Note

Library for Building Automation. Module Descriptions for KNX IP Master

Fieldbus Independent I/O Modules SSI Transmitter Interface Manual

Fieldbus Independent I/O Modules 4 AI Pt100/ RTD , (/xxx-xxx) Manual

Libraries for Building Automation. Function Block Description for DALI Multi-Master Module

Fieldbus Independent I/O Modules 8 DI DC 24 V 3.0 ms, Manual

Using the WAGO as Remote I/O with an Omron SYSMAC CJ2 Series PLC. Application note. A116700, English Version 1.1.0

Library for Building Automation

Fieldbus Independent I/O Modules 2 AI 4-20 ma, Single-Ended Manual

Using WAGO Series 750 DeviceNet IO with an A-B SLC SDN Scanner Application note

Using WAGO Series 750 DeviceNet IO with an A-B ControlLogix 1756-DNB Scanner Application note

WagoLib_CAN_Gateway_02.lib

Fieldbus Independent I/O Modules End Module (/xxx-xxx) Manual

Fieldbus Independent I/O Modules 4 AI DC 0-10 V, Single-Ended Manual

Library for Building Automation. Library Description for for the WAGO BACnet Library BACnet_02.lib

Fieldbus Independent I/O Modules 4 DO DC 24 V 0.5 A, High-Side Switching (/xxx-xxx)

Libraries for Building Automation. Module Descriptions for the WINSTA Sunblind Box /

Libraries for Building Automation. Function Blocks and Data Types for the BACnet Controller

Library Description. Building WAGO-I/O- PRO V2.3. Automation. MpBus_03.lib CODESYS V2.3 Module for MP-Bus. Version 1.0.1

Using WAGO Series 750 EtherCAT coupler with CoDeSys SP Win V3 Application note

Fieldbus Independent I/O Modules Field Side Connection Manual

Fieldbus Independent I/O Modules 2 DI DC 24 V 3.0 ms, High-Side Switching (/xxx-xxx) Manual

Library Description. ColourConverter_01.lib Library for Converting Color Formats. Version 1.0.2

Fieldbus Independent I/O Modules 1 AI DMS Manual

Fieldbus Independent I/O Modules 2 AO 4-20 ma Manual

Fieldbus Independent I/O Modules 24 V DC Power Supply/Fuse/Diagn Manual

Application Note. Enable port forwarding for PFC. A500840, English Version 1.0.0

Configuring National Instruments Lab View with WAGO I/O Application note

Using the WAGO as Remote I/O with a ControlLogix Ethernet/IP Bridge Module Application note

Manual / Electronic Circuit Breaker DC 24 V, A. Version 1.0.0

Manual Version WAGO TO-PASS 761. Telecontrol Modules. 761-xxx. System Description

Library Description. KNX_02.lib. CODESYS V2.3 Function Block for the KNX/EIB/TP1 Module

Library Description. Enocean_06.lib WAGO EnOcean Profile Library. Version 1.0.1

Library for Building Automation. Function block descriptions for time- switching functions

Libraries for Building Automation

Quickstart reference for the software e!cockpit


Manual. TC3 Power Monitoring. TwinCAT 3. Version: Date: Order No.: TF3650

Modbus/TCP OPC Server

Port 100Base-TX Industrial Eco Switch

SCE Training Curriculum For Integrated Automation Solutions Totally Integrated Automation (TIA)

A2000 Multifunctional Power Meter Profibus Interface

Fieldbus Independent I/O Modules Serial Interface RS 232 C (/xxx-xxx) Manual

Anybus Communicator PROFINET

Cover. Universal-Parameter-Server (FB 24) SIMATIC S7. Function Block Description November Applikationen & Tools. Answers for industry.

PROTOCOL COMMUNICATION pag. 1/22 NEMO 96 HD/HD+ Profibus DP Interface. Application manual

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E09. PROFINET with 2x CPU 315F-2 PN/DP

SIMATIC. ET 200SP Open Controller Product information on CPU 1515SP PC. Preface. Product Information. Technical update. Technical specifications 3

SIMATIC/SINAMICS. Getting started with SINAMICS V90 PN on S Motion Control. Fundamental safety instructions 1. Introduction

DF FA SE. SIPLUS RIC IEConS7. Advanced Buffer Version V1.6. Siemens Parts

SIMATIC. Component Based Automation SIMATIC imap STEP 7 AddOn Creating PROFINET components. Preface. Creating PROFINET components in STEP 7

DF FA SE. SIPLUS RIC IEConS7. File Transfer Version V1.6

SIMATIC HMI. Configuring Graphics Displays. Product Brief. Edition 12/01. Table of Contents. Introduction. Commissioning Operating Units

Safety I/O Modules PROFIsafe 4FDO 0,5A/4FDI 24V DC PROFIsafe / Manual

Applications & Tools. Communication between WinAC MP and a SIMATIC S7. Application for the PUT and GET Function Blocks of the S7 Communication

RM30xx Profibus Brief instructions efector400

BU 0950 en. TIA standard modules. Supplementary manual options for NORD - Frequency Inverters

Siemens Drives & PLCs

Getting Started - Startdrive. Startdrive SINAMICS. Introduction 1. Connecting the drive unit to the PC. Creating a project 3

Interface Definition RISH EM 2340/1320/30/ _Rev. D - 8/2016

Siemens Industrial s

Preface 1. Scope of Delivery 2 SIPLUS CMS4000 Introducing the Product 3 Interface Node SIPLUS CMS4000 ION SIMATIC S7 PN Block Description 4

Application for Process Automation


Key Panel Library / TIA Portal

User manual PROFIBUS C/Q 15/96 MCU

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

WAGO-I/O-SYSTEM 750 IO-Link Master

Industrial Controls. Motor management and control devices SIMOCODE pro. Introduction 1. Configuring a reversing starter. List of abbreviations

CEM-C6 INSTRUCTION MANUAL (M187B B)

Applications & Tools. Configuration Control (Options Handling) for ET 200SP and PROFINET SIMATIC S7. Application Description June 2012

Servo press kit YJKP - Host interface

Examples for SIMATIC IPC Support. Package for VxWorks SIMATIC. Industrial PC Examples for SIMATIC IPC Support Package for VxWorks

SITOP UPS1600 under STEP 7 V5. SITOP UPS1600 under STEP 7 V5. Introduction. Safety notes. Description 3. Assigning the IP address

Manual. PLC Lib: Tc2_DMX. TwinCAT 3. Version: Date:

SIMATIC S Analog output module AQ 4xU/I ST (6ES7532-5HD00-0AB0) Manual. Answers for industry.

Manual DNP3 Solution for programmable Controls of Telecontrol Technology. Version 1.4.0

SIMATIC. Working with STEP 7. Introduction to STEP 1. The SIMATIC Manager 2. Programming with Symbols. Creating a Program in 4

Display of SINAMICS Error Messages in Runtime Professional

SITOP UPS1600 under STEP 7 V13. SITOP UPS1600 under STEP 7 V13. Introduction. Safety notes. Description. Assigning the IP address


ST (6ES7132-6FD00-0BB1)

Manual. PLC Lib: Tc2_SMI. TwinCAT 3. Version: Date:

Analog Output Module AQ 4xU/I ST (6ES7135-6HD00-0BA1) SIMATIC. ET 200SP Analog Output Module AQ 4xU/I ST (6ES7135-6HD00-0BA1) Preface

Readme SiVArc V14 SP1 Update 6

Transcription:

Application Note Building Automation TIA Using power measurement module 750-495 with TIA A500671

2 Application Note A500671 2016 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved. WAGO Kontakttechnik GmbH & Co. KG Hansastraße 27 D-32423 Minden Tel.: +49 (0) 571/8 87 0 Fax: +49 (0) 571/8 87 1 69 E-Mail: Web: info@wago.com http://www.wago.com Technical Support Tel.: +49 (0) 571/8 87 5 55 Fax: +49 (0) 571/8 87 85 55 E-Mail: support@wago.com Every conceivable measure has been taken to ensure the accuracy and completeness of this documentation. However, as errors can never be fully excluded, 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 document are generally protected by trademark or patent.

Application Note A500671 Description 3 Notes about this Documentation Copyright This documentation, including all figures and illustrations contained therein, is subject to copyright protection. Any use of this documentation that infringes upon the copyright provisions stipulated herein is prohibited. Reproduction, translation, electronic and phototechnical filing/archiving (e.g., photocopying), as well as any amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG, Minden, Germany. Non-observance will entail the right of claims for damages. Number Notation Table 1: Number Notation Number code Example Note Decimal 100 Normal notation Hexadecimal 0x64 C notation Binary '100' '0110.0100' In quotation marks, nibble separated with dots (.) Font Conventions Table 2: Font Conventions Font type Indicates italic Names of paths and data files are marked in italic-type. e.g.: C:\Programme\WAGO-I/O-CHECK Menu Menu items are marked in bold letters. e.g.: Save > A greater-than sign between two names means the selection of a menu item from a menu. e.g.: File > New Input Designation of input or optional fields are marked in bold letters, e.g.: Start of measurement range Value Input or selective values are marked in inverted commas. e.g.: Enter the value 4 ma under Start of measurement range. [Button] Pushbuttons in dialog boxes are marked with bold letters in square brackets. e.g.: [Input] [Key] Keys are marked with bold letters in square brackets. e.g.: [F5]

Symbols 4 Description Application Note A500671 Personal Injury! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury. Personal Injury Caused by Electric Current! Indicates a high-risk, imminently hazardous situation which, if not avoided, will result in death or serious injury. Personal Injury! Indicates a moderate-risk, potentially hazardous situation which, if not avoided, could result in death or serious injury. Personal Injury! Indicates a low-risk, potentially hazardous situation which, if not avoided, may result in minor or moderate injury. Damage to Property! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property. Damage to Property Caused by Electrostatic Discharge (ESD)! Indicates a potentially hazardous situation which, if not avoided, may result in damage to property. Important Note! Indicates a potential malfunction which, if not avoided, however, will not result in damage to property.

Application Note A500671 Description 5 Additional Information: Refers to additional information which is not an integral part of this documentation (e.g., the Internet). Legal Bases Subject to Change WAGO Kontakttechnik GmbH & Co. KG reserves the right to make any alterations or modifications that serve to increase the efficiency of technical progress. WAGO Kontakttechnik GmbH & Co. KG owns all rights arising from granting patents or from the legal protection of utility patents. Third-party products are always mentioned without any reference to patent rights. Thus, the existence of such rights cannot be excluded. Personnel Qualification The use of the product described in this document is exclusively geared to specialists having qualifications in PLC programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the appropriate current standards. Moreover, the persons cited here must also be familiar with all of the products cited in this document, along with the operating instructions. They must also be capable of correctly predicting any hazards which may not arise until the products are combined. WAGO Kontakttechnik GmbH & Co. KG assumes no liability resulting from improper action and damage to WAGO products and third-party products due to non-observance of the information contained in this document.

6 Description Application Note A500671 Limitation of Liability This documentation describes the use of various hardware and software components in specific example applications. The components may represent products or parts of products from different manufacturers. The respective operating instructions from the manufacturers apply exclusively with regard to intended and safe use of the products. The manufacturers of the respective products are solely responsible for the contents of these instructions. The sample applications described in this documentation represent concepts, that is, technically feasible application. Whether these concepts can actually be implemented depends on various boundary conditions. For example, different versions of the hardware or software components can require different handling than that described here. Therefore, the descriptions contained in this documentation do not form the basis for assertion of a certain product characteristic. Responsibility for safe use of a specific software or hardware configuration lies with the party that produces or operates the configuration. This also applies when one of the concepts described in this document was used for implementation of the configuration. WAGO Kontakttechnik GmbH & Co. KG is not liable for any actual implementation of the concepts.

Application Note A500671 Description 7 Table of Contents Table of Contents... 7 1 Description... 8 2 Used material... 8 2.1 Devices... 8 2.2 Tools... 8 3 System configuration S7-300... 9 4 System configuration S7-1500... 11 5 Function blocks... 13 5.1 FbPower495Command... 13 5.2 FbPower495AC_Values... 18 5.3 FbPower495Harmonic_Values... 21 5.4 FbPower495State... 25 5.5 FbPower495AC_MultiValues... 27 5.6 FbPower495AC_General... 30 6 Example... 33 6.1 Example project... 33 7 Appendix... 36 7.1 typ_750_495_state... 36 7.2 Values of Collection 10 (AC)... 38 7.3 Measured Variable for Collection 20 to 22 (Harmonic Analysis)... 41 7.4 Enumeration Values for Collection 20 to 22 (Harmonic Analysis)... 41

8 Description Application Note A500671 1 Description This application note shows how to access the Wago 3-Phase Power measurement module in TIA. 2 Used material 2.1 Devices Provider Quantity Description Order number Version* WAGO 1 Profibus DP/V1 Fieldbus Coupler WAGO 1 Profinet IO advanced Fieldbus Coupler WAGO 1 3-Phase Power measurement module 750-333 FW17 750-375 FW05 750-495 SIEMENS 1 CPU 315-2 PN/DP 6ES7 315-2EH14-0AB0 SIEMENS 1 CPU 1511-1 PN 6ES7 511-1AK00-0AB0 V3.2 V1.1 *this version was used for the creation of this application note. 2.2 Tools Description Order number Version* TIA Portal V13 SP1 Update 5 *this version was used for the creation of this application note.

Application Note A500671 System configuration S7-300 9 3 System configuration S7-300 In the Network view a coupler can be added via the Catalog > Other field devices > PROFIBUS DP > IO > Wago Kontakttechnik GmbH & Co.KG. The coupler is linked by a Profibus-DP network to the Siemens CPU.

10 System configuration S7-300 Application Note A500671 In the Device view of Slave_1, I/O-Modules can be added from the Catalog. To configure the module, select it out of the Device overview and go to Properties > Device-specific parameters. Make sure the PROFIBUS address of the coupler is set properly.

Application Note A500671 System configuration S7-1500 11 4 System configuration S7-1500 In the Network view a coupler can be added via the Catalog > Other field devices > PROFINET IO > IO > Wago Kontakttechnik GmbH & Co.KG. The coupler and the PLC are linked by the PN/IE_1 Subnet. Make sure the IP address of the coupler is set properly.

12 System configuration S7-1500 Application Note A500671 In the Device view of wago-750-375, I/O-Modules can be added from the Catalog. To configure the module, select it out of the Device overview and go to Properties > Module parameters.

Application Note A500671 Function blocks 13 5 Function blocks 5.1 FbPower495Command FbPower495Command Category: Name: FbPower495Command Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation xreadconfig BOOL Read configuration xwriteconfig BOOL Write configuration xexecutecommand BOOL Execute command bcommand BYTE Commands according to manual chapter commando interface 0x4->set factory default 0x37->preset counter dwpresetvaluelow DWORD Preset value low dword according to commandos 0x37..0x42 dwpresetvaluehigh DWORD Preset value high dword according to commandos 0x37..0x42 abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: typconfig_750_495 utconfig495 Configuration value about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. btoken BYTE Control variable Output parameter Data type Comment: xready BOOL Read/write status of the settings TRUE = Read/write operation disabled FALSE =Read/write operation enabled xbusy BOOL Access active

14 Function blocks Application Note A500671 FbPower495Command bfeedback BYTE 0 = No error 1 = Read parameter 2 = Write parameter 3 = Error reading the parameters 4 = Error writing the parameters 5 = Executing command 6 = Error executing command 255 = Timeout, no response

Application Note A500671 Function blocks 15 Graphical illustration: FbPower495Command

16 Function blocks Application Note A500671 Function Description FbPower495Command The FbPower495Command function block can be used to access those configuration values, which are not included in the GSD file. To control access permission, the btoken input variable is mandatory. For each 3-phase power measurement module 750-495, exactly one variable must be defined and connected to the btoken function block input. In case of a rising edge of xreadconfig, the module parameters are read and entered in the appropriate fields of typconfig_750_495. In case of a rising edge of xwriteconfig, the values entered in the fields of typconfig_750_495 are transferred to the module.

Application Note A500671 Function blocks 17 FbPower495Command Additional it is possible to execute commands defined by the commando interface of the module.(see chapter 10.3 in the manual ->Register 4) In case of a rising edge of xexecutecommand, the command entered in the input bcommand will be performed.

18 Function blocks Application Note A500671 5.2 FbPower495AC_Values FbPower495AC_Values Category: Name: FbPower495AC_Values Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation iac_values1 INT Selection of the measured value ID iac_values2 INT of collection 10. iac_values3 INT Value range and designations, see iac_values4 INT appendix. abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. btoken BYTE Control variable for reading measured values. Output parameter Data type Comment: xready BOOL Read status of the measured values TRUE = Read operation disabled FALSE = Read operation enabled xbusy BOOL Access active bfeedback BYTE Function block status 0 = No error 1 = All entered measured value IDs invalid 2 = Timeout, no response from the module 3 = Function block disabled rmeasuredvalue1 REAL Scaled measured value for rmeasuredvalue2 REAL iac_values1 - iac_values4 rmeasuredvalue3 REAL rmeasuredvalue4 REAL

Application Note A500671 Function blocks 19 Graphical illustration: FbPower495AC_Values

20 Function blocks Application Note A500671 Function Description FbPower495AC_Values The FbPower495AC_Values function block can be used for cyclic reading of up to four measured values of collection 10. It can be used multiple times in one project. If the xenable input is TRUE, the function block is enabled and a cyclic query is carried out. To control access permission, the btoken input variable is mandatory. For each 3-phase power measurement module 750-495, exactly one variable must be defined and connected to the btoken function block input. The abin _750_495 and about_750_495 inputs contain the input or output array for data exchange with the 3-phase power measurement module. The bfeedback output provides information about processing of the measured value query or the status of the function block and is valid if xready is TRUE: 0 = The last measured value query has been completed successfully 1 = All entries iac_values1 iac_values4 are outside the valid range (either 0 or greater than the maximum ID of the AC collection) 2 = Timeout, not all measured values have been reported back 3 = The function block is disabled (xenable = FALSE) 4 = A parameter process is currently active, no measured value query 16 = Overflow measured value 1 32 = Overflow measured value 2 48 = Overflow measured value 1 + 2 64 = Overflow measured value 3 80 = Overflow measured value 1 + 3 96 = Overflow measured value 2 + 3 112 = Overflow measured value 1 + 2 + 3 128 = Overflow measured value 4 144 = Overflow measured value 1 + 4 160 = Overflow measured value 2 + 4 176 = Overflow measured value 1 + 2 + 4 192 = Overflow measured value 3 + 4 208 = Overflow measured value 1 + 3 + 4 224 = Overflow measured value 2 + 3 + 4 240 = Overflow measured value 1 + 2 + 3 + 4 The last read values are displayed at the rmeasuredvalue1 rmeasuredvalue4 outputs. The measured values correspond to the IDs entered at the iac_values1 iac_values4 inputs (see appendix).

Application Note A500671 Function blocks 21 5.3 FbPower495Harmonic_Values FbPower495Harmonic_Values Category: Name: FbPower495Harmonic_Values Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation bphase BYTE Specification of the phase to be measured. Default setting = 1 iharmonic_measurand INT 1..4 iharmonic_values1 INT 2..41, 100 iharmonic_values2 INT 2..41, 100 iharmonic_values3 INT 2..41,100 abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. btoken BYTE Control variable for reading measured values. Output parameter Data type Comment: xready BOOL Read status of the measured values TRUE = Read operation disabled FALSE = Read operation enabled bfeedback BYTE Function block status 0 = No error 1 = All entered value IDs invalid 2 = Timeout, no response from the module 3 = Function block disabled 4 = Parameter editing enabled (read/write) rmeasuredharmonic1 rmeasuredharmonic2 REAL REAL Scaled measured value for iharmonic_values1 -

22 Function blocks Application Note A500671 FbPower495Harmonic_Values rmeasuredharmonic3 REAL iharmonic_values3 Graphical illustration:

Application Note A500671 Function blocks 23 Function Description FbPower495Harmonic_Values The FbPower495Harmonic_Values function block can be used for cyclic reading of up to three harmonics of the measured value collections 20 to 22. It can be used multiple times in one project. If the xenable input is TRUE, the function block is enabled and a cyclic query is carried out. The phase is selected via the bphase. input. To control access permission, the btoken input variable is mandatory. For each 3-phase power measurement module 750-495, exactly one variable must be defined and connected to the btoken function block input. The abin _750_495 and about_750_495 inputs contain the input or output array for data exchange with the 3-phase power measurement module. The iharmonicmeasurand is used to determine the measured variable of the harmonics. 1 - RmsCurrent (RMS current) 2 - RmsVoltage (RMS voltage) 3 - HarmonicDistortion_Current (THD / HD current) 4 - HarmonicDistortion_Voltage (THD / HD voltage) For the iharmonic_values1 iharmonic_values3 inputs numerical values in the range of 2 to 41 and the value 100 are allowed. The value 100 is used to select the fundamental harmonic. The bfeedback output provides information about processing of the measured value query or the status of the function block and is valid if xready is TRUE: 0 =The last measured value query has been completed successfully 1 = All entries iharmonic_values1 iharmonic_values3 are outside the valid range (either 0 or greater than the maximum ID of the collection) 2 = Timeout, not all measured values have been reported back 3 = The function block is disabled (xenable = FALSE) 4 = A parameter process is currently active, no measured value query 16 = Overflow measured value 1 32 = Overflow measured value 2 48 = Overflow measured value 1 + 2 64 = Overflow measured value 3 80 = Overflow measured value 1 + 3 96 = Overflow measured value 2 + 3 112 = Overflow measured value 1 + 2 + 3 128 = Overflow measured value 4 144 = Overflow measured value 1 + 4 160 = Overflow measured value 2 + 4 176 = Overflow measured value 1 + 2 + 4

24 Function blocks Application Note A500671 FbPower495Harmonic_Values 192 = Overflow measured value 3 + 4 208 = Overflow measured value 1 + 3 + 4 224 = Overflow measured value 2 + 3 + 4 240 = Overflow measured value 1 + 2 + 3 + 4 The measured values last read are displayed at the rmeasuredharmonic1 rmeasuredharmonic3 outputs. The measured values correspond to the ID entered at the iharmonic_values1 iharmonic_values3 inputs (see appendix).

Application Note A500671 Function blocks 25 5.4 FbPower495State FbPower495State Category: Name: FbPower495State Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. Output parameter Data type Comment: xready BOOL Read status of the FB TRUE = Read operation disabled FALSE = Read operation enabled typ_750_495_state Ut49xState Status information (Appendix) Graphical illustration:

26 Function blocks Application Note A500671 Function Description: FbPower495State The Fb_750_495_State function block can be used to retrieve detailed information on the state of the 750-495 3-Phase Power Measurement Module. The abin _750_495 and about_750_495 inputs contain the input or output array for data exchange of the 3-Phase Power Measurement Module. The variables at these inputs must be linked to the corresponding hardware address. The address depends on the position at which the module is installed. The typ_750_495_state output contains status information on the 750-495 3-Phase Power Measurement Module. (Appendix)

Application Note A500671 Function blocks 27 5.5 FbPower495AC_MultiValues FbPower495AC_MultiValues Category: Name: FbPower495AC_MultiValues Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation aids ARRAY[0..31] OF INT An array with up to 32 measured value IDs from collection 10. Value range and designations, see appendix. abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. btoken BYTE Control variable for reading measured values. Output parameter Data type Comment: xready BOOL Read status of the measured values TRUE = Read operation disabled FALSE = Read operation enabled ameasuredvalues ARRAY[0..31] Measured values OF REAL bfeedback BYTE Function block status

28 Function blocks Application Note A500671 Graphical illustration: FbPower495AC_MultiValues

Application Note A500671 Function blocks 29 Function Description FbPower495AC_MultiValues The FbPower495AC_MultiValues function block can be used for cyclic reading of up to 32 measured values of collection 10. Assuming voltages and line frequencies should be read,the following setting would be necessary: aids[0]=4, aids[1]=5, aids[2]=6, aids[3]=16, aids[4]=17, aids[5]=18, aids[6]=0 aids[31]=0. Not used entries must be set to zero. The function block can be used multiple times in one project. If the xenable input is TRUE, the function block is enabled and a cyclic query is carried out. To control access permission, the btoken input variable is mandatory. For each 3-phase power measurement module 750-495, exactly one variable must be defined and connected to the btoken function block input. The abin _750_495 and about_750_495 inputs contain the input or output array for data exchange with the 3-phase power measurement module. The bfeedback output provides information about processing of the measured value query or the status of the function block and is valid if xready is TRUE: 0 = The last measured value query has been completed successfully 1 = All entries iac_values1 iac_values4 are outside the valid range (either 0 or greater than the maximum ID of the AC collection) 2 = Timeout, not all measured values have been reported back 3 = The function block is disabled (xenable = FALSE) 4 = A parameter process is currently active, no measured value query 16 = Overflow measured value 1 32 = Overflow measured value 2 48 = Overflow measured value 1 + 2 64 = Overflow measured value 3 80 = Overflow measured value 1 + 3 96 = Overflow measured value 2 + 3 112 = Overflow measured value 1 + 2 + 3 128 = Overflow measured value 4 144 = Overflow measured value 1 + 4 160 = Overflow measured value 2 + 4 176 = Overflow measured value 1 + 2 + 4 192 = Overflow measured value 3 + 4 208 = Overflow measured value 1 + 3 + 4 224 = Overflow measured value 2 + 3 + 4 240 = Overflow measured value 1 + 2 + 3 + 4 The measured values are displayed at the ameasuredvalues output.

30 Function blocks Application Note A500671 5.6 FbPower495AC_General FbPower495AC_General Category: Name: FbPower495AC_General Type: Function Function block X Program Name of library: Libraries used: Applicable to: Input parameters Data type Comment: xenable BOOL Enable operation aids ARRAY[0..31] OF INT An array with up to 32 measured value IDs from collection 10. Value range and designations, see appendix. abin_750_495 ARRAY [0..23] Input array of 3-phase power OF BYTE measurement module 750-495. Input/Output parameters Data type Comment: about_750_495 ARRAY [0..23] Output array of 3-phase power OF BYTE measurement module 750-495. btoken BYTE Control variable for reading measured values. xdeleteminmaxvalue BOOL Delete all Min/Max values xdeleteenergycounter BOOL Delete all energy counter Output parameter Data type Comment: xready BOOL Read status of the measured values TRUE = Read operation disabled FALSE = Read operation enabled ameasuredvalues ARRAY[0..31] Measured values OF REAL xgeneralerror BOOL General error (one or more errors occurred) xmodulerror BOOL Group error for I/O module xphase1error BOOL Group error Phase L1 xphase2error BOOL Group error Phase L2 xphase3error BOOL Group error Phase L3

Application Note A500671 Function blocks 31 Graphical illustration: FbPower495AC_General

32 Function blocks Application Note A500671 Function Description FbPower495AC_General The FbPower495AC_General function block can be used for cyclic reading of up to 32 measured values of collection 10. Assuming voltages and line frequencies should be read,the following setting would be necessary: aids[0]=4, aids[1]=5, aids[2]=6, aids[3]=16, aids[4]=17, aids[5]=18, aids[6]=0 aids[31]=0. Not used entries must be set to zero. The function block can be used multiple times in one project. If the xenable input is TRUE, the function block is enabled and a cyclic query is carried out. To control access permission, the btoken input variable is mandatory. For each 3-phase power measurement module 750-495, exactly one variable must be defined and connected to the btoken function block input. The abin _750_495 and about_750_495 inputs contain the input or output array for data exchange with the 3-phase power measurement module. The in_out variables xdeleteminmaxvalues and xdeleteenergycounter allow to reset the appropriate values. The function block will reset the variables after the action is done.

Application Note A500671 Example 33 6 Example 6.1 Example project DPRD_DAT and DPWR_DAT are used to read/write consistent data > 4 Byte of a DP slave. On the CPU 1511-PN, LOG2MOD is used to to determine the hardware identifier for the IO (sub)module.

34 Example Application Note A500671 Reading of AC values can be performed by the following function block:

Application Note A500671 Example 35 Configuration of the module is mainly done by the GSD. Nevertheless there are some parameters which aren t included in the GSD. They may be accessed by Wago IO-Check or the function block FbPower495Command. When using both function blocks simultaneously, make sure the variable btoken is the same for all function block depending to one 750-495 module.

36 Appendix Application Note A500671 7 Appendix 7.1 typ_750_495_state Designation Data type Comment xparameterreadwrite BOOL TRUE = A read or write operation of module parameters is enabled. xgeneralerror BOOL TRUE = There is at least one error in the module. xsettlingtimecollectionactive BOOL TRUE = Transient phase of a collection is enabled. xcalibrationactive BOOL TRUE = The module is in calibration mode. xmoduleerror BOOL TRUE = Group error module. xphase1error BOOL TRUE = Group error phase 1. xphase2error BOOL TRUE = Group error phase 2. xphase3error BOOL TRUE = Group error phase 3. xphase1_undervoltageuser BOOL TRUE = The threshold set by the user for undervoltage Phase L1 is underrange. xphase1_overvoltageuser BOOL TRUE = The threshold set by the user for overvoltage Phase L1 is overrange. xphase1_overcurrentuser BOOL TRUE = The threshold set by the user for overcurrent Phase L1 is overrange. xphase1_undervoltagesystem BOOL TRUE = The system-internal threshold for undervoltage Phase L1 is underrange. The system-internal threshold corresponds to a sinusoidal voltage with an RMS of 45 V. xphase1_overvoltagesystem BOOL TRUE = The system-internal threshold set for overvoltage Phase L1 is overrange. The system-internal threshold is at a peak value of 536 V. xphase1_overcurrentsystem BOOL TRUE = The system-internal threshold set for overcurrent Phase L1 is overrange. The system-internal threshold is at a peak value of 2.84 A (1 A variant) / 12.5 A (5A variant). xphase1_nozerocrossing BOOL TRUE = No grid zero crossings for Phase L1 detected. xphase2_undervoltageuser BOOL TRUE = The threshold set by the user for undervoltage Phase L2 is underrange. xphase2_overvoltageuser BOOL TRUE = The threshold set by the user for overvoltage Phase L2 is overrange. xphase2_overcurrentuser BOOL TRUE = The threshold set by the user for overcurrent Phase L2 is overrange. xphase2_undervoltagesystem BOOL TRUE = The system-internal threshold for undervoltage Phase L2 is underrange. The system-internal threshold corresponds to a sinusoidal voltage with an RMS of 45

Application Note A500671 Appendix 37 Designation Data type Comment V. xphase2_overvoltagesystem BOOL TRUE = The system-internal threshold set for overvoltage Phase L2 is overrange. The system-internal threshold is at a peak value of 536 V. xphase2_overcurrentsystem BOOL TRUE = The system-internal threshold set for overcurrent Phase L2 is overrange. The system-internal threshold is at a peak xphase2_nozerocrossing BOOL TRUE = No grid zero crossings for Phase L2 detected. xphase3_undervoltageuser BOOL TRUE = The threshold set by the user for undervoltage Phase L3 is underrange. xphase3_overvoltageuser BOOL TRUE = The threshold set by the user for overvoltage Phase L3 is overrange. xphase3_overcurrentuser BOOL TRUE = The threshold set by the user for overcurrent Phase L3 is overrange. xphase3_undervoltagesystem BOOL TRUE = The system-internal threshold for undervoltage Phase L3 is underrange. The system-internal threshold corresponds to a sinusoidal voltage with an RMS of 45 V. xphase3_overvoltagesystem BOOL TRUE = The system-internal threshold set for overvoltage Phase L3 is overrange. The system-internal threshold is at a peak value of 536 V. xphase3_overcurrentsystem BOOL TRUE = The system-internal threshold set for overcurrent Phase L3 is overrange. The system-internal threshold is at a peak value of 2.84 A (1 A variant) / 12.5 A (5A variant). xphase3_nozerocrossing BOOL TRUE = No grid zero crossings for Phase L3 detected. xmodule_rotatingfield BOOL TRUE = The phasing does not correspond to the order L1-L2-L3. xmodule_tamperdetect BOOL TRUE = The threshold value set by the user for manipulation detection is overrange.

38 Appendix Application Note A500671 7.2 Values of Collection 10 (AC) Measured value ID Unit RMS Current L1 1 A RMS Current L2 2 A RMS Current L3 3 A RMS Voltage L1 - N 4 V RMS Voltage L2 - N 5 V RMS Voltage L3 - N 6 V Active Power L1 7 W Active Power L2 8 W Active Power L3 9 W Reactive Power L1 10 var Reactive Power L2 11 var Reactive Power L3 12 var Apparent Power L1 13 VA Apparent Power L2 14 VA Apparent Power L3 15 VA Supply Network Frequency L1 16 Hz Supply Network L2 17 Hz Supply Network L3 18 Hz Phase Angle phi L1 19 Deg Phase Angle phi L2 20 Deg Phase Angle phi L3 21 Deg Cos Phi L1 22 Cos Phi L2 23 Cos Phi L3 24 Power Factor PF L1 25 Power Factor PF L2 26 Power Factor PF L3 27 Power Factor LF L1 28 Power Factor LF L2 29 Power Factor LF L3 30 RMS Voltage L1 - L2 31 V RMS Voltage L1 - L3 32 V RMS Voltage L2 - L3 33 V Maximum RMS Current L1 34 A Maximum RMS Current L2 35 A Maximum RMS Current L3 36 A

Application Note A500671 Appendix 39 Measured value ID Unit Minimum RMS Current L1 37 A Minimum RMS Current L2 38 A Minimum RMS Current L3 39 A Arithmetic Mean Value Current L1 40 A Arithmetic Mean Value Current L2 41 A Arithmetic Mean Value Current L3 42 A Maximum RMS Voltage L1 - N 43 V Maximum RMS Voltage L2 - N 44 V Maximum RMS Voltage L3 - N 45 V Minimum RMS Voltage 46 V L1 - N Minimum RMS Voltage 47 V L2 - N Minimum RMS Voltage 48 V L3 - N Arithmetic Mean Value Voltage 49 V L1 - N Arithmetic Mean Value Voltage 50 V L2 - N Arithmetic Mean Value Voltage 51 V L3 - N Maximum Active Power L1 52 W Maximum Active Power L2 53 W Maximum Active Power L3 54 W Minimum Active Power L1 55 W Minimum Active Power L2 56 W Minimum Active Power L3 57 W Maximum Supply Network 58 Hz Frequency L1 Maximum Supply Network 59 Hz Frequency L2 Maximum Supply Network 60 Hz Frequency L3 Minimum Supply Network 61 Hz Frequency L1 Minimum Supply Network 62 Hz Frequency L2 Minimum Supply Network 63 Hz Frequency L3 Active Energy L1 64 Wh*

40 Appendix Application Note A500671 Measured value ID Unit Active Energy L2 65 Wh* Active Energy L3 66 Wh* Active Energy Acquisition L1 67 Wh* Active Energy Acquisition L2 68 Wh* Active Energy Acquisition L3 69 Wh* Active Energy Delivery L1 70 Wh* Active Energy Delivery L2 71 Wh* Active Energy Delivery L3 72 Wh* Active Energy Total 73 Wh* Active Energy Acquisition Total 74 Wh* Active Energy Delivery Total 75 Wh* Reactive Energy L1 76 varh* Reactive Energy L2 77 varh* Reactive Energy L3 78 varh* Reactive Energy Inductive L1 79 varh* Reactive Energy Inductive L2 80 varh* Reactive Energy Inductive L3 81 varh* Reactive Energy Capacitive L1 82 varh* Reactive Energy Capacitive L2 83 varh* Reactive Energy Capacitive L3 84 varh* Reactive Energy Total 85 varh* Reactive Energy Inductive Total 86 varh* Reactive Energy Capacitive Total 87 varh* Apparent Energy L1 88 VAh* Apparent Energy L2 89 VAh* Apparent Energy L3 90 VAh* Peak Value Voltage L1-N 91 V Peak Value Voltage L2-N 92 V Peak Value Voltage L3-N 93 V Peak Value Current L1 94 A Peak Value Current L2 95 A Peak Value Current L3 96 A RMS current N 97 A *The energy values are delivered unchanged from the function block. For correct resolution of the energy values in the user program, the setting for scaling factor must be taken into account.

Application Note A500671 Appendix 41 7.3 Measured Variable for Collection 20 to 22 (Harmonic Analysis) Measured value ID Unit - RMS Value Current 1 A RMS Value Voltage 2 V Harmonic Distortion 3 % (T)HD Current Harmonic Distortion 4 % (T)HD Voltage 7.4 Enumeration Values for Collection 20 to 22 (Harmonic Analysis) Measured value ID Unit - Fundamental harmonic 100 * or Total Harmonics Distortion THD Harmonics 2..41 2..41 * *The unit of the measured variable corresponds to the iharmonicmeasurand measured variable selected for the FbPower494Harmonic_Values function block.

WAGO Kontakttechnik GmbH & Co. KG Postfach 2880 D-32385 Minden Hansastraße 27 D-32423 Minden Telefon: +49 (0) 571/8 87 0 Telefax: +49 (0) 571/8 87 1 69 E-Mail: info@wago.com Internet: http://www.wago.com