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
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