Hilscher Community Forum
Detecting NetPI in Siemens TIA via Profinet - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Detecting NetPI in Siemens TIA via Profinet (/thread-421.html)



Detecting NetPI in Siemens TIA via Profinet - andrewc - April-10th-2019

Hello all,

I would like to build a script to subscribe to a memory address in my Siemens PLC via Profinet. 

I am currently running the example Profinet code (https://github.com/HilscherAutomation/netPI-netx-programming-examples) on my NetPI, but I can't detect the NetPI in TIA.

Anyone done anything similar?

Thanks


RE: Detecting NetPI in Siemens TIA via Profinet - Armin@netPI - April-10th-2019

In order to let TIA portal detect the netPI on PROFINET via the DCP protocol your netPI needs a physical connection to the PC the TIA portal is running on.

This can be done either via an ordinary ethernet switch or using the embedded switch of the S7 PLC in case it has two physical ethernet ports.

Also the example program needs to run, else the Industrial Ethernet controller in netPI stops all PROFINET communication. So make sure the PNS example program is up and running and printing to the console screen that it is triggering the watchdog.

Since setting a PROFINET name of a slave device over DCP protocol is a very common thing for Hilscher and all our provided PROFINET devices, also Hilscher offers a DCP detection and name setting tool for Windows here: https://kb.hilscher.com/download/attachments/93521964/EthernetDeviceConfiguration%20V1.0900.2.3231%20Setup.msi?api=v2

Try this program instead of TIA and right click to the found netPI and set a device name with it.

Thx


RE: Detecting NetPI in Siemens TIA via Profinet - andrewc - April-11th-2019

I am able to set the device name via the software you provided, but it seems like TIA still isn't able to connect to the device. I've set the IP within TIA and loaded in the electronic Data Sheet into TIA (https://github.com/HilscherAutomation/netPI-netx-programming-examples/tree/master/electronic-data-sheets/PROFINET).

Is there anything else that you suggest I try?


RE: Detecting NetPI in Siemens TIA via Profinet - Armin@netPI - April-11th-2019

I know TIA and a function "to scan for available devices" if you select the correct Ethernet port and scan it.

So if you use our program once agsin and scan the PC's Ethernet port and at the same time you use the TIA portal function to scan the same Ethernet port ... and then you don't see the netPI?

But on the other hand you see your S7 PLC in TIA if you rewire the Ethernet cable from netPI to your S7 PLC?