WinCCInformationSystemCommunication en US
WinCCInformationSystemCommunication en US
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
SIMATIC HMI
OPC Channel
PROFIBUS FMS S5 Ethernet Layer 4 S5 PROFIBUS FDL S5 Programmers Port AS511 S5 Serial 3964R SIMATIC S7 Protocol Suite SIMATIC TI Ethernet Layer 4 SIMATIC TI Serial System Info Windows DDE Communication - Diagnostics
11/2008
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation for the specific task, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Trademarks
All names identified by are registered trademarks of the SiemensAG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.
08/2009
Table of contents
1 Process communication.............................................................................................................................11 1 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.3.1 1.3.3.2 1.3.3.3 1.3.3.4 1.3.3.5 1.3.3.6 1.3.3.7 1.3.4 2 2 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.6.1 2.4.6.2 2.4.6.3 2.4.6.4 2.4.6.5 2.4.6.6 2.4.6.7 2.4.6.8 2.4.6.9 2.4.6.10 3 3 Resources...................................................................................................................................11 Communication Basics................................................................................................................11 Basic Rules for Configuring Connections....................................................................................12 WinCC process communication..................................................................................................13 WinCC process communication..................................................................................................13 Principle of WinCC communication.............................................................................................14 External tags................................................................................................................................16 External tags................................................................................................................................16 How to Create a New Connection...............................................................................................18 An external tag is configured as follows......................................................................................19 Format adaptation sorted by WinCC data type...........................................................................21 Format adaptation sorted by AS data type..................................................................................27 Principle of the BinWrite-Mechanism...........................................................................................35 How to Configure a Tag with "BinWrite"......................................................................................37 Port Addresses for Coupling via Ethernet...................................................................................38 Resources...................................................................................................................................41 WinCC Channel "Allen Bradley - Ethernet IP".............................................................................41 Channel Unit Assignment............................................................................................................41 Supported Data Types.................................................................................................................42 Configuring the Channel..............................................................................................................42 Configuring the Channel "Allen Bradley - Ethernet IP"................................................................42 How to configure a "Allen Bradley E/IP PLC5" channel unit connection.....................................43 How to configure an "Allen Bradley E/IP SLC50x" channel unit connection...............................44 How to configure an "Allen Bradley E/IP ControlLogix" channel unit connection........................45 Examples: Communication path .................................................................................................46 Configuring the tags....................................................................................................................47 Configuring the tags....................................................................................................................47 Addressing...................................................................................................................................48 Addressing syntax.......................................................................................................................49 Addressing Types........................................................................................................................50 Examples for Addressing.............................................................................................................51 How to configure a tag for the Allen Bradley E/IP ControlLogix channel unit..............................52 How to configure a tag with bit by bit access for Allen Bradley E/IP PLC5 or SLC50x...............53 How to configure a tag with byte by byte access for Allen Bradley E/IP PLC5 or SLC50x.........54 How to configure a tag with word by word access for Allen Bradley E/IP PLC5 or SLC50x.......54 How to configure a text tag for Allen Bradley E/IP PLC5 or SLC50x...........................................55 Resources...................................................................................................................................57
Modbus TCPIP...........................................................................................................................................57
Table of contents
3.1 3.2 3.3 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.3.2 3.3.3.3 3.3.3.4 4 4 4.1 4.2 4.3 4.4 4.4.1 4.4.2 4.4.2.1 4.4.2.2 4.4.2.3 4.4.3 4.4.4 4.4.4.1 4.4.4.2 4.4.4.3 4.4.5 4.4.5.1 4.4.5.2 4.4.5.3 4.5 4.5.1 4.5.2 4.5.2.1 4.5.2.2 4.5.3 5 5 5.1 5.2 5.3 5.3.1 5.3.1.1 5.3.1.2 5.3.1.3
"Modbus TCP/IP" channel...........................................................................................................57 Supported Data Types.................................................................................................................57 Configuring the Channel..............................................................................................................58 Configuring the "Modbus TCPIP" Channel..................................................................................58 How to configure a connection....................................................................................................58 Configuring the tags....................................................................................................................60 Configuring the tags....................................................................................................................60 How to Configure a Tag with Bit by Bit Access...........................................................................62 How to Configure a Tag with Word by Word Access...................................................................63 How to Configure a Text Tag.......................................................................................................64 Resources...................................................................................................................................65 WinCC OPC Channel..................................................................................................................65 OPC Item Manager......................................................................................................................66 Overview of the Supported WinCC Data Types..........................................................................70 WinCC OPC DA Client................................................................................................................71 Functionality of the WinCC OPC DA Client.................................................................................71 How to Access a WinCC Tag with the OPC Item Manager.........................................................72 How to Access a WinCC Tag with the OPC Item Manager.........................................................72 Configuring the OPC Channel on the WinCC OPC DA Client.....................................................73 Configuring Access with the OPC Item Manager........................................................................73 Accessing a WinCC Tag without the OPC Item Manager...........................................................77 Using Structures on a WinCC OPC DA Client.............................................................................79 How to Use Structures on the WinCC OPC DA Client................................................................79 Configuring Structures and Structure Tags on the WinCC OPC DA Server...............................79 How to Configure Structures on the WinCC OPC DA Client.......................................................80 Error Handling in the Event of Disturbed OPC DA Communication............................................82 Error Handling in the Event of Disturbed OPC Communication..................................................82 WinCC as OPC DA Server..........................................................................................................83 WinCC as OPC DA Client...........................................................................................................85 WinCC OPC XML Client..............................................................................................................87 Functionality of the WinCC OPC XML Client...............................................................................87 How to Access a WinCC Tag with the OPC Item Manager.........................................................87 How to Access a WinCC Tag with the OPC Item Manager.........................................................87 Configuring Access with the OPC Item Manager........................................................................88 Accessing a WinCC Tag without the OPC Item Manager...........................................................91 Resources...................................................................................................................................95 WinCC channel "PROFIBUS FMS".............................................................................................95 Data type of the tags...................................................................................................................95 Configuring the Channel..............................................................................................................96 Configuring a connection ............................................................................................................96 Configuring a connection.............................................................................................................96 Configuring the connection in configuration mode......................................................................97 How to configure the connection in Runtime...............................................................................99
MDM - WinCC: Communication System Manual, 11/2008,
OPC Channel.............................................................................................................................................65
PROFIBUS FMS.........................................................................................................................................95
Table of contents
5.3.2 5.3.2.1 5.3.2.2 5.3.2.3 6 6 6.1 6.2 6.3 6.3.1 6.3.2 6.3.3 6.3.3.1 6.3.3.2 6.3.3.3 6.3.3.4 6.3.3.5 6.3.3.6 6.3.4 6.3.4.1 6.3.4.2 6.3.4.3 6.4 6.4.1 6.4.2 6.4.2.1 6.4.2.2 6.4.2.3 6.4.2.4 7 7 7.1 7.2 7.3 7.4 7.4.1 7.4.2 7.4.3 7.4.4 7.4.4.1 7.4.4.2 7.4.4.3 7.4.4.4 7.4.5 7.4.5.1 7.4.5.2
Configuring the tags..................................................................................................................100 Configuring the tags..................................................................................................................100 Configuring the address of the tags in configuration mode.......................................................100 How to configure the address of the tags in runtime.................................................................101 Resources.................................................................................................................................103 WinCC Channel "SIMATIC S5 Ethernet Layer 4"......................................................................103 Data type of the tags.................................................................................................................104 Configuring the Channel............................................................................................................104 Configuring the channel "SIMATIC S5 Ethernet Layer 4".........................................................104 How to configure the connection...............................................................................................105 Configuring the tags..................................................................................................................107 Configuring the tags..................................................................................................................107 Addresses of tags......................................................................................................................107 How to Configure a Tag with Bit by Bit Access.........................................................................108 How to Configure a Tag with Byte by Byte Access...................................................................109 How to Configure a Tag with Word by Word Access.................................................................110 How to configure a raw data tag................................................................................................112 System parameters...................................................................................................................113 System parameters of the channel unit.....................................................................................113 How to Change the Device Name.............................................................................................114 How to change the transport parameter....................................................................................116 Appendix....................................................................................................................................117 Appendix....................................................................................................................................117 Internal error codes and constants............................................................................................117 Internal error codes and constants............................................................................................117 Error codes during connection disturbances.............................................................................117 iNA960 messages.....................................................................................................................120 SCI messages...........................................................................................................................121 Resources.................................................................................................................................125 WinCC channel "SIMATIC S5 Profibus FDL"............................................................................125 Supported data types and data ranges.....................................................................................126 Features of the WinCC channel "SIMATIC S5 Profibus FDL"...................................................127 Configuring the Channel............................................................................................................129 How to configure the channel "SIMATIC S5 Profibus FDL"......................................................129 Channel unit "FDL (CP5412/A2-1)"...........................................................................................130 How to configure a connection..................................................................................................131 Configuring the tags..................................................................................................................132 Configuring the tags..................................................................................................................132 How to Configure a Tag with Bit by Bit Access.........................................................................132 How to Configure a Tag with Byte by Byte Access...................................................................134 How to configure a tag with word by word access.....................................................................135 System parameters...................................................................................................................137 System parameters of the channel unit.....................................................................................137 How to Change the Device Name.............................................................................................138
S5 PROFIBUS FDL..................................................................................................................................125
Table of contents
7.4.5.3 7.5 7.5.1 7.5.2 7.5.2.1 7.5.2.2 7.5.3 7.5.3.1 7.5.3.2 7.5.3.3 7.6 7.6.1 7.6.2 7.6.3 8 8 8.1 8.2 8.3 8.3.1 8.3.2 8.3.3 8.3.3.1 8.3.3.2 8.3.3.3 8.3.3.4 9 9 9.1 9.2 9.3 9.3.1 9.3.2 9.3.3 9.3.3.1 9.3.3.2 9.3.3.3 9.3.3.4 10 10 10.1 10.2 10.3
How to change the write/read monitoring time of process values.............................................139 Special Functions......................................................................................................................139 Special functions of the "SIMATIC S5 Profibus FDL" Channel.................................................139 Raw data tags of the "SIMATIC S5 Profibus FDL" channel......................................................140 Raw data tags of the "SIMATIC S5 Profibus FDL" channel......................................................140 How to configure raw data tags.................................................................................................140 Configuring the communication types.......................................................................................141 Configuring the communication types.......................................................................................141 How to configure an active data transfer...................................................................................141 How to configure a passive data transfer..................................................................................144 Example of configuring the "SIMATIC S5 Profibus FDL" channel.............................................146 Example of configuring the "SIMATIC S5 Profibus FDL" channel.............................................146 How to configure the data handling blocks in the AS................................................................146 How to configure an I/O Field....................................................................................................149 Resources.................................................................................................................................153 WinCC channel "SIMATIC S5 Programmers Port AS511" .......................................................153 Data type of the tags.................................................................................................................153 Configuring the Channel............................................................................................................154 Configuring the "SIMATIC S5 Programmers Port AS511" channel...........................................154 How to configure the connection...............................................................................................154 Configuring the tags..................................................................................................................155 Configuring the tags..................................................................................................................155 How to configure the address of a tag.......................................................................................156 How to configure a tag with bit-wise access..............................................................................158 How to Configure a Tag with Byte by Byte Access...................................................................159 Resources.................................................................................................................................161 WinCC channel "SIMATIC S5 Serial 3964R" ...........................................................................161 Data type of the tags.................................................................................................................161 Configuring the Channel............................................................................................................162 Configuring the "SIMATIC S5 Serial 3964R" channel...............................................................162 How to configure the connection...............................................................................................162 Configuring the tags..................................................................................................................164 Configuring the tags..................................................................................................................164 How to configure the address of the tag....................................................................................164 How to configure a tag with bit-wise access..............................................................................166 How to Configure a Tag with Byte by Byte Access...................................................................167 Resources.................................................................................................................................169 "SIMATIC S7 Protocol Suite" Channel......................................................................................169 WinCC Channel "SIMATIC S7 Protocol Suite"..........................................................................169 Channel unit selection...............................................................................................................170
S5 Serial 3964R.......................................................................................................................................161
Table of contents
10.4 10.5 10.5.1 10.5.2 10.5.3 10.5.3.1 10.5.3.2 10.5.3.3 10.5.3.4 10.5.3.5 10.5.3.6 10.5.3.7 10.5.3.8 10.5.4 10.5.4.1 10.5.4.2 10.5.4.3 10.5.4.4 10.5.4.5 10.5.5 10.5.5.1 10.5.5.2 10.5.5.3 10.5.5.4 10.6 10.6.1 10.6.2 10.6.2.1 10.6.2.2 10.6.2.3 10.6.2.4 10.6.2.5 10.6.2.6 10.6.2.7
Overview of the supported data types.......................................................................................174 Configuring the Channel............................................................................................................174 "SIMATIC S7 Protocol Suite" Channel - Configuration..............................................................174 How to configure the "SIMATIC S7 Protocol Suite" channel.....................................................175 Channel units.............................................................................................................................176 Channel units of the "SIMATIC S7 Protocol Suite" channel......................................................176 "Industrial Ethernet (I+II)" channel units"...................................................................................177 "MPI" channel unit.....................................................................................................................179 "Named Connections" channel unit...........................................................................................182 "PROFIBUS (I+II)" channel units...............................................................................................184 "Slot PLC" channel unit.............................................................................................................187 "Soft PLC" channel unit.............................................................................................................189 "TCP/IP" channel unit................................................................................................................190 Configuring the tags..................................................................................................................193 Configuring the tags..................................................................................................................193 How to Configure a Tag with Bit by Bit Access.........................................................................193 How to Configure a Tag with Byte by Byte Access...................................................................195 How to Configure a Tag with Word by Word Access.................................................................196 How to Configure a Text Tag.....................................................................................................197 System parameters...................................................................................................................199 System Parameters of the Channel Unit...................................................................................199 Cyclic read services in PLC.......................................................................................................200 How to Configure the System Parameters................................................................................201 How to Change the Logical Device Name.................................................................................203
Special functions.......................................................................................................................205 Special functions of the "SIMATIC S7 Protocol Suite" Channel................................................205 Data exchange with the S7 function block AR_SEND...............................................................205 Data exchange with the S7 function block AR_SEND...............................................................205 Data Block - Structure and Parameters.....................................................................................206 Overview of the properties of the AR_SEND variants...............................................................211 AR_SEND variant for an archive tag.........................................................................................214 Example 1 for data block structure: An archive tag; each process value has a time stamp.....215 Example 2 for data block structure: One archive tag; equally spaced time stamp....................216 Example 3 for data block structure: An archive tag; each process value has its own time stamp... 217 10.6.2.8 Example 4 for data block structure: An archive tag; each process value with relative time stamp (time difference).........................................................................................................................217 10.6.2.9 AR_SEND variant for multiple archive tags...............................................................................218 10.6.2.10Example 5 for data block structure: Multiple archive tags; each process value has its own time stamp.........................................................................................................................................221 10.6.2.11Example 6 for data block structure: Multiple archive tags; equally spaced time stamp............223 10.6.2.12Example 7 for data block structure: Multiple archive tags; each process value has its own time stamp.........................................................................................................................................225 10.6.2.13Example 8 for data block structure: Multiple archive tags; process values with relative time stamp (time difference).........................................................................................................................227 10.6.2.14AR_SEND variant for multiple archive tags (optimized)............................................................229 10.6.2.15Example 9 for data block structure: multiple archive tags;optimized.........................................230 10.6.2.16How to configure the AR _SEND variant for an archive tag......................................................231 10.6.2.17How to configure the AR _SEND variant for multiple archive tags............................................234 10.6.3 Raw data tags of the Channel "SIMATIC S7 Protocol Suite"....................................................237 10.6.3.1 Raw data tags of the Channel "SIMATIC S7 Protocol Suite"....................................................237
MDM - WinCC: Communication System Manual, 11/2008,
Table of contents
10.6.3.2 10.6.3.3 10.6.3.4 10.6.3.5 10.6.4 10.6.4.1 10.6.4.2 10.6.4.3 10.6.4.4 10.6.4.5 10.6.4.6 10.6.4.7 11 11 11.1 11.2 11.3 11.3.1 11.3.2 11.3.3 11.3.3.1 11.3.3.2 11.3.3.3 11.3.3.4 11.3.4 11.3.4.1 11.3.4.2 11.3.4.3 12 12 12.1 12.2 12.3 12.3.1 12.3.2 12.3.3 12.3.3.1 12.3.3.2 12.3.3.3 12.3.3.4 13 13 13.1 13.2 13.3
Raw data tag as byte array........................................................................................................238 How to Configure a Raw Data Tag as Byte Array.....................................................................239 Raw data tag for BSEND/BRCV functions of S7 communication..............................................241 How to Configure a Raw Data Tag for ""BSEND/BRCV" functions...........................................243 Software Redundancy...............................................................................................................244 Software Redundancy...............................................................................................................244 Software Redundancy - Connection-specific internal tags........................................................246 How To Configure a Software Redundancy..............................................................................250 How to Clear a Software Redundancy in WinCC......................................................................253 How to Check the WinCC Startup Parameters..........................................................................253 How To Load WinCC's system messages into Alarm Logging.................................................254 Error codes during connection disturbances.............................................................................254 Resources.................................................................................................................................255 WinCC channel "SIMATIC TI Ethernet Layer 4"........................................................................255 Data type of the tags.................................................................................................................255 Configuring the Channel............................................................................................................256 Configuring the channel "SIMATIC TI Ethernet Layer 4"...........................................................256 How to configure the connection...............................................................................................256 Configuring the tags..................................................................................................................258 Configuring the tags..................................................................................................................258 How to configure the address of a tag.......................................................................................258 How to configure a tag with bit-wise access..............................................................................259 How to Configure a Tag with Byte by Byte Access...................................................................260 System parameters...................................................................................................................262 System parameters of the channel unit.....................................................................................262 How to Change the Device Name.............................................................................................262 How to change the transport parameter....................................................................................263 Resources.................................................................................................................................265 WinCC channel "SIMATIC TI Serial" ........................................................................................265 Data type of the tags.................................................................................................................265 Configuring the Channel............................................................................................................266 Configuring the "SIMATIC TI Serial" channel............................................................................266 How to configure the connection...............................................................................................266 Configuring the tags..................................................................................................................268 Configuring the tags..................................................................................................................268 How to configure the address of a tag.......................................................................................268 How to configure a tag with bit-wise access..............................................................................269 How to Configure a Tag with Byte by Byte Access...................................................................270 Resources.................................................................................................................................273 "System Info" Channel...............................................................................................................273 WinCC System Info Channel.....................................................................................................273 Overview of the Supported System Information........................................................................275
MDM - WinCC: Communication System Manual, 11/2008,
SIMATIC TI Serial.....................................................................................................................................265
System Info...............................................................................................................................................273
Table of contents
13.4 13.5 13.5.1 13.6 13.6.1 13.6.2 13.6.3 13.6.4 13.6.5 13.6.6 13.6.7 13.6.8 13.6.9 13.6.10 13.6.11 13.6.12 13.7 13.7.1 13.7.1.1 13.7.2 13.7.2.1 13.7.2.2 13.7.2.3 13.7.2.4 13.7.2.5 13.7.2.6 14 14 14.1 15 15 15.1 15.2 15.3 15.3.1 15.3.2 15.3.3 15.3.4 15.3.4.1 15.3.4.2 15.3.4.3 15.3.4.4 15.3.4.5 15.3.4.6 15.3.4.7 15.4
Differences to Other Software Components..............................................................................279 Configuring the Channel............................................................................................................280 How to Configure the System Info Channel..............................................................................280 Examples of Evaluating and Displaying System Information....................................................280 How To Call Up and Evaluate System Information...................................................................280 How to Configure a Tag in the System Info Channel................................................................281 How to Display the Time in an I/O Field....................................................................................282 How to Display the Free Disk Capacity in a Bar Graph.............................................................283 How to Display the CPU Load in a Trend Window....................................................................284 How to Configure a Message regarding Free Disk Capacity.....................................................286 How to Display a Message regarding the Available Disk Capacity...........................................287 How to Display the Printer Status in a Status Display...............................................................289 How to Check the WinCC Startup Parameters..........................................................................290 How to Insert a Bar Graph.........................................................................................................291 How to Insert an I/O Field..........................................................................................................291 How to Start Runtime................................................................................................................291 Special Functions......................................................................................................................292 Use in Multi-User and Client Systems.......................................................................................292 Use in Multi-User and Client Systems.......................................................................................292 Example of monitoring system information from multiple servers.............................................292 Monitoring the system information of several servers on a WinCC client.................................292 How to Configure the First Server.............................................................................................293 How to Configure the Second Server........................................................................................294 How to Import the Tags to the WinCC Client.............................................................................295 How to Configure the Process Picture on the WinCC Client.....................................................296 How to Activate the Project.......................................................................................................297 Resources.................................................................................................................................299 Windows DDE channel..............................................................................................................299 Resources.................................................................................................................................301 Diagnosis of Channels and Tags...............................................................................................301 General Information about Error Detection................................................................................301 Channel Diagnosis ...................................................................................................................302 Channel diagnosis.....................................................................................................................302 "Status - Logical Connections" Function...................................................................................302 How to use the "Status - Logical Connections" function to check a channel.............................302 Diagnosis of Channels with Channel Diagnosis........................................................................304 Principle of Channel Diagnosis..................................................................................................304 Channel Diagnosis with ActiveX Control...................................................................................305 How to Check a Channel with Channel Diagnosis as an ActiveX Control................................305 Diagnosing a Channel with "Channel Diagnosis"......................................................................306 How to Check a Channel with Channel Diagnosis....................................................................307 How to Configure the Trace Function of a Channel..................................................................308 How to Start Runtime................................................................................................................309 Diagnosis of "System Info" Channel..........................................................................................309
Windows DDE..........................................................................................................................................299
Communication - Diagnostics...................................................................................................................301
Table of contents
15.4.1 15.4.2 15.4.3 15.4.3.1 15.4.3.2 15.4.3.3 15.5 15.5.1 15.5.2 15.5.3 15.5.3.1 15.5.3.2 15.5.3.3 15.5.3.4 15.5.3.5 15.5.3.6 15.6 15.6.1 15.6.2 15.6.3 15.6.3.1 15.6.3.2 15.6.3.3 15.6.3.4 15.6.3.5 15.6.3.6 15.7 15.7.1 15.7.2 15.7.2.1 15.7.2.2 15.7.2.3 15.7.3 15.7.3.1 15.7.3.2 15.7.3.3 15.7.3.4 15.8 15.8.1 15.8.2 15.8.3 15.8.4 15.8.5 15.8.6
"System Info" Channel - Diagnostic Options.............................................................................309 Description of Log File Entries...................................................................................................310 Determining the Cause of Incorrect Tag Values........................................................................311 How to Determine the Cause of Incorrect Tags........................................................................311 How to Check the Channel and the Connection........................................................................311 How to Check a Tag..................................................................................................................313 Diagnosis of the "SIMATIC S7 Protocol Suite" Channel...........................................................314 "SIMATIC S7 Protocol Suite" Channel - Diagnostic Options.....................................................314 Description of Log File Entries...................................................................................................314 Determining the Cause of Incorrect Tag Values........................................................................317 How to Determine the Cause of Incorrect Tags........................................................................317 How to check the configuration of the communication processor.............................................317 Checking the Communication Processor under SIMATIC NET................................................318 How to Check the Configuration of the Connection and Tags..................................................319 How to Check the Channel and the Connection........................................................................321 How to Check a Tag..................................................................................................................323 Diagnosis of the "SIMATIC S5 Profibus FDL" Channel.............................................................324 Diagnostic Options for the "SIMATIC S5 PROFIBUS FDL" Channel........................................324 Description of Log File Entries...................................................................................................325 Determining the Cause of Incorrect Tag Values........................................................................325 How to Determine the Cause of Incorrect Tags........................................................................325 How to Check the Configuration of the Communication Processor...........................................326 Checking the Communication Processor under SIMATIC NET................................................327 How to Check the Configuration of the Connection and Tags..................................................328 How to Check the Channel and the Connection........................................................................330 How to Check a Tag..................................................................................................................332 Diagnosis of the "OPC" Channel...............................................................................................333 Possibilities for Diagnosing the "OPC" Channel........................................................................333 Description of Log File Entries...................................................................................................334 Description of Log File Entries...................................................................................................334 Entries for "INFO" Flag..............................................................................................................335 Entries for "ERROR" Flag..........................................................................................................336 Determining the Cause of Incorrect Tag Values........................................................................337 How to Determine the Cause of Invalid Tags............................................................................337 How to Check the Configuration Data.......................................................................................337 How to Check the Channel and the Connection........................................................................338 How to Check a Tag..................................................................................................................340 Quality of Tags..........................................................................................................................341 Quality of Tags..........................................................................................................................341 Quality Codes of Tags...............................................................................................................343 Tag Status.................................................................................................................................347 Using the Tag Status to Monitor Connection Status..................................................................349 Monitoring Tag Status Using Global Actions.............................................................................350 How to Check an Internal Tag...................................................................................................351
Index.........................................................................................................................................................353
10
Process communication
1 1.1 Resources Communication Basics
Introduction
Communication is defined as the exchange of data between two communication partners.
Communication
Communication partners can be any component of a network that is in a position to communication with others and to exchange data. In the WinCC, these can be central and communication modules in the automation system (AS) as well as communication processors in the PC. The transferred data between communication partners can serve many different purposes. In the case of WinCC, these may be: Controlling a process Calling data from a process Indicating unexpected states in the process Process data archiving
11
1.2
Images
The refresh rate of screens is determined by the type and volume of data to be visualized.
12
Curves
When using bit-triggered curves, if the group bit is set in the "Curve transfer area", all curves for which the bit is set in this area are updated on the WinCC station. It resets the bits in the next cycle. Only after all bits have been reset in the WinCC station may the group bit be set again in the PLC program.
1.3
1.3.1
Introduction
You can access process tags (external tags) in an automation system from WinCC. Before you configure the process link in WinCC however, you should use a checklist to check whether the following prerequisites have been met: The automation system must be equipped with a communication interface supported by a communication driver in WinCC. This interface must be configured in the automation system so that the controller program can access the interface with the communication calls. The configuration parameters for the communication hardware must be known. The addresses of the tags that WinCC should access must be known. Note that the addresses depend on the automation system. The respective communication hardware (communication processor, standard I/O port COMx, ...) must be installed in the WinCC system. In order to install this hardware, the supplied operating system driver (hardware driver) must also have been installed previously. The settings for the hardware and software of the communication processor must be known. Depending on the communication processor used in the WinCC system, more settings may have to be made. When using industrial Ethernet or PROFIBUS for example, a local database must be created. This connection parameter also has to be known. For operation in runtime, a physical connection must also exist between WinCC and the AS, so that you can access the external tags.
13
1.3.2
Introduction
WinCC manages its tags centrally using so-called tag management. All of data and tags created in the project and stored in the project database are captured and management in runtime by WinCC. All applications, such as e.g. Graphics Runtime, Alarm Logging Runtime or Tag Logging Runtime (Global Script), must request the data in the for of WinCC tags from tag management.
14
A physical connection must then exist between WinCC and the AS. The properties of this connection, such as e.g. transfer medium and communication network, define the conditions for communication and are required for configuring the communication in WinCC.
Communication driver
A communication driver is a software component that establishes a connection between an AS and the tag management of WinCC, which enables the supply of WinCC tags with process values. In WinCC, there is a number of communication drivers for connecting various AS with different bus systems. Every communication driver can only be bound into a WinCC project one time. Communication drivers under WinCC are also called "Channels" and have the file extension "*.chn". All of the communication drivers installed on the computer are located in subdirectory "\bin" in the WinCC installation directory.
15
Channel Unit
Every channel unit serves as an interface with exactly one underlying hardware driver and therefore to exactly one communication processor in the PC. Every channel unit used must therefore be allocated with the respective communication processor. For some channel units, an additional configuration is performed in the so-called system parameters. For channel units that work on the transport layer (Layer 4) of the OSI model, the transport parameters are also defined.
Connection (logical)
If WinCC and the AS are correctly connected, physically, then a communication driver and a corresponding channel unit are required in WinCC in order to create or configure a (logical) connection with the AS. The data exchange will take place via this connection in Runtime. In WinCC, there is a connection of a configured, logical allocation of two communication partners for executing a certain communication service. Every connection has two end points that also contain necessary information for addressing the communication partner and other attributes for establishing the connection. A connection is configured under a channel unit with your specific connection parameters. A number of connections can also be created under one channel unit, depending on the communication driver.
1.3.3
1.3.3.1
External tags
External tags
Introduction
In order to obtain certain data of an AS, WinCC tags are required. These tags that affect the connection to an AS are designated as external tags. Other tags that have no process connection are designated as internal tags.
16
17
Note Not that with a type conversion, the data sent by AS can be interpreted by WinCC within the selected format adaptation. If the data cannot be interpreted by WinCC, a fault entry occurs in the file "WinCC_sys_0x.log" in directory "..\Siemens\WinCC\Diagnose".
1.3.3.2
Introduction
External tags can only be created on the basis of a connection to an AS. If the required connection does not exist, it must be created first.
Requirements
The required communication processor and the respective hardware driver are installed. The desired communication driver is also installed, e.g. "SIMATIC S7 Protocol Suite".
18
Procedure
1. Expand the view of the communication drivers in "Tag management". 2. Select the desired channel unit, e.g. "PROFIBUS". 3. Select the entry "New Connection..." in the pop-up menu of the channel unit.
4. Give the connection a unique name within the project in the field "Name" on the General tab. 5. Click the "Properties" button to open the "Connection Parameters" dialog. Define the required parameter for this connection. More information can be found under Help / Documentation for the respective channel. 6. Close all dialogs using the "OK" button.
1.3.3.3
Introduction
The procedures for creating a tag is similar for almost all data types. For some data types however, special settings are required (steps 5 - 7).
19
Requirements
The required communication processor and the hardware driver are installed. The desired communication driver is installed, e.g. "SIMATIC S7 Protocol Suite". A connection is already created based on a channel unit (e.g. "PROFIBUS").
Procedure
1. Choose the "New Tag..." option from the shortcut menu for the desired connection. The "Tag Properties" dialog opens.
2. Define a variable name that is unique in the WinCC project, e.g. WinCCTag_01", in field "Name" on the General tab. 3. Define the data type for the tag in the "Data type" field, e.g. "Floating Point Number 64 bit IEEE 754".
20
1.3.3.4
Introduction
When configuring external tags, another format adaptation must be done for all numeric data types. The data type determines the data format on the WinCC side. The format adaptation also defines the conversion from WinCC format to the AS format. The definition applies for both transfer directions. Choose the required WinCC data type in the following selection box. You are then provided with a list of the respective possible format adaptations and value ranges in the table below.
Format adaptation "Signed 8-bit value" CharToUnsignedByte CharToUnsignedWord CharToUnsignedDword CharToSignedByte CharToSignedWord CharToSignedDword CharToMSBByte CharToMSBWord CharToMSBDword CharToBCDByte CharToBCDWord
21
Format adaptation "Unsigned 8-bit value" ByteToUnsignedByte ByteToUnsignedWord ByteToUnsignedDword ByteToSignedByte ByteToSignedWord ByteToSignedDword ByteToBCDByte ByteToBCDWord ByteToBCDDword ByteToAikenByte ByteToAikenWord ByteToAikenDword ByteToExcessByte ByteToExcessWord ByteToExcessDword Table 1-3 Signed 16-bit value
22
Format adaptation "Unsigned 16-bit value" WordToUnsignedWord WordToUnsignedByte WordToUnsignedDword WordToSignedByte WordToSignedWord WordToSignedDword WordToBCDByte WordToBCDWord WordToBCDDword WordToAikenByte WordToAikenWord
23
Format adaptation "Signed 32-bit value" LongToSignedDword LongToUnsignedByte LongToUnsignedWord LongToUnsignedDword LongToSignedByte LongToSignedWord LongToMSBByte LongToMSBWord LongToMSBDword LongToBCDByte LongToBCDWord LongToBCDDword LongToSignedBCDByte LongToSignedBCDWord LongToSignedBCDDword LongToExtSignedBCDByte LongToExtSignedBCDWord LongToExtSignedBCDDword LongToAikenByte LongToAikenWord LongToAikenDword LongToSignedAikenByte LongToSignedAikenWord LongToSignedAikenDword LongToExcessByte LongToExcessWord LongToExcessDword LongToSignedExcessByte LongToSignedExcessWord LongToSignedExcessDword LongToSimaticTimer LongToSimaticBCDTimer
24
Format adaptation "Unsigned 32-bit value" DwordToUnsignedDword DwordToUnsignedByte DwordToUnsignedWord DwordToSignedByte DwordToSignedWord DwordToSignedDword DwordToBCDByte DwordToBCDWord DwordToBCDDword DwordToAikenByte DwordToAikenWord DwordToAikenDword DwordToExcessByte DwordToExcessWord DwordToExcessDword DwordToSimaticTimer DwordToSimaticBCDTimer Table 1-7 FloatToFloat FloatToUnsignedByte FloatToUnsignedWord FloatToUnsignedDword FloatToSignedByte FloatToSignedWord FloatToSignedDword FloatToDouble FloatToMSBByte FloatToMSBWord FloatToMSBDword FloatToBCDByte FloatToBCDWord FloatToBCDDword FloatToSignedBCDByte FloatToSignedBCDWord FloatToSignedBCDDword FloatToExtSignedBCDByte FloatToExtSignedBCDWord FloatToExtSignedBCDDword FloatToAikenByte Floating-point number 32-bit IEEE 754
Value range +-3.402823e+38 (no conversion) 0...255 0...65535 0 to 4.294967e+09 -128...+127 -32768...+32767 -2.147483e+09 to +2.147483e+09 +-3.402823e+38 -127...+127 -32767...+32767 -2.147483e+09 to +2.147483e+09 0...99 0...9999 0 to 9.999999e+07 -9...+9 -999...+999 -9999999...+9999999 -79...+79 -7999...+7999 -7.999999e+07 to +7.999999e+07 0...99
25
Format adaptation "Floating-point number 64-bit IEEE 754" DoubleToDouble DoubleToUnsignedByte DoubleToUnsignedWord DoubleToUnsignedDword DoubleToSignedByte DoubleToSignedWord DoubleToSignedDword DoubleToFloat DoubleToMSBByte DoubleToMSBWord DoubleToMSBDword DoubleToBCDByte DoubleToBCDWord DoubleToBCDDword DoubleToSignedBCDByte DoubleToSignedBCDWord DoubleToSignedBCDDword DoubleToExtSignedBCDByte DoubleToExtSignedBCDWord DoubleToExtSignedBCDDword DoubleToAikenByte DoubleToAikenWord DoubleToAikenDword DoubleToSignedAikenByte DoubleToSignedAikenWord DoubleToSignedAikenDword
26
1.3.3.5
Introduction
When configuring external tags, another format adaptation must be done for all numeric data types. The data type determines the data format on the WinCC side. The format adaptation also defines the conversion from WinCC format to the AS format. The definition applies for both transfer directions. Choose the required AS data type in the following selection box. You are then provided with a list of the respective possible format adaptations and respective value ranges in the table below.
Format adaptation "AikenByte" ByteToAikenByte CharToAikenByte DoubleToAikenByte DwordToAikenByte FloatToAikenByte LongToAikenByte ShortToAikenByte WordToAikenByte
27
Format adaptation "AikenWord" ByteToAikenWord CharToAikenWord DoubleToAikenWord DwordToAikenWord FloatToAikenWord LongToAikenWord ShortToAikenWord WordToAikenWord Table 1-11 AikenDWord
Format adaptation "AikenDWord" ByteToAikenDword CharToAikenDword DoubleToAikenDword DwordToAikenDword FloatToAikenDword LongToAikenDword ShortToAikenDword WordToAikenDword Table 1-12 BCDByte
Value range 0...255 0...127 0...99999999 0...99999999 0 to 9.999999e+07 0...99999999 0...32767 0...65535
Format adaptation "BCDByte" ByteToBCDByte CharToBCDByte DoubleToBCDByte DwordToBCDByte FloatToBCDByte LongToBCDByte ShortToBCDByte WordToBCDByte Table 1-13 BCDWord
Value range 0...99 0...99 0...99 0...99 0...99 0...99 0...99 0...99
28
Format adaptation "BCDDWord" ByteToBCDDword CharToBCDDword DoubleToBCDDword DwordToBCDDword FloatToBCDDword LongToBCDDword ShortToBCDDword WordToBCDDword Table 1-15 Double
Format adaptation "ExcessByte" ByteToExcessByte CharToExcessByte DoubleToExcessByte DwordToExcessByte FloatToExcessByte LongToExcessByte ShortToExcessByte WordToExcessByte Table 1-17 ExcessWord
Value range 0...99 0...99 0...99 0...99 0...99 0...99 0...99 0...99
Format adaptation "ExcessWord" ByteToExcessWord CharToExcessWord DoubleToExcessWord DwordToExcessWord FloatToExcessWord LongToExcessWord ShortToExcessWord WordToExcessWord
Value range 0...255 0...127 0...9999 0...9999 0...9999 0...9999 0...9999 0...9999
29
Format adaptation "ExcessDWord" ByteToExcessDword CharToExcessDword DoubleToExcessDword DwordToExcessDword FloatToExcessDword LongToExcessDword ShortToExcessDword WordToExcessDword Table 1-19 ExtSignedBCDByte
Format adaptation "ExtSignedBCDByte" CharToExtSignedBCDByte DoubleToExtSignedBCDByte FloatToExtSignedBCDByte LongToExtSignedBCDByte ShortToExtSignedBCDByte Table 1-20 ExtSignedBCDWord
Format adaptation "ExtSignedBCDWord" CharToExtSignedBCDWord DoubleToExtSignedBCDWord FloatToExtSignedBCDWord LongToExtSignedBCDWord ShortToExtSignedBCDWord Table 1-21 ExtSignedBCDDWord
Format adaptation "ExtSignedBCDDWord" CharToExtSignedBCDDword DoubleToExtSignedBCDDword FloatToExtSignedBCDDword LongToExtSignedBCDDword ShortToExtSignedBCDDword Table 1-22 Float
30
Format adaptation "MSBByte" CharToMSBByte DoubleToMSBByte FloatToMSBByte LongToMSBByte ShortToMSBByte Table 1-24 MSBWord
Format adaptation "MSBWord" CharToMSBWord DoubleToMSBWord FloatToMSBWord LongToMSBWord ShortToMSBWord Table 1-25 MSBDWord
Format adaptation "MSBDWord" CharToMSBDword DoubleToMSBDword FloatToMSBDword LongToMSBDword ShortToMSBDword Table 1-26 S5Float
31
Format adaptation "SignedWord" ByteToSignedWord CharToSignedWord DoubleToSignedWord DwordToSignedWord FloatToSignedWord LongToSignedWord ShortToSignedWord WordToSignedWord Table 1-30 SignedDWord
Format adaptation "SignedDWord" ByteToSignedDword CharToSignedDword DoubleToSignedDword DwordToSignedDword FloatToSignedDword LongToSignedDword ShortToSignedDword WordToSignedDword Table 1-31 SignedAikenByte
Value range 0...255 -128...+127 -2147483647...+2147483647 0...2147483647 -2.147483e+09 to +2.147483e+09 -2147483647...+2147483647 (no conversion) -32768...+32767 0...65535
Format adaptation "SignedAikenByte" CharToSignedAikenByte DoubleToSignedAikenByte FloatToSignedAikenByte LongToSignedAikenByte ShortToSignedAikenByte Table 1-32 SignedAikenWord
32
Format adaptation "SignedAikenDWord" CharToSignedAikenDword DoubleToSignedAikenDword FloatToSignedAikenDword LongToSignedAikenDword ShortToSignedAikenDword Table 1-34 SignedBCDByte
Format adaptation "SignedBCDByte" CharToSignedBCDByte DoubleToSignedBCDByte FloatToSignedBCDByte LongToSignedBCDByte ShortToSignedBCDByte Table 1-35 SignedBCDWord
Format adaptation "SignedBCDWord" CharToSignedBCDWord DoubleToSignedBCDWord FloatToSignedBCDWord LongToSignedBCDWord ShortToSignedBCDWord Table 1-36 SignedBCDDWord
Format adaptation "SignedBCDDWord" CharToSignedBCDDword DoubleToSignedBCDDword FloatToSignedBCDDword LongToSignedBCDDword ShortToSignedBCDDword Table 1-37 SignedExcessByte
33
Format adaptation "SignedExcessWord" CharToSignedExcessWord DoubleToSignedExcessWord FloatToSignedExcessWord LongToSignedExcessWord ShortToSignedExcessWord Table 1-39 SignedExcessDWord
Format adaptation "SignedExcessDWord" CharToSignedExcessDword DoubleToSignedExcessDword FloatToSignedExcessDword LongToSignedExcessDword ShortToSignedExcessDword Table 1-40 SimaticCounter
34
Format adaptation "UnsignedWord" ByteToUnsignedWord CharToUnsignedWord DoubleToUnsignedWord DwordToUnsignedWord FloatToUnsignedWord LongToUnsignedWord ShortToUnsignedWord WordToUnsignedWord Table 1-46 UnsignedDWord
Format adaptation "UnsignedDWord" ByteToUnsignedDword CharToUnsignedDword DoubleToUnsignedDword DwordToUnsignedDword FloatToUnsignedDword LongToUnsignedDword ShortToUnsignedDword WordToUnsignedDword
Value range 0...255 0...127 0...4294967295 0...4294967295 (no conversion) 0 to 4.294967e+09 0...2147483647 0...32767 0...65535
1.3.3.6
Introduction
In WinCC, not all communication drivers and their channel units support the direct bit-wise or byte-wise access (short: Bit-/Byte-access) to address ranges in a connected automation system. Instead, they use the BinWrite mechanism.
Bit-/Byte-access
With channel units of communication drivers with bit-/byte-access, the desired bit or byte can be read and written directly. In the following figure, a bit x is allocated the value = 1 via direct bit-/byte-access.
35
BinWrite Mechanism
The following communication drivers do not support bit-/byte-access and instead use the BinWrite mechanism for the respective channel units: Modbus Serial SIMATIC S5 Ethernet Layer 4 SIMATIC S5 Programmers Port AS511 SIMATIC S5 Serial 3964R SIMATIC TI Ethernet Layer 4 SIMATIC TI Serial To write a bit or byte, the channel unit first reads the entire data word with the BinWrite mechanism. The data to be addressed is then changed in the word that is read. Then, instead of just the changed bit or byte, the entire (!) word is written back. In the following figure, a bit x is allocated the value = 1 via the BinWrite mechanism.
NOTICE If a data word changes in an AS at the same time as this data word was read via the BinWrite mechanism in the WinCC (see figure "Problem case"), then the change is lost in the AS, as soon as WinCC writes the data word back.
36
1.3.3.7
Introduction
If you want to configure a "Binary tag" for the channel unit of a communication driver, which does not support bit-/byte-access, you have to activate and configure the BinWrite mechanism using a dialog, which otherwise does not exist.
Requirements
The required communication processor and the hardware driver are installed. The desired communication driver, which does not support bit-/byte-access however, is installed, e.g. "SIMATIC S5 Ethernet Layer 4". A connection has already been created based on its channel units.
Procedure
1. Select entry "New tag..." in the context menu of the connection that you want to create a new tag for. The "Create new tag" dialog is displayed. 2. Enter a tag name that is unique within the project in the "Name" field on the General tab. Select "Binary tag", "Unsigned 8 bit value" or "Signed 8 bit value" as data type.
37
4. Activate the checkbox "Access to one bit" or "Access to one byte" and make the normal settings. The display in this dialog depends on the data type selected in step 2. 5. Close the dialog by clicking "OK". Note The dialog is also opened if you neglect to activate the BinWrite mechanism for a new "Binary tag" or 8 bit tag. If you want to close the "Create new tag" window again immediately with "OK", you will get error message "The address parameter is invalid". Acknowledge the dialog with "YES". This opens the dialog "Bit-/Byte tag" and you can repeat the settings this way.
1.3.4
Port Addresses
CAUTION Ethernet communication
38
S7 Communication HTTP (communication; transfer) HTTPS (communication; transfer) WebServices (SOAP) OPC-XML (CE as OPC Master) SendEmail Transfer (via Ethernet; CE-Stub; PC Loader; PC) Logging (via Ethernet) CSV File Modbus Ethernet Allen-Bradley Ethernet CIP Allen-Bradley Ethernet CSP2
39
Introduction
The channel "Allen Bradley - Ethernet IP" is used for linking to Allen-Bradley automation systems. The communication is handled with the Ethernet IP protocol. Depending on the communication hardware used, the system supports connections via the following channel units: Allen Bradley E/IP PLC5 Allen Bradley E/IP SLC50x Allen Bradley E/IP ControlLogix
2.2
Introduction
The channel unit must be selected for the channel in order to create a connection from WinCC to an existing or planned network.
41
2.3
Introduction
Define the required tags for a logical connection. The following data types are supported by the "Allen Bradley - Ethernet IP" channel: Binary Tag Signed 8-bit value Unsigned 8-bit value Signed 16-bit value Unsigned 16-bit value Signed 32-bit value Unsigned 32-bit value Floating-point number 32-bit IEEE 754 Floating-point number 64-bit IEEE 754 Text tag 8-bit character set Text tag 16-bit character set
2.4
2.4.1
Introduction
WinCC needs a logical connection for communication of WinCC with the automation system (AS). This section shows how the "Allen Bradley - Ethernet IP" channel is configured. When implementing the TCP/IP protocol, you must define the IP address of the AS for the logic connection. The IP address consists of four numerical values, separated by dots. The numerical values must be within the range of 0-255. Note Timeout Behavior Interrupted connections are not detected immediately when using the TCP/IP protocol. The check-back message can take up to a minute.
42
Connectable controllers
Connections can be implemented for the following Allen-Bradley PLCs: Allen-Bradley ControlLogix 5500 Allen-Bradley CompactLogix 5300 PLC-5 with Ethernet Port SLC 500 with Ethernet Port, e.g. SLC 5/05 MicroLogix
Online Configuration
The online configuration of the "Allen Bradley - Ethernet IP" channel is not supported.
2.4.2
Introduction
The following steps are required for configuring a connection of the "Allen Bradley E/IP PLC5" channel unit: 1. Configuring a connection 2. Configuring Tags
Requirements
The communication driver for channel "Allen Bradley - Ethernet IP" is installed and integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the "Allen Bradley E/IP PLC5" channel unit. The "Connection Properties" dialog is opened. 2. Enter a connection name in the "General" tab.
43
4. Enter the IP address of the Ethernet/IP module of the controller. Port 44818 is permanently set by default for Ethernet/IP devices. 5. Define the CIP path from the Ethernet module to the controller in the "Communication path" field. This setting creates a logical interconnection of the Ethernet module with the PLC, irrespective of their location in different CIP networks. 6. Close both of the dialogs by clicking the "OK" button.
2.4.3
Introduction
The following steps are required for configuring a connection of the "Allen Bradley E/IP SLC50x" channel unit: 1. Configuring a connection 2. Configuring Tags
Requirements
The communication driver for channel "Allen Bradley - Ethernet IP" is installed and integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the "Allen Bradley E/IP SLC50x" channel unit. The "Connection Properties" dialog is opened. 2. Enter a connection name in the "General" tab.
44
4. Enter the IP address of the Ethernet/IP module of the controller. Port 44818 is permanently set by default for Ethernet/IP devices. 5. Define the CIP path from the Ethernet module to the controller in the "Communication path" field. This setting creates a logical interconnection of the Ethernet module with the PLC, irrespective of their location in different CIP networks. 6. Close both of the dialogs by clicking the "OK" button.
2.4.4
Introduction
The following steps are required for configuring a connection of the "Allen Bradley E/IP ControlLogix" channel unit: 1. Configuring a connection 2. Configuring Tags
Requirements
The communication driver for channel "Allen Bradley - Ethernet IP" is installed and integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the "Allen Bradley E/IP ControlLogix" channel unit. The "Connection Properties" dialog is opened. 2. Enter a connection name in the "General" tab.
45
4. Enter the IP address of the Ethernet/IP module of the controller. Port 44818 is permanently set by default for Ethernet/IP devices. 5. Define the CIP path from the Ethernet module to the controller in the "Communication path" field. This setting creates a logical interconnection of the Ethernet module with the PLC, irrespective of their location in different CIP networks. 6. Close both of the dialogs by clicking the "OK" button.
2.4.5
Example 1:
Example 2:
Connection with a PLC in remote Allen-Bradley racks. Two Allen-Bradley racks are networked on Ethernet. 1,2,2,190.130.3.101,1,5
Number 1 2 2 190.130.3.101 Meaning Backplane connection Stands for the CPU slot number of the second Ethernet module. Stands for an Ethernet connection. IP address of a remote AB rack on the network in particular the third Ethernet module
46
2.4.6
2.4.6.1
Introduction
For a connection between WinCC and the automation system (AS) via channel "Allen Bradley - Ethernet IP", tags of different data types can be created in WinCC. The permitted data types are listed in this section.
Tag Updating
If the tags are retrieved simultaneously in a picture from a PLC, the "Allen Bradley - Ethernet IP" channel attempts to optimize the update. This can only be accomplished under the following conditions however: - the tags are in the same address range. - the tags are as close to one another as possible within the address range. If you do not observe these recommendations, it can lead to noticeable differences in the picture refresh with large amounts of tags. The acquisition cycles may not be maintained under certain circumstances. The best performance for the connection is achieved if you observe the following rules when configuring the tags: Update of maximum 2000 tags simultaneously. Combine the tags in the least possible space, best in only one address range.
47
Arrays
Address Array Permitted data types SInt, USInt, Int, UInt, DInt, UDInt, Real
2.4.6.2 Addressing
Addressing
A tag is uniquely referenced in WinCC by means of an address in the controller. The address must correspond with the tag name in the PLC. The tag address is defined by a string with a length of up to 128 characters.
48
2.4.6.3
Addressing syntax
Notation of addresses
The following tables define the possibilities for writing individual addressing.
Table 2-1 Data types Basic data types Arrays Bits Structure elements Access to arrays, basic data types and structure elements Type PLC tag Program tag PLC tag Program tag PLC tag Program tag PLC tag Program tag Address Tag name Programname:tagname Array tag Program name: array tag Tagname/bitnumber Programname:tagname/bitnumber Structure tag. Structure element Program name: structure tag. structure element
49
2.4.6.4
Addressing Types
Array elements
Elements of one-dimensional, two-dimensional and three-dimensional arrays in the PLC are indexed by setting an index and the corresponding notation in the tag editor. Array addressing starts at element "0", with arrays of all basic types being valid for element addressing. Read/ write operations are only carried out at the addressed element, and not for the entire array.
Structures
User-defined data types are created by means of structures. These structures group tags of different data types. Structures may consist of basic types, arrays and of other structures. In WinCC, only basic data types are addressed as structure elements and not entire structures.
50
Structure elements
Structure elements are addressed by means of the name of the structure and of the required structure element. This addressing is separated by point. In addition to basic data types, the structure elements may represent arrays or other structures. Only one-dimensional arrays may be used as a structure element. Note The nesting depth of structures is only limited by the maximum length of 128 characters for the address.
2.4.6.5
Access to an element of a 2- Arraytag[Dim1,Dim2] dimensional array Element of a structure array (1-dimensional) Arraytag[Dim1].structureelement
Bit in element of a basic type Arraytag[Dim1,Dim2]/Bit array (2-dimensional) Structure Array in structure Bit in element of an array in a sub-structure Structuretag.arraytag Structuretag.structure2.arraytag [element]/ bit
Note Program tags are addressed by leading the address with the program name derived from the PLC with colon delimiter. Example: Programname:arraytag[Dim1,Dim2]
51
2.4.6.6
How to configure a tag for the Allen Bradley E/IP ControlLogix channel unit
Introduction
This section shows how you configure a tag for channel unit "Allen Bradley E/IP ControlLogix" in the automation system (AS) address range.
Requirements
The channel "Allen Bradley - Ethernet IP" must be integrated in the project. A connection must be created in the "Allen Bradley E/IP ControlLogix" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Ethernet IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select the desired data type in the "Data type" field. 3. The "Select" button opens the dialog "Allen Bradley ControlLogix Variable".
4. Enter the address of the tags in AS in the "Address" field. NOTICE Addressing errors Addressing errors are generated when the tag name and data type are inconsistent. The tag name defined in the address field in WinCC must correspond with the tag name in the controller. The data type of tags in WinCC must correspond with the data types in the controller. 5. Close both of the dialogs by clicking the "OK" button.
52
2.4.6.7
How to configure a tag with bit by bit access for Allen Bradley E/IP PLC5 or SLC50x
Introduction
This section shows you how to configure a tag for bit by bit access for the address area in the automation system (AS).
Requirements
The channel "Allen Bradley - Ethernet IP" must be integrated in the project. A connection must be created in the "Allen Bradley E/IP PLC5" or "Allen Bradley E/IP SLC50x" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Ethernet IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select the desired data type in the "Data type" field. 3. The "Select" button opens the dialog "Allen Bradley PLC/SLC Tag".
4. Select an address range in the "File" field. Entries N, R, C, T, B, S, I, O, D, A, ST are available. 5. Enter the "File Number" if it is different from the suggested file number. 6. Enter the "Element". 7. Depending on the setting in the "File" field, define the "Bit" to address or select a value for "Bit (octal)" or "Sub". 8. Close both of the dialogs by clicking the "OK" button.
53
2.4.6.8
How to configure a tag with byte by byte access for Allen Bradley E/IP PLC5 or SLC50x
Introduction
This section shows you how to configure a tag for byte by byte access for the address area in the automation system (AS).
Requirements
The channel "Allen Bradley - Ethernet IP" must be integrated in the project. A connection must be created in the "Allen Bradley E/IP PLC5" or "Allen Bradley E/IP SLC50x" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Ethernet IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select the desired data type in the "Data type" field. 3. The "Select" button opens the dialog "Allen Bradley PLC/SLC Tag".
4. Select the A or ST address range in the "File" field. 5. Enter the "File Number" if it is different from the suggested file number. 6. Enter the "Element". 7. Close both of the dialogs by clicking the "OK" button.
2.4.6.9
How to configure a tag with word by word access for Allen Bradley E/IP PLC5 or SLC50x
Introduction
This section shows you how to configure a tag for word by word access for the address area in the automation system (AS).
54
Requirements
The channel "Allen Bradley - Ethernet IP" must be integrated in the project. A connection must be created in the "Allen Bradley E/IP PLC5" or "Allen Bradley E/IP SLC50x" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Ethernet IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select the desired data type in the "Data type" field. 3. The "Select" button opens the dialog "Allen Bradley PLC/SLC Tag".
4. Select the address range in the "File" field. Entries N, R, C, T, B, S, I, O, D, A and ST are available. 5. Enter the "File Number" if it is different from the suggested file number. The File number cannot be changed for the setting "S". 6. Enter the "Element". 7. Select one of the values for the "Sub" field if it is displayed. This depends on the setting made in the "File field. 8. Close both of the dialogs by clicking the "OK" button.
2.4.6.10
How to configure a text tag for Allen Bradley E/IP PLC5 or SLC50x
Introduction
This section shows you how to configure a tag for word by word access for the address area in the automation system (AS).
Requirements
The channel "Allen Bradley - Ethernet IP" must be integrated in the project. A connection must be created in the "Allen Bradley E/IP PLC5" or "Allen Bradley E/IP SLC50x" channel unit.
55
Procedure
1. Select "New Tag" from the shortcut menu of the Ethernet IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select the desired data type in the "Data type" field. 3. The "Select" button opens the dialog "Allen Bradley PLC/SLC Tag".
4. Select the A or ST address range in the "File" field. 5. Enter the "File Number" if it is different from the suggested file number. The File number cannot be changed for the setting "S". 6. Enter the "Element". 7. Select one of the values for the "Sub" field if it is displayed. This depends on the setting made in the "File field. 8. Close both of the dialogs by clicking the "OK" button.
56
Modbus TCPIP
3 3.1 Resources "Modbus TCP/IP" channel
Introduction
The "Modbus TCPIP" channel is for communication between a WinCC station and PLCs that support Modbus via Ethernet. The communication is handled with the Modbus TCP/IP protocol.
Channel units
The "Modbus TCPIP" channel comes with the "Modbus TCP/IP Unit #1" channel unit.
3.2
Introduction
Define the required tags for a logical connection with a connected controller. The following data types are supported by the "Modbus TCPIP" channel: Binary tag Signed 8-bit value Unsigned 8-bit value Signed 16-bit value Unsigned 16-bit value Signed 32-bit value Unsigned 32-bit value Floating-point number 32-bit IEEE 754 Floating-point number 64-bit IEEE 754 Text tag 8-bit character set Text tag 16-bit character set
57
3.3
3.3.1
Introduction
WinCC needs a logical connection for communication of WinCC with the automation system (AS). This section describes the communication with the "Modbus TCP/IP Unit #1" channel unit. All connection-specific parameters are defined during the setup. When implementing the TCP/IP protocol, you must define the IP address of the AS for the logic connection. The IP address consists of four numerical values, separated by dots. The numerical values must be within the range of 0-255. Note Timeout Behavior Interrupted connections are not detected immediately when using the TCP/IP protocol. The check-back message can take up to a minute.
Online Configuration
The Online configuration is not supported.
3.3.2
Introduction
The following steps are required for configuring the channel "Modbus TCPIP": 1. Configuring a connection 2. Configuring Tags
58
Requirements
The communication driver for channel "Modbus TCPIP" is installed and integrated into the project.
Procedure
1. Open the menu structure for the "Modbus TCPIP" communication driver in the "Tag Management" editor of the WinCC Explorer. 2. Select the entry "New Connection" in the pop-up menu of the "Modbus TCP/IP Unit #1" channel unit. The "Connection Properties" dialog is opened. 3. Enter the name of the connection. 4. Click on the "Properties" button to open the "Modbus TCPIP Properties" dialog.
5. Select the connected Modicon controller under "CPU Type". The following CPUs are available for selection: 984 Use this CPU type for the CPU984 (except for CPU984A, 984B and 984X). Modicon Compact, Modicon Quantum, Modicon Momentum Modicon Premium, Modicon Micro 6. Enter the IP address of the controller in the "Server" field. 7. Enter the port to be used for the TCP/IP connection in the "Port" field. The default port for Modbus TCP/IP connections is 502. 8. If you are using a bridge, enter the slave address of the removed PLC in the "Remote slave address" field. If no bridge is used, you must enter the default value of 255 or 0 as the address. Note Integrating the WinCC station via a bridge in a Modbus network is not possible because the WinCC station works as a Modbus Master. 9. Close both of the dialogs by clicking the "OK" button.
59
3.3.3
3.3.3.1
Introduction
For a connection between WinCC and the automation system (AS) via channel "Modbus TCPIP", tags of different data types can be created in WinCC. The following sections describe how to configure the tags. The addressing of the data range in the AS and the data type of the WinCC tags are different.
60
data type Bit2), +/- Int, Int, +/- Double, Double, Float, ASCII Bit2), +/- Int, Int, +/- Double, Double, Float, ASCII
--
6x
1) 2)
Due to a system characteristics of the external controller the last x bits on the end of the address area cannot be accessed. In the case of write accesses note: With the "bit" data type in the "4x", "6x" and "%MW" areas, after changing the specified bit the entire word is written back to the controller. There is no check to determine whether any other bits in the word have changed. As a result, the controller only has read access to the specified word.
The standard bit counting method (16 LSB - 1 MSB) used with controllers of the 984, Compact, Quantum and Momentum series will only be used for these CPUs in the "Tags" editor for the data type "bit". Bit positions have the following allocations:
Counting with tags Left byte 1 2 3 4 5 6 7 8 Right byte 9 10 11 12 13 14 15 16
When entering bit numbers in other locations in WinCC, the bit allocation of WinCC applies (0LSB-15MSB):
How the bit positions are counted Left byte 9 8 Right byte 7 6 5 4 3 2 1 0
This bit counting method also applies to Modicon Premium and Modicon Micro controllers
See also
How to Configure a Tag with Bit by Bit Access (Page62) How to Configure a Tag with Word by Word Access (Page63) How to Configure a Text Tag (Page64)
61
3.3.3.2
Introduction
This section shows you how to configure a tag for bit by bit access for the address area in the automation system (AS).
Requirements
The channel "Modbus TCPIP" must be integrated in the project. A connection must be created in the "Modbus TCP/IP Unit #1" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Modbus TCP/IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Select "Binary tag" in the "Data Type" field. 3. Click on the "Select" button to open the "Modbus TCP/IP Tag Properties" dialog. Define the data area in the AS that holds the data in the "Area" field. You can select from areas 0x, 1x, 3x, 4x and 6x.
4. Enter the address of the tags in the respective address field, "4x" for instance. The value depends on the configuration of the controller. 5. Enter the address of the bit in the "Bit" field if necessary. Whether an entry is possible depends on your selection in the "Area from" field. 6. Select a value for "File" if you have set the value "6x Extended Memory" in the "Area" field. 7. Close both of the dialogs by clicking the "OK" button. Note After closing the "Modbus TCP/IP Tag Properties" dialog, the internal address of the tags in the controller is shown in field "Address" of the "Tag Properties" dialog. This address can differ from the entered address because it is adapted to the AS data format.
62
See also
How to Configure a Text Tag (Page64)
3.3.3.3
Introduction
This section shows you how to configure a tag for word by word access for the address area in the automation system (AS).
Requirements
The channel "Modbus TCPIP" must be integrated in the project. A connection must be created in the "Modbus TCP/IP Unit #1" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Modbus TCP/IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. Set the data type to "Unsigned 16-bit value" in the "Data Type" field. 3. Click on the "Select" button to open the "Modbus TCP/IP Tag Properties" dialog. Define the data area in the AS that holds the data in the "Area" field. You can select from the three areas 3x, 4x and 6x.
4. Enter the address of the tags in the respective address field, "4x" for instance. The value depends on the configuration of the controller. 5. Close both of the dialogs by clicking the "OK" button. Note After closing the "Modbus TCP/IP Tag Properties" dialog, the internal address of the tags in the controller is shown in field "Address" of the "Tag Properties" dialog. This address can differ from the entered address because it is adapted to the AS data format.
63
3.3.3.4
Introduction
This section shows you how to configure a tag for word by word access for the address area in the automation system (AS).
Requirements
The channel "Modbus TCPIP" must be integrated in the project. A connection must be created in the "Modbus TCP/IP Unit #1" channel unit.
Procedure
1. Select "New Tag" from the shortcut menu of the Modbus TCP/IP connection. The "Tag properties" dialog box opens. 2. Enter the name of the tag in the "Name" field. In the "Data Type" field, set "Text tag 8-bit character set" as the data type. 3. Click on the "Select" button to open the "Modbus TCP/IP Tag Properties" dialog.
4. Enter the address of the tags in address field "4x". The value depends on the configuration of the controller. 5. Close both of the dialogs by clicking the "OK" button.
64
OPC Channel
4 4.1 Resources WinCC OPC Channel
Introduction
WinCC can be used as both an OPC server and as an OPC client. The OPC channel is the OPC client application of WinCC. The OPC communication driver can be use as OPC DA client and as OPC XML client. The following OPC components are installed automatically: OPC communication driver OPC Item Manager
65
4.2
Introduction
In order to be able to access a WinCC tag of the WinCC OPC DA servers or WinCC OPC XML server, a connection and a WinCC tag must be configured in the WinCC project of the WinCC
66
Requirements
The following requirements must be met in order to use the OPC Item Manager for configuration: A tag must be configured on the OPC DA server. If WinCC is to be used as the OPC server the WinCC project of the WinCC OPC server must be enabled. If this is not the case, the OPC Item Manager cannot access the WinCC OPC server. It must be possible to access the computer of the OPC servers via the IP address or HTTP. The OPC server must support the browser functionality. If that is not the case, access to the tag for the OPC server must be configured manually.
67
Description
A networked computer with this designation has not yet been searched for installed OPC DA servers. The computer was not found in the network or the computer could not be accessed. A networked computer with this designation has been searched for installed OPC DA servers. A networked computer with this designation contains the OPC DA server with the OPC symbol shown. The number indicates which OPC DA specification of the WinCC OPC DA client is used. \\<LOCAL> Refers to the computer running the OPC Item Manager. Name of the OPC XML server. The OPC XML server can be added using the "OPC Web Server" button. http://
Creating Connection
The OPC Item Manager configures all required settings when creating a connection. If a connection to the OPC DA server has already been created, this function is not available.
MDM - WinCC: Communication System Manual, 11/2008,
68
Selecting Tag
The tag selection dialog may be used to select one or more tags on the OPC DA server which the WinCC OPC DA client is to access. Filter criteria can be used to limit the choices in the tag selection dialog.
Adding tag
The names of the WinCC tags to access the tags on the OPC DA server can be set on the WinCC OPC DA client in the "Add Tags" dialog. The WinCC tag name consists of the "prefix", "name" and "suffix". The "Name" field is preconfigured with the "ExampleTag" text. "ExampleTag" is a placeholder for the WinCC tag name of the WinCC OPC DA server. To distinguish the WinCC tag name on the WinCC OPC DA client from the WinCC tag name on the WinCC OPC DA Server, a prefix or suffix may be assigned. When configuring project monitoring, a prefix or suffix must be assigned. The tag name may be assigned only once in a given WinCC project. Example The WinCC tag name on the WinCC OPC DA server is called "OPC_Server_Tag". The "Client_" value is entered in the prefix field and "_xyz" in the suffix field. In the WinCC project of the WinCC OPC DA client, the WinCC tag "Client_OPC_Server_Tag_xyz" is created. If the tag name on the OPC server contains special characters, they are replaced by an underscore character ( "_" ), because not all special characters occurring in tag names are supported by the OPC Item Manager. The following special characters are not replaced: /, \, :, *, ?, ., space, ", ' .
69
See also
How to Access a WinCC Tag with the OPC Item Manager (Page87) How to Access a WinCC Tag with the OPC Item Manager (Page72)
4.3
The list below shows the data types that are supported by the WinCC OPC DA client and WinCC OPC DA server:
Binary tags Signed 8-bit value Unsigned 8-bit value Signed 16-bit value Unsigned 16-bit value Signed 32-bit value Unsigned 32-bit value Floating-point number 32-bit IEEE 754 Floating-point number 64-bit IEEE 754 Text tag, 8-bit character set Text tag, 16-bit character set Raw data type Structure types Text reference Note For structure types, only the structure elements are supported, not the structure itself. However, the structure can be configured later. For more information, refer to the topic "Using structures on the WinCC OPC DA client." If a text tag is created with the OPC Item Manager, it is assigned a length of 160 characters. This length can be changed to any length.
70
See also
How to Use Structures on the WinCC OPC DA Client (Page79)
4.4
4.4.1
Introduction
The OPC channel does not require a separate communication module. The OPC channel is an application which employs the OPC software interface to use an OPC DA server to access process data. If WinCC is to be used as an OPC DA client, the OPC channel must be added to the WinCC project. If a communication is established to a WinCC OPC DA server, the values of the WinCC tags are exchanged. To do this, a connection is set up in the WinCC project of the WinCC OPC DA client; it is used to handle access to the WinCC OPC DA server. For the WinCC OPC DA client to access multiple OPC DA servers, a connection for each of the OPC DA servers must be set up in the WinCC project. For more information about troubleshooting channels and tags, refer to "Troubleshooting".
Connection Checking
Three mechanisms are integrated for connection monitoring in the WinCC OPC-DA client. It is thus possible to take the best possible measures in the event of a network error or malfunction of an OPC DA server. 1. If the processing period for a DCOM activation exceeds warning value of 5 seconds, the tag is assigned the value "Addressing Error". If the processing period exceeds the cancellation value of 10 seconds, the connection to the OPC DA server is interrupted. This is displayed in the "Connection Status" dialog of the WinCC Explorers. The OPC DA specification 3.0 is provided with the "Keep-Alive" feature. If the OPC DA server supports the OPC DA specification 3.0, the feature is used. The feature causes the OPC DA server to automatically trigger cyclic updating (call OnDataChange) even if the tag values have not changed. If this regular updating is disabled, the WinCC OPC DA client terminates the connection. The same behavior applies in the case of an OPC DA server which supports the OPC DA specification 1.0 or 2.0. In order to check the connection to the OPC DA server, the WinCC OPC DA client requests the status cyclically every 10 seconds. If this regular updating is disabled, the WinCC OPC DA client terminates the connection. Generally, the WinCC OPC DA client terminates the connection to the OPC DA server when the connection is not capable of functioning. The WinCC OPC DA client attempts to re-establish the connection again, automatically, every 10 seconds.
71
See also
How to Use Structures on the WinCC OPC DA Client (Page79) Accessing a WinCC Tag without the OPC Item Manager (Page77) Configuring Access with the OPC Item Manager (Page73) Overview of the Supported WinCC Data Types (Page70) OPC Item Manager (Page66) Diagnosis of Channels and Tags (Page301)
4.4.2
4.4.2.1
Introduction
When an OPC connection is made between WinCC and WinCC, data exchange occurs using WinCC tags. The WinCC OPC DA client uses an OPC connection to read the WinCC tag "OPC_Server_Tag" on the WinCC OPC DA server. To simplify the process, the OPC Item Manager is used.
Requirements
Two computers with WinCC projects. Both computers must be accessible via their IP addresses.
Configuration Steps
The following configurations are required in the WinCC project of the WinCC OPC DA client:
72
See also
Configuring Access with the OPC Item Manager (Page73) Configuring the OPC Channel on the WinCC OPC DA Client (Page73) Configuring Access with the OPC Item Manager (Page88)
4.4.2.2
Introduction
To use OPC for data exchange, the OPC channel must be set up in the WinCC project.
Procedure
1. Click the "Tag Management" icon in the navigation window of the WinCC Explorer on the WinCC OPC DA client. 2. Select "Add New Driver" from the "Tag Management" shortcut menu. The "Add New Driver" dialog is opened. 3. Select the "OPC.chn" driver and click the "Open" button. The channel is created and the communication driver is displayed in the tag management.
See also
Configuring Access with the OPC Item Manager (Page73)
4.4.2.3
Introduction
This section explains how to use the OPC Item Manager to configure access to the WinCC tag "OPC_Server_Tag" of the WinCC OPC DA server.
Requirements
Configure an internal tag named "OPC_Server_Tag" of the data type "signed 16-bit value" in the WinCC project of the WinCC OPC DA server. Enable the WinCC project of the WinCC OPC DA server. Add the OPC channel to the WinCC project of the WinCC OPC DA client.
73
Procedure
1. In the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA client, select "System Parameters". The OPC Item Manager is opened.
2. Choose the name of the computer to be used as the WinCC OPC DA server from the selection dialog. Select "OPCServer.WinCC" from the list displayed. Click the "Browse Server" button. The "Filter Criteria" dialog is opened. 3. Click the "Next->" button in the "Filter Criteria" dialog. The "OPCServer.WinCC ..." dialog is displayed.
74
5. If a connection to the WinCC OPC DA server already exists, continue with step 6. If no connection has been configured, a corresponding message is displayed. Click "Yes". The "New Connection" dialog is displayed.
75
7. Click the "<- Back" button in the "OPCServer.WinCC ..." dialog. Click "Exit" to close the OPC Item Manager.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page73)
76
4.4.3
Introduction
OPC servers that do not support browser functionality require access to be configured manually. Configuration of WinCC tags on the WinCC OPC DA client is shown using an example of a WinCC-WinCC OPC connection.
Note To access a WinCC tag without the OPC Item Manager, the ItemID must be set manually. When addressing WinCC tags, the symbolic computer name (server prefix) can also be specified. The ItemID has the following syntax: Server prefix::WinCC tag. If the WinCC tag of the local WinCC project is addressed, the server prefix is omitted. The following configurations are required in the WinCC project of the WinCC OPC DA client: 1. Selection of the "OPC_Var1" WinCC tag to be accessed. 2. Creation of a connection. 3. Configuration of the "Client_OPC_Var1_xyz" WinCC tag that accesses the WinCC tag of the WinCC OPC DA server.
Requirements
Two computers with WinCC projects. Both computers must be accessible via their IP addresses. Configure an internal tag named "OPC_Var1" with data type "signed 16-bit value" in the WinCC project of the WinCC OPC DA server. Enable the WinCC project of the WinCC OPC DA server. Add the OPC channel to the WinCC project of the WinCC OPC DA client.
77
Procedure
1. Select "New Connection" from the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC DA client. The "Connection Properties" dialog is opened. Enter a name for the connection in the corresponding field. 2. Click the "Properties" button. A dialog with the connection name in its title is displayed.
For connections to WinCC V 6, the entry in the "OPC Server Name" field must be "OPCServer.WinCC". 3. Enter the name of the computer to be used as the OPC DA server in the "Start Server on this Computer" field. Click "Test Server", to check the connection to the WinCC OPC DA server. 4. Select "New Tag" from the shortcut menu of the connection. The "Tag Properties" dialog opens. 5. Enter the name "Client_OPC_Var1_xyz" in the "Tag" field. Set the data type to "signed 16bit". 6. In the "Tag Properties" dialog, click the "Select" button. The "Address Properties" dialog opens.
Enter the name of the WinCC tag of the WinCC OPC DA server in the "Item Name" field. Leave the entry in the "Access Path" field unchanged. Set the data type to "signed 16-bit". 7. Click "OK" to close all open dialogs.
78
4.4.4
4.4.4.1
Introduction
Structures are used to organize tags and tag types that form a logical unit. This allows them to be referenced using a single logical name. Structures are not supported by the OPC DA specification. As a result, structures cannot be set up using the OPC Item Manager, only the individual tags in a structure. If you wish to use structures on the WinCC OPC DA client nonetheless, the data structure must be configured subsequently in the WinCC project of the WinCC OPC DA client in order to supply it with the relevant item names of the server tags.
Requirements
Two computers with WinCC projects. Both computers must be accessible via their IP addresses.
Configuration steps
The following configuration steps are necessary to use structures on the WinCC OPC DA client:
See also
How to Configure Structures on the WinCC OPC DA Client (Page80) Configuring Structures and Structure Tags on the WinCC OPC DA Server (Page79)
4.4.4.2
Introduction
In this section a structure and a structure tag is created in the WinCC project of the OPC DA server. This configuration is required for the OPC DA client to access the structure tag.
79
Procedure
1. Select "New Structure Type" from the structure types shortcut menu on the WinCC OPC DA server. The "Structure Properties" dialog is displayed. 2. Click "New Element" and create the internal tag "OPCServer_Struct" of data type SHORT.
Click "OK" to close the dialog. 3. In the navigation window, click the plus sign in front of the icon for tag management. Select "New Tag" from the internal tag shortcut menu. Create a WinCC tag named "Var" with this structure type. 4. The data frame of the WinCC Explorer shows the single tag "Var" and the structure tag "Var.OPCServer_Struct". 5. Activate the WinCC project.
See also
How to Configure Structures on the WinCC OPC DA Client (Page80)
4.4.4.3
Introduction
Structures are not supported by the OPC DA specification. As a result, structures cannot be set up using the OPC Item Manager. In this section, the structure already present in the WinCC project of the WinCC OPC DA server is configured for the WinCC project of the WinCC OPC DA client. A WinCC tag that accesses the existing structure tag on the WinCC OPC DA server is configured on the WinCC OPC DA client.
MDM - WinCC: Communication System Manual, 11/2008,
80
Requirements
Create a structure and a structure tag named "Var.OPCServer_Struct" in the WinCC project of the WinCC OPC DA server. Enable the WinCC project of the WinCC OPC DA server. Add the OPC channel to the WinCC project of the WinCC OPC DA client.
Procedure
1. Select "New Structure Type" from the structure types shortcut menu on the WinCC OPC DA client. The "Structure Properties" dialog is displayed. 2. Click the "New Element" button and set up an external tag. Name the element exactly as it is in the WinCC project of the OPC-DA server. Click "OK" to close the "Structure Properties" dialog. 3. If a connection to the OPC DA server already exists, continue with step 6. If no connection has been created, select "New Connection" from the shortcut menu of the channel unit "OPC". The "Connection Properties" dialog is opened. Enter a name for the connection in the corresponding field. 4. Click the "Properties" button. A dialog with the connection name in its title is displayed. For connections to WinCC V 6, the entry in the field "OPC Server Name" must be "OPCServer.WinCC". 5. Enter the name of the computer to be used as the WinCC OPC DA server in the field "Start Server on this Computer". Click "Test Server", to check the connection to the WinCC OPC DA server. Click "OK" to close the dialog. 6. Select "New Tag" from the shortcut menu of the connection. The "Tag Properties" dialog opens. Select the newly created structure type as the data type. 7. In the "Tag Properties" dialog, click the "Select" button. The "Address Properties" dialog appears. Enter the name of the structure tag of the WinCC OPC DA server ("Var.OPCServer_Struct") in the field "Item Name" . Leave the entry in the "Access Path" field unchanged. 8. Click "OK" to close all open dialogs.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page73) Configuring Structures and Structure Tags on the WinCC OPC DA Server (Page79)
81
4.4.5
4.4.5.1
Introduction
The procedure for communication testing is independent of how WinCC is used.
See also
WinCC is used as the OPC DA client, and the connection is not established. (Page86) WinCC is used as the OPC DA client, and the connection is established. (Page85) WinCC is used as the OPC DA server, and the connection is not established. (Page84) WinCC is used as the OPC DA server, and the connection is established successfully. (Page83) Possibilities for Diagnosing the "OPC" Channel (Page333)
82
4.4.5.2
WinCC is used as the OPC DA server, and the connection is established successfully.
83
WinCC is used as the OPC DA server, and the connection is not established.
84
4.4.5.3
85
WinCC is used as the OPC DA client, and the connection is not established.
86
4.5
4.5.1
Introduction
The OPC channel does not require a separate communication module. The OPC communication driver can be implemented as the OPC XML client. In order to use WinCC as the WinCC OPC XML client, the OPC channel must be added to the WinCC project. The WinCC OPC XML client provides the OPC XML server with the OPC process data as a web page. Access can be made to the web page via the Internet / Intranet using HTTP. When a WinCC OPC XML client requests data, the web service is automatically started by the web server. In order that the WinCC OPC XML client can access several OPC XML servers, a connection must be made to each OPC XML server in the WinCC project. If a communication is established to a WinCC OPC XML server, the values of the WinCC tags are exchanged. A connection is set up in the WinCC project of the WinCC OPC XML client via which access to the WinCC OPC XML server can be processed. The connection monitoring is not activated in the case of a WinCC OPC XML client.
See also
Overview of the Supported WinCC Data Types (Page70) OPC Item Manager (Page66)
4.5.2
4.5.2.1
Introduction
When an OPC connection is made between WinCC and WinCC, the data is exchanged by means of WinCC tags. The WinCC OPC DA client uses an OPC connection to read the WinCC
87
Requirements
Two computers with WinCC projects. It must be possible to access both computers using HTTP.
Configuration Steps
The following configurations are required in the WinCC project of the WinCC OPC XML client:
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page73) Configuring Access with the OPC Item Manager (Page88)
4.5.2.2
Introduction
This section explains how to use the OPC Item Manager to configure access to the "OPC_XMLServer_Tag" WinCC tag of the WinCC OPC XML server.
Requirement
Configure an internal tag named "OPC_XMLServer_Tag" of data type "signed 16-bit value" in the WinCC project of the WinCC OPC XML server. Activate the WinCC project of the WinCC OPC XML server. The OPC channel must be added to the WinCC project of the WinCC OPC XML client.
88
Procedure
1. Select "System Parameters" from the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC XML client. The "OPC Item Manager" is opened.
2. Click the "OPC Web Server" button. The "Add OPC Web Server" dialog is opened. Enter the URL of the WinCC OPC XML server in the "URL" field in following format: <http://<xxx>/ WinCC-OPC-XML/DAWebservice.asmx>. Replace xxx with either the IP address or the computer name on which the OPC XML web service is running.
89
4. Click the "Next->" button in the "Filter Criteria" dialog. The "http:// ..." dialog is opened.
5. In the "http:// ..." dialog, select the WinCC tag "XMLOPC_Server_Tag". Click the "Add Items" button. 6. If a connection to the WinCC OPC XML server already exists, continue with step 7. If no connection has been configured, a corresponding message is displayed. Click "Yes". The "New Connection" dialog is opened.
90
8. In the "http:// ..." dialog, click "<- Back". Click "Exit" to close the OPC Item Manager.
See also
Configuring the OPC Channel on the WinCC OPC DA Client (Page73)
4.5.3
Introduction
OPC servers that do not support browser functionality require access to be configured manually. Configuration of WinCC tags on the WinCC OPC XML client is shown using an example of a WinCC - WinCC OPC connection. Note To access a WinCC tag without the OPC Item Manager, the ItemID must be set manually. When addressing WinCC tags, the symbolic computer name (server prefix) can also be specified. The ItemID has the following syntax: server_prefix::<@>WinCC tag. If the WinCC tag of the local WinCC project is addressed, the ItemID has the following syntax: <@>WinCC tag.
91
Configuration Steps
The following configurations are required in the WinCC project of the WinCC OPC XML client: 1. Creation of a connection. 2. Configuring the "XMLClient_OPC_Var1_xyz" WinCC tag on the WinCC OPC XML client which accesses the WinCC tag of the WinCC OPC DA server.
Requirements
Two computers with WinCC projects. It must be possible to access the computers using HTTP. Configure an internal tag named "XMLOPC_Server_Tag" with data type "signed 16-bit value" in the WinCC project of the WinCC OPC XML server. Enable the WinCC project of the WinCC OPC XML server. The OPC channel must be added to the WinCC project of the WinCC OPC XML client. Note When configuring external tags in the OPC channel, the preset values from WinCC in the type conversion field of the "Tag Properties" dialog must not be altered. The data type of the tag in the process is set in the data type field of the "Address Properties" dialog.
Procedure
1. Select "New Connection" from the shortcut menu of the channel unit "OPC Groups(OPCHN Unit#1)" on the WinCC OPC XML client. The "Connection Properties" dialog is opened. Enter a name for the connection in the corresponding field. 2. Click the "Properties" button. A dialog with the connection name in its title is displayed.
Select the "XML DA Server" check box. In the case of a connection to the WinCC OPC XML server, the "OPC Server Name" field must contain the URL of the WinCC OPC XML server. The URL has the following syntax: "http://<xxx>/WinCC-OPC-XML/ DAWebservice.asmx". Replace xxx with either the IP address or the computer name on which the OPC-XML web service is running.
92
Enter the symbol "<@>" and the name of the WinCC tag of the WinCC OPC XML server in the "Item Name" field. Leave the entry in the "Access Path" field unchanged. Set the data type to "signed 16-bit". 6. Click "OK" to close all open dialogs.
93
PROFIBUS FMS
5 5.1 Resources WinCC channel "PROFIBUS FMS"
Introduction
The "PROFIBUS FMS" communication driver makes the connection between a WinCC station and automation systems such as S5 or S7. This chapter describes how to configure data transfer with the "PROFIBUS FMS" channel how to configure a connection and a tag.
Channel Unit
The communication driver has a channel unit. This provides the following capability: Channel unit PROFIBUS FMS for SIMATIC NET PROFIBUS (communication module DP 5613). Note The configuration of the logical connection can take place in configuration mode as well as in runtime. Both methods are explained. Only WinCC can request data from the connected AS with the "PROFIBUS FMS" channel. Sending from the AS is not possible.
5.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8-bit value Signed 8-bit value Unsigned 16-bit value
95
5.3
5.3.1
5.3.1.1
Introduction
The automation system must be connected to PROFIBUS with a suitable communication processor. The PROFIBUS FMS protocol must be supported by the hardware / software. In automation systems S5-115U, S5-135U and S5-155U, communication processor CP 5431 FMS is used for instance. in WinCC system, the communication module CP 5613 and software SIMATIC NET must be installed. When configuring the connection, the following situations are handled differently: Configuring in configuration mode Configuring in Runtime
96
5.3.1.2 Procedure
1. Select the connection and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click the "Properties" button. A dialog with the connection name in its title is displayed.
3. Enter the name or the index of the logical connection in the "Name/Index" field. The Name / Index of the logical connection must be configured in the local communication relationship list (CRL). 4. If access authorization has been assigned for the logical connection, please select the "With Authorization" field.
97
6. Now you can enter the password for the logical connection. Close the dialog by clicking on the "OK" button. 7. Define the required parameter in the "Tag addressing" area. Close the dialog by clicking on the "OK" button. Note To configure the Name or Index of the connection, you must access the communication relationship list, which can be created with SIMATIC NCM PC or STEP 7.
98
5.3.1.3 Procedure
1. Select the connection and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click the "Properties" button. A dialog with the connection name in its title is displayed.
3. The configured connections from the communication relationship list (CRL) are shown in the "List of connections (communication relationship list)" area. Select whether the connection should be used with the respective index or name in the "Name/Index" field in the "Connection" area. 4. If access authorization has been assigned for the logical connection, please select the "With Authorization" field.
99
6. Now you can enter the password for the logical connection. Close the dialog by clicking on the "OK" button. 7. Define the required parameter in the "Tag addressing" area. Close the dialog by clicking on the "OK" button.
5.3.2
5.3.2.1
Introduction
The tag address is entered according to the address structure of the PROFIBUS FMS protocol. When configuring addresses, a distinction is made between the following situations: in configuration mode in runtime
5.3.2.2 Procedure
1. Select the tag and open the "Edit tag" dialog window with menu point "Properties" in the context menu. 2. Select the desired data type for the tags (e.g. Signed 16 bit value) from the "General" tab.
100
4. Enter the name or index of the tag from the remote automation system in the "Name/Index" field. 5. If the tag is a structured tag (structure or array), you must also enter - in the field "Subindex" - which part of the tag (structure component or array element) should be read or written. Note The name or index and the Subindex must match the name or index in the Object List for the logical connection of the external automation system. Otherwise it will not be possible to access the tag in runtime.
5.3.2.3 Procedure
1. Select the tag and open the "Edit tag" dialog window with menu point "Properties" in the context menu. 2. Select the desired data type for the tags (e.g. Signed 16 bit value) from the "General" tab.
MDM - WinCC: Communication System Manual, 11/2008,
101
4. The tags that can be accessed through the selected connection are listed in the "List of Remote Tags" area. Select whether the tag should be chosen using its index or its name in the "Remote tag" area. 5. In the "List of the Remote Tags", double click on the desired tag to select it. 6. The selected tag will be displayed in the "Name/Index" field in the "Remote Tag" area. 7. If the tag is a structured tag (structure or array), you must also enter - in the field "Subindex" - which part of the tag (structure component or array element) should be read or written.
102
S5 Ethernet Layer 4
6 6.1 Resources WinCC Channel "SIMATIC S5 Ethernet Layer 4"
Introduction
The communication driver is used e.g. to connect automation systems SIMATIC S5-115U/H, SIMATIC S5-135U and SIMATIC S5-155U/H with the ISO transport protocol or the TCP/IP protocol. Depending on the communication protocol that is used, the following communication partners will be implemented.
Communication protocol ISO transport protocol TCP/IP (conforming with RFC1006) WinCC side CP1612 (3Com-compatible) CP1613 CP1612 (3Com-compatible) CP1613 SIMATIC S5 side CP1430 TF CP1430 TCP
When using this channel, no local database is required. This chapter describes how to configure the data transfer with the "SIMATIC S5 Ethernet Layer 4" channel. how to configure a connection and a tag. how to change the system parameters.
Channel units
The communication driver has two channel units "CP1413-x" which can operate a maximum of two CP 1612 or CP1613. The functionality of the channel unit is identical. They differ only in the logical device names of the two CPs. Communication can be established on the TCP/IP protocol with a CP1612 or CP1613 with the third channel unit "TCP/IP". The logical device name can be changed in the system parameters of a channel unit. Here, it is also possible to set the parameters for the protocol used. The following application capabilities exist:
103
6.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8-bit value Signed 8-bit value Unsigned 16-bit value Signed 16-bit value Unsigned 32-bit value Signed 32-bit value Floating-point number 32-bit IEEE 754 Text tag, 8-bit character set Raw data type
6.3
6.3.1
Introduction
The following steps are required for configuring the channel "SIMATIC S5 Ethernet Layer 4". 1. Configuring the connection 2. Configuring the tags 3. System parameter configuration
104
6.3.2
Introduction
The connection parameters are almost identical for all protocols used. In the following example, communication is described using the ISO transport protocol with a channel unit "CP1413-x". When implementing the TCP/IP protocol, the IP address of the AS is entered instead of the Ethernet address. The IP address consists of four numerical values, separated by dots. The numerical values must be within the range of 0-255. For a logical connection, WinCC establishes one connection in the transport layer for reading ("READ function" area) and one for writing ("WRITE function" area). The address parameters for both functions are defined in the dialog. Only if both connections are established is the logical connection also indicated as being "established".
Note It is not possible to write binary or byte variables in the data area of the AS, if the data from the AS is sent active, i.e. the READ function is set to "FETCH Passive" in the connections parameters. A FETCH Passive connections is only assigned the "OK" status if at least one telegram has been sent from AS to WinCC.
105
Procedure
1. Select the connection and open dialog window "Properties" with the context menu. 2. Actuate the "Properties" button on the "General" tab and open the "Connection Parameters" dialog.
3. Enter the station address of the SIMATIC S5 on the industrial Ethernet bus in the field "Ethernet Address AG". When the TCP/IP protocol is being implemented, the IP address is entered here in the IP address AG" field. 4. Define the parameters for the READ function in the WinCC system. These are independent of the request used in the SIMATIC S5. 5. Then, enter the value in the allocated field "Own TSAP" that was configured in the "Remote parameter" as "TSAP" while configuring the CP1430 TF. 6. Now, enter the value in the allocated field "Remote TSAP" that was configured in the "Local parameter" as "TSAP" while configuring the CP1430 TF. 7. Define the parameters "Own TSAP" and "Remote TSAP" for the WRITE function accordingly. Note In the entries for "TSAP", you must not use any spaces.
106
6.3.3
6.3.3.1
Introduction
For a connection between WinCC and the AS via channel "SIMATIC S5 Ethernet Layer 4", tags of different data types can be created in WinCC. The following describes how to configure a tag of these data types. Addresses of tags Configuring a tag with bit by bit access Configuring a tag with byte by byte access Configuring a tag with word by word access Configuring a raw data tag
6.3.3.2
Addresses of tags
Introduction
The tag address is entered according to the address structure of the SIMATIC S5. Depending on the tag type, the access to memory areas in the AS is bit by bit, byte by byte or word by word. For this purpose, the addressed memory area is read from the AS for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the AS's memory. Note Changes that have been made by the AS in a read data area are overwritten when writing back into the data area. It is not possible to write binary or byte variables in the data area of the AS, if the data from the AS is sent active, i.e. the READ function is set to "FETCH Passive" in the connections parameters. Configuring the address of a tag is done independent of the tag type: With tags of type "binary" or 8 bit value", first the "Bits-/Bytes-tag" dialog is opened, in which the bitwise or byte-wise access to the memory area of the AS is defined. Afterwards, the address of the tag in the AS memory is defined in the "Address properties" dialog. For word-oriented tags, the address of the tag in the AS memory is defined in the "Address properties" dialog. The dialog "Bits-/Bytes-tag" is not opened, since the access to the AS memory is word by word.
107
6.3.3.3 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "binary tag" on the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
4. Use the checkbox to define whether access should be enabled for reading and writing certain bits in the memory area. 5. Select the addressing methods for the AS memory in the selection field e.g. "Word" or "Byte". 6. Select the number of bits to be changed in the selection field. 7. Use the "Selection" button to open the "Address properties" dialog for defining the tag address in AS.
108
6.3.3.4 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "Unsigned 8 bit value" or "Signed 8 bit value" in the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
4. Use the checkbox to define whether access should be enabled for reading and writing certain bytes in the memory area. 5. Only "Word" is shown as the AS memory addressing type in the selection field.
109
6.3.3.5
Introduction
The addresses of tags in AS are defined with the dialog that is described here. With tags of type "binary" or 8 bit value", first the "Bits-/Bytes-tag" dialog is opened, in which the bitwise or byte-wise access to the memory area of the AS is defined. For word-oriented tags, the "Bit-/Byte-tag" dialog is not opened because the address of the tags and therefore the access to AS memory is by word.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select the desired data type for the tags (e.g. Signed 16 bit value) from the "General" tab.
110
4. Choose whether the tag is located in a data block, the flag area, an input area or an output area in the "Data Area" field of the "Address" tab. 5. If the tag is in a data block, the "DB No." field is also shown. Here, you enter the number of the data block. 6. The type of addressing is entered in the "Addressing" field. Normally, you can use the default definition. 7. Enter the address in the respective field (e.g. "DW "). Note For tags of type "binary" or "8 bit value", displaying the fields of this dialog depends on the selection made for "Access to bits/bytes" in the "Bits-/Bytes-tag" dialog. If the tag of a word-oriented data area is to be written, the start address must be in the left byte and the length of the tags must be an even number.
111
6.3.3.6
Introduction
The following is a description of how the address of a raw data tag is defined. Note If the tag of a word-oriented data area is to be written, the start address must be in the left byte and the length of the tags must be an even number.
Procedure
1. Select the tag and open dialog window "`Tag properties" with the "Properties" context menu. 2. Select the entry "Raw data type" on the "General" tab. 3. Click the "Select" button to open the "Address properties" dialog.
4. Choose whether the tag is located in a data block, a flag, an input area or an output area in the "Data Area" field. 5. If the tag is in a data block, the "DB No." field is also shown. Here, you enter the number of the data block. 6. The type of addressing is entered in the "Addressing" field. Normally, the default definition can be used.
112
6.3.4
6.3.4.1
System parameters
System parameters of the channel unit
Introduction
If you require a configuration that deviates from the standard WinCC settings, you can make all the required changes using the "System Parameter" dialog of the channel unit. The system parameters are almost identical for all protocols used. When implementing the TCP/IP protocol, only the device name given during the installation is different. The following individual points can be changed: the device name the transport parameter Note The system parameters apply for all CPs in the AS.
Device Name
Communication between WinCC and the automation system takes place via logical device names. These names are assigned during the installation of the communication module and are unit-specific. The device name represents the logical device name. The logical device name is given the name "/CP_H1_1:/ SCP" with the ISO transport protocol and "/TCP_IP:/SCP" with the TCP/IP protocol as a default definition. Note When using the TCP/IP protocol, you must check whether the device name in WinCC matches the "Access point of the application" in the "Set PG/PC interface" dialog. The device name must also be changed in "Set PG/PC interface". When working under Windows 2000, setting the access point is done in the control panel, under Windows XP in the Windows start menu under "SIMATIC / SIMATIC NET / Settings / Set PC station".
113
Transport Parameter
Specific settings for the channel unit are made in the transport parameters, e.g. PDU size, setup attempts, etc.
6.3.4.2
Introduction
Parameters of the channel unit are set with the system parameters, e.g. the logical device name or the transport parameters. The system parameters are almost identical for all protocols used. In the following example, communication is described using the ISO transport protocol with a channel unit "CP1413-x". When implementing the TCP/IP protocol, only the device name given during the installation is different.
114
Procedure
1. Select the channel unit and open dialog window "System parameters" with the context menu. 2. Select the "Device Name" Tab.
3. Now, you can select the device name shown in bold print with the mouse and change it with a mouse click in the name field for the device name. Note The device name is defined during the installation of the hardware driver. Only if you have defined another name there, which is not recommended, will you have to change the device name here as well.
115
6.3.4.3 Procedure
1. Select the channel unit and open dialog window "System parameters" with the context menu. 2. Select the "Transport parameter" tab.
3. Set the value for "PDU size" to the value that was configured on the communication module CP 1430. 4. Define how often a connection establishment should be attempted in the "Setup attempt" filed. 5. Select "Infinite" in the "Duration of Send Repetitions" area. 6. Enter value e.g. 30 in the "Acknowledgement time" field so that you are informed of the tag status after 30 seconds at the most, if the communication partner has not responded within this time (e.g. AS in "Stop" status).
116
6.4
6.4.1
Appendix
Appendix
Introduction
Added information on the channel "SIMATIC S5 Ethernet Layer 4" is provided in the appendix.
6.4.2
6.4.2.1
Introduction
The following tables contain the most important error codes and constants. The information is intended for "insiders". Therefore, we have not gone into more detail on the meanings of the codes and constants. Error codes during connection disturbances iNA960 messages SCI messages
6.4.2.2
Introduction
The most important error codes are listed in this section. If an error with an error code that is not in the table occurs, please call the WinCC hotline.
Fehler_0002-INVALID_RQ
Faulty request block.
Fehler_0004-NO_RESOURCES
No resources free in CP.
Fehler_0006-UNKNOWN_REFERENCE
Incorrect OPEN reference defined.
117
Fehler_0008-BUFFER_TOO_SHORT
User buffer too short.
Fehler_0010-BUFFER_TOO_LONG
User buffer too long.
Fehler_0012-ILLEGAL_REQ
Incorrect "negot_options" defined.
Fehler_0014-REM_ABORT
Connection aborted by remote station.
Fehler_0016-LOC_TIMEOUT
Timeout.
Fehler_0018-UNKNOWN_CONN_CLASS
Unknown connection class.
Fehler_0020-DUP_REQ
Connection already established.
Fehler_0022-CONN_REJECT
Connection request rejected by remote.
Fehler_0024-NEGOT_FAILED
Connection abort faulty "negot-option".
Fehler_0026-ILLEGAL_ADDRESS
Faulty transport address.
Fehler_0028-NETWORK_ERROR
Bus or CP disrupted.
Fehler_0030-PROTOCOL_ERR
Protocol error.
118
Fehler_0032-ILLEGAL_RB_LENGTH
Incorrect request block length.
Fehler_0784-E_NO_HW
No communication hardware found. Communication module defective. Communication module not installed correctly. Wrong port address defined.
Fehler_0786-E_CNF
Driver configured incorrectly or invalid parameter in the registry.
Fehler_0787-E_BAUDRATE
Incorrect baudrate or incorrect interrupt vector defined.
Fehler_0788-E_HSA
Incorrect HSA (Highest Station Address) defined.
Fehler_0789-E_TS
The defined local participant number (TS_ADR) is already assigned.
Fehler_0791-E_INT_NOT_PROV
The defined interrupt vector (IRQ) is not available on the communication module.
Fehler_0792-E_INT_BUSY
The defined interrupt vector (IRQ) is already occupied on the communication module.
Fehler_0800-E_NO_FILE
The selected communication driver cannot be loaded; the file was not found. Communication driver not installed correctly.
Fehler_0897-E_LOGDEV
The logical device is not defined in the registry. Communication driver not installed correctly. Entry damaged or deleted in the registry.
119
Fehler_0898-E_L2DRIVER
The entry "L2DRIVER" is missing in the registry. Module error or module installed incorrectly.
Fehler_0900-E_L4DRIVER
The entry "L4DRIVER" is missing in the registry. Module error or module installed incorrectly.
Fehler_30000-EC_WATCHDOG
Watchdog error.
Fehler_30001-EC_PDUERROR
PDU not expected.
Fehler_30005-EC_ONLERROR
Fault loading the S7-Online-DLL.
6.4.2.3
iNA960 messages
120
6.4.2.4
SCI messages
See description in the "SINEC Communication Interface SCI" manual (A/5-15).
SCI messages
SCP_OK SCP_INCONS SCP_RESOURCE SCP_CONFIG SCP_NOCONFIG SCP_PARAM SCP_DEVOPEN SCP_BOARD SCP_SOFTWARE SCP_MEM SCP_MODE SCP_LOADER SCP_SIGNAL SCP_NOMESS SCP_USERMEM SCP_WINDOW SCP_TIMEOUT SCP_ATTACH SCP_ILLEGAL_REQUEST SCP_ERECOVERF SCP_ECLOSED EUSERMAX SCP_EINTR SCP_BOARD_OPEN SCP_NO_WIN_SERV EPROTECT 0 201 202 203 204 206 207 208 209 210 211 212 213 215 216 217 219 220 221 223 224 225 226 231 233 234 0x00 0xC9 0xCA 0xCB 0xCC 0xCE 0xCF 0xD0 0xD1 0xD2 0xD3 0xD4 0xD5 0xD7 0xD8 0xD9 0xDB 0xDC 0xDD 0xDF 0xE0 0xE1 0xE2 0xE7 0xE9 0xEA No error Minor device number is not 00 DPRAM request invalid Configuration error (NUM_PROCS) SCP driver not configured Incorrect mode Open already performed Board not inserted/recognized IRQ error or software not found Low memory in DPRAM Download process not yet ended No response from loader Process started asynchronously No message arrived for the process length_of_buffer too small Too many SEND calls Timeout on SCP Reset not executed/Channel still active Illegal request Buffer not retrieved with scp_receive All buffers assigned for the connection License not found
121
SCI messages
SCP_DB_FILE_DOES_NOT_EXIST SCP_DB_FILE_CLOSE_NOT_OK SCP_SEND_NOT_SUCCESSFUL SCP_RECEIVE_NOT_SUCCESSFUL SCP_NO_DEVICE_AVAILABLE SCP_ILLEGAL_SUBSYSTEM SCP_ILLEGAL_OPCODE SCP_BUFFER_TOO_SHORT SCP_BUFFER_1_TOO_SHORT SCP_ILLEGAL_PROTOCOL_SEQUENCE SCP_ILLEGAL_PDU_ARRIVED SCP_REQUEST_ERROR SCP_NO_LICENSE 240 241 242 243 244 245 246 247 248 249 250 251 252 0xF0 0xF1 0xF2 0xF3 0xF4 0xF5 0xF6 0xF7 0xF8 0xF9 0xFA 0xFB 0xFC
122
123
S5 PROFIBUS FDL
7 7.1 Resources WinCC channel "SIMATIC S5 Profibus FDL"
Introduction
The channel "SIMATIC S5 Profibus FDL" is used for communication between WinCC Station and a SIMATIC S5 automation system. The PROFIBUS (Process Field Bus) network type and protocol FDL (Field Data Link) are used in this case. PROFIBUS is the network for small to medium sized data quantities. A broad spectrum of automation tasks can be completed with a maximum of 127 possible participants.
Reading/writing tags via PROFIBUS, using the FDL protocol, is done using request and response telegrams. The request telegram is sent to the automation device from WinCC. The AS answers with the response telegram. An FDL connection is specified with the local and remote connection end point (Service Access Point). This chapter describes how to configure the data transfer with the "SIMATIC S5 Profibus FDL" channel. how to create a sample project
125
Active connection
An active connection is also called a Fetch connection. This is a connection, with which an active partner retrieves data with a communication partner. The communication partner that the data is retrieved from is designated as a passive partner.
Passive connection
A passive connection exists if the active AS sends data to the passive WinCC partner asynchronously without a request telegram.
7.2
Introduction
Only certain data types and data ranges are supported for communication from SIMATIC S5 via PROFIBUS FDL.
126
S5 PROFIBUS FDL 7.3 Features of the WinCC channel "SIMATIC S5 Profibus FDL"
WinCC Data type Text tag, 16-bit character set Raw data type SIMATIC S5 data type non-existent in the SIMATIC S5 ARRAY OF BYTE
7.3
Introduction
The capabilities of communication, from WinCC via the communication driver for PROFIBUS, are listed in the following section. All supported data types and the respective capabilities for format adaptation are also listed. Note Features for writing tags: When configuring in WinCC, make sure that every tag is transferred individually when writing more than one tag into data areas of the automation system. This behavior is especially important when writing more than one tag to a script with function "SetTagMultiWait". Since this function is only executed at the end of a transfer of all the tags sent to it, noticeable waiting times can occur with a greater number of tags. Check for whether the utilization of the "Wait" function is required for a larger amount of tags. In this case, the use of a raw data tag may also be a good idea, especially if the data is sequential in the AS data area.
127
S5 PROFIBUS FDL 7.3 Features of the WinCC channel "SIMATIC S5 Profibus FDL"
Type conversion
A format adaptation is then required if a certain value range or a conversion e.g. of decimal to BCD ("Unsigned 8 bit value" converted to "ByteToBCDWord") if necessary. No format adaptation is performed as standard procedure. The following table lists the supported WinCC data types and the respective format adaptation capabilities.
WinCC Data type Binary tag Signed 8-bit value Unsigned 8-bit value Signed 16-bit value Unsigned 16-bit value Signed 32-bit value Unsigned 32-bit value Floating-point number 32-bit IEEE 754 Floating-point number 64-bit IEEE 754 Text tag, 8-bit character set Text tag, 16-bit character set Raw data type Type conversion No non-existent in the S5 Yes Yes Yes Yes Yes Yes non-existent in the S5 No non-existent in the S5 No
WinCC side
The communication driver SIMATIC S5 Profibus FDL supports the communication with the following communication processors:
Communications processor CP5613 CP5614 Bus type PCI PCI
AS side
Automation devices can generally be connected to the PROFIBUS network in two different ways. The connection can be done via the integrated interface on the central module or with special communication modules.
System S5-90U, S5-95U, S5-100U S5-115U, S5-135U, S5-155U Modules CPU95U CP5431 FMS/DP
128
7.4
7.4.1
Introduction
The steps in configuring the channel "SIMATIC S5 Profibus FDL" are described in this and the following chapters. This section shows how the channel "SIMATIC S5 Profibus FDL" is configured.
Procedure
1. Select the entry "Add New Driver" in the shortcut menu of Tag Management. The "Add New Driver" dialog is opened.
2. Select the "SIMATIC S5 Profibus FDL.CHN" driver and click the "Open" button. The channel is created and the communication driver is displayed in the tag management.
129
7.4.2
Introduction
The communication driver "SIMATIC S5 Profibus FDL" only contains the channel unit "FDL (CP5412/A2-1)". The communication between the WinCC and the SIMATIC S5 automation device occurs via the channel unit "FDL (CP5412/A2-1)". A maximum of 24 connections can be created within a channel unit. Special connection parameters are to be defined for every configured connection. Every configured tag must be defined with tag parameters. Note The name of the channel unit "FDL (CP5412/A2-1)" is bound to the communication driver, "SIMATIC S5 Profibus FDL.CHN", and is independent of the communication processor used. As communication processors, e.g. CP5613 and CP5614 can be used.
Tag parameter
The following tag parameters must be defined for every configured tag: Data area (e.g DB) Data block number Addressing (e.g. "left byte") Start address (e.g. DL 0, if "left byte" has been selected for addressing)
Connection parameters
The following connection parameters must be defined for every configured connection: The station address of the AS The priority Own and foreign SAPs (Service Access Point) must be defined for the read and write function For the read function, configuring whether it should be an active or a passive connection is also necessary. For an active read connection, the values are requested from the WinCC station. For a passive connection, the transfer of the values to the WinCC station is initiated by the AS.
130
7.4.3
Requirements
The channel "SIMATIC S5 Profibus FDL" must be integrated in the project.
Procedure
1. Open the context menu of channel unit "FDL (CP5412/A2-1)". In this shortcut menu, select "New Connection". 2. In the "Connection Properties" dialog, enter the connection name.
3. In the "Connection Properties" dialog, click the "Properties" button. The "Connection Parameters" dialog opens. You can configure the connection in this dialog.
4. Enter the unique address of the AS in the "PLC Station Address" field.
131
7.4.4
7.4.4.1
Introduction
For a connection between WinCC and the AS via channel "SIMATIC S5 Profibus FDL", data types binary, byte and word can be defined within WinCC. The following describes how to configure a tag of these data types.
7.4.4.2
Introduction
This section shows you how to configure a tag for bit by bit access for the address area in the AS. Note The bit by bit access to a tag is only read access.
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)".
132
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens.
2. Enter the name of the tag in the "Name" field of the "General" tab, e.g. "binVar1". Define data type "Binary tag" in the "Data type" field. 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. Enter the byte address in field "D" and the bit address in field "Bit". The label on the left field depends on the entry in the Data Area field, for e.g. "D" for data area "DB" and binary tag as the data type of the tag. 5. Click "OK" to close all open dialogs. Note You cannot change the "Bit" entry in the Addressing field because it is defined by the Binary tag data type of the WinCC tag.
133
7.4.4.3
Introduction
This section shows you how to configure a tag for byte by byte access for the address area in the AS. Note The byte-wise access to a tag is only read access.
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens.
2. Enter the name of the tag in the "Name" field of the "General" tab, e.g. "byteVar1". Define data type "Unsigned 8 bit value" in the "Data type" field.
134
4. You can choose between "Left byte" and "Right byte" in the "Addressing" field. 5. Enter the byte address in the "DL" field. The label on the field depends on the entry in the "Addressing" field, e.g. "DL" for "Left byte" addressing. 6. Click "OK" to close all open dialogs.
7.4.4.4
Introduction
This section shows you how to configure a tag for word-wise access for the address area in the AS. Note The word by word access to a tag is read and/or write access.
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)".
135
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens.
2. Enter the name of the tag in the "Name" field of the "General" tab, e.g. "wordVar1". Set the data type to "unsigned 16-bit". 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. Enter the word address in the field below. The label on the field depends on the entry in the "Addressing" field, e.g. "DW" for "Word" addressing. 5. Click "OK" to close all open dialogs. Note You cannot change the "Word" entry in the "Addressing" field because it is defined by the "Unsigned 16-bit" data type of the WinCC tag.
136
7.4.5
7.4.5.1
System parameters
System parameters of the channel unit
Introduction
If you require a configuration that deviates from the standard WinCC settings, you can make all the required changes using the "System Parameter" dialog of the channel unit. The following individual points can be changed: the device name the Write/Read monitoring time
Device Name
Communication between WinCC and the automation system takes place via logical device names. These names are assigned during the installation of the communication module and are unit-specific. The device name represents the logical device name. This field is defined with the entry "/CP_L2_1:/SCP" as default.
137
7.4.5.2
Requirements
The channel "SIMATIC S5 Profibus FDL" must be integrated in the project.
Procedure
1. In the channel unit shortcut menu, select "System parameters". The "System Parameters" dialog opens.
2. Enter the name of the access point in the "Device name" field. This name must match the setting that you have made under Windows via "Start" "Settings" "Control panel" "Set PG/PC interface". 3. Close the dialog by clicking the "OK" button. Note The changes only take effect after WinCC is restarted.
138
7.4.5.3
Requirements
The channel "SIMATIC S5 Profibus FDL" must be integrated in the project.
Procedure
1. In the channel unit shortcut menu, select "System parameters". The "System Parameters" dialog opens.
2. Enter the required value in seconds in the "Maximum waiting time" field. You can define a value between 1 and 3600 seconds. This field is assigned with a default value of 30 seconds. 3. Close the dialog by clicking the "OK" button. Note The changes only take effect after WinCC is restarted.
7.5
7.5.1
Special Functions
Special functions of the "SIMATIC S5 Profibus FDL" Channel
Introduction
The "SIMATIC S5 Profibus FDL" channel has some special functions, the functionality of which is described in this chapter.
139
7.5.2
7.5.2.1
Introduction
A tag of the type "raw data type" is a data telegram. Raw data tags are required for transferring user data blocks from/to the AS A raw data tag used by SIMATIC S5 Profibus FDL can be a maximum of 220 bytes in length.
7.5.2.2
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens. 2. Enter the name of the tag in the "Name" field of the "General" tab, e.g. "Var1_raw_byte". Select "Raw Data Type" in the "Data type" field.
140
4. Mark the "Raw Data" check box. 5. Enter the length of the raw data block (in bytes) in the "Length" field. 6. In the "Data area" set the data area of the PLC where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field. 7. Set up the addressing type in the "Addressing" field. The entries "Left byte", "Right byte", "Word" and "Double word" are possible for data type "Raw data type" of the WinCC tag. 8. Enter the value of the start address in the underlying field. The label on the left field depends on the entry in the Data Area and Addressing field, for e.g. "DW" for data area "DB" "Word" for addressing type. 9. Click "OK" to close all open dialogs.
7.5.3
7.5.3.1
Introduction
An FDL connection can be configured so that WinCC runs as an active or passive partner. If WinCC is configured as an active partner, the values are requested by the WinCC station. If WinCC is configured as a passive partner, the transfer of values to the WinCC station is initiated by the AS.
7.5.3.2
Introduction
This section shows you how to configure an active data transfer to the address area in the AS.
141
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)". 3. You must know the SAP address defined by the AS.
142
Procedure
1. Choose the "Properties" option from the context menu of the connection. The "Connection Properties" dialog is opened.
3. Enter the station address of the AS in the "PLC Station Address" field on the "Connection" tab. 4. The following settings must be made in the "READ - Function" area: 5. Activate the option "OS active, WinCC is the active partner". 6. Enter the SAP-ID of the WinCC station in the "Own SAP" field. 7. Enter the SAP-ID of the AS in the "Foreign SAP" field. 8. The following settings must be made in the "WRITE - Function" area: 9. Enter the SAP-ID of the WinCC station in the "Own SAP" field.
143
7.5.3.3
Introduction
This section shows you how to configure a passive data transfer to the address area in the AS. Note If more than one connection is configured, note that an SAP can only be assigned one time.
Requirements
1. The channel "SIMATIC S5 Profibus FDL" must be integrated in the project. 2. A connection must be defined in the channel unit "FDL (CP5412/A2-1)". 3. You must know the SAP address defined by the AS.
144
Procedure
1. Choose the "Properties" option from the context menu of the connection. The "Connection Properties" dialog is opened.
3. Enter the station address of the AS in the "PLC Station Address" field on the "Connection" tab. 4. The following settings must be made in the "READ - Function" area: 5. Activate the option "OS passive, WinCC is the passive partner". 6. Enter the SAP-ID of the WinCC station in the "Own SAP" field. 7. Enter the SAP-ID of the AS in the "Foreign SAP" field. 8. The following settings must be made in the "WRITE - Function" area: 9. Enter the SAP-ID of the WinCC station in the "Own SAP" field.
145
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
10.Enter the SAP-ID of the AS in the "Foreign SAP" field. 11.Click "OK" to close all open dialogs.
7.6
7.6.1
Introduction
In this example, you will configure an I/O Field in the Graphics Designer and assign the necessary values to the data handling blocks in the AS.
7.6.2
Introduction
In this section, you will configure the standard function blocks OB 21 (L2ANLAUF) and OB 1 (L2SNDRCV) in the AS. By default, the data traffic for the SIMATIC S5 connection by means of PROFIBUS FDL is handled by means of the following blocks. Within the example, the following SAP numbers are used:
SAP number for the READ function SAP number for the WRITE function WinCC 12 11 Automation device 6 4
Blocks
Function For the startup OB 20, 21, 22 For cyclic operation OB 1 As internal work DBs for both FBs Block FB-L2ANLAUF (FB 9) FB-L2SNDRCV (FB 10) DB-L2DBVC3 (DB 10) DB-L2DBVC4 (DB 11) DB-L2DBVC5 (DB 12)
146
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
Startup blocks
The communication parameters are defined in the startup blocks, the work DBs are logged in and the communication processor is synchronized. These work steps are executed by calling function block FB9 L2ANLAUF, for example.
Cyclic block
The telegram traffic is handled in the cyclic FB. Received telegrams are entered in the destination data blocks. Should an error occur while this is being done, the telegram is rejected and an error message is issued. Telegrams that have to be sent will be specified by the user in a similar manner to the standard data handling blocks. An acknowledgement is sent when the transfer has been completed.
147
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
Requirements
The data handling blocks SYNCHRON, CONTROL, SEND and RECEIVE must be available on the automation system.
Procedure
1. The startup block (OB 20, 21, 22) is created in STEP5 by choosing the menu option "Editor" "STEP5 Block" "in the program file". The program block is called "L2ANLAUF" in the example. 2. The following parameters must be preassigned: Interface number (SSNR) of the CP (e.g. the CP5431) The PROFIBUS address (RADR) of communication processor CP 5613 on the WinCC computer. This number must be unique in the network. The connection parameters of the request types being used, for example, are the parameters RVC4 (for write) and RVC5 (for read), which specify the SAPs of the WinCC station. These SAPs are created when the connection is being set up in WinCC. The request numbers (ANR4 and ANR5), which are set when the FDL connections are being configured for the communication processor are numbers of the work data blocks, DBX4 (for write) and DBX5 (for read)
3. An OB 1(cyclic operation) is created in the STEP5 software by choosing the menu option "Editor" "STEP5 Block" "in the program file". The program block is called "L2SNDRCV" in the example.
148
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
4. Communication with WinCC is performed by means of communication processor CP5431 and function block FB10 L2SNDRCV. When WinCC sends data and has to request data, only two applicable transfer parameters have to be specified for this purpose. These are the parameters DBX4 (for write) and DBX5 (for read), which specify the numbers of the two work data blocks for the request types being used. These SAPs are created when the connection is being set up in WinCC.
5. Load the STEP5 program into the automation device. This is done in STEP5 by choosing the menu option "Object" "Blocks" "Transfer" "PLC file". Select the option "All blocks" in the "Selection" field to load all previously created blocks onto the automation system.
7.6.3
Introduction
You will configure an I/O Field in this section.
149
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
Requirements
The channel "SIMATIC S5 Profibus FDL" must be integrated in the project.
Procedure
1. Choose the "New Connection" option from the pop-up menu of the channel unit "FDL (CP5412/A2-1)" and set up a connection called "TestFDL". 2. By clicking the "Properties" button you can configure the connection parameters. Enter the station address of the automation system in the " PLC station address" field. You can configure a FDL connection so that WinCC is either the active or the passive peer. If WinCC is configured as an active partner, the values are requested by the WinCC station. If WinCC is configured as a passive partner, the transfer of values to the WinCC station is initiated by the AS. Click "OK" to close all open dialogs 3. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens.
4. Enter tag name "FDLWord1_Test" in the "Name" field. Set the data type to "unsigned 16bit".
150
S5 PROFIBUS FDL 7.6 Example of configuring the "SIMATIC S5 Profibus FDL" channel
5. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PLC where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field. Enter the byte address in the "DW" field.
6. Click "OK" to close all open dialogs. 7. You must integrate the smart object "I/O field" into a picture within Graphics Designer. 8. Connect the "I/O field" to a configured tag. 9. Activate the project by clicking the "Activate Runtime" button in the toolbar or by selecting "Activate Runtime" in the "File" menu. All changes to the configured tag are displayed in the "I/O field" in Runtime.
151
Introduction
The communication driver "SIMATIC S5 Programmers Port AS511" is utilized for the serial connection through a TTY interface to the SIMATIC S5 automation system. This chapter describes how to configure the data transfer with the "SIMATIC S5 Programmers Port AS511" channel. how to configure a connection and a tag.
Channel Unit
The communication driver has one channel unit for controlling a COM port for the serial connection. The following capability is available: Channel unit S5-AS511 for serial communication via a "Siemens-specific" protocol.
8.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8-bit value Signed 8-bit value Unsigned 16-bit value Signed 16-bit value Unsigned 32-bit value Signed 32-bit value Floating-point number 32-bit IEEE 754
153
8.3
8.3.1
Introduction
The following steps are required for configuring the channel "SIMATIC S5 Programmers Port AS511". Configuring the connection Configuring the tags
8.3.2
Introduction
The process connection using a serial connection is possible with the SIMATIC S5 automation system. The AS 511 communication processor is used in the automation system. No additional communication module is required in WinCC. Communication is set up via either the TTY port on a PG 760 or a COM Port that is part of the system's standard equipment. In the later case, an additional port converter is required V.24/V.28 <---> TTY. This serial link supports transmission rates of up to 19200 baud. The following procedure can be used to assign one of the PC's serial ports to the AS511-NT drivers. Note During communication between WinCC and a S5 automation system via the "AS511" channel, data blocks may not be transferred, created or deleted in the AS. The memory in the S5 may also not be compressed. This last restriction is the result of the absolute addressing of memory in the S5. If changes are necessary, the link to WinCC must be disconnected.
154
Procedure
1. Select the connection under channel unit "S5-AS511" and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click on the "Properties" button. The "Connection parameters" dialog is opened.
3. In the "Port" field, select the port to be used for the serial link.
8.3.3
8.3.3.1
Introduction
For a connection between WinCC and the AS via channel "SIMATIC S5 Programmers Port AS511", tags of different data types can be created within WinCC. This is described in the following section.
155
8.3.3.2
Introduction
The tag address is entered according to the address structure of the SIMATIC S5.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select the desired data type (e.g. Signed 8 bit value) from the "General" tab. 3. Click the "Select" button. The "Address properties" dialog is opened. 4. Select the "SYSVAR" tab.
156
7. Choose whether the tag is located in a data block, in an extended data block, in a flag area, an input range or an output range in the "Data Area" field. 8. If the tag is in a data block, the "DB No." field is also shown. Here, you enter the number of the data block. 9. The type of addressing is entered in the "Addressing" field. Normally, the default definition can be used. 10.Enter the address in the respective field (e.g. "DW "). Frequently, the memory in the PLC can only be accessed by byte or word. When using binary and "8 Bit" tags, dialog "Bit-Byte-tag" is opened in addition to dialog "Address properties" and this can be used to change individual bits in the memory of the PLC as well. For this purpose, the addressed memory area is read from the PLC for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the PLC's memory.
157
8.3.3.3 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "binary tag" on the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened. 4. Check the "Access to a bit" checkbox and define the addressing for the bit.
158
8.3.3.4 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "Unsigned 8 bit value" or "Signed 8 bit value" in the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened. 4. Check the "Access to a byte" checkbox and define the addressing for the byte.
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the selection field. 7. Select the number of byte to be changed in the selection field.
159
S5 Serial 3964R
9 9.1 Resources WinCC channel "SIMATIC S5 Serial 3964R"
Introduction
The communication driver "SIMATIC S5 Serial 3964R" is implemented for the serial link between a WinCC station and a SIMATIC S5 automation system. This chapter describes how to configure the data transfer with the "SIMATIC S5 Serial 3964R" channel. how to configure a connection and a tag.
Channel Unit
The communication driver has one channel unit for controlling a COM port for the serial link. The following capability is available: Channel unit S5-RK512 (3964R) for serial communication via the 3964R or 3964 protocol.
9.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8-bit value Signed 8-bit value Unsigned 16-bit value Signed 16-bit value Unsigned 32-bit value Signed 32-bit value Floating-point number 32-bit IEEE 754
161
9.3
9.3.1
Introduction
The following steps are required for configuring the channel "SIMATIC S5 Serial 3964R".
9.3.2
Introduction
The process connection using a serial connection is possible with the SIMATIC S5 automation system. On the automation system, the communication processor CP 544 or a second, plugin serial port is used on the CPU module (module receptacle SI2). No additional communication module is required in WinCC. Communication takes place by means of the default COM ports available on the system. This serial link supports transmission rates of up to 19200 baud. Note When the SIMATIC S5 is actively sending with job type "Pseudowrite", the message length must not exceed 64 words.
Procedure
1. Select the connection and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click on the "Properties" button. The "Connection parameters" dialog is opened.
162
4. Select the communications port (COM1 or COM2) for the connection in the "Port" field. 5. Set the data transfer speed to the value used in the "Baud rate" field of the "Procedure parameters" area. The priority in the case of an initiation conflict (simultaneous line bid by WinCC and the automation system) is set in the "Priority" field. The priority has to be set differently from the SIMATIC S5. 6. In the "Procedure data" area, select either the "3964" or "3964R" line protocol. You should only change the default values for the procedure data (such as acknowledgement time, character delay time, etc.) in exceptional cases. Make sure that they match the parameters on the automation system.
163
8. You can disable cyclic life beat monitoring and disable the automatic reconnection on the "Options" tab.
9.3.3
9.3.3.1
Introduction
For a connection between WinCC and the AS via channel "SIMATIC S5 3964R", data types binary and byte can be defined within WinCC. The following describes how to configure a tag of these data types.
9.3.3.2
Introduction
The tag address is entered according to the address structure of the SIMATIC S5.
164
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select the desired data type (e.g. Signed 8 bit value) from the "General" tab. 3. Click the "Select" button. The "Address properties" dialog is opened.
4. Choose whether the tag is located in a data block, in an extended data block, in a flag area, an input range or an output range in the "Data Area" field. 5. If the tag is in a data block, the "DB No." field is also shown. Here, you enter the number of the data block. 6. The type of addressing is entered in the "Addressing" field. Normally, the default definition can be used. 7. Enter the address in the respective field (e.g. "DL ").
165
9.3.3.3 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "binary tag" on the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
166
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the selection field. 7. Select the number of bit to be changed in the selection field. Note With the S5, flags, inputs and outputs can be addressed by byte, data blocks (DB, DX) are addressed by word. Only read access is possible to the Inputs, Outputs, Timers and Counters address areas. Read and write access are possible to data blocks (DB, DX).
9.3.3.4 Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "Unsigned 8 bit value" or "Signed 8 bit value" in the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
MDM - WinCC: Communication System Manual, 11/2008,
167
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the selection field. 7. Select the number of byte to be changed in the selection field. Note With the S5, flags, inputs and outputs can be addressed by byte, data blocks (DB, DX) are addressed by word. Only read access is possible to the Inputs, Outputs, Timers and Counters address areas. Read and write access are possible to data blocks (DB, DX).
168
10
The "SIMATIC S7 Protocol Suite" channel supports communication between a WinCC station and the SIMATIC S7 automation systems. The suite supports a variety of protocols and types of networks. This section shows you how to configure various connections and tags for the channel how to create a sample project how to use the channel's special functions such as the AR_SEND function, raw data tags and software redundancy
10.2
Function principle
The Channel "SIMATIC S7 Protocol Suite" is used to link SIMATIC S7-300 and SIMATIC S7-400 automation systems. Depending on the communication hardware used, the system supports connections via the following channel units: Industrial Ethernet and Industrial Ethernet (II): For communication via a communication processor (such as CP 1612; CP1613) with SIMATIC NET Industrial Ethernet. MPI: For communication via the external MPI port of a programming device (e.g. PG 760/ PC RI45), via an MPI communications processor or a communications module (e.g. CP 5511, CP 5613). Named Connections: to communicate with STEP 7 via a symbolic connection. These symbolic connections are configured using STEP 7 and are needed e.g. to provide highavailability communication with the PLC S7-400 in conjunction with the redundancy in H/F systems. Symbolic connections to the S7-300 automation system are not supported. PROFIBUS and PROFIBUS (II): For communication via a communication processor (such as CP 5613) with SIMATIC NET PROFIBUS.
169
Detailed procedures
Communication Manual: The communication manual contains additional information and extensive examples for the channel configuration. This manual is available for downloading at "www.ad.siemens.de/meta/support/html_00/support.shtml". In the menu on the left, select the link "Service and Support". Under "Product Support", select "Find Manual". In the field "Search Term" on the left on the "Expert Search" tab, enter the order number "6AV6392-1CA05-0AA0" for Volumes 1 and 2 of the manual.
See also
Software Redundancy - Connection-specific internal tags (Page246) "SIMATIC S7 Protocol Suite" Channel - Configuration (Page174) Overview of the supported data types (Page174) Channel unit selection (Page170) Diagnosis of Channels and Tags (Page301)
10.3
Introduction
To setup a communication link to an existing or planned network, a selection must be made for: one of the channel's channel units a suitable communication processor for the WinCC station a suitable communication module for a specific automation system This section provides an overview of the various options. There are two different types of communication processors for WinCC:
170
MPI
For communication with the S7-300 and S7-400 PLCs via MPI, Channel "SIMATIC S7 Protocol Suite" includes the "MPI" channel unit. The MPI network corresponds in largest part to the PROFIBUS network with preset parameters and limitations with regard to the number of subscribers and the transfer rate. The same communication processors and modules are used for communication via MPI as for the PROFIBUS network. The same communication protocols are also used.
171
S7-400
PROFIBUS
For communication with the S7-300 and S7-400 PLCs via PROFIBUS, Channel "SIMATIC S7 Protocol Suite" includes the "PROFIBUS" and "PROFIBUS II" channel units. The channel units support communication via the Hardnet and Softnet modules.
S7-400
172
173
10.4
Introduction
For configuring a tag, you need to define data type and type conversion according to the data format in AS. The table shows the data types supported by the channel and the use of type conversions.
You will find additional information about type conversion in the "Communication" section.
10.5
10.5.1
Introduction
This section will show you how to configure the "SIMATIC S7 Protocol Suite" channel. 1. Installing the Channel 2. Channel unit selection
MDM - WinCC: Communication System Manual, 11/2008,
174
See also
System Parameters of the Channel Unit (Page199) Configuring the tags (Page193) Channel units of the "SIMATIC S7 Protocol Suite" channel (Page176) Diagnosis of Channels and Tags (Page301)
10.5.2
Introduction
This section will show you how to install the "SIMATIC S7 Protocol Suite" channel. 1. Installing the Channel 2. Channel unit selection 3. Creating a connection 4. Inserting a tag 5. Configuring the system parameters in a customized WinCC installation
Prerequisites:
The communication module is built in. The hardware driver has been installed. Cable connection to AS exists.
Procedure
1. Select the entry "Add New Driver" in the shortcut menu of Tag Management. A selection dialog is opened. 2. Select "SIMATIC S7 Protocol Suite.chn" and close the dialog by clicking OK. The channel is set up and the channel driver is displayed in Tag Management along with the channel units. 3. Select the desired channel unit and select the "New Connection" entry in the pop-up menu. 4. In the "Connection Properties" dialog, enter the connection name. Close the dialog with the "OK" button.
175
10.5.3
10.5.3.1
Channel units
Channel units of the "SIMATIC S7 Protocol Suite" channel
Introduction
The following chapters describe how to configure the channel units and a corresponding connection. There can be multiple connections in the same channel unit.
See also
"TCP/IP" channel unit (Page190) "Soft PLC" channel unit (Page189) "Slot PLC" channel unit (Page187) Channel Units "PROFIBUS (I + II)" (Page184) "Named Connections" channel unit (Page182) "MPI" channel unit (Page179) Channel Units "Industrial Ethernet" + "Industrial Ethernet (II)" (Page177)
176
10.5.3.2
Industrial Ethernet
The Industrial Ethernet is the most efficient subnet in the industrial environment. It is suitable for the factory and cell levels and facilitates the exchange of large data volumes over large distances between a large number of participants. The Industrial Ethernet is an open communications network and is standardized in accordance with IEEE 802.3. Its prime advantages are its speed, simple extendibility and openness as well as high availability and worldwide utilization. The configuration process requires a minimum of effort.
177
See also
Configuring the tags (Page193) How to configure a "Industrial Ethernet" channel unit connection (Page178)
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the channel unit "Industrial Ethernet". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_Ind_Eth", in the General tab. 3. Click the "Properties" button to open the "Connection Parameters - Industrial Ethernet" dialog.
178
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175) Diagnosis of Channels and Tags (Page301)
10.5.3.3
179
Communications processor
A communications processor (CP) is a module that supports communication between the WinCC computer and a specific network.
See also
Configuring the tags (Page193) How to configure a "MPI" channel unit connection (Page180)
Requirements
The "SIMATIC S7 Protocol Suite" (communication) driver must be integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the channel unit "MPI". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_MPI", in the General tab.
180
4. Enter the station address in the Station Address field of the automation system on the bus in the appropriate field. 5. The field "Segment ID" is currently not supported. The value must remain at "0". 6. Enter the number of the rack in which the CPU that is to be addressed is located in the "Rack Number" field. 7. Enter the "Slot Number" of the CPU in the specified rack. 8. Activate the check box "Send/Receive Raw Data Block" if you wish to transfer BSEND/ BRCV data blocks via the connection. If the check box is flagged, the field "Connection Resource" will also be active. Enter the hexadecimal value for the connection resource. This connection resource will be assigned by STEP7 when the connection is configured in the PLC. 9. Close both of the dialogs by clicking the "OK" button. Note When using an S7-300 or S7-400 with an external communications processor, you must enter the Rack/Slot number of the CPU. If the wrong Rack or Slot Number is entered, the communications link will not be established! While using a S7-300, for the link via the internal MPI interface of the CPU, the rack/ slot number = 0 must be given.
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
181
10.5.3.4
182
See also
Configuring the tags (Page193) How to configure a "Named Connections" channel unit connection (Page183)
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the channel unit "Named Connections". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_NC", in the General tab.
183
4. In the Application name field, enter the application name that has been configured in STEP 7. Default value is WinCC. 5. In the Connection name field, enter the symbolic connection name that has been configured in STEP 7. 6. Close both of the dialogs by clicking the "OK" button. Note The application and connection name can also be entered manually, for e.g. if an XDB file does not exist for the symbolic connection name or if the project is to be transferred to another computer. It is necessary to check the correct writing of the name in STEP 7 because there is no name validation in the CS mode.
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.3.5
184
Communications processor
A communications processor (CP) is a module that supports communication between the WinCC computer and a specific network.
See also
Configuring the tags (Page193) How to configure a "PROFIBUS" channel unit connection (Page185)
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the channel unit "PROFIBUS". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_PROFIBUS", in the General Tab.
185
4. Enter the "Station Address" of the automation system on the bus in the appropriate field. 5. The field "Segment ID" is currently not supported. The value must remain at "0". 6. Enter the "rack number" in which the CPU that is to be addressed is located. 7. Enter the "Slot Number" of the CPU in the specified rack. 8. Activate the check box "Send/Receive Raw Data Block" if you wish to transfer BSEND/ BRCV data blocks via the connection. If the check box is flagged, the field "Connection Resource" will also be active. Enter the hexadecimal value for the connection resource. This connection resource will be assigned by STEP7 when the connection is configured in the PLC. 9. Close both of the dialogs by clicking the "OK" button. Note When starting up the PROFIBUS communication, PROFIBUS errors can occur if the communication processor was connected to the PROFIBUS while the WinCC computer was ON. Therefore, it is recommended that the computer be switched OFF before connecting it to the PROFIBUS. Otherwise, (in accordance with the PROFIBUS standard) multiple tokens may be generated on the bus, which will cause a bus error. When using an S7-300 or S7-400 with an external communications module, you must enter the Rack/Slot number of the CPU. If the wrong Rack or Slot Number is entered, the communications link will not be established!
186
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.3.6
See also
Configuring the tags (Page193) How to Configure a "Slot PLC" Channel Unit Connection (Page187)
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. If several Slot PLC are to be configured, Slot PLC Version 3.4 is required.
Procedure
1. Select the entry "New connection" in the pop-up menu of the channel unit "Slot PLC". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_SPLC", in the General tab.
187
4. In the field "Station address", enter the station address of the Slot PLC on the Soft K-Bus. 5. In the field "Slot No.", enter the number of the slot in which the Slot PLC is installed. 6. Activate the check box "Send/Receive Raw Data Block" if you wish to transfer BSEND/ BRCV data blocks via the connection. 7. If the check box is flagged, the field "Connection Resource" will also be active. Enter the hexadecimal value for the connection resource. This connection resource will be assigned by STEP 7 when the connection is configured within the PLC. 8. Close both of the dialogs by clicking the "OK" button. Note Connection parameters "Station Address" and "Slot No." must be identical for several installed Slot PLCs and must start with "Slot No." "3".
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
188
10.5.3.7
See also
Configuring the tags (Page193) How to configure a connection on the "Soft PLC" channel unit (Page189)
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the entry "New connection" in the pop-up menu of the channel unit "Soft PLC". The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_SOFTPLC", in the General tab.
189
4. In the field "Station address", enter the station address of the Soft PLC on the Soft K-Bus. 5. In the field "Slot No.", enter the number of the slot. The slot number is configured in the hardware configuration of Soft PLC and is required when you want to use multiple Soft PLC in the same WinCC computer. 6. Activate the check box "Send/Receive Raw Data Block" if you wish to transfer BSEND/ BRCV data blocks via the connection. 7. If the check box is flagged, the field "Connection Resource" will also be active. Enter the hexadecimal value for the connection resource. This connection resource will be assigned by STEP 7 when the connection is configured within the PLC. 8. Close both of the dialogs by clicking the "OK" button.
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.3.8
190
Industrial Ethernet
The Industrial Ethernet is the most efficient subnet in the industrial environment. It is suitable for the factory and cell levels and facilitates the exchange of large data volumes over large distances between a large number of participants. The Industrial Ethernet is an open communications network and is standardized in accordance with IEEE 802.3. Its prime advantages are its speed, simple extendibility and openness as well as high availability and worldwide utilization. The configuration process requires a minimum of effort.
See also
Configuring the tags (Page193) How to configure a "TCP/IP" channel unit connection (Page191)
191
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the entry "New Connection" in the pop-up menu of the "TCP/IP" channel unit. The "Connection Properties" dialog is opened. 2. Enter a connection name, for example "Test_TCP", in the General Tab. 3. Click on the "Properties" button to open the "Connection Parameters - TCP/IP" dialog.
4. Enter the Internet protocol address of the automation system on the bus in the field "IP Address". 5. Enter the number of the rack in which the CPU that is to be addressed is located in the "Rack Number" field. 6. The CPU's slot number in the specified rack must be entered in the corresponding field "Slot Number". 7. Activate the check box "Send/Receive Raw Data Block" if you wish to transfer BSEND/ BRCV data blocks via the connection. If the check box is flagged, the field "Connection Resource" will also be active. Enter the hexadecimal value for the connection resource. This connection resource will be assigned by STEP7 when the connection is configured in the PLC. 8. Close both of the dialogs by clicking the "OK" button.
192
See also
Configuring the tags (Page193) How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.4
10.5.4.1
Introduction
The following sections describe how to configure the tags. It is different in the way the data area in the PLC is accessed and the data type of the WinCC tags. Further information regarding the diagnosis of the channel, connection and tags can be found under "Communication Diagnosis".
See also
How to Configure a Text Tag (Page197) How to Configure a Tag with Word by Word Access (Page196) How to Configure a Tag with Byte by Byte Access (Page195) How to Configure a Tag with Bit by Bit Access (Page193)
10.5.4.2
Introduction
This section shows you how to configure a tag for bit by bit access for the address area in PLC.
193
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the "Test_Ind_Eth" connection. The "Tag Properties" dialog opens. 2. Enter "ETH_Var1_bit" as the name of the tag in the "Name" field. Select "Binary tag" in the "Data Type" field. 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. You cannot change the "Bit" entry in the Addressing field because it is defined by the Binary Variable data type of the WinCC tag. 5. Enter the byte and bit address in the two fields below it. The label on the left field depends on the entry in the Data Area field, for e.g. "D" for data area "DB" and Binary Variable as type. 6. Check the Quality Code check-box if the tag is with Quality Code that is to be used in WinCC. For this, the code must also exist in the PLC. The check-box is enables only if the data area is selected as "DB". 7. Close both of the dialogs by clicking the "OK" button.
See also
How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
194
10.5.4.3
Introduction
This section shows you how to configure a tag for byte by byte access for the address area in PLC.
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the "Test_Ind_Eth" connection. The "Tag Properties" dialog opens. 2. Enter "ETH_Var2_byte" as the name of the tag in the "Name" field. Set the data type to "unsigned 8-bit". 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. You cannot change the "Bit" entry in the Addressing field because it is defined by the "Unsigned 8-bit" data type of the WinCC tag. 5. Enter the byte addresss in the field below. The label on the left field depends on the entry in the Data Area field, for e.g. "D" for data area "DB" and Unsigned 8-bit as type. 6. Check the Quality Code check-box if the tag is with Quality Code that is to be used in WinCC. For this, the code must also exist in the PLC. The check-box is enables only if the data area is selected as "DB". 7. Close both of the dialogs by clicking the "OK" button.
195
See also
How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.4.4
Introduction
This section shows you how to configure a tag for word by word access for the address area in PLC. This procedure is also applicable for tags with length of 4 byte ("double word") and more.
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the "Test_Ind_Eth" connection. The "Tag Properties" dialog opens. 2. Enter "ETH_Var3_word" as the name of the tag in the "Name" field. Set the data type to "unsigned 16-bit". 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. You cannot change the "Word" entry in the Addressing field because it is defined by the "Unsigned 16-bit" data type of the WinCC tag.
196
See also
How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
10.5.4.5
Introduction
This section show you how to configure a text tag. For a text tag in the SIMATIC S7 Protocol Suite channel, WinCC only supports S7 string type consisting of a control word and the actual user data of the string: To configure a text tag in WinCC, enter the address of the control word that exists in the PLC memory before the user data. The first byte of the control word contains the customized maximum length of the string, the second byte the actual length. To insert the data structure in the PLC memory, you must note that the length of the text tag configured in WinCC is extended by 2 bytes of the control word. If the data structures of the text tag are inserted in the memory directly one after the other, then the subsequent data will get overwritten. New mapping is required for switching the PCS-7 version from V4.01 to V5.0 SP1 because in the versions before V5.0 the address of the user data was also mentioned while configuring the text tags; from version V5.0 onwards the address of the control word is to be given. While reading, the control word is read along with the user data and the current length is evaluated in the second byte. Only the user data according to the current length included in the second control byte is trasferred at the text tags of WinCC. While writing, the actual length of the string is ascertained ("0" character) and the control byte with the current length is sent to the PLC along with the user data.
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet".
197
Procedure
1. Choose the "New Tag" option from the shortcut menu for the "Test_Ind_Eth" connection. The "Tag Properties" dialog opens. 2. Enter "ETH_Var3_Text" as the name of the tag in the "Name" field. In the Data Type field, set "Text tag, 8-bit font" as the data type. Enter the tag length in bytes in the Length field. 3. Click the "Select" button to open the "Address properties" dialog. In the "Data area" set the data area of the PCL where the data is located. If you select "DB" as data area, enter the data component in the enabled "DB-No." field.
4. The entry in the Addressing field can only be changed to Byte or Word because it is defined by the "Text tag, 8-bit font" data type of the WinCC tag. 5. Enter the numeric value of the address in the Addressing field. Mention the address of the control word. The label on the left field depends on the entry in the Data Area field, for e.g. "DBW" for Word as type. 6. Check the Quality Code check-box if the tag is with Quality Code that is to be used in WinCC. For this, the code must also exist in the PLC. The check-box is enables only if the data area is selected as "DB". 7. Click "OK" to close all open dialogs.
See also
How to configure the "SIMATIC S7 Protocol Suite" channel (Page175)
198
10.5.5
10.5.5.1
System parameters
System Parameters of the Channel Unit
Introduction
If you require a configuration that deviates from the WinCC standard settings, you will therefore be able to make all the required changes using the "System Parameter" dialog of the channel unit. The following can be modified: the logical device name the use of the cyclic read service in the AS
See also
How to Change the Logical Device Name (Page203) How to Configure the System Parameters (Page201) Cyclic read services in PLC (Page200)
199
10.5.5.2
Introduction
In the system parameters of the "SIMATIC S7 Protocol Suite" channel, it is also possible to specify whether or not the cyclic read services of the S7-AS(also referred to as cyclic tag services) should be used. These cyclic read services group the tags that are to be read cyclically into individual request and transfer these to the PLC. The PLC will transfer the required data immediately on receipt of the request and will also transfer the data each time the cycle time elapses. When the requested data is no longer required, e.g. in the case of a screen change, WinCC will delete the cyclic read service in the PLC. In normal cases, use should be made of the cyclic read services in the PLC. For this reason, the corresponding check box is already activated (default setting) in the system parameters of the channel unit. This setting should only be changed if you do not wish to use the cyclic services. Modification transfers can only be used when the cyclic read services are activated. The data will then only transferred from the AS when a value has changed and only once per AS cycle. The function must be supported by the PLC. The use of the cyclic read services and modification transfers relieves both the AS and AS-OS communication, since read requests need not be continually sent to the AS and processed there. In the case of acyclic read services, the tags that are to be read are combined in an individual request and transferred to the PLC. The PLC only sends the required data once. The formation of the cycle for the request is carried out by WinCC.
200
10.5.5.3
Introduction
In this section, we will show you how to configure the system parameters of the Channel "SIMATIC S7 Protocol Suite". The "System Parameters" dialog comprises two tabs: SIMATIC S7 tab Unit tab The system parameters on the SIMATIC S7 and Unit tabs are unit-specific and can thus be set separately for each channel unit of the channel. These tabs are identical for all channel units of the S7 channel. Consequently, the dialog for the channel unit "MPI" is used in all examples. Any changes that are made to the parameter values will only take effect after WinCC has been restarted. Note When copying the project to another computer, the settings on the Unit tab will be retained, the settings on the SIMATIC S7 tab, however, will not.
201
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project.
Procedure
1. Select the Channel "SIMATIC S7 Protocol Suite" in Tag Management. Open the dialog "System Parameters" using the pop-up menu of the desired channel unit. 2. Select the SIMATIC S7 tab. Place a tick in the check boxes "by AS" and "with modification transfer", if you want to activate cyclic reading of tags by the channel and the use of modification transfers. If available, the cyclic services in the PLC will be used here. Further information can be found under "PLC Cyclic Read Services".
3. Activate the check box "Enable" in the "Lifebeat Monitoring" area if you wish to use this function. In the Interval field enter the time interval in seconds for transferring the lifebeat telegrams. In the Monitoring Time field enter the seconds value for monitoring the response to a lifebeat telegram. 4. If WinCC should indicate that communication is faulty when the S7-CPU is in the Stop status, activate the check box "Enable" in the "CPU Stop Monitoring" area.
202
6. If only one communications processor has been installed for this communication type, activate the check box "Set Automatically", if the device name should be set automatically when Runtime is started. 7. Activate the check box "Write with Priority", if the processing of write requests should take priority over the processing of read requests. 8. Close the dialog with the "OK" button.
See also
How to Change the Logical Device Name (Page203) Cyclic read services in PLC (Page200)
10.5.5.4
Introduction
Communication with the S7 takes place via logical device names. These names are assigned during the installation of the communications processor and are unit-specific. Certain presettings have now been established for the device names depending on the communications processor that has been installed. These are listed in the table "Default Device Names" below. The tabs for all units of the S7 channel are identical and, for this reason, the dialog for the channel unit "MPI" is shown in the description.
203
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection must be created to a channel unit e.g. "MPI".
Procedure
1. Select the desired channel unit in Tag Management. 2. Open the dialog window "System Parameters" using the pop-up menu. 3. Select the Unit tab. 4. Specify a device name in the field "Logical Device Name". You can either select an entry from the selection list or enter a new name manually. All possible names will be determined by the "Configure PG/PC Interface" (Control Panel) tool. If this has not been installed, only the device name that is currently set will be displayed. If you specify a different logical device name, a message will be displayed. Manual entries should only be made if the target station uses a communications card which is not installed on the configuring station. 5. Close the dialog by clicking the "OK" button. Note Logical devices names must be exactly the same - to the letter - as in the device settings. This being the case, the default logical device names for the "Industrial Ethernet"and "PROFIBUS" have, for example, a colon at the end of the name. Any changes that are made to the parameter values will only take effect after WinCC has been restarted.
204
10.6
10.6.1
Special functions
Special functions of the "SIMATIC S7 Protocol Suite" Channel
Introduction
The SIMATIC S7 Protocol Suite contains some special functions; their functionality is described in this chapter.
See also
Software Redundancy (Page244) Raw data tags of the Channel "SIMATIC S7 Protocol Suite" (Page237) Data exchange with the S7 function block AR_SEND (Page205)
10.6.2
10.6.2.1
Introduction
The S7 function block AR_SEND in the S7-400 AS is used to transfer process values to the process value archives.
Principle of Operation
To transfer PLC process values to a process value archive in WinCC, the S7-400 PLC has an integrated function component called SFB 37 "AR_SEND". The basic function of AR_SEND component can supply data to archive tag. Data can be supplied to multiple tags if the AR_ID-Subnumber is used. If AR_SEND component is used, the process values are not sent individually to the archive; they are first collect in PLC and transferred as a package. This reduces the load on the used network. In a PLC, you can use a CPI-dependent number of AR_SEND components (for e.g. CPU 416 max. 32 AR_SEND). A AR_ID can in turn be assigned to aach AR_SEND component. The subnumber is used to increase the amount of transferable process data because up to 4095 subnumbers are possible for each AR_ID. In reality, the number of archive tags per AR_SEND component is limited by the maximum length of the data area to be transferred. For more information about "The Structure and Parameters of Data Block Structures", please see the description of the "Number of Process Values" parameter.
205
For transferring process values for an archive tag where the process values can also be read in very small time intervals. For transferring process values for multiple archive tags where the process values can also be read in very small time intervals. For cyclic data supply to maximum number of archive tags each one value each at one time
multiple archive tags corresponds to the number AR_ID-Subnumbers multiple archive tags (optimized) corresponds to the number AR_ID-Subnumbers
See also
AR_SEND variant for multiple archive tags (Page218) How to configure the AR _SEND variant for multiple archive tags (Page234) How to configure the AR _SEND variant for an archive tag (Page231) AR_SEND variant for multiple archive tags (optimized) (Page229) AR_SEND variant for an archive tag (Page214)
10.6.2.2
Introduction
Before data is transferred from a PLC with the "AR_SEND" function block, it is first organized as one or more data blocks. The structure of a data block depends on various parameters, e.g. whether a time stamp or the process value's data type is appended to the AR_SEND variant used. The parameters used in data blocks are described below. The individual parameter values are set in the data block in the AS and in the "AR_SEND" function block parameters. The parameters are checked when the data block is evaluated in WinCC. If WinCC detects an error in the structure of the data block or if the archive tag configuration does not match the
206
Note In the data blocks, each line represents two bytes. Process values can be one or more bytes long, depending on their data type. Further information can be found in the description of the "Number of Process Values" parameter.
207
Note In the case of the header types 0 and 8, the bytes for the time stamp will not be included in the header. Since these bytes are also not reserved in the data block, the header will be shortened accordingly by 8 bytes.
AR_ID Subnumber
Establishes the assignment between the AS user data and the WinCC archive tags and is configured at two positions: In WinCC, when configuring the process controlled archive tags In the PLC, when setting up the user data area to be transferred The Subnumber is only relevant for the header types 8 or 9. Valid values for the Subnumber are in the range from 1 to 4095. The parameter is entered in WinCC as a hexadecimal value (1 - 0FFF).
Time stamp
The time stamp contains the date and the time in SIMATIC S7 BCD format. The weekday entry is not utilized by WinCC. Note The automation system S7 does not recognize the Summer/Wintertime switching. In the AS the local Winter time must be set as the system time. The time stamp on Summer or Winter time is corrected in WinCC by the standardization DLL. The corrected time and Summer/ Winter time ID are then available in the WinCC applications. The corrected time and ID are then added to the archive e.g. in Tag Logging.
Cycle
The cycle in which the process values are to be read. This parameter is a factor for the units of time specified under Unit (Range). Data length: Double word.
208
Unit (Type)
Specifies the type of time information and modifies the parameter "Number of Process Values".
No. 1 Meaning The process values are read at equal intervals. Start time is mentioned in the timestamp of the header and is mandatory. The time interval between the process values is defined by the time units in the "Units (Range)" and the factor "Cycle". Each process value has a timestamp A time stamp given perhaps in the header will not be evaluated. The format corresponds to the time stamp in the header with a length of 8 bytes. Each process value has a relative time difference in units of time with a data length of 2 words. The absolute time is the sum of the time stamp in the header (= start time) and the relative time difference in the time unit set in "Unit(Range)". A time stamp entry in the header is mandatory. Each process value contains the AR_ID-Subnumber. The time stamp given in the header applies for the process value. A time stamp entry in the header is mandatory.
Units (Range)
Specifies the units of time used for Unit (Type) = 1 or 3.
No. 1 2 3 4 5 6 7 Meaning Reserved Reserved Milliseconds Seconds Minutes Hours Days
209
210
Note The AR_ID Subnumbers given in the data blocks must all be configured in WinCC. WinCC will stop interpreting the user data, if a not-configured subnumber is found. The data blocks for the various archive tags must always begin on a word boundary. Therefore, with the data type BYTE and "Unit (Type)" = 1 (Process value with equally spaced time intervals), an even number of process values (=Bytes) must be entered for the parameter "Number of Process Values". This restriction only applies for this AR_SEND variant and this combination of data type and "Unit (Type)".
See also
How to configure the AR _SEND variant for multiple archive tags (Page234) How to configure the AR _SEND variant for an archive tag (Page231) AR_SEND variant for multiple archive tags (optimized) (Page229) AR_SEND variant for multiple archive tags (Page218) AR_SEND variant for an archive tag (Page214)
10.6.2.3
Introduction
On the basis of examples, the tables show the properties and possible parameter values for different AR_SEND variants. The tables do not display all of the possible combinations. The columns "Header Type" to "Process Value Data Type" are presented in the order that they appear in the header.
211
Each 1 process value (byte) with its own time stamp Process value with equally spaced time stamp Each process value (word) with its own time stamp Each process value with time difference 2
3200 8 byte time 1600 stamp 1333 + 1 Byte process value 16000 1 word 8000 process 4000 value
Relevant
>=1
3 to 7
0 1; 2 3; 4; 5
not relevant
0 1; 2 3; 4; 5
3200 8 byte time 1600 stamp + 1 1333 word process value 5332 8 byte time 2666 stamp 2000 + 1 Byte process value
Relevant
>=1
3 to 7
0 1; 2 3; 4; 5
212
5 Each process value (byte) with its own time stamp Process value with equally spaced time stamp Each process value (word) with its own time stamp Each process value with time difference 6
1 to 4095
3200 8 byte time 1600 stamp 1333 + 1 Byte process value 16000 1 word 8000 process 4000 value
Relevant
>=1
3 to 7
1 to 4095
0 1; 2 3; 4; 5
not relevant
1 to 4095
0 1; 2 3; 4; 5
3200 8 byte time 1600 stamp 1333 + 1 word process value 5332 8 byte time 2666 stamp 2000 + 1 Byte process value
Relevant
3 to 7
1 to 4095
0 1; 2 3; 4; 5
See also
AR_SEND variant for multiple archive tags (optimized) (Page229) AR_SEND variant for multiple archive tags (Page218) AR_SEND variant for an archive tag (Page214)
213
10.6.2.4
Introduction
This variant can be used to supply an archive tag with process values. It can also be used with older versions of WinCC (prior to V5.0).
214
See also
Example 4 for data block structure: An archive tag; each process value with relative time stamp (time difference) (Page217) Example 3 for data block structure: An archive tag; each process value has its own time stamp (Page217) Example 2 for data block structure: One archive tag; equally spaced time stamp (Page216) Example 1 for data block structure: An archive tag; each process value has a time stamp (Page215) Overview of the properties of the AR_SEND variants (Page211)
10.6.2.5
Example 1 for data block structure: An archive tag; each process value has a time stamp
Introduction
In this example, the process values are transferred for one archive tag only. There is no time stamp in the header and the corresponding number of bytes are also not reserved. Hence, each process value (1byte) is preceded by a time stamp (8byte). Data type of the process values is BYTE.
215
See also
Data Block - Structure and Parameters (Page206)
10.6.2.6
Example 2 for data block structure: One archive tag; equally spaced time stamp
Introduction
In this example, the process values are transferred for one archive tag. The equally spaced time stamp of one second is formed using the parameters "Cycle" = 1 and "Unit (Range)" = 4 (= seconds). Data type of the process values is WORD.
See also
Data Block - Structure and Parameters (Page206)
216
10.6.2.7
Example 3 for data block structure: An archive tag; each process value has its own time stamp
Introduction
In this example, the process values are transferred for one archive tag only. The time stamp in the header is not important. Hence, each process value (1Word) is preceded by a time stamp (8byte). Data type of the process values is SWORD.
See also
Data Block - Structure and Parameters (Page206)
10.6.2.8
Example 4 for data block structure: An archive tag; each process value with relative time stamp (time difference)
Introduction
In this example, the process values are transferred for one archive tag with time stamp.
217
See also
Data Block - Structure and Parameters (Page206)
10.6.2.9
Introduction
With this variant, you can supply process values to one or more archive tags. For each archive tag, an AR_ID Subnumber will be assigned and a data block will be created in the data area to be transferred. "x" process values can be transferred for each AR_ID Subnumber. For more information about "The Structure and Parameters of Data Block Structures", please see the description of the "Number of Process Values" parameter.
218
219
220
See also
Example 8 for data block structure: Multiple archive tags; process values with relative time stamp (time difference) (Page227) Example 7 for data block structure: Multiple archive tags; each process value has its own time stamp (Page225) Example 6 for data block structure: Multiple archive tags; equally spaced time stamp (Page223) Example 5 for data block structure: Multiple archive tags; each process value has its own time stamp (Page221) Overview of the properties of the AR_SEND variants (Page211)
10.6.2.10 Example 5 for data block structure: Multiple archive tags; each process value has its own time stamp Introduction
In this example, process values are transferred for multiple archive tags. The data blocks for the different archive tags are located one after the other in the data component. A different AR_ID-Subnumber is entered in each data block. There is no time stamp in the header and the corresponding number of bytes for it are also not reserved. Hence, each process value (1byte) is preceded by a time stamp (8byte). Data type of the process values is BYTE.
221
See also
Data Block - Structure and Parameters (Page206)
222
10.6.2.11 Example 6 for data block structure: Multiple archive tags; equally spaced time stamp Introduction
In this example, process values are transferred for multiple archive tags. The data blocks for the different archive tags are located one after the other in the data component. A different AR_ID-Subnumber is entered in the header in each data block. The equally spaced time stamp of one second is formed using the parameters "Cycle" = 1 and "Unit (Range)" = 4 (= seconds). Data type of the process values is WORD.
223
See also
Data Block - Structure and Parameters (Page206)
224
10.6.2.12 Example 7 for data block structure: Multiple archive tags; each process value has its own time stamp Introduction
In this example, process values are transferred for multiple archive tags. The data blocks for the different archive tags are located one after the other in the data component. A different AR_ID-Subnumber is entered in each data block. The time stamp in the header is not important. Hence, each process value (1Word) is preceded by a time stamp (8byte). Data type of the process values is SWORD.
225
226
See also
Data Block - Structure and Parameters (Page206)
10.6.2.13 Example 8 for data block structure: Multiple archive tags; process values with relative time stamp (time difference) Introduction
In this example, the process values are transferred for one archive tag with time stamp. The data blocks for the different archive tags are located one after the other in the data component. A different AR_ID-Subnumber is entered in each data block. The parameter "Unit(Type)" = 3 gives each process value a time difference (4Byte) for the time stamp in the header. The unit of time difference is individually defined by the "Unit(Range)" parameter for each archive tag and hence for each data block. Data type of the process values is DWORD.
227
See also
Data Block - Structure and Parameters (Page206)
228
229
See also
Overview of the properties of the AR_SEND variants (Page211) Example 9 for data block structure: multiple archive tags;optimized (Page230)
10.6.2.15 Example 9 for data block structure: multiple archive tags;optimized Introduction
In this example, the process values are transferred for one archive tag with time stamp. The time stamp is applicable to all archive tags. The corresponding AR_ID-Subnumber is placed before each process value. Data type of the process values is WORD.
230
See also
Data Block - Structure and Parameters (Page206)
10.6.2.16 How to configure the AR _SEND variant for an archive tag Introduction
There are a number of variants for using the AR_SEND function to exchange data. For the "One Archive Tag" variant, only the AR_ID is used. The AR_ID Subnumber is not used. The AR_ID is used to establish the assignment of the data in the AS to the archive tags and is configured together with other parameters while configuring the data blocks and the SFB 37 "AR_SEND" function block in the AS. In WinCC, this allocation is performed in the properties for the process controlled tag. This assignment is the only configuration that is necessary in WinCC and will be described in this section. The other parameters in WinCC need not be configured, since they are evaluated automatically.
231
Requirements
The "AR_SEND" function block and the data block structure must first be configured in the AS and this configuration information must be available during the following procedure. The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet". A process value archive must be configured in the "Tag Logging" editor.
232
Procedure
1. In Channel "SIMATIC S7 Protocol Suite", select the connection which should be used for the data transfer. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens. 2. Enter "Var_raw_arsend" as the name of the tag in the "Name" field. The name can be no longer than 24 characters. While configuring the process-controlled tags, the raw data tag name becomes part of the archive tag name and is therefore limited to the length of the archive tag name. In the Data Type field, set the type to Raw Data Type. Click the "Select" button to open the "Address properties" dialog.
3. Mark the "Raw Data" check box. In the "Raw Data Type" area select the type "Archive Data Link". Click "OK" to close all open dialogs. 4. Open the "Tag Logging" editor and in the pop-up menu of a process value archive select "New Process Controlled Tag". The "Properties of process controlled tag" dialog will open.
5. Click on "Select" to open a selection dialog and then select the raw data tag that should be used to supply the archive tags. In this example that is "VAR_raw_arsend". Close the dialog with the "OK" button.
233
7. Enter the AR_ID as a hexadecimal value. The value is defined through the configuration in AS. Uncheck the checkbox "Subnumber" because there is no subnumber used in this AR_SEND variant. Close the dialog by clicking "OK". 8. The "Internal Archive Tag Name" field shows the internal archive tag name generated by the system. It contains the name of the assigned raw data tag and the AR_ID. In the "Archive Tag Name" field, if required, you can define an alias for this archive tag. If no alias is entered, the internal archive tag name is used for management in the process value archive and for addressing the archive tag in WinCC. 9. Close the dialog with the "OK" button. 10.Save your changes and close Tag Logging.
10.6.2.17 How to configure the AR _SEND variant for multiple archive tags Introduction
There are a number of variants for using the AR_SEND function to transfer data for multiple archive tags. Use the "Multiple Archive Tags" variant to supply multiple values to multiple archive tags at various times. Use the "Multiple Archive Tags - optimized" variant to supply one value each to the maximum number of archive tags at one time. The AR_ID and AR_ID Subnumber are used in both of these variants. AR_ID and AR_ID-Subnumber establish the assignment between the data in the AS and the archive tag. They are defined in the AS with other parameters when configuring the data blocks and the function modue SFB 37 "AR_SEND".
234
Requirements
The "AR_SEND" function block and the data block structure must first be configured in the AS and this configuration information must be available during the following procedure. The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection e.g. "Test_Ind_Eth" must be created in a channel unit, e.g. "Industrial Ethernet". A process value archive must be configured in the "Tag Logging" editor.
235
Procedure
1. In Channel "SIMATIC S7 Protocol Suite", select the connection which should be used for the data transfer. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens. 2. Enter "Var_raw_arsend" as the name of the tag in the "Name" field. The name can be no longer than 24 characters. While configuring the process-controlled tags, the raw data tag name becomes part of the archive tag name and is therefore limited to the length of the archive tag name. In the Data Type field, set the type to Raw Data Type. Click the "Select" button to open the "Address properties" dialog.
3. Mark the "Raw Data" check box. In the "Raw Data Type" area select the type "Archive Data Link". Click "OK" to close all open dialogs. 4. Open the "Tag Logging" editor and in the pop-up menu of a process value archive select "New Process Controlled Tag". The "Properties of process controlled tag" dialog will open.
5. Click on "Select" to open a selection dialog and then select the raw data tag that should be used to supply the archive tags. In this example that is "VAR_raw_arsend". Close the dialog with the "OK" button.
236
7. Enter the AR_ID as a hexadecimal value. The value is defined through the configuration in AS. Activate the "Subnumber" checkbox. Enter the AR_ID Subnumber as a hexadecimal value. The value is also specified by the configuration in AS. Close the dialog by clicking "OK". 8. The "Internal Archive Tag Name" field shows the internal archive tag name generated by the system. It contains the name of the assigned raw data tag, the AR_ID and the AR_ID Subnumber. In the "Archive Tag Name" field, if required, you can define an alias for this archive tag. If no alias is entered, the internal archive tag name is used for management in the process value archive and for addressing the archive tag in WinCC. 9. Close the dialog with the "OK" button. 10.Save your changes and close Tag Logging.
10.6.3
10.6.3.1
Introduction
A tag of the type raw data type is a data telegram on a transport level. The contents of the raw data tag are not fixed and therefore only the sender and the receiver can interpret the transmitted data. There are no format changes in WinCC for this data type. Maximum length is 65535 Byte. WinCC distinguishes between two types of raw data tags: Raw data tag for free application use and raw data tag for handling S7 functions.
237
See also
Raw data tag for BSEND/BRCV functions of S7 communication (Page241) Raw data tag as byte array (Page238)
10.6.3.2
Introduction
Raw data tags as byte array are used for transferring user data blocks between WinCC and PLC and handle only user data. A raw data tag as byte array is handled in the channel like a normal process tag that is addressed via the address and length of the data area (for e.g. DB 100, DW 20, length 40 Byte). The raw data length is limited to one transferable data block and must be fully transferable uisng a PDU (Protocol Data Unit). The maximum length of the data blocks that can be transferred using the communication driver depends on the PDU length negotiated while establishing the connection minus the header and additional information. The PDU lengths normally used in SIMATIC S7 thus result in the following maximum lengths: S7-300: PDU Length 240/480 Byte; Data block length max. 208/448 Byte; always depending on the CPU Type S7-400: PDU length 480 Byte, max. data block length 448 Byte Data must be blocked if larger data blocks are to be transferred. In PLC, the S7 software forms the blocks; in WinCC through scripts.
238
See also
How to Configure a Raw Data Tag as Byte Array (Page239)
10.6.3.3
Introduction
This section will show you how to configure as byte array a raw data tag of the "SIMATIC S7 Protocol Suite" channel. The configuration is identical for all channel units of the channel. The "MPI channel unit and its connection is used in the example.
239
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection must be created to a channel unit e.g. "MPI".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens. 2. Enter "Var1_raw_byte" as the name of the tag in the "Name" field. Select "Raw Data Type" in the "Data Type" field. 3. Click the "Select" button to open the "Address properties" dialog. 4. Mark the "Raw Data" check box. In the "Raw Data Type" area select the type "Send/receive block". The display of the fields in the "Address description" area and the field next to the checkbox "Raw data" depend on this setting. 5. Enter the length of the raw data block (in bytes) in the Length field. 6. In the "Data area" set the data area of the PCL where the data is located. If data area is selected as "DB" enter the number of the data component in the enabled "DB-No." field. The "Cpu" field is disabled for a connection of the "MPI" channel unit.
7. Set up the addressing type in the "Addressing" field. The entries "Byte", "Word" or "Doubleword" are possible for data type "Raw data type" of the WinCC tag. 8. Enter the value of the start address in the underlying field. The label on the left field depends on the entry in the Data Area and Addressing field, for e.g. "DBB" for data area "DB" "Byte" for addressing type. 9. Click "OK" to close all open dialogs.
240
10.6.3.4
Introduction
Raw data tags for "BSEND/BRCV" functions are used for transferring user data blocks between WinCC and AS and handle only user data. This raw data type can be used to access the "BSEND/BRCV" functions of S7 communication. The functions are available in a S7-400 or a S7-300 using CP343. The initiative of data transfer always lies with the sending partner; hence "BSEND/BRCV" functions can also be used to implement event-controlled or sporadic data block transfers. For resource reasons, it is advisable to keep the number of BSEND/BRCV raw data tags low.
Resource limitations for using S7 functions "AR_SEND" and "BSEND/BRCV" for communication with S7-400
The maximum data volume that can be sent simultaneously using AR_SEND and/or BSEND/ BRCV functions from AS to WinCC is limited to 16 kByte. Example: 1x BSEND with a max. of 16 Kbytes 1x AR_SEND with 8 kBytes + 1x BSEND with 8 kBytes 1x AR_SEND with 10 Kbytes + 1x AR_SEND with 2 Kbytes + 1x BSEND with 4 Kbytes Note If the data block of a write job is transferred to AS and has not yet been deleted or fully deleted from the receiving buffer, then the next write job will be rejected with an error message. During such an error display, write jobs with R_ID > 0x8000 0000 are written to a connection-specific queue and the system tries to repeat the write job for 6 seconds. The responsibility for time co-ordination for transfer rests with the user and needs to be noted as shorter time intervals for write jobs.
241
"R_ID" Parameter
For the "BSEND/BRCV" functionality, you must specify a 32-bit long R_ID as hexadecimal number. The R_ID is assigned at the time of configuration in AS and is used for distinguishing multiple data block transfers over one connection. The send and receive calls are always
242
See also
How to Configure a Raw Data Tag for ""BSEND/BRCV" functions (Page243)
10.6.3.5
Introduction
This section will show you how to configure a raw data tag of the "SIMATIC S7 Protocol Suite" channel for "BSEND/BRCV" functions. The configuration is identical for all channel units of the channel. The "MPI channel unit and its connection is used in the example.
Requirements
The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. A connection must be created to a channel unit e.g. "MPI".
Procedure
1. Choose the "New Tag" option from the shortcut menu for the connection. The "Tag Properties" dialog opens. 2. Enter "Var2_raw_bsend" as the name of the tag in the "Name" field. Select "Raw Data Type" in the "Data Type" field. 3. Click the "Select" button to open the "Address properties" dialog. 4. Mark the "Raw Data" check box. In the "Raw Data Type" area select the type "BSEND/ BRCV". The display of the fields of the "Address description" area is now deactivated.
243
10.6.4
10.6.4.1
Software Redundancy
Software Redundancy
Introduction
The software redundancy offers a cost-effective option for monitoring the safety-related parts of the system that do not have time criticality through a redundant connection of two automation systems S7-300 or S7-400. Note The software redundancy of this channel does not have the same functions as the H Layer Redundancy of SIMATIC S7-400 H. Configurations in AS and in WinCC are required for functioning.
244
AS
If a redundant connection exists between two automation systems, then in the event of failure of one AS the other one can take over the monitoring. Monitoring can cover the entire process or just parts thereof. Apart from the application program, the software redundancy package is installed on both the automation systems. This program package is not included in the scope of WinCC delivery. For matching data, you need a redundancy connection via MPI, PROFIBUS-DP or Industrial Ethernet between the two automation systems whereby even the existing communication links can be used.
WinCC
The redundancy connection can also be configured amongst the connection of the same channel unit. At the time of configuration, only one connection, the so-called main connection is configured. The reserve connection is only inserted via the Dynamic Wizard "Set up redundant connection". The Wizard also inserts the connection-specific internal tags and a script. This controls the switching between connections during runtime and also the corresponding messages.
245
See also
How to Clear a Software Redundancy in WinCC (Page253) How To Configure a Software Redundancy (Page250) Software Redundancy - Connection-specific internal tags (Page246)
10.6.4.2
Introduction
Connection-specific internal tags are used to control the redundant connections. These tags are setup using the Dynamic Wizard "Redundant Connection Configuration" and are gathered in a Tag Group called "@<connectionname>" in the associated connection. These tags can be used to determine the connection status and to control the establishment of a connection. Thus, they can also be used to implement other applications, e.g. the addressing of multiple PLCs via a single connection. However, if these tags are to be used without the Software Redundancy package, they must be created manually.
Name Format
The name of a connection-specific internal tag is composed of the name of the associated connection and an identifier. "@<connectionname>@<identifier>" The connection name is prefixed by a "@" to identify it as a system tag. The identifier is placed as a separator before the connection name. Example: "@CPU_3@ConnectionState" <connectionname> = CPU_3 <identifier> = ConnectionState
246
ConnectionState
Meaning Type Access Default value Values Connection Status This tag can be used to find out the current connection status. DWORD Read 0 = "faulty" 0 = Connection faulty 1 = Connection ready-to-use 2 = Connection redundant (only in case of redundancy in H systems)
ConnectionError
Meaning Cause of fault The tag contains a description of the cause for the fault. Default = 0, i.e. connection not yet established or without error. When establishing a connection, the tag is loaded with 0 (no error) again. The error code is interpreted in a channel-specific manner. The S7 channel passes the SIMATIC Device Driver's error code in this tag. DWORD Read 0 = "No error" 0 = No error <> 0 = S7 Error codes
247
ConnectionErrorString
Meaning Cause of fault as string The tag contains the reason for the connection error as string. The string is put out in the language currently selected. Default = ", i.e. connection not yet established or without error. In S7 channel, the following text is output in "English" regardless of the selected language. TEXT8 [128] Read "" = "No error" "No Error" "Error hhhh" = Error hhhh has occurred (whereby hhhh = S7 error code hexadezimal)
ConnectionErrorCount
Meaning Counter for connection error The value of this tag is incremented by 1 every time there is a connection error. When there is an overflow, the counting starts back at 0. DWORD Read 0
ConnectionEstablishMode
Meaning Connection Establish Mode This tag can be used to set the automatic mode to establish a connection. If enabled, the S7 channel attempts to reestablish a failed connection at intervals of approx. 4 seconds. If the value in this tag = 0, there will be no attempt after every 4 seconds to reestablish the connection after a fault; rather it will remain disconnected. DWORD Write 1 A Write to the tag brings about the following actions: 0 = Manual connection establish mode Action: Deactivate automatic connection establishment <>0 = Automatic connection establishment mode Action: Activate automatic connection establishment mode
248
ForceConnectionState
Meaning Preferred connection status This tag can be used to inform the channel about the preferred connection status. Usually this tag has the value 1, i.e. the channel attempts to establish the connection (at regular intervals of approx. 4 seconds, if applicable). If the value 0 is written to this tag, the channel interrupts the connection. DWORD Write 1 Any write to the tag has the following effects: 0 = preferred connection status: Connection broken Action: if connection established, initiate disconnection 1 = Preferred Connection Status: Connection broken Action: if connection disconnected, initiate establishment of connection
ForceConnectionAddress
Meaning Select the connection address This tag defines which of the connection addresses is to be used to establish the connection. DWORD Write 0 If ConnectionEstablishMode is set to "Automatic", the connection will be setup automatically to the corresponding address. A Write to the tag brings about the following actions: 0 = Connection via configured connection parameters Action: If @ForceConnectionAddress has been earlier set to 1, then initiate disconnection. 1 = Connection via alternative connection parameters Action: If @ForceConnectionAddress previously on 0, then initiate disconnect.
249
AlternateConnectionAddress
Meaning Alternative Connection Address In this tag, you can enter the alternative connection address string. The string is the same as the one that will be displayed as the connection parameter in WinCC Explorer. The string is channel-specific. Upon system startup (Runtime), the configured address is entered here as default for the S7 channel. If an address has not been configured yet, the text "Illegal Address" is entered for the S7 channel. Example of address detail for a S7-AS with station address 3 via MPI: "MPI,3 0,,0,0,02" TEXT8 [255] Write "..." = "configured address Writing to this tag gives rise to the following actions: - If the address changes due to the write process, then the connection is disconnected fro the setting "Connection via alternative connection parameter". - If connection mode is set to "automatic", then the connection is automatically established with the address that has just been written.
10.6.4.3
Introduction
This section describes how to configure the software redundancy for connections of the Channel "SIMATIC S7 Protocol Suite" in WinCC. The PLC must also be configured to use this function, but this will not be described in this document.
Requirements
1. The Channel "SIMATIC S7 Protocol Suite" must be integrated into the project. 2. A connection must be created in one of this channel's channel-units to which a redundant connection should be configured.
Procedure
1. In the computer's startup parameters, activate the "Global Script Runtime", "Alarm Logging Runtime" and "Graphics Runtime" modules. For further information, please see "Checking startup parameters". 2. Load WinCC's system messages into Alarm Logging. These system messages include messages about software redundancy. You can find additional information about the topic under "Read WinCC system messages in Alarm Logging".
250
4. The procedure for using the wizard is described briefly in the "Welcome". Click "Next" to open the "Set Options" dialog. 5. Select the connection that should be used as the main connection and then click on "Next". The wizard will now create the connection-specific internal tags and will save them in a tag group "@" under the main connection.
251
7. All of the settings made will be displayed once more in the "Finished!" dialog. If you want to make any corrections, simply click on "Back". Click "Finish". The Wizard will now generate a script and save it under "@<connectionname>.pas" in the directory "C-Editor \ Actions \ Actions : <computername> of the Global Script Editor. Note In the following procedure, the "Setup redundant connection" wizard will be used. This wizard generates - when Step 6 is completed - the connection-specific internal variables. If the wizard is canceled at this point or the procedure is not completed by clicking on "Finish", these tags will remain unchanged.
See also
How To Load WinCC's system messages into Alarm Logging (Page254) How to Check the WinCC Startup Parameters (Page253)
252
10.6.4.4
Introduction
This section describes how to delete the software redundancy for connections of the Channel "SIMATIC S7 Protocol Suite" in WinCC. The PLC must also be configured to use this function to return to non-redundant connections, but this is not described in this document.
Requirements
The WinCC project must be deactivated.
Procedure
A software redundancy is deleted in two steps: Delete the tag group "@<computername" including its tags in "Tag Management". Delete the script "@<connectionname>.pas" in "Global Script".
Procedure
1. In the Tag Management, select the connection that should be configured as the main connection for the software redundancy. It contains a tag group "@<connectionname" with the software redundancy's connection-specific internal tags. Delete this tag group. 2. Delete the script for the Action "@<connectionname>.pas". To do this, open the C-Editor in "Global Script". Several subdirectories will be displayed. 3. Select the "Actions \ Action : " directory. <computername>". In the data window, delete the script "@<connectionsname>.pas" for the "Actions" type. 4. Close the "Global Script" editor.
10.6.4.5 Procedure
1. In WinCC Explorer, select "Computer". 2. Open the shortcut menu and select "Properties". 3. The "Computer List Properties" dialog is opened. Click the "Properties" button. 4. The "Computer Properties" dialog is opened. 5. Click the "Startup" tab and check the entries. If necessary, activate or deactivate Runtime modules or add other applications to the startup list. 6. Close the open dialogs.
253
10.6.4.6
Introduction
In this section you will see how you can load the WinCC system messages into the project.
Procedure
1. Open Alarm Logging. 2. In "Tools" mneu, use "WinCC System Messages" item to open the "WinCC System Messages" dialog. 3. In the Create System Messages area, click the "Create only New System Messages" option button. 4. Click "Create" and close the dialog after completing the transaction. 5. Save your changes and close Alarm Logging.
10.6.4.7
254
11
Introduction
The communication driver "SIMATIC TI Ethernet Layer 4" handles the link between a WinCC station and a SIMATIC TI505 automation system via Industrial Ethernet. The communication is handled with the ISO transport protocol. This chapter describes how to configure the data transfer with the "SIMATIC TI Ethernet Layer 4" channel. how to configure a connection and a tag.
Channel units
IT has two channel units to run a maximum of two CP 1613. The functionality of the channel unit is identical. They differ only in the logical device names of the two CP 1613. The logical device name can be changed via the system parameters of the channel unit. Here, it is also possible to set the parameters for the ISO transport protocol. The following application capabilities exist: Channel unit 505 Ethernet (CP 1413-1) for the communication modules for SIMATIC Industrial Ethernet (e.g. CP 1613). Channel unit 505 Ethernet (CP 1413-2) for the communication modules for SIMATIC Industrial Ethernet (e.g. CP 1613).
11.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8 bit value (is only supported by VMS addressing) Signed 8 bit value (is only supported by VMS addressing)
255
11.3
11.3.1
Introduction
The following steps are required for configuring the channel "SIMATIC TI Ethernet Layer 4".
11.3.2
Introduction
The process connection via Industrial Ethernet is possible with the SIMATIC TI505 automation system. Communication module CP 1434 TF is used in the automation system. The communication is handled with the ISO transport protocol. The communication module CP 1613 is used in the WinCC system. Because communication takes place via the ISO transport protocol, it is not necessary to configure the logical connection in the local database. For a logical connection, WinCC establishes one connection in the transport layer for reading (READ) and one for writing (WRITE). Only if both connections are established is the logical connection also indicated as being established.
256
Parameters "Own TSAP-ID" and "External TSAP-ID" for the WRITE function
WinCC side Request "WRITE Active" SIMATIC TI side Request "WRITE Passive"
Procedure
1. Select the connection and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click on the "Properties" button. The "Connection properties" dialog is opened.
3. Enter the station address of the SIMATIC TI on the industrial Ethernet bus in the field "Ethernet Address". 4. Now, define the parameters for the READ function in the WinCC system. These are independent of the request used in the SIMATIC TI. 5. Then, enter the value in the allocated field "Own TSAP-ID" that was configured in the "Remote parameter" area as "TSAP" while configuring the CP 1434 TF. 6. Now, enter the value in the allocated field "External TSAP-ID" that was configured in the "Local parameter" as "TSAP" while configuring the CP1434 TF. 7. Define the parameters "Own TSAP-ID" and "External TSAP-ID" for the WRITE function accordingly.
257
11.3.3
11.3.3.1
Introduction
For a connection between WinCC and the AS via channel "SIMATIC TI Ethernet Layer 4", tags of different data types can be created in WinCC. The following describes how to configure a tag of these data types.
11.3.3.2
Introduction
The tag address is entered according to the address structure of the SIMATIC TI505.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select the desired data type for the tags (e.g. Signed 16 bit value) from the "General" tab. 3. Click the "Select" button. If it is a "Binary" or "8-Bit" tag, the "Bit/Byte tag" dialog will now open. Tick the corresponding check box "Access a Bit/Byte", if data should be written to the AS memory. 4. Click the "Select" button. The "Address properties" dialog is opened.
258
11.3.3.3
Introduction
Write access to memory areas in the AS can only performed bit-wise or byte-wise in channel "TI Ethernet Layer 4". When using binary and "8 Bit" tags, dialog "Bit-Byte-tag" is opened in addition to dialog "Address properties" and this can be used to define write access to individual bits or bytes. For this purpose, the addressed memory area is read from the AS for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the AS's memory. Note Changes that have been made by the AS in a read data area are overwritten when writing back into the data area.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "binary tag" on the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
259
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the "Address type" selection field. 7. From the list below, select the number of the element to be changed. Note A description of address types may be found in the SIMATIC TI505 Technical Documentation.
11.3.3.4
Introduction
Write access to memory areas in the AS can only performed bit-wise or byte-wise in channel "TI Ethernet Layer 4". When using binary and "8 Bit" tags, dialog "Bit-Byte-tag" is opened in addition to dialog "Address properties" and this can be used to define write access to individual bits or bytes. For this purpose, the addressed memory area is read from the AS for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the AS's memory.
260
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "Unsigned 8 bit value" or "Signed 8 bit value" in the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened. 4. Check the "Access to a byte" checkbox and define the addressing for the byte.
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the "Address type" selection field. 7. From the list below, select the number of the element to be changed. Note A description of address types may be found in the SIMATIC TI505 Technical Documentation.
261
11.3.4
11.3.4.1
System parameters
System parameters of the channel unit
Introduction
If you require a configuration that deviates from the standard WinCC settings, you can make all the required changes using the "System parameters" dialog of the channel unit. The following individual points can be changed: the device name the transport parameter
Device Name
Communication between WinCC and the automation system takes place via logical device names. These names are assigned during the installation of the communication module and are unit-specific. The device name represents the logical device name. The logical device name is initially defined as "/CP_H1_1:/SCP" as default.
Transport Parameter
Specific settings for the channel unit are made in the transport parameters, e.g. PDU size, setup attempts, etc. Note The system parameters apply for all CPs in the AS.
11.3.4.2
Introduction
The process connection via Industrial Ethernet is possible with the SIMATIC TI505 automation system. Communication module CP 1434 TF is used in the automation system. The communication is handled with the ISO transport protocol. The communication module CP 1613 is used in the WinCC system. Because communication takes place via the ISO transport protocol, it is not necessary to configure the logical connection in the local database.
262
Requirements
The channel "SIMATIC TI Ethernet Layer 4" must be integrated in the project.
Procedure
1. Select the channel unit and open dialog window "System parameters" with the context menu. 2. Select the "Device Name" Tab.
3. Now, you can select the logical device name shown in bold print with the mouse and change it with a mouse click in the name field. The logical device name is defined as "/CP_H1_1:/SCP" as default during the hardware driver installation. Only if you have defined another name there, which is not recommended, will you have to change the device name here as well.
11.3.4.3
Introduction
The process connection via Industrial Ethernet is possible with the SIMATIC TI505 automation system. Communication module CP 1434 TF is used in the automation system. The communication is handled with the ISO transport protocol.
263
Requirements
The channel "SIMATIC TI Ethernet Layer 4" must be integrated in the project.
Procedure
1. Select the channel unit and open dialog window "System parameters" with the context menu. 2. Select the "Transport parameter" tab.
3. Set the value for "PDU size" to the value that was configured on the CP 1434 TF. 4. Define how often a connection establishment should be attempted in the "Setup attempt" filed. 5. Select "Infinite" in the "Duration of Send Repetitions" area. 6. Enter value 30 in the "Acknowledgement time" field so that you are informed of the tag status after 30 seconds at the most, if the communication partner has not responded within this time (e.g. AS in "Stop" status).
264
SIMATIC TI Serial
12 12.1 Resources WinCC channel "SIMATIC TI Serial"
12
Introduction
The communication driver "SIMATIC TI Serial" is used for establishing a serial link between WinCC station and an SIMATIC TI505 automation device. This chapter describes how to configure the data transfer with the "SIMATIC TI Serial" channel. how to configure a connection and a tag.
Channel units
The communication driver has one channel unit for controlling a COM port for the serial connection. The following capability is available: Channel unit "505 Serial Unit #1" for serial communication, either via the TBP protocol or the NITP protocol. Note It is possible to run more than one logical connections (with different COM ports) through one channel unit.
12.2
Introduction
Define the required tags for a logical connection. From the WinCC viewpoint, you can access the following data types: Binary tag Unsigned 8 bit value (is only supported by VMS addressing) Signed 8 bit value (is only supported by VMS addressing) Unsigned 16-bit value
265
12.3
12.3.1
Introduction
The following steps are required for configuring the channel "SIMATIC TI Serial".
12.3.2
Introduction
The process connection using a serial connection is possible with the SIMATIC TI505 automation system. The serial interface on the CPU module is used in the automation system. No additional communication module is required in WinCC. Communication can take place by means of the default COM ports available on the system.
266
Procedure
1. Select the connection and open the "Connection properties" dialog window with menu point "Properties" in the context menu. 2. Click on the "Properties" button. The "Connection properties" dialog is opened.
3. Select the communications interface (e.g. COM1, COM2 or a configured port) for the serial link in the "Serial port" field. 4. Select the field "Detect automatically" when the data transfer speed and the protocol used by the PLC are required to be detected automatically by the channel unit. 5. Set the data transfer rate and the protocol being used in the fields "Baudrate" and "Protocol". 6. By selecting the field "Optimized Requests," you can optimize data transfer to transfer several tags with one request. 7. If you select the "Deactivate connection" field, the logical connection is deactivated. This is often a good idea during commissioning to temporarily deactivate the connection.
267
12.3.3
12.3.3.1
Introduction
For a connection between WinCC and the PLC via channel "SIMATIC TI Serial", tags of different data types can be created within WinCC. This is described in the following section.
12.3.3.2
Introduction
The tag address is entered according to the address structure of the SIMATIC TI505.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select the desired data type (e.g. Signed 16 bit value) from the "General" tab. 3. Click the "Select" button. If it is a "Binary" or "8-Bit" tag, the "Bit/Byte tag" dialog will now open. Tick the corresponding check box "Access a Bit/Byte", if data should be written to the AS memory. 4. Click the "Select" button. The "Address properties" dialog is opened.
268
12.3.3.3
Introduction
Write access to memory areas in the AS can only performed bit-wise or byte-wise in channel "SIMATIC TI Serial". When using binary and "8 Bit" tags, dialog "Bit-Byte-tag" is opened in addition to dialog "Address properties" and this can be used to define write access to individual bits or bytes. For this purpose, the addressed memory area is read from the AS for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the AS's memory. Note Changes that have been made by the AS in a read data area are overwritten when writing back into the data area.
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "binary tag" on the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened.
269
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the selection field. 7. Select the number of bit to be changed in the selection field. Note With the S5, flags, inputs and outputs can be addressed by byte, data blocks (DB, DX) are addressed by word.
12.3.3.4
Introduction
Write access to memory areas in the AS can only performed bit-wise or byte-wise in channel "SIMATIC TI Serial". When using binary and "8 Bit" tags, dialog "Bit-Byte-tag" is opened in addition to dialog "Address properties" and this can be used to define write access to individual bits or bytes. For this purpose, the addressed memory area is read from the AS for every single write request and the corresponding bits and/or bytes are modified. Afterwards, the data is written back to the AS's memory.
270
Procedure
1. Select the tag and open dialog window "Properties" with the context menu. 2. Select data type "Unsigned 8 bit value" or "Signed 8 bit value" in the "General" tab. 3. Click the "Select" button. The "Bit-/Byte-tag" dialog is opened. 4. Check the "Access to a byte" checkbox and define the addressing for the byte.
5. Click the "Select" button. The "Address properties" dialog is opened. 6. Select the addressing type of the PLC memory in the selection field 7. Select the number of byte to be changed in the selection field.
271
System Info
13 13.1
Contents
13
The "System Info" channel is used to evaluate system information such as the time, date, disk capacity and provides functions such as timers and counters. This chapter will show you configure the channel, connection and tags display system information in a process picture use system information to trigger and display a message display system information graphically display the system information from several servers in a multi-user system
13.2
Principle
The System Info channel is used to evaluate system information such as the time, date, disk capacity and provides functions such as timers and counters. Possible applications are: Display of the time, date and day of the week in process pictures Triggering of events through evaluation of system information in scripts Display of the CPU load in a trend Display and monitoring of the available drive space on different servers of a client system Monitoring of the available disk capacity and triggering of a message The channel requires no hardware, since it directly accesses the system information of the computer on which it has been installed. In order for the channel to function, a connection must be set up. Additional connections are possible, but not required for the proper operation. For more information regarding the diagnosis of channels and tags, refer to "Communication Diagnostics".
273
Communication Manual
The communication manual contains additional information and extensive examples for the channel configuration. This manual is available for download on the Internet: http://support.automation.siemens.com/ Search by order number: A5E00391327
See also
Use in Multi-User and Client Systems (Page292) How To Call Up and Evaluate System Information (Page280) How to Configure the System Info Channel (Page280) Differences to Other Software Components (Page279) Overview of the Supported System Information (Page275) Diagnosis of Channels and Tags (Page301)
274
13.3
Introduction
In the "Function" field in the "System Info" dialog, you can specify the system information to be assigned to a WinCC tag. The display format is set in the "Format" field.
275
Time
Text tag 8-bit character set; length = 10 bytes Length = 12 bytes Unsigned 16-bit value Unsigned 16-bit value Unsigned 16-bit value Unsigned 16-bit value Signed 32-bit value Floating-point number 32-bit IEEE 754 Signed 32-bit value Floating-point number 32-bit IEEE 754 Floating-point number 32-bit IEEE 754 Unsigned 32-bit value
0...9999 0...n kB 0...100% 0...n B 0...n MB 0...100% 0...n % 0...n 0...n 0...n kB 0...n kB 0...n kB 0...n kB 0...n kB 0...100% 0...n kB
276
Counter
This function is useable for test purposes in scripts.
Timer
When this function is selected, the "System Info" dialog is extended with fields "Limits from" and "to". After every second, the timer is incremented or decremented. The direction in which the changes are made is determined by the starting and ending values in the fields "Limits from" and "to". If the start value is smaller than the end value, the timer is incremented. If the start value is greater than the end value, the timer is decremented. If in Runtime, a value is entered in the I/O field linked to the timer, the start and current timer values is set to this value. Example: timer configured from 0 to 60. If "0" is written in Runtime, the timer is reset. After the deactivation, the original start value is reapplied.
CPU load
For the formats "Total load in %" and "Idle load in %" in connection with multiprocessor PCs enter the CPU number beginning with "0". For the format "Process load in %" enter the instance number, if there are several instances of a process.
Printer monitoring
With the "Printer status" and "Job status" formats the server name must be entered in the "Printer" field. The printers in use must support this status information to be able to use this system information. In order to analyze the printer status, please observe the following: The port monitor is responsible for the transmission of the printer status to the spooler. Depending on the selected printer port, different port monitor DLLs are installed. From the port monitors supplied with Windows, only "TCPMON.DLL" is capable of transmitting the printer status using the TCP/IP port. "LOCALMON.DLL" using the LPT port does not communicate the printer status. The printer status is assessed only after a print job has been submitted, but not during polling of the status at the port. In the case of the "Free PRT_OUT drive space" and "PRT_OUT Directory Size" formats, the channel automatically determines the path for the "Directory" field.
277
278
Note The error codes of the "Printer status" and "Job status" formats corresponds to the values in the Visual C-referenced file "Winspool.h" .
13.4
Introduction
Some of the System Info channel system information can also be evaluated or displayed by WinCC using ActiveX controls. Once fundamental difference to ActiveX controls can be seen in the fact that the System Info channel system information is assigned to a WinCC tag. The continued evaluation (e.g. of messages, limit values) can be carried out repeatedly and is then configured individually. The ActiveX controls are intended for use in the specified applications and may also be used for multi-user or client systems. For the following system information, differences between the ActiveX control and the channel exist:
Time
The ActiveX control "WinCC Digital/Analog Clock Control" is used to display the time in WinCC. This control also supports an analog display of the time. The control does not require the System Info channel even when if it is used in the process control system options. Using the control, it is possible to display a WinCC client's time in its process picture. This is not possible with the System Info channel, since this always displays the server's system time.
279
13.5
13.5.1
Introduction
This section illustrates how to configure the System Info channel.
Procedure
1. Select the entry "Add New Driver" in the shortcut menu of Tag Management. A selection dialog is opened. 2. Select the "System Info.chn" channel and close the dialog. The channel is set up and the channel driver is displayed in Tag Management. 3. Select the associated System Info channel unit and call up the shortcut menu. In this shortcut menu, select "New Connection". 4. In the "Connection Properties" dialog, enter the connection name. Close the dialog. 5. Choose the "New Tag" option from the shortcut menu for the connection. A dialog is opened. 6. Enter the tag name and set its data type. If you want to use the example for this channel, close the dialog and continue with the topic "How to Configure a Tag". 7. Click the "Select" button to open the "System Info" dialog. Select the desired function and format. The associated type of the WinCC tag is displayed in the "Data Type" field. 8. Close the open dialogs.
13.6
13.6.1
280
See also
How to Display the Printer Status in a Status Display (Page289) How to Configure a Message regarding Free Disk Capacity (Page286) How to Display the CPU Load in a Trend Window (Page284) How to Display the Free Disk Capacity in a Bar Graph (Page283) How to Display the Time in an I/O Field (Page282) How to Configure a Tag in the System Info Channel (Page281)
13.6.2
Introduction
This section illustrates how to configure tags in the System Info channel. These tags are used in the examples.
Requirement
Install the "SystemInfo.chn" channel.
Sysinfo_Drive_C
Sysinfo_CPU
Printer status
Printer monitoring
Sysinfo_Printerst ate
Procedure
1. In the shortcut menu of the associated System Info channel unit, select the entry "New Connection" and create a connection named "Testinfo". 2. Choose the "New Tag" option from the shortcut menu for the connection.
281
See also
How to Configure a Message regarding Free Disk Capacity (Page286) How to Configure the System Info Channel (Page280) How to Display the Printer Status in a Status Display (Page289) How to Display the CPU Load in a Trend Window (Page284) How to Display the Free Disk Capacity in a Bar Graph (Page283) How to Display the Time in an I/O Field (Page282)
13.6.3
Requirements
Configure a "Sysinfo_Time" tag with data type "Text tag 8-bit character set". This tag must be assigned the "Time" system information with display format "HH:MM:SS".
Procedure
1. Start Graphics Designer and open a picture. 2. Add an I/O field to the picture. Select the "I/O field" object from the object list under "Smart Objects". The "I/O Field Configuration" dialog is opened.
1. In the "Tag" field, enter the name "Sysinfo_Time". 2. Set the update to "1 s".
282
See also
How to Start Runtime (Page291) How to Insert an I/O Field (Page291) How to Configure a Tag in the System Info Channel (Page281)
13.6.4
Requirements
Configure a tag "Sysinfo_Drive_C" with data type "Floating-point number 32-bit IEEE754". This tag must be assigned the "Free Disk Space" system information for drive "C" with display format "Free capacity in %".
Procedure
1. Start Graphics Designer and open a picture. 2. Insert a bar graph into the picture. For this purpose, select the object "Bar" from "Smart Objects" in the object palette. The "Bar Configuration" dialog is opened.
283
1. In the "Tag" field, enter the name "Sysinfo_Drive_C". 2. Set the update to "5 s". 3. Set the maximum value to "100" and the minimum value to "0". Close the dialog. 4. Click on "Properties" in the bar graph shortcut menu to open the "Object Properties" dialog. 5. On the "Properties" tab, select "Axis". Set the attribute "Decimal Places" to "0". 6. Close the dialog and save the picture. 7. Click the appropriate button in the Graphics Designer toolbar to activate Runtime. Note The update cycle should be chosen with careful consideration, as it affects the load on the computer. Therefore, updating an available drive space display every second is detrimental to the system performance.
See also
How to Start Runtime (Page291) How to Insert a Bar Graph (Page291) How to Configure a Tag in the System Info Channel (Page281)
13.6.5
Requirements
Configure a tag named "Sysinfo_CPU" with data type "Floating-point number 32-bit IEEE754". This tag must be assigned the "CPU Load" system information with display format "Total load in %".
284
Procedure
1. Start Graphics Designer and open a picture. 2. Insert a trend display into the picture. You can accomplish this by selecting the "WinCC Online Trend Control" object from the "Controls" object palette. The "Properties of WinCC Online Trend Control" dialog is opened.
1. On the "General" tab, enter the name "Trend1" in the "Window Title" field. 2. In the "Data Source" field, select "Online Tags". 3. Click the "Trends" tab and then the "Selection" button to open the "Tag Configuration" dialog. 4. Enter "Sysinfo_CPU" as the name of the tag and then select a cycle time of "2 s". Close the dialog.
1. Close the "Properties of WinCC Online Trend Control" dialog and save the picture. 2. Click the appropriate button in the Graphics Designer toolbar to activate Runtime.
285
See also
How to Start Runtime (Page291) How to Configure a Tag in the System Info Channel (Page281)
13.6.6
Requirements
Configure a tag "Sysinfo_Drive_C" with data type "Floating-point number 32-bit IEEE754". This tag must be assigned the "Free Disk Space" system information for drive "C" with display format "Free capacity in %".
Procedure
1. Start Alarm Logging and create a new message by adding a new line in the table window below. 2. Open the "Single Message" dialog by clicking on "Properties" in the shortcut menu for the new message. 3. Click the "Text" tab and then enter the text "Memory Space" in the "Message Text" field, and the text "Hard Disk" in the "Point of Error" field. Close the dialog.
1. Select the "Extras / Add Ins" menu item to open the "Add Ins" dialog. If necessary, select the "Analog Alarm" check box. Close the dialog. 2. Select "Analog Alarm" in the navigation window for Alarm Logging and then click on "New" in the shortcut menu to open the "Properties" dialog. In the "Tag to be Monitored" field, enter the name "Sysinfo_Drive_C".
286
1. Select the "One message for all limit values" check box. In the "Message Number" field, enter the number of the newly created message. Close the dialog. 2. Select "Analog Alarm" in the navigation window. Select the entry "Sysinfo_Drive_C" in the data window. Click "New" in the shortcut menu to open the "Properties" dialog. Click the radio button "Lower Limit" and enter the value "30" in the "Limit value or tag" field. 3. Close the dialog. Save and exit Alarm Logging.
See also
How to Configure a Tag in the System Info Channel (Page281) How to Display a Message regarding the Available Disk Capacity (Page287)
13.6.7
Requirements
A tag "Sysinfo_Drive_C" with data type "Floating-point number 32-bit IEEE754". The tag must be assigned the "Free Disk Space" system information for drive "C" with the display format "Free mem in %". A message text and the lower limit value for the limit value monitoring of this tag. "Alarm Logging Runtime" must be set in the computer's startup parameters.
Procedure
1. Start Graphics Designer and open a picture. 2. Insert a message window into the picture. Select the "WinCC Alarm Control" object from the "Controls" object palette and place it in the picture. Close the quick configuration dialog without making any further changes. 3. Double-click the inserted control to open the "WinCC Alarm Control Properties" dialog.
287
5. Click the "Message Line" tab. In the "Available Message Blocks" field, mark the entries "Message Text" and "Point of Error" and then click the "Right Arrow" button to transfer them to the "Elements of message line" field. Close the dialog.
6. Save the picture. 7. Click the appropriate button in the Graphics Designer toolbar to activate Runtime.
See also
How to Check the WinCC Startup Parameters (Page290) How to Start Runtime (Page291) How to Configure a Tag in the System Info Channel (Page281)
288
13.6.8
Introduction
This example shows a possible evaluation of the "Printer monitoring" system information based on the "Printer status" display format. The printer or job status could also be evaluated by configuring messages that are triggered by single bits in the printer or job status.
Requirements
Configure a "Sysinfo_Printerstate" tag with data type "Unsigned 32-bit value". This tag must be assigned to the "Printer monitoring" system information with the "Printer status" display format. The printers in use must support these status displays to be able to use this system information.
Procedure
1. Start Graphics Designer and open a picture. 2. Insert a status display into the picture. Select the "Status display" object from the object palette under "Smart Objects". The "Status Display Configuration" dialog is opened.
1. In the "Tag" field, enter the name "Sysinfo_Printerstate". 2. Set the update to "1 s".
289
See also
How to Configure a Tag in the System Info Channel (Page281) How to Start Runtime (Page291)
13.6.9
Procedure
1. In WinCC Explorer, select "Computer". 2. Open the shortcut menu and select "Properties". 3. The "Computer List Properties" dialog is opened. Click the "Properties" button. 4. The "Computer Properties" dialog is opened. 5. Click the "Startup" tab and check the entries. If necessary, activate or deactivate Runtime modules or add other applications to the startup list. 6. Close the open dialogs.
290
13.6.10
Procedure
1. Start Graphics Designer and open a picture. 2. In the "Standard" object palette under "Smart Objects", select the object "Bar". 3. Insert a bar graph into the picture. To do this, point the mouse on the location in the working area where you want the bar graph to be placed. While keeping the mouse button pressed, drag the object to the desired size. 4. After you release the mouse button, the "Bar Configuration" dialog is opened. In this dialog, enter the name of a WinCC tag and set the update specifications and limit. Additionally, you can use the "Bar Direction" to set the orientation of the displayed bar. 5. Close the dialog.
13.6.11
Procedure
1. Start Graphics Designer and open a picture. 2. In the "Standard" object palette under "Smart Objects", select the object "I/O Field". 3. Insert the I/O field into the picture. To do this, position the mouse on the location in the working area where you want the I/O field to be placed. While keeping the mouse button pressed, drag the object to the desired size. 4. After you release the mouse button, the "I/O Field Configuration" dialog is opened. In this dialog, enter the name of a WinCC tag and set the update and field type settings. Additionally, you can also select the "Font" to be used to display the value. 5. Close the dialog.
13.6.12
Requirements
A startup picture must be defined before Runtime is activated.
Procedure
1. Save and close all files that may be open in an editor. 2. Select WinCC Explorer. 3. Activate the project by clicking the "Activate" button in the toolbar or by selecting "Activate" in the "File" menu.
291
13.7
13.7.1
13.7.1.1
Special Functions
Use in Multi-User and Client Systems
Use in Multi-User and Client Systems
Introduction
In multi-user and client systems, the System Info channel can be used to process the system information from a server on a client system. In a client system, it is thus possible for a single WinCC client to monitor several servers.
See also
Monitoring the system information of several servers on a WinCC client (Page292)
13.7.2
13.7.2.1
Introduction
In this example, two servers are monitored by a single WinCC client. The monitored system information such as available disk space and CPU load is displayed in a process picture on the WinCC client. This requires the following configurations: Configuration of first server Configuration of second server Import of tags on the WinCC client Configuration of the process picture on the WinCC client Activation of the project
Requirements
The server and the WinCC client must be connected through a Windows network.
292
See also
How to Activate the Project (Page297) How to Configure the Process Picture on the WinCC Client (Page296) How to Import the Tags to the WinCC Client (Page295) How to Configure the Second Server (Page294) How to Configure the First Server (Page293)
13.7.2.2
Introduction
This section presents the configuration of the first server, which is necessary for this example. 1. Configure the tags of the System Info channel to display available disk space and CPU load. 2. Generation of a package
Procedure
1. Create a multi-user project named "Testinfo_1" on the first server. Install the driver "System Info.chn" in the project. 2. In the shortcut menu of the associated "System Info" channel unit, select the entry "New Connection" and create a connection named "Connection1". 3. In the connection's shortcut menu, select "New Tag". 4. In the "Tag Properties" dialog, enter "Sysvar_1_Drive_C" as the name of the tag. Set the "Data Type" to "Floating-point number 32-bit IEEE 754". 5. Click the "Select" button to open the "System Info" dialog. Set the "Function" field to "Free Disk Space", the "Drive" to "C" and "Format" to "Free capacity in %". Close all open dialogs. 6. In the connection's shortcut menu, select "New Tag".
293
See also
How to Configure the Second Server (Page294)
13.7.2.3
Introduction
This section presents the configuration of the second server, which is necessary for this example. 1. Configure the tags of the System Info channel to display available disk space and CPU load. 2. Generation of a package.
Procedure
1. Create a multi-user project named "Testinfo_2" on the second server. Install the driver "System Info.chn" in the project. 2. In the shortcut menu for the associated "System Info" channel unit, select the entry "New Connection" and create a connection named "Connection2". 3. In the connection's shortcut menu, select "New Tag". 4. In the "Tag Properties" dialog, enter "Sysvar_2_Drive_C" as the name of the tag. Set the "Data Type" to "Floating-point number 32-bit IEEE 754".
294
See also
How to Import the Tags to the WinCC Client (Page295)
13.7.2.4
Introduction
This section presents the configuration of the WinCC client, which is necessary for this example. 1. Loading the package of the first sever project. 2. Loading the package of the second sever project.
Requirements
This example requires the use of two server project packages.
Server 1 2 Project Testinfo_1 Testinfo_2 Package Testinfo_1_<computer_name> Testinfo_2_<computer_name>
Procedure
1. Create a client project named "mc_info" on the WinCC client. 2. In the server data shortcut menu, select "Load". The "Open" dialog is opened. 3. Select the computer on which the first server project "Testinfo_1" is located. 4. Select the package "Testinfo_1_<computer_name>.pck" in the "<project_name> \ <computer_name> \ Packages" directory.
295
See also
How to Configure the Process Picture on the WinCC Client (Page296)
13.7.2.5
Introduction
This section illustrates the configuration of the WinCC client, which is required in this example to display the server system information in a process picture on a WinCC client. 1. Configuration of the system information display of the first server 2. Configuration of the system information display of the second server
Requirements
This example requires that the server project packages are loaded in the client project.
Package Testinfo_1_<computer_name> Testinfo_1_<computer_name> Testinfo_2_<computer_name> Testinfo_2_<computer_name> Project Testinfo_1 Testinfo_1 Testinfo_2 Testinfo_2 Tag Sysvar_1_Drive_C Sysvar_1_CPU Sysvar_2_Drive_C Sysvar_2_CPU
Procedure
1. On the WinCC client, start Graphics Designer and create a picture named "p_serverinfo". 2. Add an I/O field to the picture. Select the "I/O field" object from the object list under "Smart Objects". The "I/O Field Configuration" dialog is opened. 3. Click the button for tag selection. The "Tags" dialog is opened. 4. Select the tag "Sysvar_1_Drive_C" of the first server project "Testinfo_1". For this purpose, open the directory structure under the package "Testinfo_1_<computer_name>". Close the dialog. 5. In the "I/O Field Configuration" dialog, set the update to "5 s". 6. Set the field type to "Output". Close the dialog. 7. Insert a second I/O field into the picture and configure it for the tag "Sysvar_1_CPU" of the same project. For this purpose, repeat the steps 2 to 6 with the appropriate settings taken from the "Requirements" table.
296
See also
How to Activate the Project (Page297)
13.7.2.6
Introduction
This section shows how to activate the projects on the servers and the WinCC client. 1. Create a startup picture in the server project "Testinfo_1" and activate the project. 2. Create a startup picture in the server project "Testinfo_2" and activate the project. 3. Define the startup picture in the project "mc_info" on the WinCC client and activate the project.
Procedure
1. In the navigation window in the project "Testinfo_1" on server 1, select Graphics Designer and use the shortcut menu to create a new picture. 2. Set this picture as the startup picture. To do this, select "Set as startup picture" from the shortcut menu. 3. Click the "Activate" button in the toolbar to activate the project. 4. In the navigation window in the project "Testinfo_2" on server 2, select Graphics Designer and use the shortcut menu to create a new picture. 5. Set this picture as the startup picture. To do this, select "Set as startup picture" from the shortcut menu. 6. Click the "Activate" button in the toolbar to activate the project. 7. On the WinCC client in the navigation window in the project "mc_info", select Graphics Designer. The process picture "p_serverinfo" is displayed in the data window. 8. Set this picture as the startup picture. To do this, select "Set as startup screen" from the shortcut menu. 9. Click the "Activate" button in the toolbar to activate the project.
297
Windows DDE
14 14.1
Content
14
The channel has been used in earlier WinCC versions for linking applications via DDE interface of Windows and is available only because of its compatibility with previous WinCC versions. New connections, however, should be established using the "OPC" channel.
299
Communication - Diagnostics
15 15.1 Resources Diagnosis of Channels and Tags
15
This section describes the diagnosis of channels and their tags, as well as of internal tags. This diagnosis can be used for example in the event of communication problems or unexpected tag values.
See also
Diagnostic Options for the "SIMATIC S5 PROFIBUS FDL" Channel (Page324) Quality Codes of Tags (Page343) Monitoring Tag Status Using Global Actions (Page350) Using the Tag Status to Monitor Connection Status (Page349) How to Check an Internal Tag (Page351) Channel diagnosis (Page302) General Information about Error Detection (Page301) Possibilities for Diagnosing the "OPC" Channel (Page333) "SIMATIC S7 Protocol Suite" Channel - Diagnostic Options (Page314) "System Info" Channel - Diagnostic Options (Page309)
15.2
301
15.3
15.3.1
Channel Diagnosis
Channel diagnosis
The following functions are available to support the diagnosis of channels and their connections: "Status - Logical Connections" Function WinCC "Channel Diagnosis"
See also
How to use the "Status - Logical Connections" function to check a channel (Page302) "Status - Logical Connections" Function (Page302) Principle of Channel Diagnosis (Page304)
15.3.2
15.3.3
Introduction
This section describes how to use the "Status - Logical Connections" function to display the current status of all configured connections.
302
Requirements
Configure a channel and create a tag in this channel.
Procedure
1. Click the appropriate button in the WinCC Explorer toolbar to activate Runtime. 2. In the WinCC Explorer "Tools", select option "Status of Driver Connections". The "Status Logical Connections" dialog opens.
1. In the "Update" area, you can specify that an update is to be done cyclically. Otherwise, you can start an update of the display manually by clicking the "Update" button. 2. The configured connections are displayed in the "Name" column. The "Status" column displays the status of the respective connection. 3. Check the entries in the "Status" column. The "Disconnected" status indicates either a configuration or hardware error. Further information can be found under "Channel Diagnosis" for the associated channel.
303
15.3.4
15.3.4.1
Introduction
The WinCC Channel Diagnosis enables WinCC users to gain a quick overview of the status of the active connections in Runtime. On the one hand, "Channel Diagnosis" provides status and diagnostic information regarding channel units and, on the other hand, it serves as a user interface for the configuration of the diagnostic output: The output of statistics or information on the status of the communication e.g. in a process picture Text output in a logbook file for fault analysis and correction by Service. Text output in a trace file to assist the Hotline in pinpointing the cause of communication problems. The Diagnostic module can be inserted into a process picture as an ActiveX control or be started as an independent application from the Windows Start menu. The module only displays status information for channels that support diagnosis. The diagnosis of a channel's tag can be found in the description of the channel-specific diagnosis.
Logbook file
Channel Diagnosis creates a logbook file named <Channel_name.log> for every configured WinCC channel. The system records important information and errors in these. The exact text content depends on the channel. The creation of the file and the output text cannot be configured. The logbook files contain information such as the start and end messages, version information and information regarding communication errors. Each entry in the file consists of a data and time stamp, the flag name and a description. The file is always saved immediately after an entry to ensure that e.g., in the event of a voltage drop, all of the information possible is available.
Trace File
A trace file named <Channel_name.trc> can be created to hold error messages and any additional information for every configured WinCC channel. You can select in Runtime whether to use a trace file. When the trace function is activated, a message will be displayed warning that the link's propagation time is affected. Each entry in a trace file has a time stamp followed by a flag name and description. When the trace function is enabled all information recorded in the logbook is also written to the trace file.
304
See also
Channel Diagnosis with ActiveX Control (Page305) How to Check a Channel with Channel Diagnosis as an ActiveX Control (Page305) Diagnosing a Channel with "Channel Diagnosis" (Page306) How to Check a Channel with Channel Diagnosis (Page307) How to Configure the Trace Function of a Channel (Page308) How to Start Runtime (Page309)
15.3.4.2
Introduction
The status information for a channel can also be displayed in a process picture by the "WinCC Channel Diagnosis Control" ActiveX control. The ActiveX control is found in the "Controls" object palette in Graphics Designer and is simply inserted in a picture. The user can thus create e.g. a diagnostics process picture, in which he can view the status of the communication and other information in Runtime, without needing to reconfigure this arrangement every time.
15.3.4.3
Introduction
This section shows how to configure the diagnosis of a channel using the "WinCC Channel Diagnosis Control" ActiveX control.
305
Requirements
Configure a channel and create a tag in this channel.
Procedure
1. Start Graphics Designer and open a picture. 2. Insert the "WinCC Channel Diagnosis Control" ActiveX control into the picture. This is accomplished by selecting the ActiveX control from the "Controls" object palette, inserting it into the picture and dragging it to the desired size. 3. Save the picture. 4. Click the appropriate button in the Graphics Designer toolbar to activate Runtime. 5. Select the picture into which you have inserted the ActiveX control. The status information for the channels appears in the "Channel Diagnosis" application window on the "Channels/ Connection" tab. 6. Click the "Configuration" tab. Select one of the displayed channels and configure which error messages are to be recorded in the associated log file. 7. More information about the activation of the Trace function can be found under "Configuring a Channel's Trace Function". Note Channel Diagnosis only displays status information for channels that support channel diagnosis.
See also
How to Configure the Trace Function of a Channel (Page308)
15.3.4.4
Introduction
Independent of WinCC, Channel Diagnosis can also be started as an application from the Windows Start menu. Channel Diagnosis is thus always available and not dependent on the selection of a process picture, as is the case with WinCC Channel Diagnosis Control. The status information is only displayed by Channel Diagnosis when WinCC is in Runtime.
306
15.3.4.5
Introduction
This section describes how to start Channel Diagnosis as an application from the Windows Start menu.
Requirements
Configure a channel and create a tag in this channel.
Procedure
1. In the Windows Start menu, select the entry "Channel Diagnosis" in the "Simatic/WinCC/ Tools" group. 2. The Channel Diagnosis application window opens. If no WinCC project is currently in Runtime, message "No connection to WinCC" is displayed. 3. Click the appropriate button in the WinCC Explorer toolbar to activate Runtime. 4. Select the picture into which you have inserted the ActiveX control. The status information for the channels appears in the Channel Diagnosis application window on the "Channels/ Connection" tab. 5. Click the "Configuration" tab. Select one of the displayed channels and configure which error messages are to be recorded in the associated log file. 6. More information about the activation of the Trace function can be found under "Configuring a Channel's Trace Function". Note Channel Diagnosis only displays status information for channels that support channel diagnosis.
See also
How to Configure the Trace Function of a Channel (Page308) How to Start Runtime (Page309)
307
15.3.4.6
Introduction
This section describes how to configure and activate a Trace function of a channel in Runtime. Additional information regarding errors and the status of the communication is recorded in the Trace file. Note The information recorded in a trace file is intended to assist the Hotline in pinpointing the cause of communication problems. For this reason, the evaluation of the data in the file is not further described here.
Requirements
Configure a channel plus a connection and a tag. Activate the WinCC project.
Procedure
1. Start the WinCC Channel Diagnosis from the Start menu. 2. On the "Configuration" tab, select the desired channel. 3. Under "Flags", activate the status and error messages to be recorded in the Trace file. A description of the standard flags can be found in the "Default Flags - Overview" table. 4. Select the "Check User Flags" check box, if the "User Flags" are to be recorded in the Trace file. The number and significance of the "User Flags" is depending on the channel. 5. Select the check boxes of the desired "User Flags". By clicking the "Set" or "Reset" buttons, you can set or reset all "User Flags". 6. In the "Trace File" section, select the "Enable" check box. This activates the other fields in this area. 7. In the "max. Files" field, enter the maximum number of Trace files. 8. In the "max. Size" field, set the size of the individual Trace files.
MDM - WinCC: Communication System Manual, 11/2008,
308
15.3.4.7
Requirements
A startup picture must be defined before Runtime is activated.
Procedure
1. Save and close all files that may be open in an editor. 2. Select WinCC Explorer. 3. Activate the project by clicking the "Activate" button in the toolbar or by selecting "Activate" in the "File" menu.
See also
How to Check a Channel with Channel Diagnosis (Page307)
15.4
15.4.1
309
See also
How to Check a Tag (Page313) How to Check the Channel and the Connection (Page311)
15.4.2
Introduction
The channel records errors and important status changes in the log file. These entries can be used to analyze a communication problem. Each entry in the file has a date and time stamp followed by a flag name and description.
310
15.4.3
15.4.3.1
See also
How to Check a Tag (Page313) How to Check the Channel and the Connection (Page311)
15.4.3.2
Introduction
This section describes how to check the "System Info" channel and its connection in Runtime.
Requirements
Configure a connection and tag for the "System Info" channel. Activate the WinCC project.
311
Procedure
1. Start the WinCC Channel Diagnosis from the Start menu. 2. The Channel Diagnosis application window opens. The status information for all installed channels and their connections is displayed on the left on the "Channels/Connections" tab.
1. Check the icons in front of the channel named "System Info" and its connection. If the channel and connection are OK, a green check mark is displayed in front of each respective entry. For information on the significance of the individual icons refer to the "Overview of Status Messages" table. 2. If there is no green check mark in front of the channel's name and the connection, select the connection in the window on the left. In the window on the right, check the counter values for "Address Error", Size Error" and "Type Error". These values indicate the errors detected. 3. Check the channel-specific log file. To do this, use a text editor to open the file in the directory "Siemens\WinCC\Diagnose". Check the latest entries with the "ERROR" flag. For more information on this topic, refer to "Description of Log File Entries". 4. If you are still unable to pinpoint the error after checking the log file, please activate the Trace function and contact Customer Support. For more information on this topic, refer to "Configuring a Trace Function of a Channel".
See also
How to Configure the Trace Function of a Channel (Page308) Description of Log File Entries (Page310) How to Check a Tag (Page313)
312
15.4.3.3
Introduction
If an external tag does not have the expected value in Runtime, you can use the following procedure to check the tag.
Requirements
Configure a connection and tag for the "System Info" channel. Activate the WinCC project.
Procedure
1. In WinCC Explorer in the tag management, select the "System Info" channel. 2. In the data window, select the external tag that you wish to check. To do this, open the directory structure until the tag is displayed in the data window. 3. Move the mouse pointer over the tag to be checked. A tooltip window opens showing the current tag value, the quality code and the last time that the value changed. 4. Check the quality code. If value "80" is displayed, the tag value is OK. A description of the other values can be found under "Tag Quality Codes". 5. If the quality code is not equal to "80", select the tag in the tag management and click "Properties" in the shortcut menu to open the "Tag Properties" dialog. 6. Check whether values have been configured for the upper or lower limits, the start or substitute values on the "Limits/Reporting" tab. These values can affect the display. 7. If the tag value is affected by one of the configured values, deactivate the project and change the limit or substitute value. Note Tag values, quality codes etc. are only displayed in Runtime.
See also
Quality Codes of Tags (Page343)
313
15.5
15.5.1
See also
How to Check a Tag (Page323) How to Check the Channel and the Connection (Page321) How to Check the Configuration of the Connection and Tags (Page319) Checking the Communication Processor under SIMATIC NET (Page318) How to check the configuration of the communication processor (Page317)
15.5.2
Introduction
The channel records errors and important status changes in the log file. These entries can be used to analyze a communication problem. Each entry in the file has a date and time stamp followed by a flag name and description.
MDM - WinCC: Communication System Manual, 11/2008,
314
315
Cannot write storage data! Cannot read storage data / use default data Storage data illegal or destroyed / use default data! No storage data / use default data! Devicename in unit "unitname" changed from "old devicename" to "new devicename" Max. logbooksize reached - Logbook deactivated
Initialization message
Message sent when log file has exceeded its maximum length. The logbook output is monitored for length. If the specified length is reached, the logbook is deactivated. The message is only output, when message output causes the max. file length to be exceeded. No message be output, if the file length is changed with an editor or the maximum file length is reduced in the INI file!
316
15.5.3
15.5.3.1
See also
How to Check a Tag (Page323) How to Check the Channel and the Connection (Page321) How to Check the Configuration of the Connection and Tags (Page319) Checking the Communication Processor under SIMATIC NET (Page318) How to check the configuration of the communication processor (Page317)
15.5.3.2
Introduction
This section describes how to use the "PG/PC Port" program to check a communication processor. In this example, a "CP 5613" type processor is used for the PROFIBUS communication.
Requirements
Install the CP 5613. Install the associated communication driver. Configure the CP 5613.
Procedure
1. In the Control Panel, click the "Set PG/PC Port" icon. The "Set PG/PC Port" dialog is opened. 2. Check the entry for the access point. The access point "CP_L2_1:" for Profibus connection is automatically added when a CP 5613 is installed. Select the entry for this access point. Click "Properties" to open the "Properties - CP5613_5614(PROFIBUS)" dialog.
317
1. Check the entry on the "PROFIBUS" tab. 2. Click the "Operational State" tab. Click the "Test" button to execute a function test of the CP 5613. The test results is shown in the output field below. Depending on the test results, you can click the "Restart" button to perform a reset and a complete restart of the CP 5613. 3. Click "OK" to close all open dialogs.
See also
How to Check the Configuration of the Connection and Tags (Page319) Checking the Communication Processor under SIMATIC NET (Page318)
15.5.3.3
Introduction
This section explains how to check a communication processor using the "Set PC Station" program in the SIMATIC NET software. In this example, the "CP 5613" for the PROFIBUS communication is used to the "SIMATIC S7 Protocol Suite" channel.
318
Requirements
Install the CP 5613. Install the SIMATIC NET software. For Windows 2000, a version from V6.0 SP5 is required, with Windows XP a version from V6.1 must be installed. Configure the CP 5613 under SIMATIC NET.
Procedure
1. Activate the Windows Start menu, open "SIMATIC / SIMATIC NET / Settings" and select menu item "Set PC Station". The "Configurations Console PC Station" dialog opens. 2. Check the entry for the access point. Select the "Access Point" directory in the navigation window. The existing access points are listed in the data window. Upon installation of the CP 5613, access point "CP_L2_1:" for PROFIBUS communication is added automatically. Select this access point in the data window. Use the "Properties" menu item from the shortcut menu to open the "Properties of CP_L2_1:" dialog. 3. Check the entry in the "Assigned Interface Parameters" field. In the case of a CP5613 in a PROFIBUS network, select entry "CP5613_5614(PROFIBUS)". 4. Open the navigation window, select the "Components" directory and then the "CP5613/ CP5614" subdirectory. 5. Select the "Network Diagnosis" directory. Click the "Test" button to execute a function test on the CP 5613. The result is displayed in the output window. Depending on the test results, click the "Restart" button in the "General" directory to perform a reset and then a complete restart of the CP 5613. 6. Check the list of participants connected to PROFIBUS in the list in the "Bus Participants" directory. Based on the display, it is possible to determine the function and status of your own station as well as other participants which are connected. 7. Close the dialog. 8. If a fault is detected in the configuration of the communication processor, modifications can only be made to the configuration using SIMATIC NET tools. Further information is available under SIMATIC NET.
See also
How to Check the Configuration of the Connection and Tags (Page319)
15.5.3.4
Introduction
This section describes how to check the system parameters and the configuration of the connection and tags. In this example, a "CP 5613" communication processor is used for the PROFIBUS communication.
319
Requirements
Install the CP 5613. Install the associated communication driver. Configure the CP 5613. Configure a connection and tag for the "SIMATIC S7 Protocol Suite" channel. Activate the WinCC project.
Procedure
1. In WinCC Explorer in the tag management, select the "SIMATIC S7 Protocol Suite" channel. In the data window, select the "PROFIBUS" channel unit. In the channel unit shortcut menu, click "System Parameters". The "System Parameters - PROFIBUS" dialog opens. 2. On the "Unit" tab, check the entry in the "Logical Device Name" field. By default, this is set to the access point "CP_L2_1:". The access point is assigned during installation of the communication processor in the CP 5613 system. Close the dialog.
1. In the tag management navigation window, select the "PROFIBUS" channel unit. In the data window, select the connection to be checked. In the shortcut menu, click "Properties" to open the "Connection Properties" dialog. 2. Click the "Properties" button to open the "Connection Parameters - PROFIBUS" dialog. 3. Check the settings on the "Connection" tab. Close the open dialogs. 4. In the navigation window, select the checked connection. In the data window, select the tag to be checked. In the shortcut menu, click "Properties" to open the "Tag Properties" dialog. Check the values in the "Type Conversion" and "Data Type" fields. 5. Click the "Select" button to open the "Address properties" dialog. Check the settings for addressing the tag in the AS. 6. Click "OK" to close all open dialogs.
320
See also
How to Check the Channel and the Connection (Page321)
15.5.3.5
Introduction
This section describes how to check the "SIMATIC S7 Protocol Suite" channel and its connection in Runtime.
Requirements
Install a communication processor in a WinCC computer, for example the CP 5613 for PROFIBUS communication. Install the associated communication driver. Configure the CP 5613. Create a STEP7 project. Configure a connection and tag for the "SIMATIC S7 Protocol Suite" channel. Activate the WinCC project.
Procedure
1. Start the WinCC Channel Diagnosis from the Start menu. 2. The Channel Diagnosis application window opens. The status information for all installed channels and their connections is displayed on the left on the "Channels/Connections" tab.
321
1. Check the icon in front of the channel named "SIMATIC S7 Protocol Suite" and the connection. If the channel and connection are OK, a green check mark is displayed in front of each respective entry. For information on the significance of the individual icons refer to the "Overview of Status Messages" table. 2. If there is no green check mark in front of the channel's name and the connection, select the connection in the window on the left. In the window on the right, check the entries for the counters "First Error Code" and "Last Error Code". These values indicate the errors detected. You can access Direct Help by clicking the shortcut menu of the value display. 3. On the "Configuration" tab, select the status and error messages, which are to be output to the log file. This is done by selecting "SIMATIC S7 Protocol Suite" and configuring the error display. For more information, please refer to "Configuring the Log File of a Channel". 4. Check the channel-specific log file. To do this, use a text editor to open the file in the directory "Siemens\WinCC\Diagnose". Check the latest entries with the "ERROR" flag. For more information on this topic, please see "Description of Log File Entries". 5. If you are still unable to pinpoint the error after checking the log file, please activate the Trace function and contact Customer Support. For more information on this topic, refer to "Configuring a Trace Function of a Channel".
See also
How to Configure the Trace Function of a Channel (Page308) Description of Log File Entries (Page314) How to Check a Tag (Page323)
322
15.5.3.6
Introduction
If an external tag does not have the expected value in Runtime, you can use the following procedure to check the tag. In a "SIMATIC S7 Protocol Suite" channel, you can also use connection-specific internal tags. This procedure can also be used to check these tags.
Requirements
Install a communication module on a WinCC computer, for example the CP 5613 for MPI communication. Install the associated communication driver. Configure the CP 5613. Create a STEP7 project. Configure a connection and tag for the "SIMATIC S7 Protocol Suite" channel. Activate the WinCC project.
Procedure
1. In WinCC Explorer in the tag management, select the "SIMATIC S7 Protocol Suite" channel. 2. In the data window, select the external tag that you wish to check. To do this, open the directory structure until the tag is displayed in the data window. 3. Move the mouse pointer over the tag to be checked. A tooltip window opens showing the current tag value, the quality code and the last time that the value changed. 4. Check the quality code. If value "80" is displayed, the tag value is OK. A description of the other values can be found under "Tag Quality Codes". 5. If the quality code is not equal to "80", select the tag in the tag management and click "Properties" in the shortcut menu to open the "Tag Properties" dialog. 6. Check whether values have been configured for the upper or lower limits, the start or substitute values on the "Limits/Reporting" tab. These values can affect the display. 7. If the tag value is affected by one of the configured values, deactivate the project and change the limit or substitute value. Note In Runtime, the current values of the connection-specific internal tags can be viewed in detail with "WinCC Channel Diagnosis". When the main connection is selected, the tags is shown in the "Counter" column. Tag values, quality codes etc. are only displayed in Runtime.
323
See also
Quality Codes of Tags (Page343)
15.6
15.6.1
See also
How to Check a Tag (Page332) How to Check the Channel and the Connection (Page330) How to Check the Configuration of the Connection and Tags (Page328) Checking the Communication Processor under SIMATIC NET (Page327) How to Check the Configuration of the Communication Processor (Page326)
324
15.6.2
Introduction
The channel records errors and important status changes in the log file. These entries can be used to analyze a communications problem. Each entry in the file has a date and time stamp followed by a flag name and description.
15.6.3
15.6.3.1
325
See also
How to Check the Configuration of the Connection and Tags (Page328) How to Check a Tag (Page332) How to Check the Channel and the Connection (Page330) Checking the Communication Processor under SIMATIC NET (Page327) How to Check the Configuration of the Communication Processor (Page326)
15.6.3.2
Introduction
This section describes how to use the "PG/PC Port" program to check a communication processor. In this example, a "CP 5613" type processor is used for the PROFIBUS communication.
Requirements
Install the CP 5613. Install the associated communication driver. Configure the CP 5613.
Procedure
1. On the Control Panel, click the "Set PG/PC Port" icon. The "Set PG/PC Port" dialog is opened. 2. Check the entry for the access point. The access point "CP_L2_1:/SCP" is automatically added for the PROFIBUS connection when a CP 5613 is installed. Select the entry for this access point. Click "Properties" to open the "Properties - CP5613_5614(PROFIBUS)" dialog.
326
1. Check the entry on the "PROFIBUS" tab. 2. Click the "Operational State" tab. Click the "Test" button to execute a function test on the CP 5613. The test results is shown in the output field below. Depending on the test results, you can click the "Restart" button to perform a reset and a complete restart of the CP 5613. 3. Click "OK" to close all open dialogs.
See also
How to Check the Configuration of the Connection and Tags (Page328) Checking the Communication Processor under SIMATIC NET (Page327)
15.6.3.3
Introduction
This section explains how to check a communication processor using the "Set PC Station" program in the SIMATIC NET software. In this example, the "CP 5613" type is used for the PROFIBUS communication to channel "SIMATIC S5 PROFIBUS FDL".
327
Requirements
Install the CP 5613. Install the SIMATIC NET software. For Windows 2000, a version from V6.0 SP5 is required, with Windows XP a version from V6.1 must be installed. Configure the CP 5613 under SIMATIC NET.
Procedure
1. Activate the Windows Start menu, open "SIMATIC / SIMATIC NET / Settings" and select menu item "Set PC Station". The "Configurations Console PC Station" dialog opens. 2. Check the entry for the access point. Select the "Access Point" directory in the navigation window. The existing access points are listed in the data window. Upon installation of the CP 5613, access point "CP_L2_1:" for PROFIBUS communication is added automatically. Select this access point in the data window. Use the "Properties" menu item from the shortcut menu to open the "Properties of CP_L2_1:" dialog. 3. Check the entry in the "Assigned Interface Parameters" field. In the case of a CP5613 in a PROFIBUS network, select entry "CP5613_5614(PROFIBUS)". 4. Open the navigation window, select the "Components" directory and then the "CP5613/ CP5614" subdirectory. 5. Select the "Network Diagnosis" directory. Click the "Test" button to execute a function test on the CP 5613. The result is displayed in the output window. Depending on the test results, click the "Restart" button in the "General" directory to perform a reset and then a complete restart of the CP 5613. 6. Check the list of participants connected to PROFIBUS in the list in the "Bus Participants" directory. Based on the display, it is possible to determine the function and status of your own station as well as other participants which are connected. 7. Close the dialog. 8. If a fault is detected in the configuration of the communication processor, modifications can only be made to the configuration using SIMATIC NET tools. Further information is available under SIMATIC NET.
See also
How to Check the Configuration of the Connection and Tags (Page328)
15.6.3.4
Introduction
This section describes how to check the system parameters and the configuration of the connection and tags.
328
Requirements
Install the CP 5613. Install the communication driver. Configure the CP 5613. Configure a connection and tag for the "SIMATIC S5 PROFIBUS FDL" channel. Activate the WinCC project.
Procedure
1. Click the plus sign in front of the "SIMATIC S5 PROFIBUS FDL" icon in WinCC Explorer navigation window. In the context menu of the "FDL(CP5412/A2-1)" icon, click "System Parameters". The "System Parameters" dialog opens.
1. Check the entry in the "Device Name" field. By default, this is set to access point "CP_L2_1:/ SCP". The access point is assigned during installation of the communication processor in the CP 5613 system. Close the dialog. 2. Click the plus sign in front of the FDL(CP5412/A2-1)" icon. In the context menu of the tag to be tested, select the "Properties" entry. The "Connection Properties" dialog is opened. 3. In the "Connection Properties" dialog, click the "Properties" button. The "Connection Parameters" dialog opens.
329
1. Check the settings on the "Connection" tab. Close the open dialogs. 2. Click the plus sign in front of the icon of the connection. In the context menu of the tag to be tested, click the "Properties" entry. The "Tag Properties" dialog opens. Check the entries in the "Type Conversion" and "Data Type" fields. 3. In the "Tag Properties" dialog, click the "Select" button. The "Address Properties" dialog opens. Check the settings. 4. Click "OK" to close all open dialogs.
See also
How to Check the Channel and the Connection (Page330)
15.6.3.5
Introduction
This section describes how to check the "SIMATIC S5 PROFIBUS FDL" channel and its connection in Runtime.
330
Requirements
Install the CP 5613. Install the communication driver. Configure the CP 5613. Create a STEP5 project. Configure a connection and tag for the "SIMATIC S5 PROFIBUS FDL" channel. Activate the WinCC project.
Procedure
1. Start the WinCC Channel Diagnosis from the Start menu. 2. The Channel Diagnosis application window opens. The status information for all installed channels and their connections is displayed on the left on the "Channels/Connections" tab.
331
See also
How to Configure the Trace Function of a Channel (Page308) Description of Log File Entries (Page325) How to Check a Tag (Page332)
15.6.3.6
Introduction
If an external tag does not have the expected value in Runtime, you can use the following procedure to check the tag.
Requirements
Install the CP 5613. Install the communication driver. Configure the CP 5613. Create a STEP5 project. Configure a connection and tag for the "SIMATIC S5 PROFIBUS FDL" channel. Activate the WinCC project.
Procedure
1. In WinCC Explorer in tag management, select the "SIMATIC S5 PROFIBUS FDL" channel. 2. In the data window, select the external tag that you wish to check. To do this, open the directory structure until the tag is displayed in the data window.
332
See also
Quality Codes of Tags (Page343)
15.7
15.7.1
333
See also
How to Check a Tag (Page340) How to Check the Channel and the Connection (Page338) How to Check the Configuration Data (Page337)
15.7.2
15.7.2.1
Introduction
The channel records errors and important status changes in the log file. The following sections cover only the most important entries. These entries can be used to analyze a communications problem. A distinction must be made between two types of entries: INFO ERROR
Structure of an Entry
334
See also
Entries for "ERROR" Flag (Page336) Entries for "INFO" Flag (Page335)
15.7.2.2
Introduction
Each entry in the file has a date and time stamp followed by a flag name and description.
335
15.7.2.3
Introduction
Each entry in the file has a date and time stamp followed by a flag name and description. In the case of the "Error" flag, the description consists of a message text, error code and the text of the error message. Some error codes do not have text for an error message.
00000001
AddItems
80004005
Could not resolve Server Name The computer that is used as the WinCC OPC Server is not available in the network. The WinCC OPC server, which was accessed by the "OPC" channel, was not available. Class not registered The WinCC OPC Server is not properly registered in the system. The WinCC OPC Server's WinCC project is not activated. The WinCC tag is not on the OPC Server, or the configured data type does not match. The computer on which the OPC Server is to be started could not be found in the network.
80040154
80070057 800706ba
336
15.7.3
15.7.3.1
See also
How to Check a Tag (Page340) How to Check the Channel and the Connection (Page338) How to Check the Configuration Data (Page337)
15.7.3.2
Requirements
A computer as WinCC OPC Client with a WinCC Project. The "OPC" channel must be integrated in the OPC client's WinCC project. Configure a WinCC tag in the OPC server's WinCC project. On the OPC client configure a connection and a WinCC tag, which communicates with the created server tags. Activate the WinCC project on the OPC Server and Client.
Procedure
1. Click the plus sign in front of the "OPC" icon in WinCC Explorer navigation window on the OPC client. Click the "plus sign in front of the icon "OPC Groups (OPCHN Unit#1)". 2. In the shortcut menu of the tag to be tested, select the "Properties" entry. The "Connection Properties" dialog is opened. Click the "OPC Group" tab. 3. In the field "OPC Server Name", check the ProgID of the OPC server. In the case of a connection to a server with WinCC V 5.0 or higher, you must enter "OPCServer.WinCC". In the case of a server running WinCC V4.x, you must enter "OE.Groups". 4. Enter the name of the computer to serve as the OPC Server in the "Start the server on this computer" field. Click the "Test Server" button to test the connection to the OPC Server. Close the dialog. 5. Click the plus sign in front of the icon of the connection. In the context menu of the tag to be tested, click the "Properties" entry. The "Tag Properties" dialog opens. 6. The same "Data Type" must be entered for this tag as for the tag on the OPC Server.
MDM - WinCC: Communication System Manual, 11/2008,
337
See also
How to Configure the Trace Function of a Channel (Page308) Description of Log File Entries (Page334) How to Check the Channel and the Connection (Page338)
15.7.3.3
Introduction
This section describes how to check the "OPC" channel and its connection in Runtime.
Requirements
A computer as WinCC OPC Client with a WinCC Project. The "OPC" channel must be integrated in the OPC client's WinCC project. Configure a WinCC tag in the OPC server's WinCC project. On the OPC client configure a connection and a WinCC tag, which communicates with the created server tags. Activate the WinCC project on the OPC Server and Client.
338
Procedure
1. Start the WinCC Channel Diagnosis from the Start menu. 2. The Channel Diagnosis application window opens. The status information for all installed channels and their connections is displayed on the left on the "Channels/Connections" tab.
1. Check the icons in front of the OPC connection. If the status of the connection is OK, a green check mark is displayed in front of the respective entry. For information on the significance of the individual icons refer to the "Overview of Status Messages" table. 2. If there is no green check mark in front of the name of the connection, select the connection in the window on the left. In the window on the right, check the entries for the counters "AddItemFailures", "Server Status", "Last Error" and "Last Error Name". These values indicate the errors detected. 3. Check the channel-specific log file. To do this, use a text editor to open the file in the directory "Siemens\WinCC\Diagnose". Check the latest entries with the "ERROR" flag. For more information on this topic, refer to "Description of Log File Entries". 4. If you are still unable to pinpoint the error after checking the log file, please activate the Trace function and contact Customer Support. For more information on this topic, refer to "Configuring a Trace Function of a Channel".
See also
How to Configure the Trace Function of a Channel (Page308) Description of Log File Entries (Page334) How to Check a Tag (Page340)
339
15.7.3.4
Introduction
If an external tag does not have the expected value in Runtime, you can use the following procedure to check the tag.
Requirements
A computer as WinCC OPC Client with a WinCC Project. The "OPC" channel must be integrated in the OPC client's WinCC project. Configure a WinCC tag in the OPC server's WinCC project. On the OPC client configure a connection and a WinCC tag, which communicates with the created server tags. Activate the WinCC project on the OPC Server and Client.
Procedure
1. In WinCC Explorer in tag management, select the "OPC" channel. 2. In the data window, select the external tag that you wish to check. To do this, open the directory structure until the tag is displayed in the data window. 3. Move the mouse pointer over the tag to be checked. A tooltip window opens with the current tag value, the quality value and the time of the most recent change. 4. Check the quality code. If the value "C0" is displayed, the tag value is OK. A description of the other values can be found under "Tag Quality Codes". 5. If the quality code is not equal to "C0", select the tag in tag management and click "Properties" in the shortcut menu to open the "Tag Properties" dialog. 6. Check whether values have been configured for the upper or lower limits, the start or substitute values on the "Limits/Reporting" tab. These values can affect the display. 7. If the tag value is affected by one of the configured values, deactivate the project and change the limit or substitute value. Note Tag values, quality codes etc. are only displayed in Runtime.
See also
Quality Codes of Tags (Page343)
340
15.8
15.8.1
Quality of Tags
Quality of Tags
Introduction
In WinCC, there are two quality indicators that allow you to evaluate the quality of tags. These two indicators are tag status and quality code. The tag status is formed in WinCC and informs of the quality of configuration settings within the OS. The tag status informs additionally of the connection status to the WinCC communication partner. This may be an automated system or the server computer. The quality code contains the same information as the tag status. In addition to this information, the quality status contains quality statements on partners which assess or process tags. Possible partners are: Automation systems Automation systems with field devices OPC server OPC server with subordinate automation systems Therein the quality code is forwarded within the processing chain. If at one point in the processing chain several quality codes are pending for a tag, the worst code is forwarded.
The quality code informs of the quality of a tag independent of where this code was formed.
341
Using one of the communication drivers, WinCC reads the tags from the automation device in Runtime, including the associated quality codes. For each tag, the tag status is formed in the data manager. It contains, for example, violations of configured measurement range limits as well as the status of linkage between WinCC and the automation device. Using the analysis logic in the data manager, the quality code is generated from the tag status of the data manager and the quality code of the automation device. Here too, the code with the worst status is passed on and saved as quality code by WinCC. For tags that do not have a quality code in the automation system, the quality code is always identical with the tag status.
342
15.8.2
Introduction
0The quality code is needed to check status and quality of a tag. The displayed quality code summarizes the quality of the entire value transmission and value processing for the respective tag. Thus with the quality code you can for example see whether the current value is a start value or a substitute value. The quality codes are prioritized. If several codes occur at the same time, the code with the worst status is displayed.
343
Structure
The quality code has the following binary structure:
QQSSSSLL
Q: Quality S: Substatus of the quality L: Limits. This value is optional. Note The quality codes shown in the "Quality" table are basic values of the quality stages. Making use of the substatus and limit elements gives rise to intermediate values over and above the quality stage concerned.
Quality
The first two digits specify the quality of the tag.
Bad - The value is not useful Uncertain - The quality of the value is less than normal, but the value may still be useful. Good (non-cascade) - The quality of the value is good. Possible alarm conditions may be indicated by the sub-status. Good (cascade) - The value may be used in control. Q Q S S S S L L 2 2 2 2 2 2 2 2
7 6 5 4 3 2 1 0
0 0 - - - - - 0 1 - - - - - 1 0 - - - - - 1 1 - - - - - -
Substatus
The quality alone is not enough. Individual qualities are divided into substatuses. The quality code is binary coded. In order to analyze quality codes their values must be converted into their hexadecimal representation.
344
Uncertain Uncertain
0 1 1 1 0 0 1 1 0 1 1 1 0 1 - 1 0 0 0 0 1 - -
Good Active Update event - Set if the value is good and the block (nonhas an active Update event. cascade) Bad Bad Maintenance alarm - More diagnostics available. No Communication, with no usable value - Set if there has never been any communication with this value since it was last "Out of Service". No Communication, with last usable value - Set if this value had been set by communication, which has now failed. Device failure - Set if the source of the value is affected by a device failure. Sensor failure Not Connected - Set if this input is required to be connected and is not connected. Configuration error - Set if the value is not useful because there is some inconsistency regarding the parameterization or configuration, depending on what a specific manufacturer can detect. Non-specific - There is no specific reason why the value is bad. Used for propagation. Process related - Substitute value Process related - No maintenance Maintenance demanded Simulated value - Set when the process value is written by the operator while the block is in manual mode. Sensor calibration Configuration error Subnormal Engineering unit range violation - Set if the value lies outside of the set of values defined for this parameter. The limits define which direction has been exceeded. Sensor conversion not accurate Substitute (constant) Process related - No maintenance Initial value - Value of volatile parameters during and after reset of the device or of a parameter.
0x24 0x18
0 0 1 0 0 1 - 0 0 0 1 1 0 - -
0 0 0 1 0 1 - 0 0 0 0 1 1 - 0 0 0 1 0 0 - 0 0 0 0 1 0 - 0 0 0 0 0 1 - -
0 0 0 0 0 0 - 0 0 1 0 1 0 - 0 0 1 0 1 0 1 1 0 1 1 0 1 0 - 0 1 1 0 0 0 - 0 1 1 0 0 1 - 0 1 0 1 1 1 - 0 1 0 1 1 0 - 0 1 0 1 0 1 - -
0 1 0 1 0 0 - 0 1 0 0 1 0 1 1 0 1 1 1 1 0 - 0 1 0 0 1 1 - -
345
Good Initiate fail safe (IFS) - The value is from a block that wants (cascade) its downstream output block (e.g. AO) to go to fail safe. Good Local override (LO) - The value is from a block that has been (cascade) locked out by a local key switch or is a Complex AO/DO with interlock logic active. The failure of normal control must be propagated to a function running in a host system for alarm and display purposes. This also implies "Not Invited". Good Do not select (DNS) - The value is from a block which should (cascade) not be selected, due to conditions in or above the block. Good Not invited (NI) - The value is from a block which does not (cascade) have a target mode that would use this input. Good Initialization request (IR) - The value is an initialization value (cascade) for a source (back calculation input parameter), because the lower loop is broken or the mode is wrong. Good Initialization acknowledge (IA) - The value is an initialized (cascade) value from a source (cascade input, remote-cascade in, and remote-output in parameters).
1 1 0 1 0 1 - 1 1 0 0 1 1 - 1 1 0 0 1 0 - -
0xC4
1 1 0 0 0 1 - -
0xC0 0xA0
Good OK - No error or special condition is associated with this value. 1 1 0 0 0 0 - (cascade) Good Initiate fail safe (noncascade) Good Unacknowledged critical alarm - Set if the value is good and (nonthe block has an unacknowledged alarm with a priority greater cascade) than or equal to 8. Good Unacknowledged advisory alarm - Set if the value is good and (nonthe block has an unacknowledged alarm with a priority less cascade) than 8. Good Unacknowledged update event - Set if the value is good and (nonthe block has an unacknowledged update event. cascade) Good Active critical alarm - Set if the value is good and the block (nonhas an active alarm with a priority greater than or equal to 8. cascade) Good Active advisory alarm - Set if the value is good and the block (nonhas an active alarm with a priority less than 8. cascade) Good Maintenance demanded (noncascade) Good Maintenance required (noncascade) 1 0 1 0 0 0 - -
0x98
1 0 0 1 1 0 - -
0x94
1 0 0 1 0 1 - -
0x90
1 0 0 1 0 0 - -
0x8C
1 0 0 0 1 1 - -
0x88
1 0 0 0 1 0 - -
0xA8
1 0 1 0 1 0 - -
0xA4
1 0 1 0 0 1 - -
346
0x80
Limit
Quality codes can be further subdivided by limits. Limits are optional.
O.K. - The value is free to move. Low limited - The value has acceded its low limits. High limited - The value has acceded its high limits. Constant (high and low limited) - The value cannot move, no matter what the process does. Q Q S S S S L L 0 0 0 1 1 0 1 1
15.8.3
Tag Status
Introduction
The tag status of individual WinCC tags can be monitored in Runtime. The tag status contains, among other information, data regarding violations of the configured measurement range limits as well as the status of linkage between WinCC and automation device. The quality code informs of the quality of a tag independent of where this code was formed. Thereby, the status of the entire value transfer and value processing are taken into consideration.
347
0x000 No error 0 0x000 Connection to partner not established 1 0x000 Handshake error 2
DM_VARSTATE_HARDWARE_ERR 0x000 Network module defective OR 4 DM_VARSTATE_MAX_LIMIT DM_VARSTATE_MIN_LIMIT DM_VARSTATE_MAX_RANGE DM_VARSTATE_MIN_RANGE DM_VARSTATE_CONVERSION_E RROR 0x000 Configured upper limit exceeded 8 0x001 Configured lower limit exceeded 0 0x002 Format upper limit exceeded 0 0x004 Format lower limit exceeded 0 0x008 Display conversion error (in connection with format limit 0 xxx exceeded)
DM_VARSTATE_STARTUP_VALUE 0x010 Tag initialization value 0 DM_VARSTATE_DEFAULT_VALUE DM_VARSTATE_ADDRESS_ERRO R DM_VARSTATE_INVALID_KEY 0x020 Tag replacement value 0 0x040 Channel addressing error 0 0x080 Tag not found / not available 0
348
0x100 Access to tag not permitted 0 0x200 Timeout / no check-back message from the channel 0 0x400 Server not available. 0
15.8.4
Introduction
The status of individual WinCC tags can be monitored in Runtime, providing information about the status of the associated connection. The monitoring is configured in Graphics Designer as an object property. One possibility for monitoring would be to use the "Text" property of a static text. In the shortcut menu of the "Dynamic" dialog for the desired property, select "Dynamic Dialog" to open the "Dynamic value ranges" dialog.
349
The following settings are specified here: Tag to be monitored For tag value: assignment of validity range and status display The activation of the tag status evaluation For the status: assignment of validity range and corresponding status text In Runtime, one of the entered status texts, which corresponds to the tag's current status, is displayed in the configured object.
15.8.5
Introduction
One way to monitor the status of a tag is to make use the internal functions "GetTagState" and "GetTagStateWait" in the Global Script editor. In contrast to the "GetTag" and "GetTagWait"
MDM - WinCC: Communication System Manual, 11/2008,
350
Example:
This example illustrates the monitoring of a WinCC tag of the type "Signed 16-Bit Value". The "GetTagSWordState" function is used to determine the status of this tag. The first function parameter is the name of the WinCC tag to be monitored. The second parameter gives where the returned status value is to be written.
The tag status is output in the internal tag BINi_E_CONNECTION. In the event of an error, the value of this tag is set to TRUE. In the error handling, the tag can, for example, be used to trigger an alarm or display an error message.
15.8.6
Introduction
If an internal tag does not have the expected value in Runtime, you can use the following procedure to check the tag.
351
Requirements
Configure an internal tag. Activate the WinCC project.
Procedure
1. In WinCC Explorer in tag management, select the entry "Internal Tags". 2. In the data window, select the tag that you wish to check. To do this, open the directory structure until the tag is displayed in the data window. 3. Move the mouse pointer over the tag to be checked. A tooltip window opens showing the current tag value, the quality code and the last time that the value changed. 4. Check the quality code. If value "80" is displayed, the tag value is OK. A description of the other values can be found under "Tag Quality Codes". 5. If the quality code is not equal to "80", select the tag in the tag management and click "Properties" in the shortcut menu to open the "Tag Properties" dialog. 6. Check whether values have been configured for the upper or lower limits, or start he value on the "Limits/Reporting" tab. These values can affect the display. 7. If the tag value is affected by one of the configured values, deactivate the project and change the limit or substitute value. Note Tag values, quality codes etc. are only displayed in Runtime.
See also
Quality Codes of Tags (Page343)
352
Index
B
as ActiveX Control, 305 Testing, 302 Bar Example of System Info, 283 BinWrite Mechanism, 35 General Procedure, 35 Bit by bit access, 35, 108, 193 S5 AS511, 158 S5 Ethernet Layer 4, 108 S5 Profibus FDL, 132 S5 Serial 3964R, 166 S7 Protocol Suite, 193 TI Ethernet Layer 4, 259 TI Serial, 269 Bit/Byte access, 35 Bit-/Byte-tag, 37 Block, 146 Cyclic block, 146 Byte array, 140 Byte by byte access, 35, 109, 193 S5 AS511, 159 S5 Ethernet Layer 4, 109 S5 Profibus FDL, 134 S5 Serial 3964R, 167 S7 Protocol Suite, 195 TI Ethernet Layer 4, 260 TI Serial, 270
"
"MPI" channel unit, 179 Configuring the connection, 180 "Slot PLC" channel unit, 187 Configuring the connection, 187 "System Info" channel, 309 Diagnostic option, 309
5
505-Ethernet (CP 1413-x) Channel Unit, 255
A
Adding new drivers, 129 Adding tag, 66, 73 Address properties, 77, 91, 132, 134, 135, 140 Example for S5 Profibus FDL, 149 Addresses of tags, 258 TI Ethernet Layer 4, 258 AR_SENDAR_SEND-FunctioninWinCC , 205 AR_SEND-Function in WinCC Configuring Variants for an Archive Tag, 231 Configuring Variants for Multiple Archive Tags, 234 Data Block,Structure and Parameters, 206 Example for Data Block Structure, 215, 216, 217, 221, 223, 225, 227, 230 Overview of the properties of the variants, 211 Variants for an Archive Tag, 214 Variants for Multiple Archive Tags, 218 Variants for Multiple Archive Tags (optimized), 229 AS data type, 16 Type conversion, 27 AS511, 153 Automation device, 127
C
Channel, 14, 103, 161, 169, 338 Configuring SIMATIC S5 PROFIBUS FDL, 129 Diagnosis of channels, 302 Example for S5 PROFIBUS FDL, 146 PROFIBUS FMS, 95 SIMATIC S5 Ethernet Layer 4, 103 SIMATIC S5 Programmers Port AS511, 153 SIMATIC S5 Serial 3964R, 161 SIMATIC S7 Protocol Suite, 169 SIMATIC TI Ethernet Layer 4, 255 Status - Logical Connections function , 302 Testing, 311, 321, 330, 338 TI Serial, 265 Channel , 95
353
Index
Channel diagnosis, 304 "System Info" channel, 309 Chanel with , 305, 307 Channel diagnosis, 304, 305, 306 Channel diagnosis as Windows application , 306 Channel diagnosis with , 305 Channel diagonsis, 302 Channel with Status - Logical Connections function , 302 Checking configuration data, 337 Checking connection, 311, 321, 330, 338 Checking internal tags, 351 Checking tag, 313, 323, 332, 340 Checking the configuration of the communication processor, 317, 318, 326, 327 Configuring a the Trace function of a channel, 308 Connection parameters, 328 Diagnostic option, 309, 314, 324, 333 ERROR flag of logbook entry, 310, 314 Example, 350 Function , 302 INFO flag of logbook entry, 310, 314, 325, 334 Log file, 310, 314, 325, 334 Monitoring of tag status in dynamic dialog, 349 Monitoring of tag status with global actions, 350 OPC channel, 333 Overview of status messages, 311, 321, 330, 338 PROFIBUS system parameters, 319 Properties - CP5613, 317, 318, 326, 327 SIMATIC S5 PROFIBUS FDL channel, 324 SIMATIC S7 Protocol Suite channel, 314 Standard flags of the Trace function, 308 Status - Logical Connections, 302 System parameters, 328 Testing channel, 311, 321, 330, 338 WinCC channel diagnosis, 338 WinCC Channel Diagnosis, 311, 321, 330 Channel Diagnosis Channel diagnosis with , 304 Channel diagnosis channel Testing, 305, 307 Channel diagnosis Channel Diagnose Channel diagnosis Channel Diagnose , 306 Channel diagnosis with Channel Diagnose , 305 Channel Diagnosis trace file , 304
Channel Unit, 14, 103, 130, 170 505 Serial Unit #1, 265 505-Ethernet (CP 1413-x), 255 Connection parameters, 256 FDL (CP5412/A2-1), 130 Industrial Ethernet, 177 MPI, 179 Named Connections, 182 PROFIBUS, 184 PROFIBUS-FMS, 96 S5 Transport (CP1413-x), 105 S5 Transport (TCP/IP), 105 S5-AS511, 153, 154 S5-RK512 (3964R), 161 Selection for SIMATICS7ProtocolSuiteS7 Protocol Suite channel:Selecting the channel unit, 170 Slot PLC, 187 Soft PLC, 189 System parameters, 113, 137, 199, 262 TCP/IP, 190 Channel unit FDL (CP5412/A2-1), 125, 130 Channel Unit Industrial Ethernet, 177 Configuring the connection, 178
354
Index
Communication, 11 Addressing in the automation system, 16 AS data type, 19, 27 Basis, 11 BinWrite Mechanism, 35 Bit-/Byte-access, 35 Bit-/Byte-tag, 37 Channel Unit, 14 Communication between WinCC and Automation systems, 14 Communication driver, 14 Configuring a tag with BinWrite, 37 Configuring powertags, 19 Connection, 14 Connection properties, 18 Creating a new connection, 18 Data type, 16, 27 Length definition for text tags, 16 Linear scaling of numerical tag types, 16 PowerTag, 16 Principle of the BinWrite-Mechanism, 35 Principle of WinCC communication, 14 Sorting format adaptation by AS data type, 27 Sorting format adaptation by WinCC data type, 21 Tag Properties, 19 Type conversion, 27 Type Conversion, 16 Value range, 27 WinCC data types, 16 WinCC process communication, 13 WinCC Type Conversion, 16 Communication driver, 14 Communication processor, 317, 318, 326, 327 Checking the configuration of the communication processor, 317, 318, 326, 327 Communication type, 141 Configuring, 141 Configuration data, 337 Configure bit by bit access Tag, 259 Configure byte by byte access Tag, 260 Configuring Tag, 258 TI Ethernet Layer 4, 256 Configuring a tag TI Ethernet Layer 4, 258 Configuring a tag with bit by bit access TI Ethernet Layer 4, 259 Configuring a tag with byte by byte access TI Ethernet Layer 4, 260
Connection, 14, 176, 338 Active connection, 125 Configuring, 131, 178, 180, 183, 185, 187, 189, 191 Creating a new connection, 18 Creating connection, 66 Passive connection, 125 Testing, 311, 321, 330, 338 Testing configuration of connection, 319, 328 Connection Monitoring, 71 Connection parameters, 14, 105, 130, 131, 141, 144, 176, 328 Channel Unit, 256 PROFIBUS FMS, 95 S5 AS511, 153, 154 S5 Ethernet Layer 4, 103 S7 Protocol Suite, 169 SIMATIC S5 Serial 3964R, 161 TI Ethernet Layer 4, 255, 256 TI Serial, 265 Connection properties, 18, 131, 141, 144 Counter, 275 CP1434 TF, 262, 263 CPU load, 275 Sample system Info, 284 Cyclic Read Services, 200
D
Data area, 126 Data transmission, 141 Configuring a passive data transfer, 144 Configuring an active data transfer, 141 Data type, 16, 70, 174, 275 Data types used, 275, 281 S5 AS511, 153 S5 Profibus FDL, 126 S5 Serial 3964R, 161 S7 Protocol Suite, 174 Supported WinCC data types, 70 Supported WinCC data types overview, 70 TI Ethernet Layer 4, 255 Type conversion, 27 Data Types, 16, 104 PROFIBUS FMS, 95 S5 Ethernet Layer 4, 104 TI Ethernet Layer 4, 255 Date, 275 Daylight Saving/Standard Time, 206 Device Name, 113, 137, 262 change, 138 TI Ethernet Layer 4, 262
355
Index
Diagnostic option, 309, 314, 324, 333 "System Info" channel, 309 OPC channel, 333 SIMATIC S5 PROFIBUS FDL channel, 324 SIMATIC S7 Protocol Suite channel, 314 Disk capacity, 275 Example of System Info, 283 Free dive capacity, 275, 279
O
OPC Access to tag, 72 Adding tag, 66, 73 Address properties, 77, 91 Channel diagnosis, 333 Configuring access to a WinCC tag with the OPC Item Manager, 73 Configuring access to a WinCC tag without the OPC Item Manager, 77, 91 Configuring an OPC channel on a WinCC OPC DA client, 73 Configuring structure, 79 Configuring structure tag, 79 Creating connection, 66 Error handling in event of disturbed OPC communication, 82 Filter criteria, 73 Functionality of the WinCC OPC DA Client, 71 Functionality of the WinCC OPC XML client, 87 New connection, 73 OPC in WinCC, 65 OPC Item Manager, 66 OPC1, 77, 91 OPCServer.WinCC-(DPC_4001), 73 Overview of OPC Item Manager functions, 66 Querying of ProgID, 66 Structure properties, 79 Supported WinCC data types, 70 Supported WinCC data types overview, 70 Tag selection, 66 Using structures on a WinCC OPC DA client, 79, 80 WinCC as an OPC DA client, 65, 82 WinCC as OPC XML client, 65 OPC channel, 333 Configuring an OPC channel on a WinCC OPC DA client, 73 Diagnostic option, 333 OPC communication, 82 Error handling in the event of disturbed OPC DA communication, 82 OPC DA client, 71 Functionality of the WinCC OPC DA Client, 71 OPC Item Manager, 66, 73 Overview of OPC Item Manager functions, 66
E
ERROR flag, 310, 314 Example:, 350
F
Filter criteria, 73
I
I/O field Example of System Info, 282 I/O Field Example for S5 Profibus FDL, 149 INFO flag, 310, 314, 325, 334
L
Life beat monitoring for channel S5Seral3964R Life beat monitoring , 162 Log file, 310, 314, 325, 334 Logbook entry, 310, 314, 325, 334 Logbook file, 304 Logical Device Name, 199 modify, 203
M
Message Example of System Info, 286, 287 Message text, 286 Multi-user system, 292 Use of channel , 292
N
Named Connections channel unit, 182 Configuring the connection, 183 Network, 11
356
Index
OPC XML Access to tag, 87 OPC XML client, 87 Functionality of the WinCC OPC XML client, 87 OPC1, 77, 91 OPCServer.WinCC-(DPC_4001), 73
S
S5 AS511, 154 Configuring, 154 Configuring a tag, 155 Configuring a tag with bit by bit access, 158 Data Types, 153 Defining a tag with byte by byte access, 159 Tag address, 156 S5 Ethernet Layer 4, 103 Configuring, 104 Configuring a tag, 107 Configuring a tag with bit by bit access, 108 Configuring a tag with byte by byte access, 109 Configuring a tag with word by word access, 110 Connection parameters, 105 Data Types, 104 Device Name, 113, 114 Error codes during connection disturbances, 117 iNA960 messages, 120 Internal error codes and constants, 117 Raw Data Tag, 112 SCI messages, 121 System parameters of the channel unit, 113 Tag address, 107 Transport Parameter, 113, 116
P
Point of error, 286 Printer monitoring, 275 Example of System Info, 289 Process picture Example of System Info, 296 PROFIBUS Channel Unit, 184 Configuring the connection, 185 PROFIBUS FMS, 95 Addresses of tags, 100, 101 Configuring a tag, 100, 101 Connection parameters, 96 Data Types, 95 PROFIBUS FMS Channel Unit, 96, 97, 99 PROFIBUS FMS communication driver PROFIBUSFMS , 95 PROFIBUS system parameters, 319 ProgID, 66 Querying of ProgID, 66 Properties - CP5613, 317, 318, 326, 327
Q
Quality codes of tags, 341, 343
R
Raw Data Tag, 140, 237 as byte array, 140, 238 Configuring, 140 Configuring as a byte array, 239 Configuring for BSEND/BRCV functions, 243 for BSEND/BRCV functions, 241
357
Index
S5 Profibus FDL, 125 Access to a S5 tag of data type ARRAY OF BYTE, 126 Access to a S5 tag of data type BIT, 126 Access to a S5 tag of data type BYTE, 126 Access to S5 tags, 126 Active connection, 125 Adding new drivers, 129 Address properties, 132, 134, 135, 140 Block, 146 Changing the device name, 138 Changing write/read monitoring time, 139 Channel diagnosis, 324 Channel unit FDL (CP5412/A2-1), 125 Configuring a passive data transfer, 144 Configuring a raw data tag, 140 Configuring a tag, 132 Configuring a tag with bit by bit access, 132 Configuring a tag with byte by byte access, 134 Configuring a tag with word by word access, 135 Configuring an active data transfer, 141 Configuring channel SIMATIC S5 Profibus FDL, 129 Configuring data handling blocks, 146 Configuring SIMATIC S5 Profibus FDL, 129 Configuring the communication type, 141 Configuring the connection, 131 Connection parameters, 130, 131, 141, 144 Connection properties, 131, 141, 144 Cyclic block, 146 Data area, 126 Data type, 126 Device Name, 137 Example, 146, 149 Features of the channel, 127 Passive connection, 125 Raw data tag as byte array, 140 Service Access Point, 125 Special function, 139 Startup block, 146 supported data type, 126 System parameters, 138, 139 System parameters of the channel unit, 137 Tag parameter, 130 Tag Properties, 132, 134, 135, 140 Type conversion, 127 Write/Read monitoring time, 137
S5 Serial 3964R, 161 Configuring, 162 Configuring a tag, 164 Configuring a tag with bit by bit access, 166 Configuring a tag with byte by byte access, 167 Data type of the tags, 161 S5 tag, 126 Access to a S5 tag of data type ARRAY OF BYTE, 126 Access to a S5 tag of data type BIT, 126 Access to a tag of data type byte, 126 Access to S5 tags, 126
358
Index
S7 Protocol Suite, 169 AR_SEND variant for an archive tag, 214 AR_SEND variant for multiple archive tags, 218 AR_SEND variant for multiple archive tags (optimized), 229 Changing logical device names, 203 Channel diagnosis, 314 Channel Unit, 170, 176 Configuring, 175 Configuring a raw data tag as a byte array, 239 Configuring a tag with bit by bit access, 193 Configuring a tag with byte by byte access, 195 Configuring a tag with word by word access, 196 Configuring a text tag, 197 Configuring an AR_SEND variant for an archive tag, 231 Configuring an AR_SEND variant for multiple archive tags, 234 Configuring software redundancy, 250 Configuring system parameters, 201 Configuring the connection, 178, 180, 183, 185, 187, 189, 191 Configuring the raw data tag for the BSEND/BRCV functions, 243 Cyclic Read Services, 200 Data exchange with FB S7ProtocolSuite:AR_SEND variants , 205 Data type, 174 Delete Software Redundancy in WinCC, 253 Error codes during connection disturbances, 254 Example for Data Block Structure AR_SEND, 215, 216, 217, 221, 223, 225, 227, 230 Overview of the properties of the AR_SEND variants, 211 Raw Data Tag, 237 Raw data tag as byte array, 238 Raw data tag for BSEND/BRCV functions, 241 Software Redundancy, 244 Software Redundancy - Connection-specific internal tags, 246 Structure and Parameter of Data Block in AR_SEND Function, 206 supported data type, 174 System parameters, 199 Service Access Point, 125 SIMATIC S5 Profibus FDL, 125 Raw Data Tag, 140 S5 Profibus FDL, 125 Special function, 139 SIMATIC S5 PROFIBUS FDL channel, 324 Diagnostic option, 314 SIMATIC S5 Programmers Port AS511, 153
SIMATIC S5 Serial 3964R, 161 SIMATIC S5 Serial 3964R , 162 SIMATIC S7 Protocol Suite, 169 SIMATIC S7 Protocol Suite channel, 314 Diagnostic option, 314 SIMATIC TI Ethernet Layer 4, 255 Channel, 255 Transport Parameter, 262 Soft PLC channel unit, 189 Configuring the connection, 189 Software Redundancy, 244 configure in WinCC, 250 Connection-specific internal tags, 246 delete in WinCC, 253 Special function, 139 Standard flag, 308 Startup block, 146 Status - Logical Connections functionStatus - Logical Connection, 302 Status display, 311, 321, 330, 338 Example of System Info, 289 Structure Configuring structure, 79 Using structures on a WinCC OPC DA client, 79 Using WinCC OPC client, 80 Structure properties, 79 Structure tag, 79 Configuring structure tag, 79 Supported system information, 275 Overview, 275 System Info, 273 Bar configuration, 283 Channel diagnosis, 309 Configuring, 280 Data types used, 281, 293 Differences to other software components, 279 Example, 281, 282, 283, 284, 286, 289, 293, 296, 297 Example:, 287, 294, 295 Free dive capacity, 275 I/O field configuration, 282 Message text, 286 Overview of supported system information, 275 Overview of the Supported System Information, 275 Point of error, 286 Status display configuration, 289 Tag to be monitored, 286 System Info System information Use in multi-user system , 292
359
Index
System parameters, 14, 113, 199, 328 Channel Unit, 262 Configuring, 201, 203 S5 Ethernet Layer 4, 103 S5 Profibus FDL, 125 SIMATIC S7 Protocol Suite, 169 TI Ethernet Layer 4, 255, 262, 263
T
Tag, 16, 107, 281, 340, 341 Adding tag, 66 Addressing external tags in the automation system, 16 Checking internal tags, 351 Configure bit by bit access, 108, 132, 166, 259, 269 Configure byte by byte access, 109, 134, 167, 260, 270 Configuring, 100, 101, 107, 132, 258, 268 Configuring a tag with BinWrite, 37 Configuring a text tag, 19 Configuring external tags, 19 Configuring linear scaling, 19 Configuring OPC Item Manager, 73 Configuring PC Item Manager, 77, 91 Configuring powertags, 19 Configuring tag addresses , 164 Configuring word by word access, 110, 135 Example of System Info, 281, 295 External, 16 Length definition for text tags, 16 OPC Item Manager, 73 PowerTag, 16 Quality, 341 Quality code, 341 Quality codes, 343 Status, 341, 347 Tag selection, 66 Testing, 313, 323, 332, 340 Testing configuration of tags, 319, 328 Tag address, 107 PROFIBUS FMS, 95, 100, 101 S5 Ethernet Layer 4, 103 TI Serial, 265 Tag Properties, 19, 132, 134, 135, 140 Example for S5 Profibus FDL, 149 Tag status, 341, 347, 349, 350 Monitoring of tag status in dynamic dialog, 349 Monitoring of tag status with global actions, 350 Tag to be monitored, 286
TCP/IP channel unit, 190 Configuring the connection, 191 Text Tag, 16, 193 Configuring, 19, 197 TI Ethernet Layer 4, 255 Addresses of tags, 258 Bit by bit access, 259 Byte by byte access, 260 Configuring, 256 Configuring a tag, 258 Configuring a tag with bit by bit access, 259 Configuring a tag with byte by byte access, 260 Connection parameters, 255, 256 Data type, 255 Data Types, 255 Device Name, 262 System parameters, 255, 262, 263 Transport Parameter, 262 TI Serial, 265 Addresses of tags, 268 Configuring, 266 Configuring a tag, 268 Configuring a tag with bit by bit access, 269 Configuring a tag with byte by byte access, 270 Connection parameters, 266 Data Types, 265 Tag address, 268 Time, 275, 279 Example of System Info, 282 Time stamp, 206 Timer, 275 Trace function, 308 Configuring, 308 Transferring Changes, 200 Transport Parameter, 14, 113 SIMATIC S5 Ethernet Layer 4, 113 SIMATIC TI Ethernet Layer 4, 262 TI Ethernet Layer 4, 262 TTY interface, 153 Type conversion, 27, 127 Type Conversion, 16
V
Value range, 27 Variable, 193 Configure bit by bit access, 193 Configure byte by byte access, 195 Configuring word by word access, 196
360
Index
W
WinAC Basis, 189 WinAC Pro, 187 WinCC as OPC DA client, 65, 82 as OPC XML client, 65 OPC in WinCC, 65, 82 WinCC channel diagnosis, 338 WinCC Channel Diagnosis, 311, 321, 330 WinCC Communication, 14 General Procedure, 14 WinCC Data type, 16, 21 Type conversion, 21, 27 WinCC Data type, 21 WinCC process communication, 13 WinCC Type Conversion, 16 Word by word access, 193 S7 Protocol Suite, 196 Write/Read monitoring time, 137, 139 change, 139
361