Debugging serial port communication

Locked
mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Debugging serial port communication

Post by mark.monroe »

When you are having an issue communicating to a device via a serial port and are not sure what is wrong, one of the first steps is to verify that the HMI is sending out commands over the serial port. To do that you need to use a serial port monitoring program, like Maxterm. Maxterm is attached to this post and does not require any kind of installation, just download and run.

Maxterm allows you to open up a serial port on your PC and see what data the HMI is sending over the port. Some drivers only send commands when told to, so you may have to create a HMI program that repeatable sets a memory address in the controller. If you are getting a "Comm err", that means that the HMI is sending out commands to a controller, and it is not getting a response back.

Maxterm also has a “Pass Through” mode which allows you to watch the communication between two devices. To use pass through mode you will need two serial ports on your PC. Connect one port to your HMI, and the other to the controller. You may need a null modem between the PC and the controller. It depends on the controller. In our example, the HMI is connected to COM1 on the PC, while the controller is connected to COM4 on the PC. If everything is set right, you should see text in the receive window.
Snap 2012-06-11 at 08.38.12.png
Snap 2012-06-11 at 08.38.12.png (54.06 KiB) Viewed 51287 times
Snap 2012-06-11 at 08.30.35.png
Snap 2012-06-11 at 08.30.35.png (46.02 KiB) Viewed 51287 times
Snap 2012-06-11 at 08.23.50.png
Snap 2012-06-11 at 08.23.50.png (51.5 KiB) Viewed 51287 times
Attachments
maxterm.zip
(162.43 KiB) Downloaded 4269 times

User avatar
Chris T.
Posts: 109
Joined: Mon Nov 20, 2017 5:29 pm

Re: Debugging serial port communication

Post by Chris T. »

Locked
Best regards,
Christopher
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Locked