Display of SINAMICS Fault Messages in WinCC V7.4

Similar documents
Display of SINAMICS Error Messages in Runtime Professional

Communication between HMI and Frequency Converter. Basic Panel, Comfort Panel, Runtime Advanced, SINAMICS G120. Application Example 04/2016

SINAMICS G/S: Integrating Warning and Error Messages into STEP 7 V5.x or WinCC flexible


Acyclic communication between S and V90PN via PROFINET. Application example 12/

Exchange of large data volumes between S control system and WinCC

Position Control with SIMATIC S and SINAMICS V90 via IRT PROFINET SINAMICS V90 PROFINET. Application description 03/2016

Automatic Visualization of the Sample Blocks in WinCC Advanced




Determination of suitable hardware for the Process Historian 2014 with the PH-HWAdvisor tool

SINAMICS G/S: Tool for transforming Warning and Error Messages in CSV format

Configuration of an MRP Ring and a Topology with Two Projects



Configuration of an MRP ring with SIMOCODE and SIMATIC S SIMOCODE pro V PN, SIMATIC S Siemens Industry Online Support

Key Panel Library / TIA Portal

Visualizing Energy Data of a SITOP PSU8600


Application example 02/2017. SIMATIC IOT2000 Connection to IBM Watson IoT Platform SIMATIC IOT2040


SIMATIC NET OPC Server Implementation


Multiuser Engineering in the TIA Portal

Application example 12/2016. SIMATIC IOT2000 OPC UA Client SIMATIC IOT2020, SIMATIC IOT2040

House Control with Touch Panel



Check List for Programming Styleguide for S7-1200/S7-1500

Library Description 08/2015. HMI Templates. TIA Portal WinCC V13.


Data Storage on Windows Server or NAS Hard Drives

SIMATIC Energy Suite Visualization example of the "*.csv"-energy Data Files


User Login with RFID Card Reader

SIMATIC Visualization Architect (SiVArc) Getting Started




Integration of Process Historian / Information Server in a Domain

Generating the Parameters for the Modbus/TCP Communication


Checking of STEP 7 Programs for the Migration of S7-318 to S CPU318 Migration Check. Application description 01/2015

Monitoring of 24 V load circuits

Windows firewall settings for X-Tools Server Pro. CMS X-Tools / V / CPU PN/DP. Application description 6/2016

STEP 7 function block to control a MICROMASTER 4 or SINAMICS G120/G120D via PROFIBUS DP

Setting up 08/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040

Setting up 01/2017. Setting up the SIMATIC IOT2000 SIMATIC IOT2020, SIMATIC IOT2040




X-Tools Loading Profile Files (LPF)


Production feedback via WinCC Data Transfer with XML file

S Data Transfer with SEND/RECEIVE Interface

Setting up time synchronization of Process Historian and Information Server

PNDriver V2.1 Quick Start Guide for IOT2040 SIMATIC IOT

Migration of a Process Historian database


Moving a Process Historian/ Information Server from Workgroup A to Workgroup B

SINAMICS V: Speed Control of a V20 with S (TIA Portal) via MODBUS RTU, with HMI

Time Synchronization with an HMI Operator Panel and a SIMATIC PLC

TIA Portal Openness: Generating a Modular Machine with S TIA Portal Openness V14 SP1. Application Example 07/2017

APF report templates based on data from the WinCC User Archive


Networking a SINUMERIK 828D


Synchronizing recipes via a SIMATIC HMI Panel


Diagnostics for enabled Configuration Control with S and ET200SP

Configuring the F-I-Device function with the SENDDP and RCVDP blocks.

Setting up a secure VPN connection between two SCALANCE S Modules Using a static IP Address

TeleService of a S station via mobile network

Plant Data Interface for the Food & Beverage Industry in SIMATIC PCS 7. Interface description based on Weihenstephan Standards

WinCC Runtime Professional S7-Graph Overview and PLC Code Viewer

Applications & Tools. Time-of-Day Synchronization between WinCC Runtime Professional and S7 Controllers. WinCC Runtime Professional

Improving the performance of the Process Historian

Setting up a secure VPN Connection between the TS Adapter IE Advanced and Windows 7

Configuration Control with the S and ET 200SP

Report operator actions with the WinCC WebNavigator


Application on Control Technology

STEP 7 Professional V14 SP1, Energy Suite V14 SP1, SENTRON PAC Measuring Devices, Modbus TCP

Monitoring of 24 V load circuits

Use and Visualization of IOLink Devices

Check List for Programming Styleguide for S7-1200/S7-1500

Sending and Receiving SMS Messages via a SCALANCE M Router SCALANCE M874/M876, S7-1200/S CPU / V1.0. Application Example 06/2016

Setting up a secure VPN Connection between SCALANCE S and CP x43-1 Adv. Using a static IP Address. SCALANCE S, CP Advanced, CP Advanced

RAID systems within Industry

Engineering of the Configuration Control for IO Systems

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

Applications & Tools. Individual Access to Stored PDF- and HTML-Documents via Comfort Panel. WinCC Comfort V11. Application Description May 2012

Transmitting HMI data to an external monitor

Application for Process Automation

I-Device Function in Standard PN Communication SIMATIC S7-CPU, CP, SIMOTION, SINUMERIK. Configuration Example 08/2015

Application for Process Automation

Setting up a secure VPN Connection between CP x43-1 Adv. and SOFTNET Security Client Using a static IP Address

Application about Drive Technology


Transcription:

Application Example 03/2017 Display of SINAMICS Fault Messages in WinCC V7.4 SINAMICS G120, WinCC V7.4 https://support.industry.siemens.com/cs/ww/de/view/109744939

Warranty and Liability Warranty and Liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications e.g. Catalogs the contents of the other documents have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of the Siemens AG. Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement and continuously maintain a holistic, state-of-the-art industrial security concept. Siemens products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures (e.g. use of firewalls and network segmentation) in place. Additionally, Siemens guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit http://www.siemens.com/industrialsecurity. Siemens products and solutions undergo continuous development to make them more secure. Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer s exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under http://www.siemens.com/industrialsecurity. Entry ID: 109744939, V1.0, 03/2017 2

Table of Contents Table of Contents Warranty and Liability... 2 1 Task... 4 1.1 Overview... 4 2 Solution... 5 2.1 Configuration... 5 2.2 Hardware and software components... 6 2.2.1 Applicability... 6 2.2.2 Components used... 6 3 Basic information... 7 3.1 Accessing the converter parameters... 7 3.2 Creating fault messages in the controller... 8 4 Drive configuring and engineering... 9 4.1 Adding the frequency converter to the project... 9 4.2 Setting the Ethernet address... 10 4.3 Executing the Commissioning Wizard... 11 5 PLC configuring and engineering... 15 5.1 Adding a controller to the project... 15 5.2 Creating a tags table... 17 5.3 Adding the SINA_PARA_S block to the controller... 18 5.4 Generating a text list with the SINAMICS XML Parser... 23 5.5 Program Alarm engineering... 24 6 HMI configuring and engineering... 31 6.1 Set PG/PC interface... 31 6.2 Preparing the project environment in SIMATIC WinCC... 32 6.3 Establishing the connection to the S7-1500 controller... 33 6.4 Loading the tags... 35 6.5 Downloading AS messages from the controller... 36 6.6 Alarm view engineering... 38 6.7 VB script engineering... 39 6.7.1 Fault message script engineering... 40 6.7.2 Warning message script engineering... 42 7 Using the application... 44 7.1 Sample project commissioning... 44 7.2 Using the sample project... 44 8 Further Notes, Tips & Tricks, etc.... 45 9 Links & Literature... 46 10 History... 46 Entry ID: 109744939, V1.0, 03/2017 3

1 Task 1.1 Overview 1 Task 1.1 Overview Description of the automation task This application example shows you how to read out warning and fault messages from the frequency converter and display them in the WinCC V7.4 alarm view. Overview of the automation task The illustration below provides an overview of the automation task. Error 8001 Entry ID: 109744939, V1.0, 03/2017 4

2 Solution 2.1 Configuration 2 Solution 2.1 Configuration Diagram Figure 2-1 PROFINET IE Example Using WinCC V7.4, you want to: Display warning and fault messages via the alarm view Required knowledge To implement the solution described in this document, basic knowledge of the following topics is required: Automation technology Commissioning of the SINAMICS G120 frequency converter Entry ID: 109744939, V1.0, 03/2017 5

