Hello Guest it is December 06, 2019, 12:34:54 PM

Author Topic: True 4 Axis Simultaneous on Mach3  (Read 3244 times)

0 Members and 1 Guest are viewing this topic.

Offline Mauri

*
  •  306 306
    • View Profile
True 4 Axis Simultaneous on Mach3
« on: November 22, 2012, 08:41:45 PM »
Hi,
Does anyone have True 4 Axis Simulataneous G Code from any CAM pogram that runs on a Mach 3 4 Axis CNC machine.
I need to see this code to see what can be wrong with my CAM program
Regards,
Mauri.
Re: True 4 Axis Simultaneous on Mach3
« Reply #1 on: November 24, 2012, 02:09:37 AM »
Hello Mauri,

If its any use, here is a 4th axis gear cutting file written by hand. Its for a really small watch gear replacement.

I found the machine set-up G codes important.

%
G17 G21 G40 G64 G90 G49
(Winding Gear Cutting Path)
(48 teeth cutter)
(No Z Motion - set to wheel centre line)
(X0 = 6mm out from front face of gear, cutter touching blank,Y0,Z0)
M03 S500

G1 A90.0 F300 (take up any lash - assuming starting at 0deg)
G0 X1.87 Y6.71
M98 P48 L48 (do roughing cycle 48 48 times)

M05 (Stop Spindle)
M30 (End and Rewind)

O48 (Gear Path Subroutine)
G1 X-0.72 Y6.71 F30
X-2.0 Y8.79
X-2.0 Y11.24
X-7.64 Y11.24
X-7.64 Y13.41
G0 X1.87 Y13.41
X1.87 Y6.71
G91 (INC MODE!!)
G1 A7.5 F300
G90 (ABS MODE!!)
M99 (Subroutine Return)

The Mach3 path is attached (I hope).

Does that help a little?

By the way, if anyone finds a free 4th axis code generator for milling radial shapes from a 3D model, please share!!

Woody.
Re: True 4 Axis Simultaneous on Mach3
« Reply #2 on: November 24, 2012, 10:32:30 AM »
Here is one I have used;
Hope it helps.

G00 G17 G21 G40 G49 G64 G80 G98 G90
G21
(4th Axis Engraving)
(PalloR1.5)
G49
M6 T3
S2250 M3
G00 X-110. Y0.
G00 G43 H3
Z34.998
M7
G01 A-0.629 F300
Z23.5 A-0.629 F450
X-95. A-0.629
X-80. A-3.580
X-78.571 A-5.764
X-77.282 A-8.437
X-76.148 A-11.514
X-75.175 A-14.934
X-74.371  Z23.499 A-18.637
X-73.744 A-22.548
X-73.293 A-26.598
X-73.006 A-30.722
X-72.762 A-35.666
X-72.488 A-41.218
X-72.196  Z23.498 A-47.145
X-71.904 A-53.073
X-71.601 A-59.217
X-71.326 A-64.804
X-71.043  Z23.497 A-70.547
X-70.765 A-76.174
X-70.44 A-82.761
X-70.208 A-87.470
X-69.976  Z23.496 A-92.181
X-69.723 A-97.302
X-69.46 A-102.631
X-69.189 A-108.119
X-68.912 A-113.746
X-68.629 A-119.490
X-68.342 A-125.325
X-68.051  Z23.495 A-131.222
X-67.759 A-137.151
X-67.466 A-143.079
X-67.176 A-148.976
X-66.888 A-154.811
X-66.605 A-160.555
X-66.328  Z23.496 A-166.183
X-66.028 A-172.257
X-65.794 A-177.000
X-65.54 A-182.156
X-65.255 A-187.927
X-64.979 A-193.537
X-64.702 A-199.144
X-64.426  Z23.497 A-204.749
X-64.149 A-210.352
X-63.873 A-215.953
X-63.597 A-221.552
X-63.321 A-227.159
X-63.029  Z23.498 A-233.087
X-62.738 A-238.983
X-62.413 A-245.583
X-62.168 A-250.561
X-61.891  Z23.499 A-256.187
X-61.62 A-261.674
X-61.357 A-267.003
X-61.102 A-272.158
X-60.836 A-277.554
X-60.56  Z23.5 A-283.163
X-60.283 A-288.772
X-60.006 A-294.382
X-59.73 A-299.991
X-59.453 A-305.599
X-59.176 A-311.226
X-58.884 A-317.153
X-58.591 A-323.081
X-58.301 A-328.976
X-58.013 A-334.810
X-57.73 A-340.552
X-57.453 A-346.178
X-57.183 A-351.665
X-56.92 A-356.994
X-56.665 A-362.148
X-56.38 A-367.919
X-56.104 A-373.528
X-55.827  Z23.499 A-379.135
X-55.551 A-384.739
X-55.274 A-390.341
X-54.998 A-395.941
X-54.722 A-401.539
X-54.446  Z23.498 A-407.145
X-54.154 A-413.073
X-53.863 A-418.970
X-53.538 A-425.569
X-53.293  Z23.497 A-430.547
X-53.016 A-436.174
X-52.745 A-441.662
X-52.482 A-446.991
X-52.227  Z23.496 A-452.147
X-51.961 A-457.547
X-51.685 A-463.157
X-51.408 A-468.768
X-51.131 A-474.378
X-50.855 A-479.988
X-50.578 A-485.598
X-50.301  Z23.495 A-491.222
X-50.009 A-497.151
X-49.716 A-503.079
X-49.426 A-508.976
X-49.138 A-514.811
X-48.855 A-520.555
X-48.578  Z23.496 A-526.183
X-48.308 A-531.671
X-48.045 A-537.000
X-47.79 A-542.156
X-47.505 A-547.927
X-47.229 A-553.537
X-46.952 A-559.144
X-46.676  Z23.497 A-564.749
X-46.399 A-570.352
X-46.123 A-575.953
X-45.847 A-581.552
X-45.571 A-587.159
X-45.279  Z23.498 A-593.087
X-44.988 A-598.983
X-44.663 A-605.583
X-44.418 A-610.561
X-44.141  Z23.499 A-616.187
X-43.87 A-621.674
X-43.607 A-627.003
X-43.352 A-632.158
X-43.086 A-637.554
X-42.81  Z23.5 A-643.163
X-42.533 A-648.772
X-42.256 A-654.382
X-41.98 A-659.991
X-41.703 A-665.599
X-41.426 A-671.226
X-41.134 A-677.153
X-40.841 A-683.081
X-40.551 A-688.976
X-40.263 A-694.810
X-39.98 A-700.552
X-39.703 A-706.178
X-39.433 A-711.665
X-39.17 A-716.994
X-38.915 A-722.148
X-38.732 A-725.862
X-38.499 A-730.579
X-38.206 A-736.522
X-37.916  Z23.499 A-742.403
X-37.629 A-748.236
X-37.495 A-750.948
X-37.199 A-755.009
X-36.711 A-758.920
X-35.943 A-762.890
X-35.129  Z23.498 A-765.979
X-34.058 A-769.001
X-32.824 A-771.637
X-31.46 A-773.840
X-30. A-775.577
X-15. A-777.926
X0. A-777.971
Z34.998 A-777.971
G00 Z150.
G49
M5 M9
G0 A0.
M21
M30

