7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-238
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
7.8 FCs and FBs for PROFINET IO
Overview
The FCs listed below are available for transferring data cyclically on the
PROFINET IO interface. The significance of the FCs differs depending on how you
use the CP (as a PROFINET IO controller or PROFINET IO device) in an S7
station.
FC
can be used with:
Meaning
S7 - 300 S7 - 400
PNIO_SEND (FC11) x - On the PROFINET IO controller
Sending process output data to the
PROFINET IO devices.
On the PROFINET IO device
Forwarding process input data to
the PROFINET IO controller.
PNIO_RECV (FC12) x - On the PROFINET IO controller
Receiving input data from the
PROFINET IO devices.
On the PROFINET IO device
Receiving process output data from
the PROFINET IO controller.
The FBs listed below are available for transferring data (data records, alarm
information) acyclically on the PROFINET IO interface. The two blocks can only be
used in PROFINET IO controller mode.
FC
can be used with:
Meaning
S7 - 300 S7 - 400
PNIO_RW_REC (FB52) x - Read data record
(from a PROFINET IO device)
Write data record
(to a PROFINET IO device)
PNIO_ALARM (FB54) x - Receive alarm information from the
PROFINET IO devices