post processor editing Help !!!! mach3 5 axis chinese h6040y cnc

post processor editing Help !!!! mach3 5 axis chinese h6040y cnc

nocturnalrccnc
Participant Participant
611 Views
11 Replies
Message 1 of 12

post processor editing Help !!!! mach3 5 axis chinese h6040y cnc

nocturnalrccnc
Participant
Participant

hello there guys been playing with fusion 360 alot on several machines,its what my boss uses at work so i i had to learn it and seems to be very usable on my 5 axis..i have edited the fanuc post processor at work for locking and unlocking the a axis before and after rotation...but this one has me confused...so what i think im looking for in my post processor seems easy to me...but cant get it to work..

 

what im needing is :

im needing b axis at 0 when program starts "usually is i beleive"

also need b axis at 0 after a tool change

also need b axis at 0 before tool change

this only is an issue when the b axis is on the - side

my tool change happens in the front of the machine then goes to the left and right of the table...

 

1001 is direct fusuion post using mach3 5 axis post

1002 is a file i edited to kind of show my issue..

Hope you all can help me out..Thank you very much Aaron

0 Likes
612 Views
11 Replies
Replies (11)
Message 2 of 12

nocturnalrccnc
Participant
Participant

(1001)
(T2 D=1.587 CR=0. TAPER=90DEG - SPOT DRILL)
(T3 D=3.175 CR=0. - FLAT END MILL)
N1 G90 G94 G91.1 G40 G49 G17
N2 G21
N3 G28 G91 Z0.
N4 G90

(DRILL2)
N5 M5
N6 T2 M6
N7 S11999 M3
N8 G54
N9 G0 A0. B0.
N10 M8
N11 G0 X-3.041 Y-0.152
N12 M98 P0001

(DRILL1)
N13 G0 X-13.709 Y0.75
N14 M98 P0002
N15 G28 G91 Z0.
N16 G90

(2D POCKET1)
N17 M5
N18 M9
N19 T3 M6
N20 S11999 M3
N21 G54
N22 A90. B-90.
N23 M8
N24 G0 X13.066 Y-3.349
N25 M98 P0003
N26 G28 G91 Z0.
N27 G90

(DRILL4)
N28 M5
N29 M9
N30 T2 M6
N31 S11999 M3
N32 G54
N33 A-90. B0.
N34 M8
N35 G0 X-7.127 Y-1.152
N36 M98 P0004

N37 M9
N38 G28 G91 Z0.
N39 G90
N40 A0. B0.
N41 G28 G91 X0. Y0.
N42 G90
N43 M30

O0001(DRILL2)
G0 Z15.
G17
G0 Z5.
Z4.
G1 Z3.5 F273.
G0 Z3.6
G1 Z3. F273.
G0 Z3.1
G1 Z2.5 F273.
G0 Z2.6
G1 Z2. F273.
G0 Z2.1
G1 Z1.5 F273.
G0 Z1.6
G1 Z1. F273.
G0 Z1.1
G1 Z0.5 F273.
G0 Z0.6
G1 Z0. F273.
G0 Z0.1
G1 Z-0.5 F273.
G0 Z5.
Z1.5
G1 Z-1. F273.
G0 Z5.
Z15.
M99

O0002(DRILL1)
G0 Z15.
G17
G0 Z5.
G98 G73 X-13.709 Y0.75 Z-0.05 R5. Q0.05 F273.
G80
Z15.
M99

