Cover sheet. Consistent Data. PROFIBUS DP and PROFINET IO. FAQ September 2009. Service & Support. Answers for industry.



Similar documents
Cover sheet. Reading out the topology data of a PROFINET IO system SFB52 "RDREC" FAQ September Service & Support. Answers for industry.

Cover sheet PROFINET IO. SIMATIC MV440 Code Reading System. FAQ February Service & Support. Answers for industry.

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

SIMATIC NET. Functions (FC) and function blocks (FB) for SIMATIC NET S7 CPs. Preface. Overview and general information on working with FCs and FBs

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODUL E04

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E05

1 Application Description Objective Goals... 3

FAQ Communication over IE

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

Siemens S7 PLC and FC 300 Profibus

CPUs - CPU PN/DP

Service & Support. How Can You Have Diagnostics Data of IPCs Displayed in WinCC? WinCC, IPC and DiagMonitor. FAQ July Answers for industry.

CPU PN/DP. Function

SOFTLINK 300. CPU Specifications. Reference Manual

SIMATIC NET. S7-CPs for PROFIBUS. CP Basic. Manual Part B3

ABB industrial drives. Quick start-up guide Drive Manager for SIMATIC

TECHNICAL NOTE TNOI34

Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

The goal is to program the PLC and HMI to count with the following behaviors:

Service & Support. How can you establish a connection between a S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

CMC-PD01 PROFIBUS DP Slave Communication Card Operation Manual

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

Research of PROFIBUS PA s integration in PROFINET IO

Configuration limits for products of the SIMATIC NET PC Software V12 SIMATIC NET. Configuration limits for products of the SIMATIC NET PC Software V12

SIMATIC Expert Communication Connecting S7-400H to PC Station (WinCC)

SIMATIC S7-300, CPU 315-2DP CPU WITH MPI INTERFACE INTEGRATED 24 V DC POWER SUPPLY 128 KBYTE WORKING MEMORY 2

Using the AnyBus -X Gateway to Communicate between a DVT camera and a Profibus Master

Configuration a Profibus-DP node using Step7 and WAGO-I/O components Application note

S7 for Windows S7-300/400

PROFINET IO Diagnostics 1

Configuring PROFINET

SIMATIC S It s the Interplay that makes the difference. Siemens AG All Rights Reserved.

6ES BE01-0AB0 6ES BE01-0AB0

How-To-Do. Hardware Configuration SLIO CPU 014

CP Page 1342 Mar 2008 Siemens ITS

SIMATIC. Open TCP/IP Communication via Industrial Ethernet. Contents Open TCP/IP Communication via Industrial Ethernet 1. Index.

The CP provides access to different communication services of the PROFIBUS bus system:

Data sheet SLIO CPU 015 (015-CEFPR00)

S7-1500/S7-1500F Technical Data

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

SIMATIC PCS 7. SIMATIC Maintenance Station PDM A stand-alone Solution. Siemens AG All Rights Reserved.

Realize your full potential with the new version of SIMATIC PCS 7

Applications & Tools. Communication between SIMATIC S7 and Modicon M340. Modbus TCP Connection. Application Description November 2009

The CP FO provides access to different communication services of the PROFIBUS bus system:

SIMATIC. C7-621, C7-621 AS-i Control Systems. Volume 2 Working with C7 A B C D E. Contents. User Information. Introduction. Startup.

I.S. 1 remote I/O system Redundant coupling via PROFIBUS DP

S7-1500/S7-1500F Technical Data

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

Application Note Profinet Modules

Start-up of IVI-KHD2-4HRX, IVI-KHA6-4HRX at S7-300 V1.1. Table of Contents TABLE OF CONTENTS... 1

Redundant PROFIBUS DP network with S7-400H System and Ponto PO5063V5 Remote

FAQ Communication over IE

Applications & Tools. Configuration and Diagnostics of a PROFINET IO System. PROFINET IO Configuration Example. Application Description January 2010

s Preface SIMATIC Configuring Hardware and Communication Connections with STEP 7 Contents Basics of Configuring Hardware with STEP 7 1

Application about Communication

Cover sheet. Software Update from PCS 7 V7.1 SP3 to PCS 7 V7.1 SP4 SIMATIC PCS 7. FAQ September Service & Support. Answers for industry.

How To Write A Profibus Dpl (Profibus) Program

Siemens Security Bulletin Response to ICS Alert (ICSA A)

SIMATIC. ET 200S distributed I/O IM151-1 STANDARD interface module (6ES7151-1AA05-0AB0) Preface. Properties 1. Parameters 2.

Parameterizing options Parameterization options based on the communication protocols used

SIMATIC NET. DP Base Programming Interface for CP 5613/CP Preface, Contents. Basic Steps in Creating a DP Application 1

SIMATIC NET. S7-CPs for Industrial Ethernet. CP Lean. Manual Part B8. Version 1 or higher (Firmware Version V1.0) for SIMATIC S7-300 / C7-300

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

How many high-speed counters (HSCs) are provided by the SIMATIC S PLC? SIMATIC S FAQ March Service & Support. Answers for industry.

Application about Communication

Scalable PLC AC500 Communication AC500 Modbus TCP. ABB Group Version 3.1 ( ) Technical Guides

The Answer to the 14 Most Frequently Asked Modbus Questions

Tool for Control Technology

FAQ about Drive Technology

SIMATIC NET. S7-CPs for Industrial Ethernet. CP Lean. Manual Part B. Release 09/2009 C79000-G8976-C198-06

Siemens AG. SIMATIC S7 Ethernet 04/

Applications & Tools. Connecting a SINAMICS G120 Drive to an S7-300/400 CPU in TIA Portal V11 SINAMICS G120 (CU 240E-2 PN(-F)), SIMATIC S7-300/400


S7-400H SIMATIC. Fault-tolerant systems S7-400H. Preface 1 Fault-tolerant automation systems. S7-400H setup options 3.

DeviceNet Motor Control

Cover PROFINET IO. Code Reader System SIMATIC MV440 / MV420. FAQ June Service & Support. Answers for industry.

Web server SIMATIC. S Web server. Preface. Documentation guide. General information. Websites 3. Function Manual 12/2014 A5E AD

S7 CPs for Industrial Ethernet - SIMATIC NET. S Industrial Ethernet S7 CPs for Industrial Ethernet - CP Advanced.

AUSTRALIAN RAIL TRACK CORPORATION

Validity 1. Improvements in STEP 7 2. Improvements in WinCC 3. Simatic. Readme. Readme

Attention: The installation of the ABB Automation Builder software requires administrator rights.

SIMOTION. Supplement to the FM 350-1, FM and FM 352 Modules. Preface. Description 1. Function blocks of the FM 350-1

EZ-ZONE RMA & EtherNet/IP Configuration & Startup Using an Allen-Bradley CompactLogix PLC EtherNet/IP Fundamentals

SIMATIC. S7-300 Programmable Controller Installation and Hardware. Preface, Contents. Product Overview 1. Mechanical Configuration 2

Profinet to EDV111 Series LED Signs Siemens Function Block Software Manual

Using the JNIOR with the GDC Digital Cinema Server. Last Updated November 30, 2012

Applications & Tools. Control and Status Check of the digital Output of a SCALANCE W748-1 via S7 PN-CPU and SNMP Library

GE Proficy Machine Edition Profibus/Profinet SARTUP GUIDE

Overview of service and diagnostics. options SIMOTION. SIMOTION SCOUT Overview of service and diagnostics options. Preface 1.

SIMATIC. Testing Your S7 Programs with S7-PLCSIM. Preface, Contents. Product Overview. Installing the S7-PLCSIM Software. Getting Started with


Service & Support. Higher-level safe switch-off of the power supply of functionally nonsafe standard modules? Wiring Examples.

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE A5. PLC-Simulation with S7-PLCSIM

Modbus and ION Technology

Software redundancy for SIMATIC S7 SIMATIC. S7-300/S7-400 Software redundancy for SIMATIC S7. Contents 1

S and STEP 7 Basic V10.5

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

Transcription:

Cover sheet PROFIBUS DP and PROFINET IO FAQ September 2009 Service & Support Answers for industry.

Question This entry originates from the Service&Support Portal of Siemens AG, Sector Industry, Industry Automation and Drive Technologies. The conditions of use specified there apply (www.siemens.com/nutzungsbedingungen). Go to the following link to download this document. http://support.automation.siemens.com/ww/view/en/28991143 Question What are the options for transferring data consistently in a PROFIBUS DP system or PROFINET IO system? Answer Follow the instructions and notes listed in this document for a detailed answer to the above question. 2 V1.1, Entry ID: 28991143