Offline Mauri

*
  •  306 306
    • View Profile
Re: True 4 Axis Simultaneous on Mach3
« Reply #3 on: November 24, 2012, 03:31:05 PM »
Hi,
Thanks, WoodyCam and Mstcnc,
What I wanted was a G-Code with all 4 axis moving at the same time.
Like the small G-Code below, I need it to prove that my code output is correct for mach3.
Regards,
Mauri.

G90 G80 G40 G00 G64 G21
(BALL_END_3)
M6 T1
M03 S6000
G00 A0
G01Z24.749
G00X25.597Y20.003F500.
G00Z26.250F500.
G01Y20.003Z25.343F500.
X25.000Z24.746F500.
X26.176
X27.353
X28.529
X29.706
X30.882
X32.059
X33.235
X34.412
X35.588
X36.765
X37.941
X39.118
X40.294
X41.471
X42.647
X43.824
X45.000
X45.001Y20.002
X45.001Y20.000
X45.001Y19.998
X45.000Y19.997Z24.746
X43.824
X42.647
X41.471
X40.294
X39.118
X37.941
X36.765
X35.588
X34.412
X33.235
X32.059
X30.882
X29.706
X28.529
X27.353
X26.176
X25.750
X25.643Y19.986A-0.034
X25.548Y19.955Z24.746A-0.105
X25.463Y19.906Z24.745A-0.218
X25.390Y19.842Z24.745A-0.367
X25.328Y19.763Z24.744A-0.548
X25.278Y19.674Z24.743A-0.755
X25.238Y19.576Z24.741A-0.982
X25.210Y19.471Z24.739A-1.225
X25.193Y19.361Z24.736A-1.479
X25.187Y19.250Z24.733A-1.738
X25.193Y19.138Z24.731A-1.996
X25.210Y19.028Z24.730A-2.250
X25.238Y18.923Z24.726A-2.493
X25.278Y18.825Z24.720A-2.721
X25.328Y18.736Z24.713A-2.928
X25.390Y18.658Z24.708A-3.108
X25.463Y18.594Z24.704A-3.258
X25.548Y18.545Z24.700A-3.371
X25.643Y18.514Z24.698A-3.443
X25.750Y18.503Z24.697A-3.468

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: True 4 Axis Simultaneous on Mach3
« Reply #4 on: November 24, 2012, 04:23:12 PM »
YOu normally do not move all axis in 4th axis protocal. The axis that has the rotary inline with it normally stays on the centerline of the axis and the rest of the axis do all the work as the tool needs to stay on the centerline. There can be exception to that rule but the CAM will have to able to calculate where the tool point actually is.

(;-) TP