Block Delete enabled or disable during program

More
23 Feb 2015 14:01 #56226 by Diederik
l'd like to enable or disable the block delete while running a program. I connected Halui.program.block-delete-on to a button to try and achieve it, but no success. Whatever state it is in by the time I start the program, that it stays in. I write my program in a way so that I can clear long shavings if necessary, then I stop the spindle in the program. Sometimes it is not necessary, then I prefer to continue with the program. And not stop the spindle. On fanuc system, I'd normally do like this :

/m5
/m00
/m3

This allows me to stop spindle when required, and I can enable and disable block-delete while program runs.

Kind regards

Diekie

Please Log in or Create an account to join the conversation.

More
23 Feb 2015 22:06 #56236 by Dave_Dyke
IIRC the halui block delete request is active only when program is paused, so you also need a run/resume and prog pause halui buttons.
That said, it would be far more useful to also have spindle control and coolant halui buttons, you can then pause the program, stop coolant and spindle at any time during a program.

Please Log in or Create an account to join the conversation.

More
25 Feb 2015 14:05 #56287 by Diederik
Thank you for your input. I did try to pause program, and then to enable/disable /Block delete function, but doesn't seem to work. Any other advice?

Please Log in or Create an account to join the conversation.

More
26 Feb 2015 09:59 #56303 by cmorley
There is no work around - it is a short coming of linuxcnc.
adding a bug report or feature request will help to get it changed.
The following user(s) said Thank You: Diederik

Please Log in or Create an account to join the conversation.

More
26 Feb 2015 12:47 #56308 by cmorley
There is already a bug report for this. A note on the maillist may bring the subject up again.
The following user(s) said Thank You: Diederik

Please Log in or Create an account to join the conversation.

More
28 Feb 2015 00:08 #56337 by andypugh

I write my program in a way so that I can clear long shavings if necessary, then I stop the spindle in the program


To achieve the same thing you could write a G-code sub that tests an external pin and stops the spindle, retracts, etc only if the pin is set.

So, perhaps your main G-code could include
O <clear> CALL

And then a subroutine in a file called "clear.ngc"
O <clear> SUB
M66 P0 L0
O100 IF [#5399 EQ 0] 
     O<clear> RETURN
O100 ENDIF
#1 = #<_rpm> ; Save the spindle speed
#2 = #<_Z>; Save the Z position
M5
G53 Z0

M66 P0 L2 ; Wait for switch to be set to 0

M3 S#1
G0 Z[#2 + 1]
G1 Z[#2]

O <clear> ENDSUB
M2
The following user(s) said Thank You: Diederik

Please Log in or Create an account to join the conversation.

More
04 Mar 2015 23:08 #56465 by Diederik
thank you very much. I am getting some new ideas, and all input from you helps. thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds
Powered by Kunena Forum