I want to write multiple registers to my modbus slave so i am using the request : WriteMultipleRegistersRequest.
My modbus slave is a Telemecanique Twido (Programmable logic controller).
When I use WriteMultipleRegistersRequest, I get always the same exception :
net.wimpi.modbus.ModbusIOException: Premature end of stream (Header truncated).
at net.wimpi.modbus.io.ModbusTCPTransport.readResponse(ModbusTCPTransport.java:190)
at net.wimpi.modbus.io.ModbusTCPTransaction.execute(ModbusTCPTransaction.java:192)
I tried with the other requests and they work fine.
I tried (and it works) :
ReadMultipleRegisters
ReadSingleRegister
WriteSingleRegister
Do you have any clues of what happen with WriteMultipleRegistersRequest and/or WriteMultipleRegistersResponse?
Regards,
Arnaud
This problem is fixed in CVS version (mentioned as 1.2rc2) Thanks
hi,
could you tell me ho to install 1.2rc2 with CVS?