Say I want to use a button to call a one-time G-code op via MDI. 
Literally once.  Repeat calls will break things.

The button is debounced, but will remain pressed for more than one 
thread cycle.  In fact there's debouncing logic in HAL that yields a 
true/false.

Specifically it's a  "half" button to split the work coordinate by 1/2 
to set the zero at the center.  If you do it again, it's at 1/4, 1/8, etc.

MDI_COMMAND = G10 L20 P0 X[<#_x>/2]

How does this work?   Can I assign halui.mdi-command to booleans?  Do I 
assign the debounce output to "halui.mdi-command-18", or will that 
"break" as feared due to repeat calls unless it's also got a one-shot 
component?

Danny



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to