Siemens CP 343-1 Lean Manual for Configuration and Programming

Page 27

6 Configuring and Programming the CP as a PROFINET IO Device

No further parameter assignment of the modules is necessary.

Note

By selecting suitable network components and setting the network properties (Section 9.2) make sure that in PROFINET IO mode, the PROFINET line can be operated without exception at 100 Mbps full duplex.

6.4Programming

By programming, you specify the sequence of the user program for the CPU and therefore also access to the I/O data.

To write and read process data, use the FCs PNIO_SEND (FC11) or PNIO_RECV (FC12) from the SIMATIC NET block library in your user program.

How to use the existing functions (FCs) in your user program for PROFINET IO device mode is described in the following sections of this chapter.

You will find an example matching the configuration described in the previous chapter in Section 6.5.

6.4.1Interface for Programming on the PROFINET IO Device

FCs

Two functions (FCs) are available for data exchange using the STEP 7 user program:

SPNIO_SEND (FC11)

This FC reads the preprocessed process inputs of the CPU and transfers them to the PROFINET IO controller (configured I addresses).

The preprocessed process inputs are available in a DB or bit memory area.

SPNIO_RECV (FC12)

The block accepts the data transferred by the PROFINET IO controller (configured O addresses) and writes it to the data areas of the CPU reserved for process outputs.

You will find the precise syntax of the FCs and the meaning of the block parameters in the chapter on FCs in the general part of the manual or in the online help for the block library in STEP 7.

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

B3L−27

Release 03/2007

C79000-G8976-C198-04

Image 27
Contents CP 343-1 Lean S7-CPs for Industrial EthernetCompatibility with the Previous Version Address label Unique MAC address preset for the CPProduct Names Printed Product Information Supplied with the ProductContents B3L−53 B3L−33B3L−44 B3L−46B3L−5 Properties / ServicesServices ApplicationProperties / Services B3L−7 ConfigurationProgramming − Using Blocks Version / NCM IE Functions of the CPOrder Number Requirements for UseGeneral Operation B3L−8CPU 314 IFM B3L−9B3L−10 Step Explanation / Meaning Installation and Commissioning Procedure / StepsGround/Chassis Ground Concept B3L−13 Not relevant for Profinet IO data DC 5 V power supply via the backplane bus green = OKDisplays Acyclic data exchange, for example Send/ReceiveGreen LEDs for displaying the modeCP Operating Mode SFred BF redP1 / P2 LEDs for displaying the CP communication statusB3L−16 Display Meaning RX/TX greenNumber of Possible Connections over Ethernet Characteristic Data for S7 CommunicationCharacteristic Explanation / Values Performance DataCharacteristics 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 Intelligent Profinet IO Device Configuring and Programming the CP as a Profinet IO DeviceConfigurationProgramming Overview of the Preparatory StepsPrinciple of Data Exchange over Profinet IO Installing the CP and Specifying it as Profinet IO Device ConfigurationB3L−23 Download the configuration data to the Simatic 300 stationRequirements for Configuration in Step Configuring the Profinet IO controllerProfinet IO Controller B3L−25 ResultProperties Dialog of the Device Assigning the Device Name Configuring the properties of the CP as Profinet IO deviceProgramming Interface for Programming on the Profinet IO DeviceFCs Initialization and Configuration Data consistencyInitialization Reasons for reinitialization WatchdogB3L−29 Pniorecv Pniosend Example of Configuration and ProgrammingB3L−31 Call interface Pniosend in the user programB3L−32 Call interface Pniorecv in the user programWeb diagnostics opens with the Start Web DiagnosticsSettings for Access to Diagnostic Data Starting and Working with Web DiagnosticsLayout of the Diagnostics Pages Diagnostics Pages of the CPStatus StartParameter Function GeneralVersion IdentificationParameter IdentificationRack Configuration Rack name Rack ConfigurationB3L−38 Diagnostic Buffer EventsDetails no. of the event IP parameters Industrial EthernetParameters Tab Network attachmentStatistics Tab TCP Connections TabUDP Connections Tab Parameters of a Profinet IO Device Profinet IO ConfigurationAssigned Pnio controller B3L−43Extended Functionality Replacing Older Modules / Replacing Faulty ModulesUse as a Replacement Compatibility with Predecessor ProductsModule Replacement Originally configured module Configuration StepsB3L−45 Further Notes on Operation Memory ResetHow to Use the Function DefaultsAutocrossing Working with Fast Ethernet − automatic switchoverBehavior after Memory Reset How Automatic Switchover of the Network Settings WorksFurther Notes Automatic Setting or Individual Network SettingsSupported MIB Objects Snmp AgentInfluence of MPI on Connections via Industrial Ethernet Access Permissions using Community NameSpecial Features of IP Configuration Protocol Port number ServiceReserved Port Numbers Gsdml file Other information available about the CPRequirements How to Load New FirmwareHow to Download New Firmware LEDs to Indicate the CP ModeB3L−54 Technical SpecificationsB3L−55 B3L−56
Related manuals
Manual 22 pages 56.26 Kb