Author Topic: Suspending a program  (Read 1105 times)

Lorne Van Dusen

  • Jr. Member
  • Posts: 87
  • I'm a old guy
    • View Profile
Suspending a program
« 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.


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3118
    • View Profile
    • Internet Programmable PLCs
Re:Suspending a program
« Reply #1 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.
Tel: 1-877-TRI-PLCS