2 Solution 2.2 Hardware and software components 2.2 Hardware and software components 2.2.1 Applicability This application is valid for TIA Portal V14 WinCC V7.4 2.2.2 Components used The application was created using the following components: Hardware components Table 2-1 Component Qty Article number Note SINAMICS Control Unit CU240E-2 PN-F 1 6SL3244-0BB13-1FA0 Firmware >= V4.7 SINAMICS PM240 1 6SL3224-0BE13-7UA0 SIMATIC IPC 677D 1 6AV7260-5GM40-0XX0 Alternatively, you can use a different IPC. SIMATIC S7 1516-3 PN/DP 1 6ES7516-3AN00-0AB0 Alternatively, you can use a different S7-1500. Low-voltage motor 1 1LA7060-4AB10-Z Software components Table 2-2 Component Qty Article number Note SINAMICS Startdrive V14 Upd 2 1 6SL3072-4EA02-0XA0 STEP 7 1 6ES7822-1AA04-0YA5 Professional V14 Upd 1 WinCC V7.4 Upd 2 1 6AV63.1-...7-4 Example files and projects The following list includes all files and projects that are used in this example. Table 2-3 Component Note 109744939_FU_CODE_v14.zip This zip file contains the PLC project. 109744939_HMI_CODE_v7.4.zip This zip file contains the WinCC project. 109744939_HMI_FU_DOKU_v14_d.pdf The present document. Entry ID: 109744939, V1.0, 03/2017 6

3 Basic information 3.1 Accessing the converter parameters 3 Basic information 3.1 Accessing the converter parameters The block SINA_PARA_S of the S7-1500 provides access to the parameters in the SINAMICS drive. The SINA block is used to read parameter 2132 (current warning messages) and parameter 2131 (current fault messages). The warning and fault messages show as program alarms in the WinCC V7.4 alarm view. The text list includes the fault and warning message of the related SINAMICS drive. Figure 3-1 Frequency converter Controller WinCC V7.4 Sina Para Program Alarm Text list Entry ID: 109744939, V1.0, 03/2017 7

3 Basic information 3.2 Creating fault messages in the controller 3.2 Creating fault messages in the controller The Industry Online Support provides an XML file for your drive component and the related firmware which includes fault and warning messages. This file must be downloaded from the Internet. You can convert the XML file to an Excel format using the XML Parser tool. This Excel file can then be inserted into a text list of your TIA Portal project. The text list is called up in the PLC though a program alarm. Afterwards, the entries are displayed as a fault and warning message in the alarm view of the HMI. Figure 3-2 Siemens Industry Online Support XML file XML Parser program Excel file TIA Portal (Text list) Entry ID: 109744939, V1.0, 03/2017 8

4 Drive configuring and engineering 4.1 Adding the frequency converter to the project 4 Drive configuring and engineering 4.1 Adding the frequency converter to the project Once the Startdrive option package is installed in TIA Portal, you can add, configure, and parametrize the G120 as a new device. You can also engineer the frequency converter with STARTER plus SSP for version 4.7 or higher. For the Startdrive option package, please refer to the Entry ID: 68034568 Table 4-1 1. Add a Control Unit to your project: To do this, go to Add new device Drives in the project navigation and select your Control Unit. 2. Add the power module to your Control Unit. Entry ID: 109744939, V1.0, 03/2017 9

4 Drive configuring and engineering 4.2 Setting the Ethernet address 4.2 Setting the Ethernet address To establish an Ethernet connection, you must assign an IP address to the SINAMICS converter. To do this, the SINAMICS offers the following options: Table 4-2 Procedure 1. In the Online access menu, double-click the command Update accessible devices. 2. In the list of accessible devices, select the drive and activate Online & diagnostics. Then assign an IP address and a PROFINET name to the converter. Entry ID: 109744939, V1.0, 03/2017 10

