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.

  1. Start with the default PLCnext Engineer project for your PLC.
  2. 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.
  3. 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:

  1. Start with the default PLCnext Engineer project for your PLC.
  2. 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.
  3. In the to the Profinet branch of the project tree, add an item from Axioline F → Profinet → Controller Device.
  4. 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.
  5. Download the PLCnext Engineer project to this PLC and check that the RUN and D LEDs are both solid green.
  6. 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.
  7. 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 and PND_S1_OUTPUTS.
  • In the PROFINET controller, that data is in the variables DI4096 and DQ4096 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-12-10  ☃  Revision 075 •