adccommunitymod (AutomationDirect) asked a question.

Transmitting Data through RS232 Port

Created Date: April 18,2017

Created By: mswanny

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I'm trying to transmit some data from my Productivity2000 PLC into a COM port on a windows laptop. I 've gotten output from the PLC into the laptop, but it seems that it's not being transmitted and decoded in the same fashion (it's a bunch of random characters that I'm looking at). I 've got some float data under the tags Pressure 1, Pressure 2, Temperature 1, Temperature 2, and I'm using the "Modbus Write " function to try to output those through the RS232 and into a USB port, COM9, where I read the data as serial information through python 2.7. I think I can get it to work if I take the data in each of the tags and turn them into strings and use the "Serial Write " function in place of the "Modbus Write " function, is there a way to change the data into a string format? Is there another way to transmit the data easily?


  • adccommunitymod (AutomationDirect)

    Created Date: April 18,2017

    Created by: mswanny

    I'm trying to transmit some data from my Productivity2000 PLC into a COM port on a windows laptop. I 've gotten output from the PLC into the laptop, but it seems that it's not being transmitted and decoded in the same fashion (it's a bunch of random characters that I'm looking at).

    I 've got some float data under the tags Pressure 1, Pressure 2, Temperature 1, Temperature 2, and I'm using the "Modbus Write " function to try to output those through the RS232 and into a USB port, COM9, where I read the data as serial information through python 2.7.

    I think I can get it to work if I take the data in each of the tags and turn them into strings and use the "Serial Write " function in place of the "Modbus Write " function, is there a way to change the data into a string format? Is there another way to transmit the data easily?

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: April 19,2017

    Created by: Do-more PE

    Get a Modbus comms analyzer to be sure that you can see the data correctly. There are a ton of options out there. Once you ge the physical hardware working, then it will be a lot easier to figure out why your app isn't functioning.