Hi All,
I'm new at this, and I'm not able to understand what I believe to be strange behavior while using the COP instruction in my program.
I'm conditionally copying a block of data from the source N9 to destination N7. I then use some of the N7 words as parameters in a couple of SCP instructions (I mention this just in case is relevant).
The condition to copy the data is when a specific output is ON, so I'm additionally using an OSR instruction so it only executes once when the output cycles.
So it copies the block of data correctly, but when I go and change data from the source in N9, it changes in N7 without the COP (or rung) being executed! I added a CTU instruction in the COP rung to make sure it doesn't execute more than once and it doesn't. Please see screenshot of the two rungs below:
Does anyone have any idea what's going on here?
Happy new year (almost)!!!
Thanks in advance!
sb
I'm new at this, and I'm not able to understand what I believe to be strange behavior while using the COP instruction in my program.
I'm conditionally copying a block of data from the source N9 to destination N7. I then use some of the N7 words as parameters in a couple of SCP instructions (I mention this just in case is relevant).
The condition to copy the data is when a specific output is ON, so I'm additionally using an OSR instruction so it only executes once when the output cycles.
So it copies the block of data correctly, but when I go and change data from the source in N9, it changes in N7 without the COP (or rung) being executed! I added a CTU instruction in the COP rung to make sure it doesn't execute more than once and it doesn't. Please see screenshot of the two rungs below:
Does anyone have any idea what's going on here?
Happy new year (almost)!!!
Thanks in advance!
sb
Last edited: