This project has moved. For the latest updates, please go here.
2
Vote

Error Setting Single Coil to True

description

There is a problem with the ModbusCodecWriteSingleDiscrete method of the Cet.IO.Protocols.ModbusCodecWriteSingleDiscrete class. When command.Data[0] != 0, the method writes 0x00FF to the ByteArrayWriter. According to section 6.5 of the MODBUS Protocol Specification, the value should be 0xFF00. Some server/slave implementations accept the reversed bytes, but others do not.

comments