Hi All
Im having a small issue with manipulating ascii characters once in my Compactlogix PLC.
I have an external source writing a load of data to the serial port on my controller. I take the data from the buffer, placing it in a custom string tag. This is then cut down to leave me with an 11 character string. This string is in the format 'a b c d e d' with a space in between each character, (this is how i receive the data).
Is there a way to remove all the spaces at once rather than using 5 delete functions for each space?
Best Regards
Oliver
Im having a small issue with manipulating ascii characters once in my Compactlogix PLC.
I have an external source writing a load of data to the serial port on my controller. I take the data from the buffer, placing it in a custom string tag. This is then cut down to leave me with an 11 character string. This string is in the format 'a b c d e d' with a space in between each character, (this is how i receive the data).
Is there a way to remove all the spaces at once rather than using 5 delete functions for each space?
Best Regards
Oliver