Contents Contents 1 Introduction... 4 1.1 Definition... 4 1.2 Example... 4 2 Reading data consistently from a DP standard slave/profinet IO device and writing it... 5 2.1 Addressing... 5 2.2 Access to consistent data... 6 2.3 Access to consistent data without SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT"... 8 2.4 Conditions for assigning addresses... 10 2.5 Handling consistent data with the communications processor CP342-512 V1.1, Entry ID: 28991143 3

1 Introduction 1 Introduction 1.1 Definition Data that belongs together with regard to content and describes a process state at a specific time is called consistent data. For data to be consistent, it must not be changed or updated during processing or transfer. Consistent data area The size of the data area that is not changed simultaneously by concurrent processes is called a consistent data area. A data area that is larger than the consistent data area can be completely corrupted. 1.2 Example You determine the mean value of a series of numbers. The following conditions hold for this example: The elements of the series of numbers are determined at the beginning of the calculation. The source data is made available in a buffer and has to be stored in a second buffer. Transfer of the source data between the buffers is serial. This takes different amounts of time. If you do the calculation in a constant cycle, then not all of the elements include the latest value and you get a false mean value. If you handle the series of numbers as one unit or structure, then the calculation is always made only when all the elements of the series of numbers include a valid value. Here it is irrelevant in which order the determination of the elements is made or how much time is required. This series of numbers is then consistent. 4 V1.1, Entry ID: 28991143

2 Reading data consistently from a DP standard slave/profinet IO device and writing it consistently to a DP standard slave/profinet IO device 2.1 Addressing System function SFC14 "DPRD_DAT" Using the system function SFC 14 "DPRD_DAT" (read consistent data of a DP standard slave), you read out the data of a DP standard slave/profinet IO device. If no errors occur during the data transfer, the data read is entered into the target area defined by RECORD. The target area must have the same length as you configured with STEP 7 for the selected module. With a DP standard slave with modular structure and with multiple DP identifications, with an SFC 14 call you can only ever access the data of one module / DP identification under the start address configured. System function SFC15 "DPWR_DAT" Using SFC 15 "DPWR_DAT" (write consistent data), you transfer the data in RECORD consistently to the DP standard slave/profinet IO device addressed. The source area must have the same length as you configured with STEP 7 for the selected module. Maximum upper limits for transfer of consistent user data to DP slave Upper limits for the transfer of consistent data to a DP slave are defined by the PROFIBUS DP standard. This is why only a maximum of 64 words = 128 bytes of user data can be transferred consistently in one block to a DP standard slave. When configuring, you define the size of the consistent area. For this, in the special identification format (SKF) you can set a maximum length of 64 words = 128 bytes for the consistent data (128 bytes for inputs and 128 bytes for outputs); anything beyond that is not possible. This upper limit applies only for pure user data. Diagnostics and parameter data is grouped into whole data records and is therefore always transferred consistently. For this, in the general identification format (AKF) you can set a maximum length of 16 words = 32 bytes for the consistent data (32 bytes for inputs and 32 bytes for outputs); anything beyond that is not possible. Note The PROFIBUS DP standard defines upper limits for the transfer of consistent user data. Current DP standard slaves keep to these upper limits. Older CPUs (<1999) have CPU-specific restrictions for the transfer of consistent user data. The maximum length of data that these CPUs can read consistently from a DP standard slave or write consistently to a DP standard slave is given in the technical data under "DP master user data per DP slave". With the value, more recent CPUs exceed the length of the data that a DP standard slave provides or receives. V1.1, Entry ID: 28991143 5

