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 |
Release 03/2007 |