O0003(2D POCKET1)
G0 Z21.652
Z11.652
G1 Z9.47 F1275.
S12000
X13.072 Y-3.329 Z9.357
X13.087 Y-3.272 Z9.259
X13.104 Y-3.171 Z9.182
X13.112 Y-3.047 Z9.152
G17 G3 X12.07 Y-1.992 Z9.095 R1.049
X11.014 Y-3.034 Z9.037 R1.049
X12.057 Y-4.09 Z8.98 R1.049
X13.112 Y-3.047 Z8.922 R1.049
X12.07 Y-1.992 Z8.864 R1.049
X11.014 Y-3.034 Z8.807 R1.049
X12.057 Y-4.09 Z8.749 R1.049
X13.112 Y-3.047 Z8.692 R1.049
X12.07 Y-1.992 Z8.634 R1.049
X11.014 Y-3.034 Z8.577 R1.049
X12.057 Y-4.09 Z8.519 R1.049
X13.112 Y-3.047 Z8.462 R1.049
X12.07 Y-1.992 Z8.404 R1.049
X11.014 Y-3.034 Z8.347 R1.049
X12.057 Y-4.09 Z8.289 R1.049
X13.112 Y-3.047 Z8.231 R1.049
X12.07 Y-1.992 Z8.174 R1.049
X11.014 Y-3.034 Z8.116 R1.049
X12.057 Y-4.09 Z8.059 R1.049
X13.112 Y-3.047 Z8.001 R1.049
X12.07 Y-1.992 Z7.944 R1.049
X11.014 Y-3.034 Z7.886 R1.049
X12.057 Y-4.09 Z7.829 R1.049
X13.112 Y-3.047 Z7.771 R1.049
X12.07 Y-1.992 Z7.714 R1.049
X11.014 Y-3.034 Z7.656 R1.049
X12.057 Y-4.09 Z7.598 R1.049
X13.112 Y-3.047 Z7.541 R1.049
X12.07 Y-1.992 Z7.483 R1.049
X11.014 Y-3.034 Z7.426 R1.049
X12.057 Y-4.09 Z7.368 R1.049
X13.112 Y-3.047 Z7.311 R1.049
X12.07 Y-1.992 Z7.253 R1.049
X11.014 Y-3.034 Z7.196 R1.049
X12.057 Y-4.09 Z7.138 R1.049
X13.112 Y-3.047 Z7.081 R1.049
X12.07 Y-1.992 Z7.023 R1.049
X11.014 Y-3.034 Z6.966 R1.049
X12.057 Y-4.09 Z6.908 R1.049
X13.112 Y-3.047 Z6.85 R1.049
X12.07 Y-1.992 Z6.793 R1.049
X11.014 Y-3.034 Z6.735 R1.049
X12.057 Y-4.09 Z6.678 R1.049
X13.112 Y-3.047 Z6.62 R1.049
X12.07 Y-1.992 Z6.563 R1.049
X11.014 Y-3.034 Z6.505 R1.049
X12.057 Y-4.09 Z6.448 R1.049
X13.112 Y-3.047 Z6.39 R1.049
X12.07 Y-1.992 Z6.333 R1.049
X11.014 Y-3.034 Z6.275 R1.049
X12.057 Y-4.09 Z6.217 R1.049
X13.112 Y-3.047 Z6.16 R1.049
X12.07 Y-1.992 Z6.102 R1.049
X11.014 Y-3.034 Z6.045 R1.049
X12.057 Y-4.09 Z5.987 R1.049
X13.112 Y-3.047 Z5.93 R1.049
X12.07 Y-1.992 Z5.872 R1.049
X11.014 Y-3.034 Z5.815 R1.049
X12.057 Y-4.09 Z5.757 R1.049
X13.112 Y-3.047 Z5.7 R1.049
X12.07 Y-1.992 Z5.642 R1.049
X11.014 Y-3.034 Z5.584 R1.049
X12.057 Y-4.09 Z5.527 R1.049
X13.112 Y-3.047 Z5.469 R1.049
X12.07 Y-1.992 Z5.412 R1.049
X11.014 Y-3.034 Z5.354 R1.049
X12.057 Y-4.09 Z5.297 R1.049
X13.112 Y-3.047 Z5.239 R1.049
X12.07 Y-1.992 Z5.182 R1.049
X11.014 Y-3.034 Z5.124 R1.049
X12.057 Y-4.09 Z5.067 R1.049
X13.112 Y-3.047 Z5.009 R1.049
X12.07 Y-1.992 Z4.951 R1.049
X11.014 Y-3.034 Z4.894 R1.049
X12.057 Y-4.09 Z4.836 R1.049
X13.112 Y-3.047 Z4.779 R1.049
X12.07 Y-1.992 Z4.721 R1.049
X11.014 Y-3.034 Z4.664 R1.049
X11.264 Y-3.72 Z4.638 R1.049
S11999
G1 X11.346 Y-3.816
X11.726 Y-4.094
X11.774 Y-4.13
G3 X13.089 Y-3.267 R1.113
X12.226 Y-1.951 R1.113
X11.774 R1.113
G1 X11.726 Y-1.988
X11.346 Y-2.266
X11.155 Y-2.49
X11.03 Y-2.757
X10.988 Y-3.039
X11.031 Y-3.325
X11.155 Y-3.592
X11.264 Y-3.72
X11.308 Y-3.763 Z4.65
X11.359 Y-3.796 Z4.662
X11.406 Y-3.816 Z4.696
X11.456 Y-3.828 Z4.731
X11.524 Y-3.832 Z4.834
X11.548 Y-3.829 Z4.955
G0 Z21.652
M99

