I am very new to programming PLCs, and one of the first tasks I received was to create a program that creates a socket connection between my PLC and another company's computer.
By using Allen Bradley's socket manual, I was able to do so without issues. I can send messages to the guy's computer with no problems!
However, he is requesting I send specific messages in a specific order with ascii codes.
HERE is an example of what kind of message to send:
<STX>00001|KEEPALIVE<ETX>
Start of Text - # of message – Field Separator – Message Data – End of Text
I know CONCAT, and can combine all the strings etc, but how to I actually send the "STX and "ETX" in raw ascii code?
My PLC is a compactLogix 5380, and I use PuTTY to test everything.
By using Allen Bradley's socket manual, I was able to do so without issues. I can send messages to the guy's computer with no problems!
However, he is requesting I send specific messages in a specific order with ascii codes.
HERE is an example of what kind of message to send:
<STX>00001|KEEPALIVE<ETX>
Start of Text - # of message – Field Separator – Message Data – End of Text
I know CONCAT, and can combine all the strings etc, but how to I actually send the "STX and "ETX" in raw ascii code?
My PLC is a compactLogix 5380, and I use PuTTY to test everything.