logo Welcome, Guest. Please Login or Register.
September 22, 2018, 10:06:21 PM
Home Help Search Login Register
 News: Self-Registration temporarily suspended due to abuse.To Register as a member, please email to webmaster@triplc.com with your email and username.

  Internet PLC Forum
  General
  Technical support
(Moderator: support)
  Suspending a program
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: Suspending a program  (Read 176 times)
Lorne Van Dusen
Jr. Member
**

Posts: 73



I'm a old guy

View Profile
Suspending a program
« on: June 27, 2018, 03:45:07 PM »
Reply with quote

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.
Report to moderator   Logged
support
Global Moderator
*****

Posts: 3070





View Profile WWW E-Mail
Re:Suspending a program
« Reply #1 on: June 28, 2018, 12:54:16 PM »
Reply with quote

You can add a PAUSE statement at the place you want the PLC to simply stop running until it is re-started.
Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 


Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!