O0004(DRILL4)
G0 Z35.297
G17
G0 Z25.297
Z16.731
Z13.731
G1 Z11.334 F273.
G0 Z11.434
G1 Z10.937 F273.
G0 Z11.037
G1 Z10.54 F273.
G0 Z10.64
G1 Z10.143 F273.
G0 Z10.243
G1 Z9.746 F273.
G0 Z9.846
G1 Z9.349 F273.
G0 Z9.449
G1 Z8.953 F273.
G0 Z9.053
G1 Z8.556 F273.
G0 Z8.656
G1 Z8.159 F273.
G0 Z8.259
G1 Z7.762 F273.
G0 Z7.862
G1 Z7.365 F273.
G0 Z7.465
G1 Z6.968 F273.
G0 Z25.297
Z8.968
G1 Z6.571 F273.
G0 Z6.671
G1 Z6.174 F273.
G0 Z6.274
G1 Z5.778 F273.
G0 Z5.878
G1 Z5.381 F273.
G0 Z5.481
G1 Z4.984 F273.
G0 Z5.084
G1 Z4.587 F273.
G0 Z4.687
G1 Z4.19 F273.
G0 Z4.29
G1 Z3.793 F273.
G0 Z3.893
G1 Z3.396 F273.
G0 Z3.496
G1 Z2.999 F273.
G0 Z3.099
G1 Z2.603 F273.
G0 Z2.703
G1 Z2.206 F273.
G0 Z25.297
Z4.206
G1 Z1.809 F273.
G0 Z1.909
G1 Z1.412 F273.
G0 Z1.512
G1 Z1.015 F273.
G0 Z1.115
G1 Z0.618 F273.
G0 Z0.718
G1 Z0.221 F273.
G0 Z0.321
G1 Z-0.176 F273.
G0 Z-0.076
G1 Z-0.572 F273.
G0 Z-0.472
G1 Z-0.969 F273.
G0 Z-0.869
G1 Z-1.366 F273.
G0 Z-1.266
G1 Z-1.763 F273.
G0 Z-1.663
G1 Z-2.16 F273.
G0 Z-2.06
G1 Z-2.557 F273.
G0 Z25.297
Z-0.557
G1 Z-2.954 F273.
G0 Z-2.854
G1 Z-3.351 F273.
G0 Z-3.251
G1 Z-3.747 F273.
G0 Z-3.647
G1 Z-4.144 F273.
G0 Z-4.044
G1 Z-4.541 F273.
G0 Z-4.441
G1 Z-4.938 F273.
G0 Z-4.838
G1 Z-5.335 F273.
G0 Z-5.235
G1 Z-5.649 F273.
G0 Z25.297
X-27.93 Y-0.342
Z12.921
Z9.921
G1 Z7.524 F273.
G0 Z7.624
G1 Z7.127 F273.
G0 Z7.227
G1 Z6.73 F273.
G0 Z6.83
G1 Z6.333 F273.
G0 Z6.433
G1 Z5.936 F273.
G0 Z6.036
G1 Z5.539 F273.
G0 Z5.639
G1 Z5.143 F273.
G0 Z5.243
G1 Z4.746 F273.
G0 Z4.846
G1 Z4.349 F273.
G0 Z4.449
G1 Z3.952 F273.
G0 Z4.052
G1 Z3.555 F273.
G0 Z3.655
G1 Z3.158 F273.
G0 Z25.297
Z5.158
G1 Z2.761 F273.
G0 Z2.861
G1 Z2.364 F273.
G0 Z2.464
G1 Z1.968 F273.
G0 Z2.068
G1 Z1.571 F273.
G0 Z1.671
G1 Z1.174 F273.
G0 Z1.274
G1 Z0.777 F273.
G0 Z0.877
G1 Z0.38 F273.
G0 Z0.48
G1 Z-0.017 F273.
G0 Z0.083
G1 Z-0.414 F273.
G0 Z-0.314
G1 Z-0.811 F273.
G0 Z-0.711
G1 Z-1.207 F273.
G0 Z-1.107
G1 Z-1.604 F273.
G0 Z25.297
Z0.396
G1 Z-2.001 F273.
G0 Z-1.901
G1 Z-2.398 F273.
G0 Z-2.298
G1 Z-2.601 F273.
G0 Z25.297
X-34.788 Y0.75
Z12.921
Z9.921
G1 Z7.524 F273.
G0 Z7.624
G1 Z7.127 F273.
G0 Z7.227
G1 Z6.73 F273.
G0 Z6.83
G1 Z6.333 F273.
G0 Z6.433
G1 Z5.936 F273.
G0 Z6.036
G1 Z5.539 F273.
G0 Z5.639
G1 Z5.143 F273.
G0 Z5.243
G1 Z4.746 F273.
G0 Z4.846
G1 Z4.349 F273.
G0 Z4.449
G1 Z3.952 F273.
G0 Z4.052
G1 Z3.555 F273.
G0 Z3.655
G1 Z3.158 F273.
G0 Z25.297
Z5.158
G1 Z2.761 F273.
G0 Z2.861
G1 Z2.364 F273.
G0 Z2.464
G1 Z1.968 F273.
G0 Z2.068
G1 Z1.571 F273.
G0 Z1.671
G1 Z1.174 F273.
G0 Z1.274
G1 Z0.777 F273.
G0 Z0.877
G1 Z0.38 F273.
G0 Z0.48
G1 Z-0.017 F273.
G0 Z0.083
G1 Z-0.414 F273.
G0 Z-0.314
G1 Z-0.811 F273.
G0 Z-0.711
G1 Z-1.207 F273.
G0 Z-1.107
G1 Z-1.604 F273.
G0 Z25.297
Z0.396
G1 Z-2.001 F273.
G0 Z-1.901
G1 Z-2.398 F273.
G0 Z-2.298
G1 Z-2.601 F273.
G0 Z25.297
Z35.297
M99

 

