• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Help with fieldbus node
#5
(August-15th-2019, 06:32 AM)Armin@netPI Wrote: Dear Farani,

you found a bug in the documentation. The documentation of the inject node in relation to the fieldbus node is wrong. Thank you for your remark

It is not correct to inject a "number" type value to "msg.payload" like as it is documented today.

Instead you have to use "JSON" type value and then inject a msg.payload value {"value":2} as example.

Look how I did it:



What you can of course do is to use a simple inject node that connects to a function node where you write a javascript code like this:

msg.payload = {};
msg.payload.value = 2;

and then connect it to a fieldbus node. Look here:



Sorry for this inconvenience. I already wrote the documentation team an email to get it corrected in future in the manual.

Thx
Armin

Much appreciated. Thank you very much.
  Reply


Messages In This Thread
[SOLVED] Help with fieldbus node - by Farani - August-14th-2019, 02:21 PM
RE: Help with fieldbus node - by Armin@netPI - August-14th-2019, 02:58 PM
RE: Help with fieldbus node - by Farani - August-15th-2019, 02:44 AM
RE: Help with fieldbus node - by Armin@netPI - August-15th-2019, 06:32 AM
RE: Help with fieldbus node - by Farani - August-16th-2019, 09:45 AM
RE: [SOLVED] Help with fieldbus node - by Armin@netPI - August-20th-2019, 07:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,774 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 2,996 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,254 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,262 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,390 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,565 June-9th-2021, 08:51 AM
Last Post: tad
  2 MAC addresses for fieldbus RJ45 ports tad 2 2,194 March-11th-2021, 01:17 PM
Last Post: tad
  Internet on the fieldbus-side COswald 21 9,622 March-1st-2021, 07:41 AM
Last Post: COswald
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,201 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,019 September-14th-2020, 01:59 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)