User manual WTS Ver.1.16
Seite 42 von 52
FUNCTION 3: Read holding registers (PROGRAMMABLE REGISTER READING)
QUERY
Tot. bytes = 8
RESPONSE
Tot. bytes = 3+2*No. registers+2
where:
No. registers= number of Modbus register to be read, starting from the Address 1° register;
No. bytes = number of data bytes to follow;
FUNCTION 16: Preset multiple registers (MULTIPLE REGISTER WRITING)
QUERY
Tot. bytes = 7+2*No. registers+2
RESPONSE
Tot. bytes = 8
where:
No. registers = number of Modbus register to be read, starting from the Address 1° register;
No. bytes = number of data bytes to follow;
Val.reg.1 = register contents beginning from the first.
The Response contains the number of records changed starting from the Address 1° register.
COMMUNICATION ERROR MANAGEMENT
The communication strings are controlled by CRC (Cyclical Redundancy Check).
In case of a communication error the slave will not respond with any string. The master must
allow for a time-out before response reception. If no response is received it infers that a
communication error has occurred.
In the event of a string received correctly but not executable, the slave responds with an
EXCEPTIONAL RESPONSE. The "FUNCTION" field is transmitted with the msb at 1.
EXCEPTIONAL RESPONSE