I am having a problem writing a string containing backslashes into an ST:9 file of an ML1100. I have the serial port set to ASCII and am sending data out as hex. For example, I can type "\FF\01\00\00\00\00\01" directly into the file using RSLogix 500 and it accepts it. Looking at the data it is transmitting using a serial port monitor, it is also correct. The backslashes are required in order to have the ML1100 treat it as hex and not send the ASCII equivalent. When I try to write the same data to ST:9/x using Ignition, the ST:9/x populates with "\\FF\\01\\00\\00\\00\\00\\01" even when the data displays correctly inside Ignition as "\FF\01.......and so on" The Python code in Ignition requires me to use double backslashes. I've tried many different ways in Python to send the backslashes and still get doubles in the ML1100. After that, I thought I'd try to concatenate the string together inside the ML1100. The problem there is that the ML100 won't store a single backslash in a ST:9 location for me to concatenate onto the front of each byte. It will store a double backslash.
Any ideas on how I can either write to the ST:9 location with single backslashes or how I can get the ML1100 to concatenate a single backslash onto another string?
Thanks!
Shawn
Any ideas on how I can either write to the ST:9 location with single backslashes or how I can get the ML1100 to concatenate a single backslash onto another string?
Thanks!
Shawn
Last edited: