RS-232 and MODBUS

Discussion in 'Electronics Resources' started by Jassper, Oct 28, 2008.

  1. Jassper

    Thread Starter Active Member

    Sep 24, 2008
    84
    1
    I am looking for information on how to convert normal RS-232 to the MODBUS protocall. Any info would be appreciated.

    Thanks
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  3. Jassper

    Thread Starter Active Member

    Sep 24, 2008
    84
    1
    Very intuitive link, thanks.
    What I want to do is connect a Touch screen to the Arduino useing the RS-232 communications, but the touch screen I want to use only communicates in MODBUS/Serial or MODBUS/TCP.

    Can I simply program the controller to send the data in MODBUS format? Maybe I am over thinking here.
     
  4. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    MODBUS serial would be easiest - just parse the input with the microcontroller and discard the header.
     
  5. Jassper

    Thread Starter Active Member

    Sep 24, 2008
    84
    1
    Thanks, gotta reminde myself to keep it simple.
     
  6. MariaL

    New Member

    Sep 29, 2014
    2
    0
    RS-232 is serial based ASCII communication. You could make a program that maps the ASCII commands into Modbus RTU registers and run it on an embedded controller that has memory available. For example you could run a C language based program on an embedded controller like the one I listed below. Click here for C Language programming demos. Click here to watch a training video on Modbus protocol. If you have any questions, let me know.

    I-7188EX-MTCP: $349.00 Modbus/TCP Embedded Controller with 40 Mhz CPU and Real Time Clock Programmable in C Language. Converts Modbus RTU to Modbus TCP. Supports operating temperatures between -25 to 75°C. Can be piggy back din rail mounted on top of other modules. I-7188EXD-MTCP has a 7 segment LED display.
    http://www.icpdas-usa.com/i_7188ex_mtcp_i_7188exd_mtcp.html
    [​IMG]

    Maria Lemone
     
  7. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,570
    2,381
    An old post, before my time here.
    Modbus and RS232 are two completely different things?
    You can use Modbus over RS232, RS485 or ?
    Modbus is a data packet format, RS232 is a serial transmission format method.
    Max.
     
Loading...