node-modbus icon indicating copy to clipboard operation
node-modbus copied to clipboard

Same number for Transaction ID Modbus TCP

Open Dannol0 opened this issue 2 years ago • 1 comments

Hi,

As the title suggests, is it possible to set the transaction ID of the modbus TCP calls to always be the same? We would need it to always be at 0 (due to a factory defect of a machine to which we have to integrate).

Thanks for the support, have a nice day.

Dannol0 avatar Apr 26 '22 15:04 Dannol0

Hi @Dannol0,

you can always fork this library and change what you need to change. I am sure this is possible.

In its current form the ID will always be incremented since there could be multiple requests that need to be sorted when returning. If you use the same ID on every request you can only handle one request at a time.

stefanpoeter avatar May 16 '22 14:05 stefanpoeter