Hello Guest it is March 29, 2024, 04:05:12 AM

Author Topic: How to have script running in the background?  (Read 2487 times)

0 Members and 1 Guest are viewing this topic.

How to have script running in the background?
« on: April 25, 2016, 10:55:15 AM »
I want to have a script constantly running while Mach3 is running, checking certain conditions and acting accordingly. Specifically, I want to halt all motion when the plasma torch is supposed to be on but isn't because the cutter stops when it overheats, has insufficient air pressure, or trips the circuit breaker. If something was constantly checking to make sure the Arc ON signal is active when OUTPUT1 is enabled I'd be golden. I tried having a custom M-code running an endless While loop (While 1>0) and initializing it a startup, but when I go to load G-code file the toolpath progress bar hangs and the toolpath isn't generated. Mach3 doesn't seem to be able to run more than one VB scripts at a time. 


Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: How to have script running in the background?
« Reply #1 on: April 25, 2016, 11:27:45 AM »
Macropump.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: How to have script running in the background?
« Reply #2 on: April 25, 2016, 11:46:46 AM »
Thank you thank you thank you thank you thank you. That seems like it will do exactly what I want, and without a While loop. Have a script constantly checking things will go a long way with the secondary parallel port I'm going to use, the homing/limit switches I plan to install, the THC I need to get working, the pre-cutting torch positioning script I wrote, and all the other measures I can take to dummy-proof my setup and make it so I don't have to watch it while my hand over the Estop button.