General identification format (AKF) and special identification format (SKF) The special identification format (SKF) is an extension of the general identification format (AKF). It provides more flexibility for enabling manufacturer-specific functions. Note A CPU 41x / 31x as DP slave in the general context must be able to be configured on a third-party master (connection via GSD) via the general identification format (AKF). For this reason the transfer memory of a CPU 41x / 31x as DP slave to the PROFIBUS DP has a maximum size of 16 words = 32 bytes. Maximum upper limits for transfer of consistent user data to an IO device The upper limit for the transfer of consistent data to an IO device is 255 bytes (254 bytes user data + 1 byte associated value). Even if more than 255 bytes can be transferred to an IO device, the upper limit is 255 bytes of consistent user data. For the communication processors, the following consistent area sizes apply for a submodule. Table 2-1 CP MLFB Size of the consistency area for a submodule CP343-1 1) 6GK343-1EX21-0XE0 128 bytes CP343-1 1) 6GK343-1EX30-0XE0 240 bytes CP343-1 Advanced 1) 6GK343-1GX21-0XE0 128 bytes CP343-1 Advanced 1) 6GK343-1GX30-0XE0 240 bytes CP443-1 6GK443-1EX20-0XE0 240 bytes CP443-1 Advanced 6GK443-1EX40-0XE0 128 bytes CP443-1 Advanced 6GK443-1EX41-0XE0 240 bytes CP443-1 Advanced 6GK443-1GX20-0XE0 240 bytes 1) Use communication blocks FC11 "PNIO_SEND" and FC12 "PNIO_RECV" for consistent data communication via the communication processors of the S7-300. The following entries show: How to program communication blocks FC11 "PNIO_SEND" and FC12 "PNIO_RECV" for the CP343-1 as PROFINET IO controller. http://support.automation.siemens.com/ww/view/en/26558253 How to program communication blocks FC11 "PNIO_SEND" and FC12 "PNIO_RECV" for the CP343-1 as PROFINET IO device. http://support.automation.siemens.com/ww/view/en/31764615 2.2 Access to consistent data Configuration if consistent data areas >4 bytes In the STEP 7 hardware configuration, you can define the following parameters for the consistent area in the "Properties - DP slave" dialog "Address / ID" tab: Length Unit Consistent over 6 V1.1, Entry ID: 28991143

Figure 2-1 Data areas and access forms in the program, which all CPUs support uniformly Table 2-2 Length/data area Read/write access Consistency of data 1 byte Load / Transfer Consistency over unit 2 bytes Word Load / Word Transfer Consistency over total length 3 bytes SFC14 / SFC15 Consistency over total length 4 bytes Double-word Load / Doubleword Consistency over total length Transfer 5 bytes SFC14 / SFC15 Consistency over total length V1.1, Entry ID: 28991143 7

Example CALL SCF 14 ("DPRD_DAT") LADDR:= W#16#80 RECORD:= P#DB1.DBX0.0 BYTE 32 //Call //Configured start address equivalent to decimal 128 //Stores the I/O data in the data block for further processing CALL SCF 15 ("DPWR_DAT") LADDR:= W#16#80 RECORD:= P#DB1.DBX0.0 BYTE 32 //Call //Configured start address equivalent to decimal 128 //Writes the I/O data from the data block into the output address of the I/O Possible sources of error ANY pointer on the RECORD parameter: In the case of an ANY pointer on the RECORD parameter, a length of 1, 2 or 4 is specified. Here, we recommend the data lengths 3 or 4, because all CPUs support these data lengths. Different data types on the ANY pointer and in hardware configuration: Only the BYTE data type is permissible on the ANY pointer for both SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT". Incorrect consistency set in the hardware configuration: The consistency must always be set over the entire area! 2.3 Access to consistent data without SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT" Description Consistent data access > 4 bytes is now possible without the system functions SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT". The option of being able to consistently access data > 4 bytes using download/transfer commands provides a particularly convenient and high-performance method of access (low runtime load). In this case, the data area of a DP slave or IO device that is to be transferred consistently is transferred to a process image or process image partition. The data in this area is then always consistent. You can use download/transfer commands (e.g. L IW 1) to access the process image or process image partition. There is no limitation of the area with respect to addressing. Properties The operating system automatically controls updating of the process image. Updating of the process image partition is done either on the user side using SFCs or automatically on the system side through a link to an OB. If you access the process image or process image partition directly (e.g. L PEW or T PAW), then there is no I/O access error. 8 V1.1, Entry ID: 28991143

