Siemens Comprehensive Guide to Configuring PROFINET IO Devices with CP 343-1

Page 30

6 Configuring and Programming the CP as a PROFINET IO Device

6.5Example of Configuration and Programming

The configured input/output modules must be accessed in the user program of the PROFINET IO device using FCs. The FCs provide the process data preprocessed in the user program of the PROFINET IO device on the interface to the PROFINET IO controller (PNIO_SEND) or fetch the data provided by the PROFINET IO controller for further processing in the user program of the PROFINET IO device (PNIO_RECV).

The following example shows the configuration in HW Config and excerpts of the user program of the CPU.

I addresses and O addresses configured on the PROFINET IO controller

The schematic shows the CP configured as a PROFINET IO device in the PROFINET IO system with three modules for process inputs and process outputs.

PNIO_RECV

PNIO_SEND

S Input area:

S Output area:

Length: 20 bytes

Length: 7 bytes

available in DB10

available in DB11

− transferred with FC11 PNIO_SEND

− transferred with FC12 PNIO_RECV

Figure 6-6 Configuration of a PROFINET IO device in HW Config

B3L−30

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

Release 03/2007

C79000-G8976-C198-04

Image 30
Contents S7-CPs for Industrial Ethernet CP 343-1 LeanPrinted Product Information Supplied with the Product Address label Unique MAC address preset for the CPProduct Names Compatibility with the Previous VersionContents B3L−46 B3L−33B3L−44 B3L−53Application Properties / ServicesServices B3L−5Properties / Services Version / NCM IE Functions of the CP ConfigurationProgramming − Using Blocks B3L−7B3L−8 Requirements for UseGeneral Operation Order NumberB3L−9 CPU 314 IFMB3L−10 Installation and Commissioning Procedure / Steps Step Explanation / MeaningGround/Chassis Ground Concept B3L−13 Acyclic data exchange, for example Send/Receive DC 5 V power supply via the backplane bus green = OKDisplays Not relevant for Profinet IO dataSFred BF red LEDs for displaying the modeCP Operating Mode GreenDisplay Meaning RX/TX green LEDs for displaying the CP communication statusB3L−16 P1 / P2Performance Data Characteristic Data for S7 CommunicationCharacteristic Explanation / Values Number of Possible Connections over EthernetCharacteristics of the SEND/RECEIVE Interface Execution Times of the FCs Agsend / AgrecvComponent Explanation / Values Characteristic Data for Profinet IO CP as Profinet IO deviceExecution times of the FCs Pniosend / Pniorecv Overview of the Preparatory Steps Configuring and Programming the CP as a Profinet IO DeviceConfigurationProgramming 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−23Requirements for Configuration in Step Configuring the Profinet IO controllerProfinet IO Controller Result B3L−25Configuring the properties of the CP as Profinet IO device Properties Dialog of the Device Assigning the Device NameProgramming Interface for Programming on the Profinet IO DeviceFCs Initialization and Configuration Data consistencyInitialization Reasons for reinitialization WatchdogB3L−29 Example of Configuration and Programming Pniorecv PniosendCall interface Pniosend in the user program B3L−31Call interface Pniorecv in the user program B3L−32Starting and Working with Web Diagnostics Web DiagnosticsSettings for Access to Diagnostic Data Web diagnostics opens with the StartDiagnostics Pages of the CP Layout of the Diagnostics PagesGeneral StartParameter Function StatusIdentification IdentificationParameter VersionRack Configuration Rack Configuration Rack nameB3L−38 Diagnostic Buffer EventsDetails no. of the event Network attachment Industrial EthernetParameters Tab IP parametersStatistics Tab TCP Connections TabUDP Connections Tab Profinet IO Configuration Parameters of a Profinet IO DeviceB3L−43 Assigned Pnio controllerCompatibility with Predecessor Products Replacing Older Modules / Replacing Faulty ModulesUse as a Replacement Extended FunctionalityModule Replacement Originally configured module Configuration StepsB3L−45 Defaults Memory ResetHow to Use the Function Further Notes on OperationHow Automatic Switchover of the Network Settings Works Working with Fast Ethernet − automatic switchoverBehavior after Memory Reset AutocrossingAutomatic Setting or Individual Network Settings Further NotesSnmp Agent Supported MIB ObjectsAccess Permissions using Community Name Influence of MPI on Connections via Industrial EthernetSpecial Features of IP Configuration Protocol Port number ServiceReserved Port Numbers Other information available about the CP Gsdml fileLEDs to Indicate the CP Mode How to Load New FirmwareHow to Download New Firmware RequirementsTechnical Specifications B3L−54B3L−55 B3L−56
Related manuals
Manual 22 pages 56.26 Kb