TMD-T4 protocol communication - instruction manual IM148-U-AB v0.92 pag. 6 / 12
SETUP OF THE TMD PARAMETERS (Function Code $ 10)
Write values into a sequence of holding registers (2X references).
WARNING: It is possible to write more than one variable at the same time only if their addresses are consecutive
and the variables on the same line cannot be divided (max of 4 consecutive register on the same message).
QUERY:
START OF FRAME = Starting message marker.
ADDRESS FIELD = TMD device address (01...F7 HEX) (1 byte).
FUNCTION CODE = Operation code ( 10 HEX) (1 byte).
START ADDRESS = First register address to be written (2 byte).
No. OF REGISTER = Number of registers to be written ( 1 to 4,...) (2 byte).
No. OF BYTES = Number of data bytes (HEX) (1 byte): 1register requires 2 data bytes.
D0,D1,..,Dn = Data bytes ( 00...? HEX) (1 byte) (Nr. of register x 2 = n. byte).
ERROR CHECK = Check sum.
END OF FRAME = End message marker.
The normal response returns the slave address, function code, starting address and quantity of register
preset.
RESPONSE:
START OF FRAME = Starting message marker.
ADDRESS FIELD = TMD device address (01...F7 HEX) (1 byte).
FUNCTION CODE = Operation code ( 10 HEX) (1 byte).
START ADDRESS = First register address to be written (2 byte).
No. OF REGISTER = Number of registers to be written (2 byte).
ERROR CHECK = Check sum.
END OF FRAME = End message marker.
See the TABLE OF TMD REGISTERS.