0 Likes
Message 3 of 12

nocturnalrccnc
Participant
Participant

(1002)
(T2 D=1.587 CR=0. TAPER=90DEG - SPOT DRILL)
(T3 D=3.175 CR=0. - FLAT END MILL)
N1 G90 G94 G91.1 G40 G49 G17
N2 G21
N3 G28 G91 Z0.
N4 G90

(DRILL2)
N5 M5
N6 T2 M6
N7 S11999 M3
N8 G54
N9 G0 A0. B0.
N10 M8
N11 G0 X-3.041 Y-0.152
N12 M98 P0001

(DRILL1)
N13 G0 X-13.709 Y0.75
N14 M98 P0002
N15 G28 G91 Z0.
N16 G90

(2D POCKET1)
N17 M5
N18 M9
N19 T3 M6
N20 S11999 M3
N21 G54
N23 M8
N24 G0 X13.066 Y-3.349
A90. B-90.
N25 M98 P0003
G0 A0. B0.
N26 G28 G91 Z0.
N27 G90

(DRILL4)
N28 M5
N29 M9
N30 T2 M6
N31 S11999 M3
N32 G54
N34 M8
N35 G0 X-7.127 Y-1.152
N33 A-90. B0.
N36 M98 P0004
G0 A0. B0.
N37 M9
N38 G28 G91 Z0.
N39 G90
N40 A0. B0.
N41 G28 G91 X0. Y0.
N42 G90
N43 M30

O0001(DRILL2)
G0 Z15.
G17
G0 Z5.
Z4.
G1 Z3.5 F273.
G0 Z3.6
G1 Z3. F273.
G0 Z3.1
G1 Z2.5 F273.
G0 Z2.6
G1 Z2. F273.
G0 Z2.1
G1 Z1.5 F273.
G0 Z1.6
G1 Z1. F273.
G0 Z1.1
G1 Z0.5 F273.
G0 Z0.6
G1 Z0. F273.
G0 Z0.1
G1 Z-0.5 F273.
G0 Z5.
Z1.5
G1 Z-1. F273.
G0 Z5.
Z15.
M99

O0002(DRILL1)
G0 Z15.
G17
G0 Z5.
G98 G73 X-13.709 Y0.75 Z-0.05 R5. Q0.05 F273.
G80
Z15.
M99

