Page 1 of 1
Read the input status of virtual ModbusRTU in Node Red
Posted: 06 Apr 2021, 10:42
by hikaru2001
Hello friend,
I want to read out the input words of virtual ModbusRTU Master module in Node Red. However I have no good solution. Do you have some idea? Thank you!
Re: Read the input status of virtual ModbusRTU in Node Red
Posted: 08 Apr 2021, 08:54
by ->Johannes<-
Hi hikaru,
have look at
Help Read Data Gateway Profinet Please!
At the last post you should replace "RevPiLED" with your word variable, e.g. "Input_Word_1"
Best regards
Johannes
Re: Read the input status of virtual ModbusRTU in Node Red
Posted: 09 Apr 2021, 04:33
by hikaru2001
Hi Johannes,
Thank you!
Your method works, but the return type is string in Node-red. Additionally I use function node(msg.payload = Number(msg.payload); return msg;) to convert the string value into number value, then the value can be calculated later.
Re: Read the input status of virtual ModbusRTU in Node Red
Posted: 13 Apr 2021, 10:18
by jgerlach-erminas
Hello hikaru,
custom/manual return types is a already feature request, you can follow future progress here
https://github.com/erminas/node-red-con ... /issues/13
Greetings,
Jonas