200 likes | 299 Views
Data communication of GTR8x. RS-485 Interface. Connection UART configuration Protocol format. GTR8x Controller. Master device. RS-485. RS-485 Interface. Connection. RS-485 Interface. UART configuration 9600 bps No parity 9 data bits
E N D
RS-485 Interface • Connection • UART configuration • Protocol format
GTR8x Controller Master device RS-485 RS-485 Interface • Connection
RS-485 Interface • UART configuration • 9600 bps • No parity • 9 data bits The leading 8 bits information defines as “Address”, when the 9th bit sets to 1, and it defines as “Data” when the 9th bit sets to 0. • 1 stop bit
RS-485 Interface • Protocol format Master Device XOR GTR8x Controller Tx FID: 0x6F RS-485 Rx XOR
RS-232 Interface • Connection • RS-232 configuration • Protocol format
GTR8x Controller Master device RS-232 RS-232 MTR-1 RS-232 Interface • Connection
RS-232 Interface • RS-232 configuration • 19200 bps • No parity • 8 data bits • 2 stop bit
RS-232 Interface Master Device • Protocol format FID: 0x6F XOR XOR RS-232 Rx GTR8x Controller RS-485 Tx MTR-1
Ex: R-S Voltage readout • Voltage ratio readout RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • Voltage ratio readout (Continue) RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • Voltage ratio readout (Continue) Ratio = 0.01 Look up Table 0x04
Ex: R-S Voltage readout • Voltage ratio readout (Continue)
Ex: R-S Voltage readout • R-S voltage low byte readout RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • R-S voltage low byte readout (Continue) RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • R-S voltage high byte readout RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • R-S voltage high byte readout (Continue) RS-485 GTR8x Controller XOR 0x6F RS-232 RS-485 GTR8x Controller MTR-1 Master Device
Ex: R-S Voltage readout • R-S voltage calculate • Combine R-S voltage low byte and high byte • 0x55F0 = 256 * 85 + 240 = 22000 • Multiply voltage ratio • 22000 * 0.01 = 220 (Volt)
Ex: Program demo • Program by Borland C++ Builder 5.0 • Program by Visual Basic 6.0