• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI Node-Red fieldbus node Error
#4
Yes this is exactly what I expected.

I can confirm that running Fieldbus Container at the same time as Codesys container on one netPI causes this problem. I have seen this with my device too.

This happens exactly at the time when Codesys is performing its licence checks (this is our assumption) after around 5 minutes of running. During this license check it talks to the GPU of the Raspberry CPU and does a lot of other things. This mechanim seems to have influence on the netX communication over SPI and interrupts it so that the netX watchdog triggers (default 1000msec) and the PROFINET protocol stack stops to work within netX and finally the Node-RED node stops operation. The SPI communication is reestablished by the netX driver but then it is too late.

The only chance you have is to manually increase the watchdog time that is configured by the Fieldbus webConfigurator dialog along in netX. The file responsible for configuring the watchdog time is /usr/lib/node_modules/WebConfigurator/PROFINET_IO/Device/WebContent/Structures/ConfigurationStruct.js. In there you find a string

Code:
this.WdgTime=1e3

1e3 = 1 exponent 3 = 1000 -> so 1000msec

Change it to "10e3" and save the file.

After that change you need to go again into the Fieldbus Web configurator and click "save" to overwrite the existing configuration file. Then redeploy the Node-RED flow

Overall we cannot recommend to run Codesys and netX based communication (Fieldbus container) at the same time.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
netPI Node-Red fieldbus node Error - by PersEE - September-18th-2019, 03:39 PM
RE: netPI Node-Red fieldbus node Error - by Armin@netPI - September-18th-2019, 03:50 PM
RE: netPI Node-Red fieldbus node Error - by PersEE - September-19th-2019, 10:05 AM
RE: netPI Node-Red fieldbus node Error - by Armin@netPI - September-19th-2019, 10:56 AM
RE: netPI Node-Red fieldbus node Error - by PersEE - October-8th-2019, 01:13 PM
RE: netPI Node-Red fieldbus node Error - by Armin@netPI - October-8th-2019, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,816 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  Initial Setup of Control Panel with admin + admin thorws error Michi 4 2,892 January-28th-2022, 09:28 AM
Last Post: Michi
  cannot execute file: Exec format error - NETPI tuliosouza 1 1,832 January-13th-2022, 01:17 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,041 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,308 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  netPI opc ua server pull image error wswitula 3 3,250 August-27th-2021, 10:47 AM
Last Post: wswitula
  Node red web UI issue DSongra 3 3,304 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,434 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,619 June-9th-2021, 08:51 AM
Last Post: tad
  2 MAC addresses for fieldbus RJ45 ports tad 2 2,222 March-11th-2021, 01:17 PM
Last Post: tad

Forum Jump:


Users browsing this thread: 1 Guest(s)