|
Post by skymoco on Jan 18, 2013 11:55:07 GMT -8
Every so often I need to set the w/c current equal to my machine coordinates.
I know I can just type in the M Coordinates in the w/c current DRO or just type in zero in the w/c offsets DRO. But is there a faster way to set them. My machine zero's is in the table center while my home position's are to the far sides so I cannot just reference all axis and then zero the DROs.
Maybe this is the height of laziness, but you made this all so easy...
|
|
|
Post by DaveCVI on Jan 18, 2013 13:42:21 GMT -8
well....... ;D I think that what you're asking is how to make WC0 = MC0, and to do so without moving the machine.... Just need to know a little gcode incantation... put on the flowing robe, light some candles, open the gcode manual and try this... (no black cats or eye of Newt needed for this magic) Let's start by going to the MSM WC offset page, and we'll look at the top panel where all the offset are shown. That panel actually shows the arithmetic that mach uses to get from MC to WC.... so what we want to do is to get all the offset columns set to 0 values. when there are no offsets, WC = MC. We'll be using the mdi line to adjust things: Use MDI to enter G49 - this is the gcode to cancel tool offsets. If there was a value in the Tool Offset column for Z, it will now have changed to 0. Enter G92.1 - that's the gcode to reset all G92 (and G52) offsets - the G92 column should now be all 0. So we have only the WC offset column left - we handle that via G10 (see gcode manual for more details of G10) Enter G10 L2 P1 X0 Y0 Z0 The G10 says set one or more offset values; the L2 says it's the WC offsets we want to set; P1 says set the offsets for G54 (P2 = G55 etc); and the X,Y,Z words are the values you want the offset to be. You will now find that the WC offsets for X,Y and Z are 0. Since there are now no offsets with non-zero values, you will find that the WC Curr Position column will be the same as the M Coords column. If you wanted, you could make a button that executes this script: code("G49") code("G92.1") code("G10 L2 P1 X0 Y0 Z0") then every time you click the button, all offsets would be reset = 0. Dave
|
|