Configuring PROFINET controller and PROFINET device
This series of steps demonstrates how to set up communication between two PLCs, one of them being the PROFINET controller and the other being the PROFINET device.
On the PLC that will be the PROFINET Device:
Note: The following steps are laid out in detail in the Configuring PROFINET devices topic.
- Start with the default PLCnext Engineer project for your PLC.
- Set the required PLC IP address and Axioline F hardware configuration. Also set the Name of Station in the TCP/IP Profinet section of the PLC settings, and take note of the name - you will need this when configuring the PROFINET controller.
- Download the PLCnext Engineer project to this PLC and check that the RUN and D LEDs are both solid green. Both the BF-C and BF-D LEDs will be red until the PROFINET controller is set up in the next step. Then the BF-D LED on this PLC will turn off then, indicating that there are no faults on that PROFINET device.
On the PLC that will be the PROFINET Controller:
- Start with the default PLCnext Engineer project for your PLC.
- Set the required PLC IP address and Axioline F hardware configuration. Make sure that the Name of Station for this PLC is different to the station name for the other PLC.
- In the to the Profinet branch of the project tree, add an item from Axioline F → Profinet → Controller Device.
- In the Settings for this PROFINET device, change the IP address assignment mode to Manual, enter the IP address details of the other PLC, and (very important!) set the Name of station to the name that you set in the other PLC.
- Download the PLCnext Engineer project to this PLC and check that the RUN and D LEDs are both solid green.
- The BF-D LED on this PLC will be red, but the BF-C LED should be off, indicating that there are no faults on this PROFINET controller.
- Check if the BF-D LED on the other PLC now turns off, indicating that there are no faults on that PROFINET device.
Completion
512 bytes of data will now be exchanged in each direction between the two PLCs.
- In the PROFINET device, that data is in the system variables
PND_S1_INPUTS
andPND_S1_OUTPUTS
. - In the PROFINET controller, that data is in the variables
DI4096
andDQ4096
in the Data List for that PROFINET device. This data can be copied to PLC global variables or connected to program IN and OUT ports.
• Published/reviewed: 2024-09-24 ☀ Revision 073 •