- Posts: 42
- Thank you received: 0
temporary work offsets. external offset or something else?
Normal workflow would be to go where you want to start your job and just touch off each axis.
With my plasma machine I had a laser pointer (offset from the torch) which I pointed to where I wanted to start and press one button that moved the cutting tool to the laser point and set the g54 offsets for X & Y. I also had another button called Zero XY which made the current tool position X0Y0. That sounds more like what you want rather than mucking about with entering coordinates.
while that does sound handy for some stuff, what i want is to enter coordinates, just like our old controller, mainly to prevent incidents. Our operator is very new. The less changes the better right now until he gets more comfortable. I may add your button as a secondary thing though.
Please Log in to join the conversation.
Thanks! That's helpful. i'll do some reading and give it a shot. Sounds like what i'm looking for. I may try to add a button like Rodw mentioned as well.Your pyvcp boxes should set a halpin value, say 'value_x' and 'value_y' you could then have another pyvcp button that executes an MDI command like this:
G10 L2 P0 X#<_hal[pyvcp.value_x]> Y#<_hal[pyvcp.value_y]>
[edit]
For more information on reading hal pins from gcode see section 4 here:
linuxcnc.org/docs/2.9/html/gcode/overvie...:overview-parameters
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in 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.
Attachment not found
Please Log in to join the conversation.
Attachment not found
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 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 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 to join the conversation.
Please Log in to join the conversation.
