LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use Modbus library with RS232?

I have develpop a code for modbus slave(ascii) in pic18f4550 microcontroler. when i connect the pic using rs232 and max232 with the hyperterminal (hyperterminal as a master) the pic18f responds well for the write single register (function code 06) and read register( function code 03) message frame.but when i connect the pic with labview using modbus library the labview gives me error 6101. Is it because modbus library can not worlk wirh RS232?

0 Kudos
Message 1 of 2
(2,930 Views)

Modbus certainly works with RS-232.  I do it all the time.  RS-232 just defines the architecture of the hardware connection.  Modbus defines the protocol of the data being transmitted.

 

It seems to me that you just haven't configured something properly in LabVIEW.  Perhaps baud rate or parity or stop bits.

 

Also look at http://digital.ni.com/public.nsf/allkb/628A4CF844B2382A862575D700349D99

0 Kudos
Message 2 of 2
(2,926 Views)