4 Drive configuring and engineering 4.3 Executing the Commissioning Wizard 4.3 Executing the Commissioning Wizard The Startdrive Commissioning Wizard allows you to perform a fast commissioning. Startdrive supports here an off-line commissioning in the project or an online commissioning directly on the drive unit. After an off-line commissioning, download the engineering project from the PG/PC to the device; after an online commissioning, download the engineering project from the drive unit to your project. In the next step, you will learn about online commissioning. Note Quick online commissioning Before starting the commissioning, you have to connect Startdrive Online to the drive unit. Table 4-3 1. In the project navigator, select the drive unit and select Go online from the context menu. 2. Double-click Commissioning in the project navigator. A window appears in the working area. Click Commissioning Wizard in the working area. The wizard starts. 3 Set the open-loop/closed-loop control type. Click Next to confirm the settings. Entry ID: 109744939, V1.0, 03/2017 11

4 Drive configuring and engineering 4.3 Executing the Commissioning Wizard 4 Select the setpoints and command sources. Click Next to confirm the settings. 5 The motor standard used is IEC motor 50Hz SI units ; the power unit application is Load duty cycle with high overload for vector drives. Click Next to confirm the settings. Entry ID: 109744939, V1.0, 03/2017 12

4 Drive configuring and engineering 4.3 Executing the Commissioning Wizard 6 Enter the motor data from the motor nameplate into the motor dialog. Click Next to confirm the settings. 7 In the Important parameters dialog, you can customize the ramp-up times, the current limit, and the minimum and maximum speed. Click Next to confirm the settings. Entry ID: 109744939, V1.0, 03/2017 13

4 Drive configuring and engineering 4.3 Executing the Commissioning Wizard 8 Specify the motor identification. Click Next to confirm the settings. 9 Confirm your settings in the summary with the Finish button. Entry ID: 109744939, V1.0, 03/2017 14

5 PLC configuring and engineering 5.1 Adding a controller to the project 5 PLC configuring and engineering 5.1 Adding a controller to the project Table 5-1 1. Add a controller to your project. To do so, go to Add new device Controllers in the project navigation and select your controller. Entry ID: 109744939, V1.0, 03/2017 15

5 PLC configuring and engineering 5.1 Adding a controller to the project 2. Select a subnet and assign an IP address to the controller. 3 Open the Devices & networks view. Assign a controller to the control unit. Entry ID: 109744939, V1.0, 03/2017 16

5 PLC configuring and engineering 5.2 Creating a tags table 5.2 Creating a tags table Table 5-2 1. Create a new G120 tags table. 2. Create the following flag variables for the blocks SINA_PARA_S and Program_Alarm. Entry ID: 109744939, V1.0, 03/2017 17

5 PLC configuring and engineering 5.3 Adding the SINA_PARA_S block to the controller 5.3 Adding the SINA_PARA_S block to the controller The DriveLib library provides standard blocks for easy implementation of a cyclic/acyclic communication connection between a SIMATIC S7-300/400/1200/1500 controller in TIA portal and a SINAMICS S/G converter system drive. The SINA PARA function block is used to easily connect different SINAMICS S/G converter systems to a SIMATIC S7 controller. The block can be used with the following CPUs: S7-300/400/1200/1500. The acyclic communication block FB287 (SINA_PARA_S) provides the user with a predefined interface for easy read/write access to any SINAMICS drive parameters. The user has to define only the parameter number, a possible index, and for write access a parameter value. Once started, the job is processed autonomously. For more information about the block, please refer to the Entry ID: 109475044. Entry ID: 109744939, V1.0, 03/2017 18

5 PLC configuring and engineering 5.3 Adding the SINA_PARA_S block to the controller 1. In TIA Portal, open the Libraries task card. 2. Add the SINA_PARA_S block to your organization block OB1. Entry ID: 109744939, V1.0, 03/2017 19

5 PLC configuring and engineering 5.3 Adding the SINA_PARA_S block to the controller 3 Read out the fault warning [parameter 2131] of the SINAMICS G120 using the SINA_PARA_S block. For the read stop start, the PLC tag StartFaultmessage was created in chapter 5.2. The current fault number is written to the ReadFaultNumber tag. Input signal Type Meaning Start BOOLEAN Start of read job ReadWrite BOOLEAN Type of job 0 = read, 1 = write LAddr HW-IO/INT Hardware ID/address of axis or drive Parameters INT Parameter number [parameter 947 = warning message] Value Write REAL Value of parameter AxisNO INT Axis number/axis ID for system with multiple axes ValueRead REAL Value of read parameter Entry ID: 109744939, V1.0, 03/2017 20

