How do you set up work offsets within a cnc program and additionally set up extended work offsets for various features associated with a part.
I've used g54 but need help understanding how to use g54.1 p#
How do you set up work offsets within a cnc program and additionally set up extended work offsets for various features associated with a part.
I've used g54 but need help understanding how to use g54.1 p#
Lets start with a simple setup.
Assume your using a vise and your part is mounted in it, extending 1" to the left and 1" above.
Assume x0 is the left edge of the part, Y0 is the back of the part and Z0 is the top. (North West Corner)
Assume also that your drawing and program references the same X,Y,Z.
Using a warbler, probe or feeler gauge etc. you touch off X,Y,Z and enter them in your work offset (G54).
Now your drawing, program and machine all share the same start position.
The machine will simply follow the program instructions.
Additional Offsets:
Lets assume that the stock is long enough on X, to cut 3 parts, each 2" in length with a space of 0.1 between.
One option is to rerun the program using an additional work offset.
G52 X2.1 will cause the machine to move its current X position 2.1 " to the right.
Now that X0 is actually 2.1" to the right, the machine can duplicate the part with no further intervention.
Similarly, the third part may be machined with a G52 X4.2 offset.
Another option is to use another work offset for the second part, say G55, where X=(G54 X)+2.1 and Y,Z are the same.
For the third part you could use G56, where X=(G54 X)+4.2 and Y,Z are the same.
Running the same program using G55 will produce your second part, and using G56 will produce your third part.
Getting a little fancier, you could make your program a subroutine and call it three times using the three different offsets.
........................................
G54............( 1st Part Offset)
M98 P1000..( Call subroutine to cut part)
G55............( 2nd Part Offset)....... or G52 X2.1
M98 P1000..( Call subroutine to cut part)
G56............( 3rd Part Offset))....... or G52 4.2
M98 P1000..( Call subroutine to cut part)
O1000........ ( Subroutine to cut part)
Code to cut Part
The same technique may be used for Y or Z offset.
Hope this helps
John