Jump to content

Recommended Posts

Posted

Hello,

I am making a machine, where, for safety porpuses I need to PAUSE the program. My machine has a Pressure reducing valve and some solenoid valves. If my pressure sensor senses that pressure is too high (my  Pressure reducing valve doesn't work correctly for example) I just want to pause my program so it doesn't open any solenoid valve and let that high pressure into my machine. So is it possible to pause a program untill pressure is too high? Including pausing Timers so they wouldn't count. Program is written in Visilogic.

Thank you, Jan

  • MVP 2023
Posted

No, it is not possible to pause a program.  You're not thinking in Ladder Logic. There is a Watchdog Timer that will shut you down if the program does not execute continuously. What you must do is write your program so that when the pressure goes too high the correct actions are taken, such as preventing valves from opening. Pausing timers is a different issue. Only an Accumulating timer can be paused. Depending on what you're doing, if you need a timer to be paused, a timer may not be your best option (maybe a counter would be better). Though it is possible to Store and Load timer values if needed.

  • MVP 2023
Posted

As Flex points out, a ladder program is designed to continuously scan.  You can use this to your advantage, as you don't want the PLC to go dormant in some kind of PAUSE mode and ignore the rest of the conditions on our machine.

1.    Make a high pressure alarm bit and block your solenoids with it.  You may or may not want to make it self-resetting, but you'll want a deadband so it doesn't chatter.  Block your solenoid outputs with this bit.

image.png.65a2e06f352985bb38b3b38af68065bf.png

 

2.  I often roll my own timers when I want more control.  Use one of the internal system time pulses and an MI to count them.  Then you can use the alarm bit to "pause" the timer without loosing it's place.  Note that you'll have to handle resetting it.

image.png.df9024b9da6015e6a6f9eee0813ae540.png

 

Note that these are very basic general examples.  If you start asking specific questions about your program, please upload your .vlp file so we can see it along with your questions.  Posting a bunch of screenshots usually doesn't tell the whole story.

 

Joe T.

 

 

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.