5 PLC configuring and engineering 5.3 Adding the SINA_PARA_S block to the controller 4 Read out the warning message [parameter 2132] of the SINAMICS G120 using the SINA_PARA_S block. For the read job start, the PLC tag StartWarningmessage was created in chapter 5.2. The current warning number is written to the ReadWarningNumber tag. Input signal Type Meaning Start BOOLEAN Start of read job ReadWrite BOOLEAN Type of job 0 = read, 1 = write LAddr HW-IO/INT Hardware ID/address of axis or drive Parameters INT Parameter number [parameter 2110 = warning message] Value Write REAL Value of parameter AxisNO INT Axis number/axis ID for system with multiple axes ValueRead REAL Value of read parameter Entry ID: 109744939, V1.0, 03/2017 21

5 PLC configuring and engineering 5.3 Adding the SINA_PARA_S block to the controller 5 For the communication from the SINA_PARA_S block to the Program Alarm block, a data type adaption from a floating point data type to a fixed point data type is required. 6 For the communication from the SINA_PARA_S block to the Program Alarm block, a data type adaption from a floating point data type to a fixed point data type is required. Entry ID: 109744939, V1.0, 03/2017 22

5 PLC configuring and engineering 5.4 Generating a text list with the SINAMICS XML Parser 5.4 Generating a text list with the SINAMICS XML Parser The Industry Online Support provides an XML file for your drive component and the related firmware which includes fault and warning messages. For the SINAMICS Control Unit CU240E-2 PN-F firmware version 4.7 described in the application example, the fault and warning messages can be found at the following Entry ID link: 92554110. You can convert the XML file to an Excel format using the XML Parser tool. The following pages show how to convert the fault and warning messages for an CU240E-2 PN-F to an Excel format. Table 5-3 1. From Industry Online Support, download the fault and warning messages for your related SINAMICS Control Unit and your firmware version to your computer. 2. Create an Excel table with fault and warning messages using the XML parser. For further information on the XML parser, refer to the entry ID: 77467239 3 Create a text list for the drive s fault and warning messages in the controller. 4 Add the fault and warning messages from the Excel file to the newly created text list. Entry ID: 109744939, V1.0, 03/2017 23

5 PLC configuring and engineering 5.5 Program Alarm engineering 5.5 Program Alarm engineering Mode of operation of Program_Alarm The instruction Create program message with associated values monitors a signal and generates an incoming program message when the SIG parameter changes from 0 to 1. When the signal changes from 1 to 0, an outgoing program message is generated. The selection whether or not the message must be acknowledged depends on the alarm class engineered. The block must not be acknowledged by default. Note The STEP 7 engineering steps for the message block Program_Alarm are valid for the visualisation versions WinCC Basic/Comfort/Advanced, WinCC Professional, and WinCC V7.4. Table 5-4 1. Create a function block to be able to call up the Program_Alarm block. Entry ID: 109744939, V1.0, 03/2017 24

5 PLC configuring and engineering 5.5 Program Alarm engineering 2. Under task card Instructions > Extended Instructions, open the Alarming folder. Entry ID: 109744939, V1.0, 03/2017 25

5 PLC configuring and engineering 5.5 Program Alarm engineering 3 Drag & drop the message block Program_Alarm_1 into an empty network of your FB. Confirm the call option with OK. 4 Connect the Program_Alarm_1 block added to the tags you have created in chapter 5.2. Entry ID: 109744939, V1.0, 03/2017 26

5 PLC configuring and engineering 5.5 Program Alarm engineering 5 Drag & drop the Program_Alarm_2 block into an empty network of your FB. Confirm the call option with OK. 6 Connect the Program_Alarm_2 block added to the tags you have created in chapter 5.2. Entry ID: 109744939, V1.0, 03/2017 27

