570
« on: July 19, 2020, 04:03:37 PM »
If you want sharp corners you have to turn off CV G61, this puts the control into exact stop mode.
G64 will turn CV back on but the faster that the cutter is entering the corner the bigger the radius will be to allow Mach3 to get around the corner without slowing the cut.
On some CAM systems you can tell it to output a G61 if the corner is less than a given angle or you can tell it to slow down on the corner and then go back to the programmed feed rate.
Using G61 all the time causes jerky movement on short moves so CV and slowing in tight corners is the best way to go.
-------------------------
Tool compensation is a way to allow for tool wear or to allow you to use a smaller tool than the code was originally programmed for. It is not a quick fix to bad code.
You have to pre-plan for things to work right, select your tool, allowing for the smallest internal radius to be cut, the tool needs to be smaller than this.
If you wish to machine a square pocket of say 50 x 50mm with internal rads of 3mm then a 5mm cutter is a good choice. The datum is 0/0 in the centre of the square.
Pocket the hole leaving say 0.5mm under size for finishing.
Then you have to lead in to start your finish cut, this is a line followed by a radius that finishes tangent to the following line of cut, the rest of the profile is then machined and a lead out is performed that again is a rad followed by a line.
The finish profile is programmed as if the tool had a zero diameter (on the centre line) and the G41/G42 then allows for the tool diameter with the P word (cutter diameter) or D word (diameter offset number) on entry, which of G41/G42 is to be used depends on which side of the line you are on and the direction of travel, this example we are on the inside/left of the line and moving counter clockwise so its G41, G40 then cancels the compensation on the lead out.
The finish profile code would look something like this:-
O0001 (G41_5MM_ENDMILL_50X50_FINISH_PASS)
G21 G40 G80 G17
N1 (FINISH INNER PROFILE - FLAT 5MM)
T2 M6
G54 G00 G90 G43 X17.5 Y-2.5 Z25. S2000 M3
Z1.
G01 Z-2. F100.
G41 P2.49 X20. Y-5. F200.
G03 X25. Y0. I0. J5.
G01 Y22.
G03 X22. Y25. I-3.
G01 X-22.
G03 X-25. Y22. J-3.
G01 Y-22.
G03 X-22. Y-25. I3.
G01 X22.
G03 X25. Y-22. J3.
G01 Y0.
G03 X20. Y5. I-5.
G01 G40 X17.5 Y2.5
G00 Z25.
G91 G28 Y0 Z0 M5
M30