When using cut and pasting of optoscript blocks, pay attention to how they are connected. I spent/wasted two days of troubleshooting to find I had not corrected the logic flow of an initialization flowchart.
Not sure if you know this, but there is a nice feature in the find dialog that finds all the missing connections. Glad you found your issue though!
Of course I did find it right after I hit send :smile:
I have met this situation.