5 example of configuration and programming, B3l−30 – Siemens CP 343-1 User Manual

Page 30

Advertising
background image

6 Configuring and Programming the CP as a PROFINET IO Device

B3L−30

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

Release 03/2007

C79000-G8976-C198-04

6.5

Example 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.

S

Input area:
− Length: 20 bytes
− available in DB10
− transferred with FC11 PNIO_SEND

S

Output area:
− Length: 7 bytes
− available in DB11
− transferred with FC12 PNIO_RECV

PNIO_SEND

PNIO_RECV

Figure 6-6

Configuration of a PROFINET IO device in HW Config

Advertising