May 06, 2024 Leave a message

Lathes cleverly use G50 instructions to save worry and effort in CNC programming

 

Don't laugh, old bird, this is dedicated to the novices who are new to the industry. Let me briefly introduce that g50 sets up the workpiece coordinate system in Guangshu. Note that g50 means different things in different systems. If you don't understand, you should ask first.

picture

The most commonly used uses of g50 are when aligning the reference tool, converting workpieces, and subroutines. Of course, you can also use last-hitting. CNC is ever-changing. As long as you are good at thinking, you will have endless surprises. G50 tool setting, end face turning once, enter t0101 g50 z0. The outer circle of the x-axis car is retracted toward the z-axis direction (if you are afraid of hurting the knife, you can also retract a little toward the x-axis first, but how much retraction you have to look at the sitting mark When the tool compensation is reached, input the tool compensation back) and then measure, which is also the value measured by inputting g50x in mdi. Well, the benchmark knife is fine. However, today's machine tools generally do not need to set tools like this, which is troublesome. Just input the tool compensation directly.

When converting workpieces, the z-axis length usually changes, so everyone needs to compensate for the z-axis or directly.

picture

If there are many tools, you might as well use g50 and then set the workpiece coordinates. For example, if the z-axis needs to be offset by 10, you can enter t0101 g0 z10 in mdi, and then g50z0 to see if the coordinate system has changed to 0? ? If it changes, it means it's okay.

The subroutine of g50 is actually the same as the z-axis deflection principle of the tool above. When programming, check the length of the workpiece and include the allowance for the cutting knife and the end face to be turned. The tool is offset and then g50 is used to set the workpiece coordinates. It should be noted that after turning the last workpiece, remember to return to the position of the first workpiece and then set the workpiece coordinates. Don't miscalculate here. Generally, if I program it myself, the retreat position is (the total length of the workpiece plus the length of the cutting knife plus the end face allowance) ) multiplied by (amount plus 1) hit the knife, don't come to me.

Send Inquiry

whatsapp

skype

E-mail

Inquiry