ClassicDIY / ModbusTool

A modbus master and slave test tool with import and export functionality, supports TCP, UDP and RTU.
Apache License 2.0
673 stars 201 forks source link

Fixed bug: "05 (0x05) Write Single Coil" #6

Closed ThomasvLingen closed 6 years ago

ThomasvLingen commented 6 years ago

The response should echo back the written value. This was drawn from the decoded command, which used 0xFFFF for truthy representation instead of the 0xFF00 that the Modbus standard specifies. The decoder now no longer makes such a conversion and just copies the written value instead.