BiancoRoyal / node-red-contrib-modbus-flex-server

maintained by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-modbus-flex-server
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Allow multiple registers to be written at one time #5

Open ajaywazir opened 2 months ago

ajaywazir commented 2 months ago

Describe the requested feature

In the following code snippet, if I use 'value': [233,234,235,233], only first 2 bytes are written. Ideally it should have written all 4bytes into 2 registers. But this does not happen. msg.payload = { //'value': [233,234,235,233], 'value': 1234, 'register': 'holding', 'address': 0 , 'disableMsgOutput' : 0 }; return msg;

Motivation

If we design protocol converters using node-red and I receive a IEEE754 float, I cannot write directly to the FlexModbus Server. I have to split it into two messages.

grewek commented 2 months ago

Hello,

So if i understand you correctly you want to write a Holding Register in Bytes?

i.e.

[RegisterA_HighByte, RegisterA_LowByte, RegisterB_HighByte, RegisterB_LowByte]
github-actions[bot] commented 1 week ago

This issue is stale because it has been open 60 days with no activity. It will be closed in 30 days, but can be saved by removing the stale label or commenting.