Looking to combine multiple ASCII strings (aprox 12 characters) together to from 1 string (1 line of printout)to be printed as a recipt style printout (using SLC5/04)
E.G
Fruit Type: Bananas Line Number: 999
Where the word Fruit Type: = String 1
Where the word Bananas = String 2
Where the word Line Number: = String 3
Where the number 999 = String 4 (Used ACI instruction to get integer to string)
If String 1 was concatenated (ACN instruction)with string 2 and sent to String 100(storage), would the result be
Fruit Type: Bananas
or something else? How do I adress this move to get a result like this?
I was hoping my next step would be to (ACN) string 100 to string 3 and store back in string 100. Giving the result : Fruit Type: Bananas Line Number:
Would this work?
Then (ACN) string 100 to string 4 and store back in string 100 to give the final result
Fruit Type: Bananas Line Number: 999
Total line aprox 40 characters
Any help or hints would be greatly appreciated. I haven't had a lot to do with string manipulation etc
Sample code of similar manipulation would be greatly appreciated.
Need to then send this string to 1734232ASC via devicenet to printer after string is formed, but thats a whole new post and a whole lot more questions.