5 PLC configuring and engineering 5.5 Program Alarm engineering 7 To edit the messages, click Alarm in the Properties tab. You have the following options here: - Edit Alarm Class, Priority, and Alarm Text (basic settings), - Select Display Class, Group ID and Logging (advanced settings), and - Define further message texts. 8 By right-clicking in the message text input window, you can select several options from the context menu to specify further the message texts. Open in Program_Alarm_1 the context menu Insert a dynamic parameter (text list)... Entry ID: 109744939, V1.0, 03/2017 28

5 PLC configuring and engineering 5.5 Program Alarm engineering 9 Select the text list which has been created in chapter 5.4. Select the tag which has been created in chapter 5.2. 10 Open in Program Alarm_2 the context menu Insert a dynamic parameter (text list)... Entry ID: 109744939, V1.0, 03/2017 29

5 PLC configuring and engineering 5.5 Program Alarm engineering 11 Select the text list which has been created in chapter 5.4. Select the tag which has been created in chapter 5.2. 12 Call up the Program Alarm Frequency Converter block in your Main Program. 13 Download your project to the Controller. Entry ID: 109744939, V1.0, 03/2017 30

6 HMI configuring and engineering 6.1 Set PG/PC interface 6 HMI configuring and engineering 6.1 Set PG/PC interface For more information on the PG/PC interface, please refer to the Entry - ID: 79689088. Table 6-1 1. In Windows, select the entry PG/PC interface under Start Control Panel Setting the PG/PC interface. 2. In the window Setting the PG/PC interface, select the desired interface under Interface Parameter Assignment Used. 3 Confirm the dialog with OK. Entry ID: 109744939, V1.0, 03/2017 31

6 HMI configuring and engineering 6.2 Preparing the project environment in SIMATIC WinCC 6.2 Preparing the project environment in SIMATIC WinCC Table 6-2 1. Start the SIMATIC WinCC Explorer. 2. Click the Computer icon in the WinCC Explorer. Then click the computer name. 3 Click Use Local Computer Name in the Computer properties General window. Confirm your selection with OK. Entry ID: 109744939, V1.0, 03/2017 32

6 HMI configuring and engineering 6.3 Establishing the connection to the S7-1500 controller 6.3 Establishing the connection to the S7-1500 controller Make sure that the interface is identical with your PG / PC interface in Windows. Table 6-3 1. Open the Tag Management in WinCC. 2. In the Tag Management, select Add new driver SIMATIC S7 1200, S7-1500 Channel. 3 Create a new connection. Entry ID: 109744939, V1.0, 03/2017 33

6 HMI configuring and engineering 6.3 Establishing the connection to the S7-1500 controller 4 Open the connection parameters of the new connection. 5 Enter the IP address of your S7-1500. Select S7ONLINE as Access point. Select an S71500 connection as Product family. Entry ID: 109744939, V1.0, 03/2017 34

6 HMI configuring and engineering 6.4 Loading the tags 6.4 Loading the tags Table 6-4 1. Start Runtime. 2. Open the Tag Management editor. 3 Read out the tags from the controller. To do this, go to AS Symbols Read from AS 4 Select the tags below. Entry ID: 109744939, V1.0, 03/2017 35

6 HMI configuring and engineering 6.5 Downloading AS messages from the controller 6.5 Downloading AS messages from the controller Table 6-5 1. Start Runtime. 2. Open the Alarm Logging editor. 3 Under AS Messages, right-click the connection to open the context menu. Click Load from AS. Entry ID: 109744939, V1.0, 03/2017 36

6 HMI configuring and engineering 6.5 Downloading AS messages from the controller 4 The system messages are being transferred. 5 Now, you have the AS Messages and AS Text Lists tabs available. Select the AS Messages tab. 6 Under Properties for the new messages, set the the Message type to Alarm and the Message Class to Error. 7 Select the alarm and fault messages from the AS text list. Entry ID: 109744939, V1.0, 03/2017 37

6 HMI configuring and engineering 6.6 Alarm view engineering 6.6 Alarm view engineering Table 6-6 1. Open the Graphics Designer. 2. Insert an Alarm View into the desired screen in order to display the messages on the HMI. To insert an Alarm View, use drag and drop to move the alarm view from the Controls task card into your screen. 3 Open the Configuration Dialog. 4 Open the Message Lists tab. Move the message texts into the message blocks using drag & drop. Entry ID: 109744939, V1.0, 03/2017 38

6 HMI configuring and engineering 6.7 VB script engineering 6.7 VB script engineering When you press the right mouse button, you activate the SINA PARA_S block. This block transfers the fault message and the warning message from the frequency converter to the controller. When you release the right mouse button, it triggers the Program Alarm block which transfers the fault message or the warning message from the controller to the WinCC AlarmControl. Figure 6-1 Press Release SINA Para reads the warning message or the fault message The value of the SINA PARA is written to Programm Alarm Entry ID: 109744939, V1.0, 03/2017 39

6 HMI configuring and engineering 6.7 VB script engineering 6.7.1 Fault message script engineering Table 6-7 1. Open the Graphics Designer. 2. Engineer a Fault Message button into your screen. 3 Execute the following VB script when the right mouse button is pressed. Dim obj, obj2 Set obj = HMIRuntime.Tags("StartFaultmessage") obj.write True HMIRuntime.Trace obj.value Set obj2 = HMIRuntime.Tags("StartFaultAlarm") obj2.write False HMIRuntime.Trace obj2.value Entry ID: 109744939, V1.0, 03/2017 40

6 HMI configuring and engineering 6.7 VB script engineering 4 Execute the following VB script when the right mouse button is released. Dim obj1, obj2 Set obj1 = HMIRuntime.Tags("StartFaultmessage") obj1.write False HMIRuntime.Trace obj1.value Set obj2 = HMIRuntime.Tags("StartFaultAlarm") obj2.write = true HMIRuntime.Trace obj2.value Entry ID: 109744939, V1.0, 03/2017 41

6 HMI configuring and engineering 6.7 VB script engineering 6.7.2 Warning message script engineering Table 6-8 1. Open the Graphics Designer. 2. Engineer a Warning Message button into your screen. 3 Execute the following VB Script when the right mouse button is pressed. Dim obj, obj2 Set obj = HMIRuntime.Tags("StartWarningmessage") obj.write True HMIRuntime.Trace obj.value Set obj2 = HMIRuntime.Tags("StartWarningAlarm") obj2.write False HMIRuntime.Trace obj2.value Entry ID: 109744939, V1.0, 03/2017 42

6 HMI configuring and engineering 6.7 VB script engineering 4 Execute the following VB Script when the right mouse button is released. Dim obj1, obj2 Set obj1 = HMIRuntime.Tags("StartWarningmessage") obj1.write False HMIRuntime.Trace obj1.value Set obj2 = HMIRuntime.Tags("StartWarningAlarm") obj2.write True HMIRuntime.Trace obj2.value Entry ID: 109744939, V1.0, 03/2017 43

7 Using the application 7.1 Sample project commissioning 7 Using the application Before you start the engineered project, check the wiring of the components. 7.1 Sample project commissioning Table 7-1 1. Unzip the file 109738320_HMI_FU_CODE_v14.zip. 2. Start TIA Portal. 3 Download the SIMATIC Startdrive project to your frequency converter. 4 Download the SIMATIC STEP 7 project to your controller. 5 Start the WinCC Explorer. 6 Download the SIMATIC WinCC project to your PC station. 7.2 Using the sample project Figure 7-1 Table 7-2 1. There are two buttons which allow you to read out the warning and fault message. 2. As soon as the faults have been set to outgoing in the drive, they can be acknowledged using the related button. Entry ID: 109744939, V1.0, 03/2017 44

8 Further Notes, Tips & Tricks, etc. 8 Further Notes, Tips & Tricks, etc. Resizing the alarm text in the Alarm Control To show the complete message text in the Alarm Control, you must resize the alarm text. In the Control, go to Properties Message Blocks. Resize the alarm text length. Figure 8-1 Entry ID: 109744939, V1.0, 03/2017 45

9 Links & Literature 9 Links & Literature Table 9-1 Topic \1\ Siemens Industry Online Support https://support.industry.siemens.com \2\ Download page of the entry https://support.industry.siemens.com/cs/ww/de/view/109744939 10 History Table 10-1 Version Date Change V1.0 03/2017 First version Entry ID: 109744939, V1.0, 03/2017 46