O0003(2D POCKET1)
G0 Z21.652
Z11.652
G1 Z9.47 F1275.
S12000
X13.072 Y-3.329 Z9.357
X13.087 Y-3.272 Z9.259
X13.104 Y-3.171 Z9.182
X13.112 Y-3.047 Z9.152
G17 G3 X12.07 Y-1.992 Z9.095 R1.049
X11.014 Y-3.034 Z9.037 R1.049
X12.057 Y-4.09 Z8.98 R1.049
X13.112 Y-3.047 Z8.922 R1.049
X12.07 Y-1.992 Z8.864 R1.049
X11.014 Y-3.034 Z8.807 R1.049
X12.057 Y-4.09 Z8.749 R1.049
X13.112 Y-3.047 Z8.692 R1.049
X12.07 Y-1.992 Z8.634 R1.049
X11.014 Y-3.034 Z8.577 R1.049
X12.057 Y-4.09 Z8.519 R1.049
X13.112 Y-3.047 Z8.462 R1.049
X12.07 Y-1.992 Z8.404 R1.049
X11.014 Y-3.034 Z8.347 R1.049
X12.057 Y-4.09 Z8.289 R1.049
X13.112 Y-3.047 Z8.231 R1.049
X12.07 Y-1.992 Z8.174 R1.049
X11.014 Y-3.034 Z8.116 R1.049
X12.057 Y-4.09 Z8.059 R1.049
X13.112 Y-3.047 Z8.001 R1.049
X12.07 Y-1.992 Z7.944 R1.049
X11.014 Y-3.034 Z7.886 R1.049
X12.057 Y-4.09 Z7.829 R1.049
X13.112 Y-3.047 Z7.771 R1.049
X12.07 Y-1.992 Z7.714 R1.049
X11.014 Y-3.034 Z7.656 R1.049
X12.057 Y-4.09 Z7.598 R1.049
X13.112 Y-3.047 Z7.541 R1.049
X12.07 Y-1.992 Z7.483 R1.049
X11.014 Y-3.034 Z7.426 R1.049
X12.057 Y-4.09 Z7.368 R1.049
X13.112 Y-3.047 Z7.311 R1.049
X12.07 Y-1.992 Z7.253 R1.049
X11.014 Y-3.034 Z7.196 R1.049
X12.057 Y-4.09 Z7.138 R1.049
X13.112 Y-3.047 Z7.081 R1.049
X12.07 Y-1.992 Z7.023 R1.049
X11.014 Y-3.034 Z6.966 R1.049
X12.057 Y-4.09 Z6.908 R1.049
X13.112 Y-3.047 Z6.85 R1.049
X12.07 Y-1.992 Z6.793 R1.049
X11.014 Y-3.034 Z6.735 R1.049
X12.057 Y-4.09 Z6.678 R1.049
X13.112 Y-3.047 Z6.62 R1.049
X12.07 Y-1.992 Z6.563 R1.049
X11.014 Y-3.034 Z6.505 R1.049
X12.057 Y-4.09 Z6.448 R1.049
X13.112 Y-3.047 Z6.39 R1.049
X12.07 Y-1.992 Z6.333 R1.049
X11.014 Y-3.034 Z6.275 R1.049
X12.057 Y-4.09 Z6.217 R1.049
X13.112 Y-3.047 Z6.16 R1.049
X12.07 Y-1.992 Z6.102 R1.049
X11.014 Y-3.034 Z6.045 R1.049
X12.057 Y-4.09 Z5.987 R1.049
X13.112 Y-3.047 Z5.93 R1.049
X12.07 Y-1.992 Z5.872 R1.049
X11.014 Y-3.034 Z5.815 R1.049
X12.057 Y-4.09 Z5.757 R1.049
X13.112 Y-3.047 Z5.7 R1.049
X12.07 Y-1.992 Z5.642 R1.049
X11.014 Y-3.034 Z5.584 R1.049
X12.057 Y-4.09 Z5.527 R1.049
X13.112 Y-3.047 Z5.469 R1.049
X12.07 Y-1.992 Z5.412 R1.049
X11.014 Y-3.034 Z5.354 R1.049
X12.057 Y-4.09 Z5.297 R1.049
X13.112 Y-3.047 Z5.239 R1.049
X12.07 Y-1.992 Z5.182 R1.049
X11.014 Y-3.034 Z5.124 R1.049
X12.057 Y-4.09 Z5.067 R1.049
X13.112 Y-3.047 Z5.009 R1.049
X12.07 Y-1.992 Z4.951 R1.049
X11.014 Y-3.034 Z4.894 R1.049
X12.057 Y-4.09 Z4.836 R1.049
X13.112 Y-3.047 Z4.779 R1.049
X12.07 Y-1.992 Z4.721 R1.049
X11.014 Y-3.034 Z4.664 R1.049
X11.264 Y-3.72 Z4.638 R1.049
S11999
G1 X11.346 Y-3.816
X11.726 Y-4.094
X11.774 Y-4.13
G3 X13.089 Y-3.267 R1.113
X12.226 Y-1.951 R1.113
X11.774 R1.113
G1 X11.726 Y-1.988
X11.346 Y-2.266
X11.155 Y-2.49
X11.03 Y-2.757
X10.988 Y-3.039
X11.031 Y-3.325
X11.155 Y-3.592
X11.264 Y-3.72
X11.308 Y-3.763 Z4.65
X11.359 Y-3.796 Z4.662
X11.406 Y-3.816 Z4.696
X11.456 Y-3.828 Z4.731
X11.524 Y-3.832 Z4.834
X11.548 Y-3.829 Z4.955
G0 Z21.652
M99

