Intelligent PROFINET IO device with S7-300 CP
7.4 Programming
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
129
Interface for programming on the PROFINET IO device
Process data transfer using FC11 and FC12
To exchange data using the STEP 7 user program, there are 2 program blocks available:
● PNIO_SEND (FC11)
PNIO_SEND reads the pre-processed process inputs of the CPU and transfers them to
the PROFINET IO controller (configured I addresses).
The pre-processed process inputs are available in a DB or bit memory area.
● PNIO_RECV (FC12)
PNIO_RECV writes the data transferred by the PROFINET IO controller (configured Q
addresses) to the data areas of the CPU reserved for the process outputs.
Note:
The direction of transfer of PNIO_SEND / PNIO_RECV described here applies only for
use on the PROFINET IO device. On the PROFINET IO controller, the direction of
transfer (CP-CPU) is the opposite.
As of program block version V2.0, PNIO_SEND / PNIO_RECV can also be used when the
CP is operating as both PROFINET IO device and PROFINET IO controller at the same
time.
The length information in the program 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 completely
and therefore consistently between the CP and CPU.
Note
Data consistency only within the individual IO slots
You should, however, bear in mind that in terms of the "IO user data" within a PROFINET IO
system, data consistency can only be guaranteed within the individual IO slots. It does not
matter whether or not consistent data transfer between CPU and
CP is guaranteed for the
program blocks described here.
Initialization and configuration
The initialization and configuration of the CP by the PROFINET IO controller described
below is only relevant for the CP in I-device mode.