Siemens CP 343-1 manual Initialization and Configuration, Data consistency

Page 28

6 Configuring and Programming the CP as a PROFINET IO Device

Data consistency

The length information in the block call must be identical to the total length of the input or output data configured for this PROFINET IO device.

The entire input or output data area of the PROFINET IO controller is transferred in its entirety between the CP and CPU and is therefore consistent.

Note: Remember, however, that in terms of the “IO user data” within a PROFINET IO system, only the data consistency of individual IO slots can be guaranteed. This applies regardless of whether consistent data transfer between the CPU and CP is guaranteed for the blocks described here.

6.4.2Initialization and Configuration

Initialization

As a PROFINET IO device, the CP requires the following information in the user program for configuration by the PROFINET IO controller at every startup:

SLength of the input data (when FC11 is called)

SLength of the output data (when FC12 is called)

When the connection is established between the PROFINET IO controller and the PROFINET IO devices of a PROFINET IO line, the entire length of the input and output data is checked. The PROFINET IO controller compares the configured entire length of the input and output data with the LEN parameter of FC11 and FC12 in the user program of the device for every PROFINET IO device.

If the length information for the input and output data does not match, the block is terminated with an error.

During this initialization phase, the two blocks must be called until FC11 signals DONE=1 and FC12 signals NDR=1.

Notice

Remember that the successful configuration by the PROFINET IO controller is only possible after local initialization by the FC calls PN IO_SEND (FC11) for the input data and PN IO_RECV (FC12) for the output data.

Note

During initialization, the data of PNIO_SEND (FC11) is not evaluated and the data of PNIO_RECV (FC12) is initialized with default values.

FC11 and FC12 transfer valid data only following the subsequent calls.

B3L−28

CP 343-1 Lean for Industrial Ethernet / Manual Part B3L

Release 03/2007

C79000-G8976-C198-04

Image 28
Contents S7-CPs for Industrial Ethernet CP 343-1 LeanAddress label Unique MAC address preset for the CP Product NamesPrinted Product Information Supplied with the Product Compatibility with the Previous VersionContents B3L−33 B3L−44B3L−46 B3L−53Properties / Services ServicesApplication B3L−5Properties / Services Configuration Programming − Using BlocksVersion / NCM IE Functions of the CP B3L−7Requirements for Use General OperationB3L−8 Order NumberB3L−9 CPU 314 IFMB3L−10 Installation and Commissioning Procedure / Steps Step Explanation / MeaningGround/Chassis Ground Concept B3L−13 DC 5 V power supply via the backplane bus green = OK DisplaysAcyclic data exchange, for example Send/Receive Not relevant for Profinet IO dataLEDs for displaying the mode CP Operating ModeSFred BF red GreenLEDs for displaying the CP communication status B3L−16Display Meaning RX/TX green P1 / P2Characteristic Data for S7 Communication Characteristic Explanation / ValuesPerformance Data Number of Possible Connections over EthernetExecution Times of the FCs Agsend / Agrecv Characteristics of the SEND/RECEIVE InterfaceComponent Explanation / Values CP as Profinet IO device Characteristic Data for Profinet IOExecution times of the FCs Pniosend / Pniorecv Configuring and Programming the CP as a Profinet IO Device ConfigurationProgrammingOverview of the Preparatory Steps Intelligent Profinet IO DevicePrinciple of Data Exchange over Profinet IO Configuration Installing the CP and Specifying it as Profinet IO DeviceDownload the configuration data to the Simatic 300 station B3L−23Configuring the Profinet IO controller Requirements for Configuration in StepProfinet IO Controller Result B3L−25Configuring the properties of the CP as Profinet IO device Properties Dialog of the Device Assigning the Device NameInterface for Programming on the Profinet IO Device ProgrammingFCs Data consistency Initialization and ConfigurationInitialization Watchdog Reasons for reinitializationB3L−29 Example of Configuration and Programming Pniorecv PniosendCall interface Pniosend in the user program B3L−31Call interface Pniorecv in the user program B3L−32Web Diagnostics Settings for Access to Diagnostic DataStarting and Working with Web Diagnostics Web diagnostics opens with the StartDiagnostics Pages of the CP Layout of the Diagnostics PagesStart Parameter FunctionGeneral StatusIdentification ParameterIdentification VersionRack Configuration Rack Configuration Rack nameB3L−38 Events Diagnostic BufferDetails no. of the event Industrial Ethernet Parameters TabNetwork attachment IP parametersTCP Connections Tab Statistics TabUDP Connections Tab Profinet IO Configuration Parameters of a Profinet IO DeviceB3L−43 Assigned Pnio controllerReplacing Older Modules / Replacing Faulty Modules Use as a ReplacementCompatibility with Predecessor Products Extended FunctionalityOriginally configured module Configuration Steps Module ReplacementB3L−45 Memory Reset How to Use the FunctionDefaults Further Notes on OperationWorking with Fast Ethernet − automatic switchover Behavior after Memory ResetHow Automatic Switchover of the Network Settings Works AutocrossingAutomatic Setting or Individual Network Settings Further NotesSnmp Agent Supported MIB ObjectsAccess Permissions using Community Name Influence of MPI on Connections via Industrial EthernetProtocol Port number Service Special Features of IP ConfigurationReserved Port Numbers Other information available about the CP Gsdml fileHow to Load New Firmware How to Download New FirmwareLEDs to Indicate the CP Mode RequirementsTechnical Specifications B3L−54B3L−55 B3L−56
Related manuals
Manual 22 pages 56.26 Kb