O0004(DRILL4)
G0 Z35.297
G17
G0 Z25.297
Z16.731
Z13.731
G1 Z11.334 F273.
G0 Z11.434
G1 Z10.937 F273.
G0 Z11.037
G1 Z10.54 F273.
G0 Z10.64
G1 Z10.143 F273.
G0 Z10.243
G1 Z9.746 F273.
G0 Z9.846
G1 Z9.349 F273.
G0 Z9.449
G1 Z8.953 F273.
G0 Z9.053
G1 Z8.556 F273.
G0 Z8.656
G1 Z8.159 F273.
G0 Z8.259
G1 Z7.762 F273.
G0 Z7.862
G1 Z7.365 F273.
G0 Z7.465
G1 Z6.968 F273.
G0 Z25.297
Z8.968
G1 Z6.571 F273.
G0 Z6.671
G1 Z6.174 F273.
G0 Z6.274
G1 Z5.778 F273.
G0 Z5.878
G1 Z5.381 F273.
G0 Z5.481
G1 Z4.984 F273.
G0 Z5.084
G1 Z4.587 F273.
G0 Z4.687
G1 Z4.19 F273.
G0 Z4.29
G1 Z3.793 F273.
G0 Z3.893
G1 Z3.396 F273.
G0 Z3.496
G1 Z2.999 F273.
G0 Z3.099
G1 Z2.603 F273.
G0 Z2.703
G1 Z2.206 F273.
G0 Z25.297
Z4.206
G1 Z1.809 F273.
G0 Z1.909
G1 Z1.412 F273.
G0 Z1.512
G1 Z1.015 F273.
G0 Z1.115
G1 Z0.618 F273.
G0 Z0.718
G1 Z0.221 F273.
G0 Z0.321
G1 Z-0.176 F273.
G0 Z-0.076
G1 Z-0.572 F273.
G0 Z-0.472
G1 Z-0.969 F273.
G0 Z-0.869
G1 Z-1.366 F273.
G0 Z-1.266
G1 Z-1.763 F273.
G0 Z-1.663
G1 Z-2.16 F273.
G0 Z-2.06
G1 Z-2.557 F273.
G0 Z25.297
Z-0.557
G1 Z-2.954 F273.
G0 Z-2.854
G1 Z-3.351 F273.
G0 Z-3.251
G1 Z-3.747 F273.
G0 Z-3.647
G1 Z-4.144 F273.
G0 Z-4.044
G1 Z-4.541 F273.
G0 Z-4.441
G1 Z-4.938 F273.
G0 Z-4.838
G1 Z-5.335 F273.
G0 Z-5.235
G1 Z-5.649 F273.
G0 Z25.297
X-27.93 Y-0.342
Z12.921
Z9.921
G1 Z7.524 F273.
G0 Z7.624
G1 Z7.127 F273.
G0 Z7.227
G1 Z6.73 F273.
G0 Z6.83
G1 Z6.333 F273.
G0 Z6.433
G1 Z5.936 F273.
G0 Z6.036
G1 Z5.539 F273.
G0 Z5.639
G1 Z5.143 F273.
G0 Z5.243
G1 Z4.746 F273.
G0 Z4.846
G1 Z4.349 F273.
G0 Z4.449
G1 Z3.952 F273.
G0 Z4.052
G1 Z3.555 F273.
G0 Z3.655
G1 Z3.158 F273.
G0 Z25.297
Z5.158
G1 Z2.761 F273.
G0 Z2.861
G1 Z2.364 F273.
G0 Z2.464
G1 Z1.968 F273.
G0 Z2.068
G1 Z1.571 F273.
G0 Z1.671
G1 Z1.174 F273.
G0 Z1.274
G1 Z0.777 F273.
G0 Z0.877
G1 Z0.38 F273.
G0 Z0.48
G1 Z-0.017 F273.
G0 Z0.083
G1 Z-0.414 F273.
G0 Z-0.314
G1 Z-0.811 F273.
G0 Z-0.711
G1 Z-1.207 F273.
G0 Z-1.107
G1 Z-1.604 F273.
G0 Z25.297
Z0.396
G1 Z-2.001 F273.
G0 Z-1.901
G1 Z-2.398 F273.
G0 Z-2.298
G1 Z-2.601 F273.
G0 Z25.297
X-34.788 Y0.75
Z12.921
Z9.921
G1 Z7.524 F273.
G0 Z7.624
G1 Z7.127 F273.
G0 Z7.227
G1 Z6.73 F273.
G0 Z6.83
G1 Z6.333 F273.
G0 Z6.433
G1 Z5.936 F273.
G0 Z6.036
G1 Z5.539 F273.
G0 Z5.639
G1 Z5.143 F273.
G0 Z5.243
G1 Z4.746 F273.
G0 Z4.846
G1 Z4.349 F273.
G0 Z4.449
G1 Z3.952 F273.
G0 Z4.052
G1 Z3.555 F273.
G0 Z3.655
G1 Z3.158 F273.
G0 Z25.297
Z5.158
G1 Z2.761 F273.
G0 Z2.861
G1 Z2.364 F273.
G0 Z2.464
G1 Z1.968 F273.
G0 Z2.068
G1 Z1.571 F273.
G0 Z1.671
G1 Z1.174 F273.
G0 Z1.274
G1 Z0.777 F273.
G0 Z0.877
G1 Z0.38 F273.
G0 Z0.48
G1 Z-0.017 F273.
G0 Z0.083
G1 Z-0.414 F273.
G0 Z-0.314
G1 Z-0.811 F273.
G0 Z-0.711
G1 Z-1.207 F273.
G0 Z-1.107
G1 Z-1.604 F273.
G0 Z25.297
Z0.396
G1 Z-2.001 F273.
G0 Z-1.901
G1 Z-2.398 F273.
G0 Z-2.298
G1 Z-2.601 F273.
G0 Z25.297
Z35.297
M99

 

0 Likes
Message 4 of 12

KrupalVala
Autodesk
Autodesk

 

Hi @nocturnalrccnc ,

 

You can add following logic in the function onSection

    if ((isFirstSection() || insertToolCall) && machineConfiguration.isMultiAxisConfiguration()) {
      setWorkPlane(new Vector(0, 0, 0)); // reset working plane
    }

 Please refer the Fanuc Post processor for further modification. 

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 5 of 12

nocturnalrccnc
Participant
Participant

a couple people asked for my post processor..this is what im using now

 

0 Likes
Message 6 of 12

