Several input for triggering emergency stop.
Hi.
I have recently added a floating head with a breakaway torch. This is with a pnp sensor which I have connected to input 4. This works okay and the input is triggered when I remove the torch.
However I would like this to trigger a emergency stop if the torch were to fall of. But I can't find any place to add this in the TNG software.
Is there a way to specify that the input should trigger a emergency stop?
Re: Several input for triggering emergency stop.
I do something similar for monitoring my 4th axis,
you can trigger the estop from the expr.txt
this is what I do for my 4th axis:
#OnInit
state_estop_4th = 0;
#Loop
if(_hw_input_num|3 == 1&& state_estop_4th==0, exec(state_estop_4th=1,estop(1),print('4th Axis error')));
if(_hw_input_num|3 == 0 , exec(state_estop_4th=0));
Re: Several input for triggering emergency stop.
If I understand it correctly this is a script running in the background?
#Oninit means on startup or start of program it checks the value of the input?
#Loop means that the script is running continuously throughout the program and if triggered will throw a "4th axis error" on the screen?
Should have been a easier way than this, if I don't remember incorrectly you could chose what the inputs meant in the old software without limitations.
Quote:
Originally Posted by
ScorpionTDL
I do something similar for monitoring my 4th axis,
you can trigger the estop from the expr.txt
this is what I do for my 4th axis:
#OnInit
state_estop_4th = 0;
#Loop
if(_hw_input_num|3 == 1&& state_estop_4th==0, exec(state_estop_4th=1,estop(1),print('4th Axis error')));
if(_hw_input_num|3 == 0 , exec(state_estop_4th=0));
Re: Several input for triggering emergency stop.
Yea you got that correctly.
Don't know if there is a other more easier way. But this has been working fine for more.
Re: Several input for triggering emergency stop.
You may assign a single input pin in settings -> Shortcuts to the emergency stop, but i personally prefere the same way ScorpionTDL suggested. This way you have more flexible options for displaying messages or use pins which may not require e-stop but triggering pause or regular stop.
I use e-stop for errors from motor drivers, regular stop if spindle is overheated and pause if air pressure is low or tool temperature is high. All depending if i think a short delay is ok or not and if there may be a chance to fix the error and resume operation without actually interrupting the program..