Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
465 stars 174 forks source link

bugfix: exception response msb bit not being set to 1 #212

Closed martijnthe closed 6 years ago

martijnthe commented 6 years ago

As per the spec:

In an exception response, the server sets the MSB of the function code to 1. This makes the function code value in an exception response exactly 80 hexadecimal higher than the value would be for a normal response.

stefanpoeter commented 6 years ago

Thanks.