 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
AnteSavilt Member 2


Joined: 13 Feb 2018 Posts: 264 Location: Croatia
|
Posted: 30/07/2021 18:14 Post subject: FC11 and FC12 for the PROFINET IO controller |
|
|
How do you program communication blocks FC11 and FC12 for the PROFINET IO controller?
https://support.industry.siemens.com/cs/document/31764614/
If you operate an Industrial Ethernet CP of the S7-300 as PROFINET IO controller or PROFINET IO device, then you have to call the communication functions FC11 "PNIO_SEND" and FC12 "PNIO_RECV" in the user program.
Features of communication blocks FC11 "PNIO_SEND" and FC12 "PNIO_RECV":
FC11 and FC12 are synchronous communication blocks.
The blocks are contained in the "SIMATIC_NET_CP" library for the S7-300 controller.
The blocks must be called in the OB1 cycle (see also Entry ID: 2795485).
The end of the job is indicated by "DONE", "NDR" or "ERROR".
Features of communication block FC11 "PNIO_SEND":
Operation as PROFINET IO controller
The block transfers the process data (outputs) of a specified output range to the IE CP for forwarding to PROFINET IO devices and as status display supplies the IO Consumer Status (IOCS) of the outputs of the PROFINET IO devices.
Operation as PROFINET IO device
The block reads the preprocessed process inputs of the CPU in the PROFINET IO device and transfers them to the PROFINET IO controller (configured I addresses); furthermore, the block supplies the IO Consumer Status (IOCS) of the PROFINET IO controller as status display.
Features of communication block FC12 "PNIO_RECV":
Operation as PROFINET IO controller
The block accepts the process data (inputs) from PROFINET IO devices (inputs of the controller) and the IO Provider Status (IOPS) of the inputs from the PROFINET IO devices in the specified input areas.
Operation as PROFINET IO device
The block accepts the data (configured Q addresses) transferred by the PROFINET IO controller and the IO Provider Status (IOPS) of the PROFINET IO controller and writes it to data areas of the CPU reserved for the process outputs in the PROFINET IO device.
Description of the configuration
The STEP 7 project includes the following S7-300 station that is configured as PROFINET IO controller:
CPU 315-2DP with CP343-1 (6GK7 343-1EX21-0XE0)
In the STEP 7 project the following modules are configured as PROFINET IO devices:
ET 200S with IM151-3 PN (6ES7 151-3AA10-0AB0)
ET 200S wi th IM151-3 PN HF (6ES7 151-3BA22-0AB0)
The STEP 7 project
https://support.industry.siemens.com/cs/attachments/31764614/fc11_und_fc12_dev.zip
https://ulozto.net/file/HftRPbGjik60/fc11-und-fc12-dev-zip |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|