spongebob17
Electrical
- Oct 10, 2007
- 16
Hello everyone,
I have a PLC controllogix that an OCR system will write to through an ethernet gateway module.
I'm trying to figure out how to write a logic that will read 8 text string messages within 1 long text string message seperated by delimiters ";" and place them into 8 tag string.
I know that I would have to use the FIND instruction but how will I seperate them and mov them into 8 different tag strings in the Result operand?
example: '$123;45678;9;$' delimiter = ";"
1st scan: reads 123; then moves it to Result operand.
2nd scan: reads 45678; then moves it to Result operand.
3rd scan: reads 9; then moves it to Result operand.
Thanks in advance!
I have a PLC controllogix that an OCR system will write to through an ethernet gateway module.
I'm trying to figure out how to write a logic that will read 8 text string messages within 1 long text string message seperated by delimiters ";" and place them into 8 tag string.
I know that I would have to use the FIND instruction but how will I seperate them and mov them into 8 different tag strings in the Result operand?
example: '$123;45678;9;$' delimiter = ";"
1st scan: reads 123; then moves it to Result operand.
2nd scan: reads 45678; then moves it to Result operand.
3rd scan: reads 9; then moves it to Result operand.
Thanks in advance!