How to write to two registers simultaneously using the FC 16

Hello Team!
I’ve developed a small supervision system for my generator using node red nodes. On the system, in order to reset an alarm, I’ll have to send two values ( 35707 and 29828) to two separate registers ( 4104 and 4105) simultaneously. I’ve tried this using the FC 16 function but no positive result.
Here below is the code

     value: 35707, 
     'fc': 16, 
     'unitid': 1, 
     'address': 4104 ,
      'quantity': 1 
      }, {
     value: 29828, 
     'fc': 16, 
     'unitid': 1, 
     'address': 4105 ,
      'quantity': 1 
      }]``
This returns an error code ''Wrong FC used''.
I think it has to do with the FC 16 I've used.
But, how do I get around this. Please any help will be highly appreciated.

As the built in help says:

msg.payload must be an array[] of comma separated values between 0:65535 each

And there is a built in demo

chrome_Z5n0GXaAXR

1 Like

Thank you Steve.
I got it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.