I'm guessing there is a simple way to do this, but I'm not very experienced with timers, so maybe one of you can help me out.
I have two string variables set up. Lets say ST1:0 is incoming data, and ST2:0 is outgoing data. I have a pre-defined string message in ST2:1 that I want to copy to ST2:0 every 100 msec. I want to continue to do this until the content in ST1:0 matches a pre-defined string in ST1:1.
I set up some timers and COP instructions, but I think I made a mistake somewhere. My timer is copying the string, but only for the 1st iteration. Once the DN bit is '1' the timer doesn't reset itself. Like I said, I'm still kind of new to using timers, just wondering if there is a better way to approach this. Thanks, and let me know if there are any additional questions or info needed.
I have two string variables set up. Lets say ST1:0 is incoming data, and ST2:0 is outgoing data. I have a pre-defined string message in ST2:1 that I want to copy to ST2:0 every 100 msec. I want to continue to do this until the content in ST1:0 matches a pre-defined string in ST1:1.
I set up some timers and COP instructions, but I think I made a mistake somewhere. My timer is copying the string, but only for the 1st iteration. Once the DN bit is '1' the timer doesn't reset itself. Like I said, I'm still kind of new to using timers, just wondering if there is a better way to approach this. Thanks, and let me know if there are any additional questions or info needed.