8 years, 10 months ago.

Modbus Master ~

HI~ everybody~ thanks for watching my question~ i use LPC4088~ i have no idea about the method send Hex request to device and the device responses Hex to me. How could i do for it? and could someone give me example code TAT.. it's master not slave~ Thanks very much!!

1 Answer

8 years, 10 months ago.

Hi, this Arduino library can guide you through https://github.com/4-20ma/ModbusMaster

to put hex into Serial you do

mySerial.putc(0x30) // = DEC 48 = ASCII '0'

Accepted Answer