Hilscher Community Forum
Receive at startup additional data through the Fieldbus Port - 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: Receive at startup additional data through the Fieldbus Port (/thread-636.html)



Receive at startup additional data through the Fieldbus Port - Schranz - September-10th-2020

We do use a netPI RTE 3 with Node-Red to communicate with a machine with profinet.
Is there somehow a mechanism in place, where the machine could send me at startup some configuration information (ideal a json string)?


RE: Receive at startup additional data through the Fieldbus Port - Armin@netPI - September-10th-2020

The Node-RED implementation of PROFINET sets the focus on cyclic IO data exchange only. So this is why there isn't a feature implemented like sending configuration data from a PLC to the netPI device.

On the other hand I agree that the PROFINET controller chip netX51 used in netPI is a full featured PROFINET capable chip that also can support receiving acyclic data from PLC. Using those functions can only be realized by yourself. In this case you are treated like a standard netX51 chip customer who usually integrates this chip in his own embedded PROFINET device. Programming the netX51 chip by yourself is show with a simple C coded test program in this container https://github.com/HilscherAutomation/netPI-netx-programming-examples in accordance to the PROFINET netX51 API manual https://github.com/HilscherAutomation/netPI-netx-programming-examples/blob/master/manuals/PROFINET%20IO-Device%20V3.14%20Protocol%20API%2019%20EN.pdf. There is a lot to read and a lot to understand about PROFINET in general ... not even I am would be able to write such an application myself from scratch and would need Hilscher netX support for sure. Also you have to modiy your GSDML file pretty sure to enable acyclic communcations ... da da da.

Summay: if I were you I would pack simple configuration patterns directly into the cyclic IO data.