With G54 to G59, you have 6 work offsets. By way of example, here’s how a subprogram setup might look to make 4 identical parts with work offsets:Īs you can see, subprograms can make it very slick and easy for you to make a lot of identical parts. Assuming your control supports them, once you learn to use subprograms, you can keep one copy of the part code, and call it as a subprogram from each work offset block. The overall scheme looks like this:įor now, you’ll probably just cut and paste copies of the code. You could issue a work offset manually based on which vise you stick the workpiece in, but it’s more productive to do it right in the g-code. Once you have G54 through G57 set to the four vise jaw positions, you’re ready to go. Use and edge finder or probe to locate the position of that vise jaw corner and then set that work offset based on the way your machine controller sets up offsets. You want to choose the non-moving jaw because that one’s position is more accurate. You might want to set 4 work offsets to be the coordinates of the left rear vise jaw corner of each vise. When you execute the work offset g-code, the XYZ offset will be added to all of your coordinates from that point forward. It’s a good practice to put a G54 into the safety line at the top of all of your g-code programs to make sure you know what work offset is being used unless you have reason to want to leave that aside. How Are Work Offsets Specified in G-Code?īasic work offsets are very simple to specify: simply enter one of G54, G55, G56, G57, G58, or G59. Maybe you’ve mounted a tool sensor at a particular place on the table and use a work offset to keep track of that location.ĭealing with those kinds of situations is what work offsets were made for. Sometimes there are work offsets associated with some feature of the machine. The most complex examples of this are 4th axis and tombstones that may even combine different kinds of parts and use a variety of work offsets to keep it all straight. After all, they’re just shifted over relative to one another, but other than that, the part programs would be identical.Ī specialized fixture may be set up for a number of part positions, and it may be intended that each position have a work offset assigned to make it easy to program g-code for the fixture. We’d like to write the program relative to part zero, and then let some other function magically change the coordinates as we work on each part. Well, ideally, we don’t want to have to change the part program to handle the coordinates of each part position. What would a program for such a 4 part setup look like? This requires much less effort than swapping out ever single part as it is finished. This can speed up production as we can stick 4 workpieces in the vises, push the “Start” button, and not have to worry about it until the machine has finished 4 parts. For example, suppose we have 4 machinist’s vises on the table capable of holding 4 parts for machining. They identify places in your machine’s work envelope (the range of positions it can move to) that are of interest. Why would we want to offset the coordinates to a work location? Think of work offsets as being like bookmarks. Why Offset Coordinates to a Work Location? After the prior steps in the pipeline, our coordinates have been converted to the proper units (Imperial or Metric), converted to absolute coordinates (via G90/G91 status) and now we’re ready to offset those coordinates to the actual work location. This chapter on g-code programming is all about G52, G54, G92 and related work and fixture offset commands. Recall the Coordinate Transformation Pipeline that is used to convert coordinates in g-code to the actual coordinates the machine is to move to:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |