identify in HAL when Linuxcnc is doing drilling operation (G83/G76...)

More
09 Jul 2019 11:00 #138943 by ahhkoch
Any idea if this is possible?

Motion.motion-type offers only values for linear and arc-feed.

But my goal is to activate some external hardware only when linuxcnc is doing a drill operation.
Any idea or Chance if and how this could be possible?
Thx!

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

More
09 Jul 2019 13:38 #138950 by PCW
A somewhat clunky way would be to run the gcode through a filter and bracket the G83,G76 with M62/M63

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

More
09 Jul 2019 13:44 #138951 by ahhkoch
I lke this idea because ist just a little postprocessor modification...
Thx for this!
Any other ideas?

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

More
09 Jul 2019 15:52 #138959 by BigJohnT
You can also make a filter to make the changes when you open the file.

linuxcnc.org/docs/2.7/html/config/ini-co...html#_filter_section

JT

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

More
10 Jul 2019 06:33 #138991 by ahhkoch
Awesome! Great! Thx. The incredible flexibility of linuxcnc is sometimes too much "to see/know everything" :)

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

More
12 Jul 2019 14:01 #139174 by andypugh
Can the requirement be correlated to specific tools? If so then you could set HAL pins in a remap code, or possibly use halui.tool-number to pick from a mux.

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

More
12 Jul 2019 17:02 #139190 by ahhkoch
Hi Andy.

unfortunately not. We do Drilling-Operations with different tools. Thatswhy i am fine with the solution now:

A Gcode filter adds before G81 a M62 P0 and after G80 a M63P0.

The triggered HAL-PIN is linked to my internal MIST-cooling solution

Works perfect for me...
Greetings

Andreas

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

More
15 Jul 2019 13:41 #139423 by andypugh
Glad you have it working.
But my suggestion with the mux would have worked for as many tools as it needed to, but the tool numbers that got special treatment would be hard-coded in the HAL file, in effect.


Another alternative would have been to add 100 to any tool number that needed the mist cooling, and then handle the differences in a remapped tool change file

O100 IF[ <_tool> GT 100]
M6 [<_tool> - 100]
M7
O100 ELSE
M6 <_tool>
M8
O100 ENDIF.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum