TMD-T4 MODBUS-RTU COMMUNICATION PROTOCOL MODBUS PROTOCOL Modbus is a master-slave communication protocol able to support up to 247 slaves organized as a bus or as a star network; The physical link layer can be RS232 for a point to point connection or RS485 for a network.
(uchCRCHi « 8 | uchCRCLo ) ; Note: The ”Error Check (CRC)” field must be computed referring to the characters from the first of ADDR to the last of DATA inclusive. protocol communication - instruction manual IM148-U-AB v0.92 pag. 4 / 12 TMD-T4...
Page 5
= data bytes ( 00...?? HEX) (Nr. of register x 2 = n. byte). ERROR CHECK = Check sum. END OF FRAME = End message marker. See the TABLE OF TMD REGISTERS. protocol communication - instruction manual IM148-U-AB v0.92 pag. 5 / 12 TMD-T4...
Page 6
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. protocol communication - instruction manual IM148-U-AB v0.92 pag. 6 / 12 TMD-T4...
Page 7
Slave Address Function Code Function Code Sub-function Hi Sub-function Hi Sub-function Lo Sub-function Lo Data Hi Data Hi Data Lo Data Lo Error Check (CRC) Error Check (CRC) protocol communication - instruction manual IM148-U-AB v0.92 pag. 7 / 12 TMD-T4...
Page 8
The normal response has the slave ID identifier (54 HEX) and the run indicator status (FF HEX) plus 8 data bytes (byte count is 10, 0A Hex). Last two data bytes carry firmware version (bytes 11 and 12 of the frame ). protocol communication - instruction manual IM148-U-AB v0.92 pag. 8 / 12 TMD-T4...
Number Of Word Lo (1):Function Code transmitted by master with bit 7 high. Error Check (CRC) (2): Error type: 01= Illegal Function 02= Illegal data address 03= Illegal data value protocol communication - instruction manual IM148-U-AB v0.92 pag. 9 / 12 TMD-T4...
TABLE OF TMD REGISTERS This table is referred to the TMD-T4 device with 4 input channels and TMD-T8 device with 8 input channels. Decimal value is calculated as follow Dec. Value = (MSB Byte *256) + LSB Byte Instantaneous temperature register (read only)
- TMD-T8: from bit 0 (CH1) to bit 7 (CH8): 0 = led OFF; 1 = led ON - TMD-T4: from bit 0 (CH1) to bit 3 (CH4): 0 = led OFF; 1 = led ON Alarm signalling led status: LSByte of register 0x270 (read only) - TMD-T8: from bit 0 (CH1) to bit 7 (CH8): 0 = led OFF;...