nocturnalrccnc
Participant
Participant
Information: Configuration: Mach3Mill
Information: Vendor: Artsoft
Information: Posting intermediate data to 'C:\Users\Aaron\OneDrive\Desktop\Fusion 360 Post Processors\NC\6969.tap'
Error: Failed to post process. See below for details.
...
Code page changed to '1252  (ANSI - Latin I)'
Start time: Wednesday, May 25, 2022 6:55:31 PM
Code page changed to '20127 (US-ASCII)'
Post processor engine: 4.5851.0
Configuration path: C:/Users/Aaron/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts/mach3mill 5axesfixrotation.cps
Security level: 1000
Include paths: C:/Users/Aaron/AppData/Roaming/Autodesk/Fusion 360 CAM/Posts
Configuration modification date: Wednesday, May 25, 2022 6:45:38 PM
Output path: C:\Users\Aaron\OneDrive\Desktop\Fusion 360 Post Processors\NC\6969.tap
Checksum of intermediate NC data: 3a51a88c74a87cfd09547f8945a2a7b5
Checksum of configuration: 9158e148225c7ec36385a62e5e7f38ab
Legal: Copyright (C) 2012-2020 by Autodesk, Inc.
Generated by: Fusion 360 CAM 2.0.12888
...

###############################################################################
Error: Tool orientation is not supported.
Error at line: 427
Error in operation: '2D Pocket1'
Failed while processing onSection() for record 1165.
###############################################################################

Error: Failed to invoke function 'onSection'.
Error: Failed to invoke 'onSection' in the post configuration.
Error: Failed to execute configuration.
Stop time: Wednesday, May 25, 2022 6:55:31 PM
Post processing failed.
 
 
 
 
 

(6969)
(T2 D=1.587 CR=0. TAPER=90DEG - SPOT DRILL)
(T3 D=3.175 CR=0. - FLAT END MILL)
N1 G90 G94 G91.1 G40 G49 G17
N2 G21
N3 G28 G91 Z0.
N4 G90

(DRILL2)
N5 M5
N6 T2 M6
N7 S11999 M3
N8 G54
N9 M8
N10 G0 X-3.041 Y-0.152
N11 M98 P0001

(DRILL1)
N12 G0 X-13.709 Y0.75
N13 M98 P0002
N14 G28 G91 Z0.
N15 G90

(2D POCKET1)
N16 M5
N17 M9
N18 M1
N19 T3 M6
N20 S11999 M3
N21 G54

N22 G28 G91 Z0.
N23 G90
N24 G28 G91 X0. Y0.
N25 G90
N26 M30

O0001(DRILL2)
G0 Z15.
G17
G0 Z5.
Z4.
G1 Z3.5 F273.
G0 Z3.6
G1 Z3. F273.
G0 Z3.1
G1 Z2.5 F273.
G0 Z2.6
G1 Z2. F273.
G0 Z2.1
G1 Z1.5 F273.
G0 Z1.6
G1 Z1. F273.
G0 Z1.1
G1 Z0.5 F273.
G0 Z0.6
G1 Z0. F273.
G0 Z0.1
G1 Z-0.5 F273.
G0 Z5.
Z1.5
G1 Z-1. F273.
G0 Z5.
Z15.
M99

O0002(DRILL1)
G0 Z15.
G17
G0 Z5.
G98 G73 X-13.709 Y0.75 Z-0.05 R5. Q0.05 F273.
G80
Z15.
M99

!Error: Failed to post data. See log for details.

 

 

 

