This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SOMPLC-F28PLC83 with UART MCU Interface documentation

I am trying to interface with the SOMPLC-F28PLC83 module with a Microchip MCU via UART. Currently I am attempting to test the UART to SOMPLC-F28PLC83 interface but I cannot find any good documentation. I have found some information in the document "TI_G3_host_msg.pdf" and in the "HostApplications" source code, but none that explains a simple test response (i.e. a "Who Am I" message). So currently I am attempting to send a series of characters ({0x01, 0x80, 0x04, 0x00, 0x2A, 0x81, 0x00, 0x00}) that I found using a serial sniffer and the Zero Configuration utility, but I am not getting a response.

Is there any documentation that describes the SOMPLC-F28PLC83 interface with an external microcontroller?

Thanks,

Levi

  • Hi Levi,

    Here is the UART configuration from the external host MCU:

    Baud Rate = 57600

    Data Bits = 8

    Stop Bits = One

    Parity = None

    Handshake = None

    RTS Enable = true

    To verify the interface, you can create a simple message (based on the host spec). e.g., SOFT_RESET message

    2014-03-10 18:53:30.6405:   Message Sent:

                                                   0x05 80 06 00 B9 2D 00 00 00 00 (--> You can send out this message from the external MCU)

    2014-03-10 18:53:30.6405:   Sending: (0x05) - Shutdown.Request

                                                        Reset Type:         Soft Reset

    2014-03-10 18:53:30.6561:   Message Received:

                                                   0x05 00 06 00 E3 16 00 00 00 00 (--> if you receive this confirmation from the DSP, it's working).

    2014-03-10 18:53:30.6561:   Receiving: (0x05) - Shut Down.Reply: Status= Success - 0x0000

    Another tip would be that you can open the GUI and take raw messages from the log window (on the log window, you can right click to turn on showing raw messages.).

    Thanks.

    Wonsoo

     

  • Hi Wonsoo,

    Thanks for the information it is very helpful. Unfortunately I still cannot get a response from the SOMPLC-F28PLC83 using the MCU UART. Do you have answers to the following questions?

    1) On the MCU, is it correct to tie the CTS and RTS pins together?

    2) Is the diagnostics port required for anything? Currently I have TX-A and RX-A connected to the UART interface, and I don't do anything with TX-B and TX-B (it appears that they are used for JTAG)

    Thanks,
    Levi

  • Nevermind, just figured out the problem. After setting up the ports (enable and reset) the SOMPLC-F28PLC83 would reset, I wasn't allowing a long enough delay between the reset sending information. After I put in a delay it all works fine.