- Posts: 42
- Thank you received: 2
temporary work offsets. external offset or something else?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, there is the 'spinbox' widget, but that might be a bit of a pain since you have to use the the up/down arrows to adjust the value as it does not take values using the keyboard:well crap, i didnt realize that there wasn't a numerical input box for pyvcp. I swore i had seen one before.
GladeVCP does have an entry widget but you would have to change to a gui that uses gtk.
Sounds exactly what G52 does, add an offset to the current work offset. This screen shot shows the effect of 'G52 x80' on top of an existing G54 offset. :hmm it doesnt look like g52 is going to work either. i'm trying to add or subtract from the current work offset, not just tell the machine where it is. so for example, if the corner of the spoilboard is x0y0z0 but the part is 3" from there in x and y, i just want to offset the work offset by 3" instead of changing it, if that makes sense.
Please Log in or Create an account to join the conversation.
This is an adaptation of an older tcl remap I found on the forum. It works but it may need a bit of polishing as I'm not really familiar with tcl. This could probably be done in python as well.
This is the content of 'M141' in the 'mcodes' folder:
This is the '401remap.ngc' in the 'remap_subs' that would be called by the custom button:
The [RS274NGC] section of your ini file would need to include:
Please Log in or Create an account to join the conversation.
If you look here at section 7.5 and 7.6:
linuxcnc.org/docs/stable/html/gui/gladev...mand_on_button_press
You can create an on-screen button that runs an MDI command, and it can use values direct from the screen, no need to export to G-code analogue inputs.
Please Log in or Create an account to join the conversation.
[edit]
Just to give you one more option:
Here is a custom mcode using python that works on it's own. Calling it will open a popup for XYZ values (includes value checking) and a click on the 'Set' button will set the current work offsets to the entered values, so there are no halpins involved.
Please Log in or Create an account to join the conversation.