Internet PLC Forum

General => Technical support => Topic started by: Lorne Van Dusen on June 27, 2018, 12:45:07 PM

Title: Suspending a program
Post by: Lorne Van Dusen on June 27, 2018, 12:45:07 PM
I am working on a program that is monitoring various inputs and outputs
Inside each of the functions I check to see if there is an error and if so I call a function
that shows the message on the LCD screen which function failed.
What is the best way to prevent the program from exiting that function until the PLC is restarted?
I originally used a long DELAY to hold it but eventually it does exit.
Title: Re:Suspending a program
Post by: support on June 28, 2018, 09:54:16 AM
You can add a PAUSE statement at the place you want the PLC to simply stop running until it is re-started.