I was attempting to work on the CRC issue raised on the forum, and find that I am very confused about the TBASIC PAUSE statement.
I am attempting to use PAUSE as a debug tool. I have the following custom function that is run on the first scan:
setlcd 1,1,"Program Started"
pause
setlcd 2,1,"Program Continued"
I expected to observe:
- "Program Started" message on the LCD
- "Pause Executed in Fn #1" window
- Click on PAUSE menu button to continue
- "Program Continued" message on the LCD
This is what I observed:
- "Program Started" message on the LCD
- "Pause Executed in Fn #1" window
- Click on PAUSE menu button to continue
- Simulation continues on next rung of ladder logic
PAUSE seems to be interpreted as a special version of the TBASIC "Return" statement.
Is this the design intent of PAUSE?
Gary d