Logix 5000 and serial port reading

JoeM1

Member
Join Date
Jul 2015
Location
Tucson
Posts
71
Hello,
I need to read a serial port. The serial port in question would be on a pressure gauge and would be read by a Logix 5000 CPU with a integrated serial port.
The directions are as follows: The first two numbers are the address of the device and all the responses are 13 characters long.
the commands would all start with a #
The responses would all start with a *


The command would be:
#01RD<CR>

And the response would be:
*01_7.60E+02<CR>

I am hoping that somebody could show some sample code on how to accomplish sending commands and receiving responses.

Thanks
 
There are ascii commands. Then store the string into string tag. Use the other ascii commands to manipulate tem as needed. See the help files.
 
Back in the days I worked a lot with ASCII serial. What I would suggest is that you divide the work into 2 portions. Use a PC/laptop in the middle to work out the ASCII sequence using hyperterminal or putty.

- Start with PC, connect to pressure gauge then figure out the correct ASCII command to get the desired return.

- then, use the PC connect to the PLC and work the PLC code to send out the correct ASCII command per the 1st step.

you get the idea.
 

Similar Topics

Good afternoon! I would like to know if there is anyone in the group who could help me !!!! Next I have a compaclogix 5000 with two serial ports...
Replies
2
Views
146,386
Hello everyone, this is my first time asking for help here, so please bear with any problem my english or lack of experience can cause. i have a...
Replies
3
Views
2,633
I would like to test an ASCII function to talk to a barcode scanner ahead of recieving the actual CLX processor and point i/o cards. Just a...
Replies
0
Views
9,318
Does anyone know how to set the background colors of instuction blocks (TON, MOV, etc)?
Replies
1
Views
92
Hello all, I have a question in regards to RSlogix 5000. I am having issues with the program force closing when I try to make online edits. We...
Replies
0
Views
95
Back
Top Bottom