routercnc
20-03-2017, 09:25 PM
Just tried out my first bit of gcode posted [boring out a hole] from Fusion 360, using an air cut, and it all worked well except:
1. Pressing cycle start makes the machine move to machine coords Z zero (i.e. Z home switch)
2. After cutting out the part it moved back to machine coords X, Y, Z zero (i.e all home switches)
I'm used to Vectric posting code out which moves the machine to work offset zero and safe Z (e.g. local 0,0,20), which is much more handy than having the machine march off to home somewhere over in the far corner.
The code posts out G28 (line 6, and last but 2 lines), which is moving the machine to machine zero. Here it is:
(OP2_SINGLEHOLE_6MM_0P5_300)
(0.5MM PITCH)
(T1 D=6. CR=0. - ZMIN=-20. - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G21
G28 G91 Z0.
G90
(BORE2)
M5
M9
T1 M6
(6MM_2F_19S)
S12000 M3
G54
M9
G0 X9.409 Y61.753
G43 Z15. H1
Z2.
G1 Z0.6 F900.
X9.416 Y61.749 Z0.506
X9.435 Y61.739 Z0.415
X9.467 Y61.722 Z0.328
X9.51 Y61.698 Z0.247
X9.563 Y61.669 Z0.176
X9.626 Y61.634 Z0.115
X9.697 Y61.596 Z0.065
X9.773 Y61.554 Z0.029
X9.853 Y61.51 Z0.007
X9.936 Y61.465 Z0.
X10.199 Y61.321
G3 X10.878 Y61.521 R0.5
X9.122 Y62.479 Z-0.5 R1. F300.
X10.878 Y61.521 Z-1. R1.
X9.122 Y62.479 Z-1.5 R1.
X10.878 Y61.521 Z-2. R1.
X9.122 Y62.479 Z-2.5 R1.
X10.878 Y61.521 Z-3. R1.
X9.122 Y62.479 Z-3.5 R1.
X10.878 Y61.521 Z-4. R1.
X9.122 Y62.479 Z-4.5 R1.
X10.878 Y61.521 Z-5. R1.
X9.122 Y62.479 Z-5.5 R1.
X10.878 Y61.521 Z-6. R1.
X9.122 Y62.479 Z-6.5 R1.
X10.878 Y61.521 Z-7. R1.
X9.122 Y62.479 Z-7.5 R1.
X10.878 Y61.521 Z-8. R1.
X9.122 Y62.479 Z-8.5 R1.
X10.878 Y61.521 Z-9. R1.
X9.122 Y62.479 Z-9.5 R1.
X10.878 Y61.521 Z-10. R1.
X9.122 Y62.479 Z-10.5 R1.
X10.878 Y61.521 Z-11. R1.
X9.122 Y62.479 Z-11.5 R1.
X10.878 Y61.521 Z-12. R1.
X9.122 Y62.479 Z-12.5 R1.
X10.878 Y61.521 Z-13. R1.
X9.122 Y62.479 Z-13.5 R1.
X10.878 Y61.521 Z-14. R1.
X9.122 Y62.479 Z-14.5 R1.
X10.878 Y61.521 Z-15. R1.
X9.122 Y62.479 Z-15.5 R1.
X10.878 Y61.521 Z-16. R1.
X9.122 Y62.479 Z-16.5 R1.
X10.878 Y61.521 Z-17. R1.
X9.122 Y62.479 Z-17.5 R1.
X10.878 Y61.521 Z-18. R1.
X9.122 Y62.479 Z-18.5 R1.
X10.878 Y61.521 Z-19. R1.
X9.122 Y62.479 Z-19.5 R1.
X10.878 Y61.521 Z-20. R1.
X9.122 Y62.479 R1.
X10.878 Y61.521 R1.
X10.679 Y62.199 R0.5 F900.
G1 X10.415 Y62.343
X10.333 Y62.388 Z-19.993
X10.253 Y62.432 Z-19.971
X10.176 Y62.473 Z-19.935
X10.106 Y62.512 Z-19.885
X10.043 Y62.546 Z-19.824
X9.989 Y62.576 Z-19.753
X9.946 Y62.599 Z-19.672
X9.914 Y62.616 Z-19.585
X9.895 Y62.627 Z-19.494
X9.889 Y62.631 Z-19.4
G0 Z15.
M9
G28 G91 Z0.
G28 X0. Y0.
M30
In the post processor screen for F360 I tried changing the 'use G28' option to 'no', but this just omits the G28, and looks like it will then just home above the feature just cut.
Any thoughts to get it to go to work offset zero instead of machine zero ?
1. Pressing cycle start makes the machine move to machine coords Z zero (i.e. Z home switch)
2. After cutting out the part it moved back to machine coords X, Y, Z zero (i.e all home switches)
I'm used to Vectric posting code out which moves the machine to work offset zero and safe Z (e.g. local 0,0,20), which is much more handy than having the machine march off to home somewhere over in the far corner.
The code posts out G28 (line 6, and last but 2 lines), which is moving the machine to machine zero. Here it is:
(OP2_SINGLEHOLE_6MM_0P5_300)
(0.5MM PITCH)
(T1 D=6. CR=0. - ZMIN=-20. - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G21
G28 G91 Z0.
G90
(BORE2)
M5
M9
T1 M6
(6MM_2F_19S)
S12000 M3
G54
M9
G0 X9.409 Y61.753
G43 Z15. H1
Z2.
G1 Z0.6 F900.
X9.416 Y61.749 Z0.506
X9.435 Y61.739 Z0.415
X9.467 Y61.722 Z0.328
X9.51 Y61.698 Z0.247
X9.563 Y61.669 Z0.176
X9.626 Y61.634 Z0.115
X9.697 Y61.596 Z0.065
X9.773 Y61.554 Z0.029
X9.853 Y61.51 Z0.007
X9.936 Y61.465 Z0.
X10.199 Y61.321
G3 X10.878 Y61.521 R0.5
X9.122 Y62.479 Z-0.5 R1. F300.
X10.878 Y61.521 Z-1. R1.
X9.122 Y62.479 Z-1.5 R1.
X10.878 Y61.521 Z-2. R1.
X9.122 Y62.479 Z-2.5 R1.
X10.878 Y61.521 Z-3. R1.
X9.122 Y62.479 Z-3.5 R1.
X10.878 Y61.521 Z-4. R1.
X9.122 Y62.479 Z-4.5 R1.
X10.878 Y61.521 Z-5. R1.
X9.122 Y62.479 Z-5.5 R1.
X10.878 Y61.521 Z-6. R1.
X9.122 Y62.479 Z-6.5 R1.
X10.878 Y61.521 Z-7. R1.
X9.122 Y62.479 Z-7.5 R1.
X10.878 Y61.521 Z-8. R1.
X9.122 Y62.479 Z-8.5 R1.
X10.878 Y61.521 Z-9. R1.
X9.122 Y62.479 Z-9.5 R1.
X10.878 Y61.521 Z-10. R1.
X9.122 Y62.479 Z-10.5 R1.
X10.878 Y61.521 Z-11. R1.
X9.122 Y62.479 Z-11.5 R1.
X10.878 Y61.521 Z-12. R1.
X9.122 Y62.479 Z-12.5 R1.
X10.878 Y61.521 Z-13. R1.
X9.122 Y62.479 Z-13.5 R1.
X10.878 Y61.521 Z-14. R1.
X9.122 Y62.479 Z-14.5 R1.
X10.878 Y61.521 Z-15. R1.
X9.122 Y62.479 Z-15.5 R1.
X10.878 Y61.521 Z-16. R1.
X9.122 Y62.479 Z-16.5 R1.
X10.878 Y61.521 Z-17. R1.
X9.122 Y62.479 Z-17.5 R1.
X10.878 Y61.521 Z-18. R1.
X9.122 Y62.479 Z-18.5 R1.
X10.878 Y61.521 Z-19. R1.
X9.122 Y62.479 Z-19.5 R1.
X10.878 Y61.521 Z-20. R1.
X9.122 Y62.479 R1.
X10.878 Y61.521 R1.
X10.679 Y62.199 R0.5 F900.
G1 X10.415 Y62.343
X10.333 Y62.388 Z-19.993
X10.253 Y62.432 Z-19.971
X10.176 Y62.473 Z-19.935
X10.106 Y62.512 Z-19.885
X10.043 Y62.546 Z-19.824
X9.989 Y62.576 Z-19.753
X9.946 Y62.599 Z-19.672
X9.914 Y62.616 Z-19.585
X9.895 Y62.627 Z-19.494
X9.889 Y62.631 Z-19.4
G0 Z15.
M9
G28 G91 Z0.
G28 X0. Y0.
M30
In the post processor screen for F360 I tried changing the 'use G28' option to 'no', but this just omits the G28, and looks like it will then just home above the feature just cut.
Any thoughts to get it to go to work offset zero instead of machine zero ?