function onSection() {
var insertToolCall = isFirstSection() ||
currentSection.getForceToolChange && currentSection.getForceToolChange() ||
(tool.number != getPreviousSection().getTool().number);

retracted = false;
var zIsOutput = false; // true if the Z-position has been output, used for patterns

var newWorkOffset = isFirstSection() ||
(getPreviousSection().workOffset != currentSection.workOffset); // work offset changes
var newWorkPlane = isFirstSection() ||
!isSameDirection(getPreviousSection().getGlobalFinalToolAxis(), currentSection.getGlobalInitialToolAxis()) ||
(currentSection.isOptimizedForMachine() && getPreviousSection().isOptimizedForMachine() &&
Vector.diff(getPreviousSection().getFinalToolAxisABC(), currentSection.getInitialToolAxisABC()).length > 1e-4) ||
(!machineConfiguration.isMultiAxisConfiguration() && currentSection.isMultiAxis()) ||
(!getPreviousSection().isMultiAxis() && currentSection.isMultiAxis() ||
getPreviousSection().isMultiAxis() && !currentSection.isMultiAxis()); // force newWorkPlane between indexing and simultaneous operations
if (insertToolCall || newWorkOffset || newWorkPlane) {
if ((isFirstSection() || insertToolCall) && machineConfiguration.isMultiAxisConfiguration()) {
setWorkPlane(new Vector(0, 0, 0)); // reset working plane
}
// retract to safe plane
writeRetract(Z);
}

 

 

 

 

 

 
0 Likes
Message 7 of 12

nocturnalrccnc
Participant
Participant

retracted = true at the top seemed to fix this and got it to post...

safely ran the code in the air and seemed to fix the issue on the tool change.. A and B now rotate to 0 before a tool change...my problem is 50 percent fixed..and i appriciate your help ALOT..only thing i have left is after the tool change..it rotates A-90 B-90 then runs the G0 to the part...i need it to at least to B0 before the G0 would be nice to also have A0 also but not really needed..here is a a short version of the problem...

 

 

N48 M5
N49 M9
N50 T3 M6
N51 S11999 M3
N52 G54
N53 A90. B-90.
N54 M8
N55 G0 X11.92 Y-4.08

 

here is what i need it to do

 

N48 M5
N49 M9
N50 T3 M6
N51 S11999 M3
N52 G54
N53 A0. B0.
N54 M8
N55 G0 X11.92 Y-4.08
A90. B-90.

 

 

havfunction onSection() {
var insertToolCall = isFirstSection() ||
currentSection.getForceToolChange && currentSection.getForceToolChange() ||
(tool.number != getPreviousSection().getTool().number);

retracted = true;
var zIsOutput = false; // true if the Z-position has been output, used for patterns

var newWorkOffset = isFirstSection() ||
(getPreviousSection().workOffset != currentSection.workOffset); // work offset changes
var newWorkPlane = isFirstSection() ||
!isSameDirection(getPreviousSection().getGlobalFinalToolAxis(), currentSection.getGlobalInitialToolAxis()) ||
(currentSection.isOptimizedForMachine() && getPreviousSection().isOptimizedForMachine() &&
Vector.diff(getPreviousSection().getFinalToolAxisABC(), currentSection.getInitialToolAxisABC()).length > 1e-4) ||
(!machineConfiguration.isMultiAxisConfiguration() && currentSection.isMultiAxis()) ||
(!getPreviousSection().isMultiAxis() && currentSection.isMultiAxis() ||
getPreviousSection().isMultiAxis() && !currentSection.isMultiAxis()); // force newWorkPlane between indexing and simultaneous operations
if (insertToolCall || newWorkOffset || newWorkPlane) {
if ((isFirstSection() || insertToolCall) && machineConfiguration.isMultiAxisConfiguration()) {
setWorkPlane(new Vector(0, 0, 0)); // reset working plane
}
// retract to safe plane

0 Likes
Message 8 of 12

KrupalVala
Autodesk
Autodesk

Hi @nocturnalrccnc ,

 

I think It is better to follow Rotate and move option.

First, the rotary axis rotates and then linear axis moves.

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 9 of 12

nocturnalrccnc
Participant
Participant

i would agree..but in my case that wont work..i dont have enough z travel so the z smashes into the side of the a and b axis....

0 Likes
Message 10 of 12

KrupalVala
Autodesk
Autodesk

Hi @nocturnalrccnc ,

 

Update following logic in function onSection

  setWorkPlane(new Vector(0, 0, 0)); // Add reset working plane
  var abc = defineWorkPlane(currentSection,false); // set it as a false

 

    if (!machineConfiguration.isHeadConfiguration()) {
      writeBlock(
        gAbsIncModal.format(90),
        gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y)
      );
      writeBlock(
        gMotionModal.format(0),
        conditional(machineConfiguration.isMachineCoordinate(0), "A" + abcFormat.format(abc.x)),
        conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),
        conditional(machineConfiguration.isMachineCoordinate(2), "C" + abcFormat.format(abc.z))
      );
      writeBlock(gMotionModal.format(0), gFormat.format(43), zOutput.format(initialPosition.z), hFormat.format(lengthOffset));

 

Save the post modification and test the code.

 

Thanks,

 



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
0 Likes
Message 11 of 12

nocturnalrccnc
Participant
Participant

do both above go in the function onsection ? i tried it and got an error ?

 

also can you tell me how to turn on simultaneously machining ?

0 Likes
Message 12 of 12

nocturnalrccnc
Participant
Participant

i think i found out what you meant..i got it to also post..here is what i got..i just broke the code down to the section needed fixing..

 

(2D POCKET1)
N18 M5
N19 M9
N20 M1
N21 T3 M6
N22 S11999 M3
N23 G54
N24 A90. B-90.
N25 M8
N26 G0 X11.92 Y-4.08
N27 M98 P0003
N28 A0. B0.
N29 G28 G91 Z0.
N30 G90

 

 

this is before the previous change..

(2D POCKET1)
N17 M5
N18 M9
N19 T3 M6
N20 S11999 M3
N21 G54
N22 A90. B-90.
N23 M8
N24 G0 X11.92 Y-4.08
N25 M98 P0003
N26 G28 G91 Z0.
N27 G90

 

 

 

what im trying to get..

 

(2D POCKET1)
N18 M5
N19 M9
N20 M1
N21 T3 M6
N22 S11999 M3
N23 G54
N24 A90. B-90.
N25 M8
N26 A0 BO
N27 M98 P0003
N28 G0 X11.92 Y-4.08
N29 G28 G91 Z0.
N30 G90

 

 

0 Likes