Overview You can use the following CPUs for configuring without SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT": Table 2-3 MLFB CPU As from firmware version 6ES7 31.. CPU 31x 2.5 6ES7 41 CPU 41x 3.0 Note Do not use the system functions SFC14 / SFC15 and access via the process image at the same time. The consistency between process image values and the values of system function SFC14 "DPRD_DAT" is not guaranteed, because the process image is not tracked when reading with system function SFC14 "DPRD_DAT". The process image is tracked only when writing with system function SFC15 "DPWR_DAT". This means that the consistency between process image values and the values of system function SFC14 "DPRD_DAT" is not guaranteed. If you are using a CP443-5 Extended, then simultaneous use of the system functions SFC14 / SFC15 and access via the process image produces the following messages: "Read/write in the process image is not possible and/or it is no longer possible to read/write with SFC 14 "DPRD_DAT" and SFC 15 "DPWR_DAT"." Example This example shows configuration of consistent output in the process image partition TPA 1 of a CPU319-3PN/DP. In this way, you can write the 50 bytes using download/transfer commands. The input is not configured in the process image partition. The 20 bytes can only be read with the system functions SFC 14 "DPRD_DAT" and SFC 15 "RDWR_DAT". Fig. Figure 2-2 shows how to configure an output in the process image partition TPA1 in the hardware configuration of the CPU319-3PN/DP. V1.1, Entry ID: 28991143 9

Figure 2-2 Updating the process image: The process image is automatically updated during cyclic program processing of the CPU. You can deselect updating of the process image with S7-400 CPUs and CPU 318 if: you access the I/O directly instead or update one or more process images of the inputs and outputs at another time using the system functions SFC26 "UPDAT_PI" and SFC27 "UPDAT_PO". 2.4 Conditions for assigning addresses When assigning addresses in the hardware configuration you must note that a data area created (e.g. a double-word) must not be configured on the limit of the process image (i.e. a part of the area within and the rest of this area outside the double-word). Example In the case of a process image of 256 bytes (address area 0 to 255), an input double-word is configured to the addresses 254 to 257. In this case, you must match the size of the process image accordingly (can be set in the Properties of the CPU). Figure 2-3 254 257 I/O area 254 257 I/O area process-image area I/O address area process-image area I/O address area 0 255 0 258 10 V1.1, Entry ID: 28991143

In the hardware configuration, you set the size of the process image in the Properties dialog of the CPU "Cycle/Clock Memory" tab. Figure 2-4 Overview The following table gives an overview of the CPUs for which you can variably set the size of the process image: Table 2-4 S7-300 CPU MLFB Restriction CPU315-2 PN/DP 6ES7 315-2EH13-0AB0 Firmware V2.5 plus CPU317-2 DP 6ES7 315-2AJ10-0AB0 Firmware V2.5 plus CPU317-2 PN/DP 6ES7 315-2EJ10-0AB0 Firmware V2.3 plus CPU317-2 PN/DP 6ES7 315-2EK13-0AB0 Firmware V2.3 plus CPU318-2 DP 6ES7 318-2AJ00-0AB0 - CPU319-3 PN/DP 6ES7 318-3EL00-0AB0 - IM154-8 CPU 6ES7 154-8AB00-0AB0 Firmware V2.5 plus IM151-8 PN/DP 6ES7 151-8AB00-0AB0 - Table 2-5 S7-400 CPU MLFB Restriction CPU 4xx.. 6ES7 41.. Firmware V1.1 plus CPU 416-2 6ES7 416-2XK00-0AB0 6ES7 416-2XK01-0AB0 6ES7 416-2XL00-0AB0 Only selection between 512 and 1024 bytes possible 6ES7 416-2XK01-0AB0 V1.1, Entry ID: 28991143 11

Note Correct configuration of the I/O addresses is checked in STEP 7 V5.4 plus. 2.5 Handling consistent data with the communications processor CP342-5 You need the communication blocks FC1 "DP_SEND" and FC2 "DP_RECV" for communicating distributed data with the CP342-5. These blocks always transfer the data consistently (taking into account the evaluation of the block parameters DONE/NDR). The following entry contains more information on configuring communication blocks FC1 "DP_SEND" and FC2 "DP_RECV": http://support.automation.siemens.com/ww/view/en/23905010 Note You cannot use the system functions SFC14 "DPRD_DAT" and SFC15 "DPWR_DAT". These system functions are available only for integrated DP interfaces with the S7-300. 12 V1.1, Entry ID: 28991143