G code problem - Fanuc Series 21i-MB

Results 1 to 6 of 6

Thread: G code problem - Fanuc Series 21i-MB

  1. #1
    Join Date
    Jul 2014

    Default G code problem - Fanuc Series 21i-MB

    I have a 4 axis (XYZC) cnc router that has Fanuc Series 21i-MB controller.
    I try to make a post processor for artcam all work fine except spindle that does not rotate...

    For example with this code all movements done correct except spindle that does not rotate.
    G17 G21 G40 G49 G80 G90 G94
    G10 L2 P1 X0 Y0 Z0
    G10 L2 P1 X#5021 Y#5022 Z#5023
    M3 S6000
    G4 P10000
    G0 X-100.000 Y0.000 Z30.000
    G1   Z-1.000 F150
    G2 X0.000 Y100.000 I100.000 J0.000 F500
    G2 X100.000 Y0.000 I0.000 J-100.000
    G2 X0.000 Y-100.000 I-100.000 J-0.000
    G2 X-100.000 Y0.000 I-0.000 J100.000
    G0   Z30.000
    G0 X-175.000 Y-125.000 
    G1   Z-1.000 F150
    G1  Y125.000  F500
    G1 X175.000 Y125.000 
    G1  Y-125.000 
    G1 X-175.000 Y-125.000 
    G0   Z30.000
    G0 X0.000 Y0.000 
    From MDI with M3 S6000 the spindle rotates ok.
    What can be wrong and the spindle does not rotate ?

    An other cam that i have produces this code and the spindle with this code rotates.
    What means the / before M codes? What is the difference between M3 S6000 and /M3 S6000 ?
    Also the command M6 T0 parks the tool that is on the spindle ?

    ( material thickness ) #600=30
    ( vacuum position ) #601=1
    ( offset x ) #603=0
    ( offset y ) #604=0
    ( offset radius ) #605=0
    IF [#4006 EQ 21] GOTO 1021
    GOTO 1022
    N1021 #707=1
    N1022 #708=0
    IF [#607 GT 0] GOTO 1031
    ( program zero)
    ( x axis ) #713=[-2982.5+#626]
    ( y axis ) #714=[330+#627]
    GOTO 1032
    N1031 #702=[#608-53]*20
    N1032 #705=#603
    G10 L2 P[#608-53] X#703 Y#704 Z#628
    M98 P#700
    G90 G0 G49 G53 Z0
    G0 M5
    IF [#632 EQ 0] GOTO 1041
    IF [#633 EQ 0] GOTO 1042
    IF [#601 EQ 0] GOTO 1100
    T11 M6
    H35 G#608
    G52 X0 Y0 Z[[110+10*#623]/#707]
    G0 X200 Y520
    G43 Z0 M98 P#700
    G52 Z0
    G52 X0 Y0 Z[[110+10*#623]/#707]
    G0 X320 Y760
    G43 Z0 M98 P#700
    G52 Z0
    G52 X0 Y0 Z[[110+10*#623]/#707]
    G0 X1040 Y760
    G43 Z0 M98 P#700
    G52 Z0
    G52 X#603 Y#604 Z[[14+10*#623]/#707]
    G0 X667.548 Y431.784
    G43 Z0 M98 P#700
    G52 Z0
    G90 G0 G49 G53 Z0
    G53 G0 X-3200 Y1600
    G10 L2 P[#608-53] X#713 Y#714 Z#628
    IF [#602 EQ 0] GOTO 1210
    M98 P#700
    GOTO 1
    IF [#606 EQ 0] GOTO 1051
    M98 P#700
    GOTO 1052
    N1051 M15
    M98 P#700
    G0 M5
    G90 G0 G49 G53 Z0
    ( tool D10 )
    T47 M6
    G#608 G52 X[0+#705] Y[0+#706] Z[0+#600]
    G90 G0 X586.553 Y39.513
    /G10 L50
    /N8813 R0
    /N8812 R0
    /M3 S10000
    G91 G17 X0 Y0
    G90 G43 Z60 H10
    G0 Z7
    G1 Z2 F72
    G1 X588.846 Y41.539 Z0 F400
    G2 X589.288 Y41.925 Z-0.384 R54.004
    G2 X589.735 Y42.307 Z-0.768 R51.974
    G2 X590.067 Y43.849 Z-0.77 R21.129
    G2 X590.513 Y45.361 Z-0.772 R21.128
    G2 X590.589 Y45.576 Z-0.775 R7.508
    G2 X590.671 Y45.788 Z-0.778 R7.516
    G2 X590.995 Y46.451 Z-0.817 R5.33
    G2 X591.407 Y47.063 Z-0.856 R5.351
    G2 X591.623 Y47.326 Z-0.881 R5.979
    G2 X591.854 Y47.575 Z-0.906 R5.981
    G2 X592.072 Y47.784 Z-0.932 R4.929
    G2 X592.302 Y47.98 Z-0.958 R4.949
    G2 X593.371 Y48.634 Z-1.137 R5.064
    G2 X594.567 Y49.01 Z-1.317 R5.19
    G2 X594.983 Y49.07 Z-1.397 R5.376
    G2 X595.403 Y49.098 Z-1.477 R5.408
    G2 X595.541 Y49.1 Z-1.505 R5.014
    G2 X595.679 Y49.098 Z-1.532 R5.031
    G2 X596.465 Y49.024 Z-1.727 R5.973
    G2 X597.235 Y48.849 Z-1.921 R6.223
    G2 X597.447 Y48.782 Z-1.986 R6.047
    G1 X597.497 Y48.765 Z-2.001
    G2 X599.349 Y48.462 R7.411
    G2 X600.792 Y47.582 R3.31
    G2 X601.663 Y46 R3.49
    G2 X602.233 Y42.176 R20.636
    G3 X602.784 Y40.903 R2
    G1 X602.739 Y40.852
    G3 X602.23 Y39.52 R2
    G1 Y17.385
    G1 X600.077
    G1 Y40.457
    G3 X599.901 Y43.925 R34.301
    G3 X599.52 Y45.719 R8.534
    G3 X598.731 Y47.428 R8.116
    G3 X597.625 Y48.668 R4.659
    G3 X597.496 Y48.765 R4.791
    G1 Z20
    G1 X602.792 Y40.903
    G1 Z9
    G1 Z-2.001 F72
    G3 X603.159 Y40.921 Z-1.752 R5.968 F400
    G3 X603.631 Y40.987 Z-1.429 R4.044
    G3 X603.83 Y41.033 Z-1.32 R3.488
    G3 X604.027 Y41.092 Z-1.21 R2.938
    G3 X604.365 Y41.233 Z-1.088 R2.611
    G3 X604.677 Y41.427 Z-0.967 R2.072
    G3 X604.81 Y41.536 Z-0.954 R1.968
    G3 X604.933 Y41.657 Z-0.942 R1.916
    G2 X605.881 Y42.654 Z-0.976 R60.483
    G2 X606.852 Y43.629 Z-1.01 R60.508
    G2 X608.109 Y44.783 Z-1.135 R25.318
    G2 X609.44 Y45.85 Z-1.26 R25.646
    G2 X609.861 Y46.157 Z-1.329 R21.534
    G2 X610.289 Y46.454 Z-1.399 R21.733
    G2 X611.079 Y46.944 Z-1.534 R12.017
    G2 X611.904 Y47.371 Z-1.669 R11.979
    G2 X612.32 Y47.556 Z-1.733 R10.667
    G2 X612.743 Y47.723 Z-1.798 R10.675
    G2 X613.694 Y48.025 Z-1.942 R10.805
    G2 X614.088 Y48.123 Z-2.001 R10.818
    G1 Z20
    G1 X614.086
    G1 Z9
    G1 Z-2 F72
    G2 X614.642 Y48.321 R10.895 F400
    G2 X617.452 Y48.77 R9.026
    G2 X620.066 Y48.447 R10.744
    G2 X622.186 Y47.444 R6.024
    G2 X622.53 Y47.174 R7.712
    G2 X624.585 Y44.057 R6.452
    G2 X625.039 Y41.648 R11.874
    G2 X625.307 Y35.145 R78.818
    G1 Y12.5
    G3 X625.408 Y7.203 R139.263
    G3 X625.613 Y4.787 R26.064
    G3 X626.035 Y2.529 R21.412
    G3 X626.167 Y2 R38.414
    G1 X624.203
    G2 X623.67 Y3.964 R145.681
    G2 X623.511 Y4.659 R10.868
    G2 X623.249 Y7.016 R38.168
    G2 X623.153 Y9.399 R29.904
    G1 Y36.563
    G3 X622.829 Y41.585 R39.029
    G3 X621.915 Y44.265 R7.142
    G3 X615.659 Y48.13 R7.823
    G3 X614.903 Y48.154 R11.804
    G3 X614.086 Y48.122 R10.513
    G1 Z20
    G1 X592.089 Y39.551
    G1 Z11
    G1 Z2 F72
    G1 X590.384 Y41.539 Z0 F400
    G2 X590.058 Y41.922 Z-0.384 R68.366
    G2 X589.735 Y42.307 Z-0.768 R70.746
    G1 Z20
    G1 X600.078 Y17.386
    G1 Z9
    G1 Z-2.001 F72
    G1 X596.077 Y13.385 Z2 F400
    G1 Z20
    G1 X602.229 Y17.386
    G1 Z9
    G1 Z-2.001 F72
    G1 X606.23 Y13.385 Z2 F400
    G1 Z20
    G1 X621.185 Y-2.005
    G1 Z11
    G1 Z2 F72
    G1 X622.692 Y0 Z0 F400
    G2 X623.814 Y1.487 Z-1.485 R489.255
    G2 X624.205 Y2.003 Z-2.001 R479.417
    G1 Z20
    G1 X626.179 Y1.992
    G1 Z9
    G1 Z-2.001 F72
    G3 X627.22 Y1.197 Z-1.214 R97.245 F400
    G3 X628.846 Y0 Z0 R91.166
    G1 X631.547 Y-1.941 Z2
    G1 Z20
    G1 X543.356 Y5.409
    G1 Z9
    G1 Z-2 F72
    G2 X543.634 Y7.126 R20.781 F400
    G3 X544.223 Y10.46 R60.922
    G3 X544.809 Y7.408 R25.122
    G2 X545.391 Y4.789 R41.01
    G2 X545.461 Y4.039 R4.054
    G2 X545.324 Y3.001 R4.006
    G2 X545.005 Y2.396 R1.545
    G2 X544.659 Y2.086 R1.779
    G2 X544.384 Y2 R0.487
    G2 X544.044 Y2.159 R0.445
    G2 X543.968 Y2.255 R2.119
    G2 X543.483 Y3.256 R2.948
    G2 X543.307 Y4.592 R5.171
    G2 X543.356 Y5.409 R6.889
    G1 Z20
    G1 X544.224 Y10.486
    G1 Z9
    G1 Z-2.001 F72
    G2 X544.225 Y10.59 Z-1.982 R86.731 F400
    G2 X544.227 Y10.758 Z-1.961 R166.949
    G2 X544.229 Y10.926 Z-1.939 R166.464
    G3 X544.243 Y12.12 Z-1.83 R471.771
    G3 X544.254 Y13.314 Z-1.72 R466.479
    G2 X544.277 Y14.846 Z-1.662 R116.04
    G2 X544.32 Y16.378 Z-1.603 R115.632
    G2 X544.354 Y16.746 Z-1.64 R3.235
    G2 X544.429 Y17.109 Z-1.677 R3.387
    G2 X544.548 Y17.478 Z-1.8 R3.562
    G2 X544.705 Y17.834 Z-1.922 R4.091
    G2 X544.773 Y17.965 Z-2.001 R4.672
    G1 Z20
    G1 X544.789 Y17.994
    G1 Z9
    G1 Z-2 F72
    G3 X544.846 Y20.962 R77.662 F400
    G1 Y48.77
    G1 X547
    G1 Y28.173
    G3 X547.261 Y23.871 R35.572
    G3 X547.787 Y21.715 R9.395
    G3 X549.797 Y18.759 R7.551
    G3 X550.967 Y17.868 R8.756
    G3 X553.038 Y16.871 R9.762
    G3 X555.49 Y16.462 R7.552
    G1 X555.521
    G2 X554.443 Y16.12 R19.553
    G2 X552.485 Y15.847 R7.137
    G2 X550.633 Y16.093 R7.079
    G2 X549.853 Y16.349 R7.863
    G2 X548.477 Y17.017 R9.246
    G2 X547.157 Y17.92 R12.261
    G3 X544.789 Y17.994 R2
    G1 Z20
    G1 X555.521 Y16.462
    G1 Z9
    G1 Z-2.001 F72
    G3 X556.656 Y16.707 Z-1.842 R13.384 F400
    G3 X557.795 Y17.061 Z-1.678 R13.164
    G1 X557.835 Y17.076 Z-1.674
    G1 X557.876 Y17.091 Z-1.669
    G3 X559.371 Y17.726 Z-1.477 R17.138
    G3 X560.8 Y18.499 Z-1.284 R17.242
    G1 X560.884 Y18.55 Z-1.271
    G1 X560.967 Y18.602 Z-1.258
    G3 X562.425 Y19.584 Z-1.076 R23.25
    G3 X563.803 Y20.674 Z-0.894 R22.98
    G3 X564.598 Y21.377 Z-0.818 R31.758
    G3 X565.369 Y22.107 Z-0.743 R31.716
    G2 X565.661 Y22.33 Z-0.809 R1.512
    G2 X565.996 Y22.482 Z-0.875 R1.793
    G2 X566.428 Y22.581 Z-1.125 R2.209
    G2 X566.87 Y22.609 Z-1.376 R3.573
    G1 X567.047 Z-1.508
    G1 X567.224 Z-1.639
    G1 X567.4 Z-1.786
    G1 X567.577 Z-1.932
    G1 X567.656 Z-2.001
    G3 X567.923 Y23.606 R2
    G1 Y48.77
    G1 X570.077
    G1 Y27.26
    G3 X570.22 Y22.614 R75.475
    G3 X570.567 Y20.339 R12.791
    G1 X570.588 Y20.263
    G3 X571.133 Y18.902 R7.3
    G3 X572.374 Y17.428 R4.469
    G3 X573.301 Y16.864 R5.042
    G3 X574.867 Y16.469 R4.25
    G2 X572.897 Y15.859 R4.316
    G2 X572.485 Y15.847 R6.981
    G2 X571.019 Y16.034 R5.819
    G2 X569.388 Y16.984 R3.508
    G2 X568.553 Y18.397 R3.478
    G2 X567.917 Y21.768 R15.873
    G3 X567.656 Y22.609 R2
    G1 Z20
    G1 X576.52 Y25.059
    G1 Z11
    G1 Z2 F72
    G1 X578.23 Y23.077 Z0 F400
    G2 X578.558 Y22.693 Z-0.386 R45.895
    G2 X578.882 Y22.306 Z-0.771 R48.287
    G2 X578.658 Y21.211 Z-0.806 R19.547
    G2 X578.371 Y20.131 Z-0.841 R19.582
    G2 X578.135 Y19.465 Z-0.929 R6.576
    G2 X577.83 Y18.828 Z-1.017 R6.84
    G1 X577.787 Y18.75 Z-1.035
    G1 X577.743 Y18.674 Z-1.053
    G2 X577.421 Y18.193 Z-1.179 R5.315
    G2 X577.049 Y17.75 Z-1.305 R5.356
    G2 X576.582 Y17.318 Z-1.466 R4.422
    G2 X576.059 Y16.956 Z-1.627 R4.55
    G2 X575.595 Y16.717 Z-1.777 R4.39
    G2 X575.105 Y16.535 Z-1.927 R4.433
    G2 X574.859 Y16.467 Z-2.001 R4.485
    G1 Z20
    G1 X578.882 Y22.306
    G1 Z9.614
    G1 Z-0.771 F72
    G3 X579.327 Y22.69 Z-0.386 R69.49 F400
    G3 X579.769 Y23.077 Z0 R71.533
    G1 X582.053 Y25.096 Z2
    G1 Z20
    G1 X570.076 Y48.769
    G1 Z9
    G1 Z-2.001 F72
    G1 X574.077 Y52.77 Z2 F400
    G1 Z20
    G1 X567.924 Y48.769
    G1 Z9
    G1 Z-2.001 F72
    G1 X563.923 Y52.77 Z2 F400
    G1 Z20
    G1 X551
    G1 Z11
    G1 Z2 F72
    G1 X546.999 Y48.769 Z-2.001 F400
    G1 Z20
    G1 X544.847
    G1 Z9
    G1 Z-2.001 F72
    G1 X540.846 Y52.77 Z2 F400
    G1 Z20
    G1 X505.166 Y47.285
    G1 Z11
    G1 Z2 F72
    G1 X508.663 Y45.67 Z-0.856 F400
    G2 X509.187 Y45.85 Z-0.897 R66.714
    G2 X509.712 Y46.026 Z-0.939 R66.882
    G2 X510.055 Y46.128 Z-0.99 R5.989
    G2 X510.403 Y46.21 Z-1.041 R6.195
    G2 X511.141 Y46.347 Z-1.217 R20.947
    G2 X511.883 Y46.457 Z-1.393 R21.671
    G2 X512.521 Y46.505 Z-1.63 R5.683
    G2 X513.161 Y46.486 Z-1.867 R6.706
    G2 X513.441 Y46.468 Z-2.001 R14.697
    G1 Z20
    G1 X513.456 Y46.467
    G1 Z9
    G1 Z-2 F72
    G2 X514.122 Y46.001 R6.59 F400
    G2 X515.114 Y44.879 R4.315
    G2 X515.627 Y43.464 R3.763
    G2 X515.769 Y41.539 R13.164
    G1 Y24.625
    G3 X515.985 Y20.36 R42.124
    G3 X516.352 Y18.788 R6.338
    G3 X516.873 Y17.736 R5.697
    G3 X517.965 Y16.593 R3.989
    G3 X520.117 Y15.854 R4.147
    G2 X519.132 Y16.84 R4.72
    G2 X518.223 Y18.974 R5.003
    G2 X517.923 Y22.524 R21.139
    G1 Y48.369
    G1 X513.456 Y46.467
    G1 Z20
    G1 X513.161 Y46.486
    G1 Z9.066
    G1 Z-1.867 F72
    G2 X512.686 Y45.682 Z-0.934 R481.77 F400
    G2 X512.206 Y44.88 Z0 R117.702
    G1 X511.173 Y43.167 Z2
    G1 Z20
    G1 X506.786 Y42.143
    G1 Z11
    G1 Z2 F72
    G1 X508.096 Y44.616 Z0 F400
    G2 X508.378 Y45.144 Z-0.428 R92.687
    G2 X508.663 Y45.67 Z-0.856 R95.135
    G1 Z20
    G1 X517.922 Y48.367
    G1 Z9
    G1 Z-2.001 F72
    G1 X518.705 Y49.552 Z-1.218 F400
    G1 X521.923 Y52.77 Z2
    G1 Z20
    G1 X518.048
    G1 Z11
    G1 Z2 F72
    G1 X518.705 Y49.552 Z-1.218 F400
    G1 Z20
    G1 X524.29 Y25.068
    G1 Z11
    G1 Z2 F72
    G1 X526.077 Y23.077 Z0 F400
    G2 X526.42 Y22.693 Z-0.386 R93.885
    G2 X526.761 Y22.306 Z-0.771 R96.208
    G2 X526.529 Y20.829 Z-0.757 R25.064
    G2 X526.21 Y19.369 Z-0.744 R25.075
    G2 X526.136 Y19.093 R8.055
    G2 X526.052 Y18.821 R8.055
    G2 X525.822 Y18.234 Z-0.764 R5.48
    G2 X525.527 Y17.679 Z-0.784 R5.487
    G2 X525.21 Y17.216 Z-0.816 R5.184
    G2 X524.845 Y16.789 Z-0.848 R5.201
    G2 X524.727 Y16.671 Z-0.862 R3.769
    G2 X524.604 Y16.558 Z-0.877 R3.79
    G2 X523.851 Y16.043 Z-1.041 R3.792
    G2 X523 Y15.718 Z-1.206 R4.001
    G2 X522.825 Y15.676 Z-1.251 R5.342
    G2 X522.649 Y15.64 Z-1.295 R5.348
    G2 X521.723 Y15.56 Z-1.547 R4.755
    G2 X520.799 Y15.661 Z-1.798 R4.845
    G2 X520.6 Y15.706 Z-1.856 R4.864
    G2 X520.403 Y15.76 Z-1.914 R4.869
    G2 X520.264 Y15.804 Z-1.956 R5.268
    G2 X520.125 Y15.851 Z-1.997 R5.282
    G1 X520.113 Y15.855 Z-2.001
    G1 Z20
    G1 X526.761 Y22.306
    G1 Z9.614
    G1 Z-0.771 F72
    G3 X527.19 Y22.69 Z-0.386 R55.596 F400
    G3 X527.615 Y23.077 Z0 R57.675
    G1 X529.809 Y25.1 Z2
    G1 Z20
    G1 X469.738 Y33.49
    G1 Z11
    G1 Z2 F72
    G1 X475.032 Y33.29 Z-2.001 F400
    G1 Z20
    G1 X475.031
    G1 Z9
    G1 Z-2 F72
    G1 X483.452 Y22.816 F400
    G2 X485.181 Y20.695 R16.497
    G2 X485.851 Y18.534 R3.822
    G2 X485.646 Y17.385 R3.333
    G1 X491.631
    G2 X491.477 Y17.502 R15.618
    G2 X489.868 Y18.871 R21.309
    G2 X486.622 Y22.07 R99.323
    G1 X486.591 Y22.102
    G1 X475.626 Y33.925
    G1 X475.031 Y33.29
    G1 Z20
    G1 X475.626 Y33.924
    G1 Z9
    G1 Z-2.001 F72
    G1 Y34.111 Z-1.873 F400
    G2 X475.644 Y34.515 Z-1.626 R4.773
    G2 X475.703 Y34.916 Z-1.379 R3.505
    G2 X475.744 Y35.092 Z-1.294 R3.127
    G2 X475.797 Y35.266 Z-1.209 R2.74
    G2 X476.002 Y35.715 Z-1.106 R2.424
    G2 X476.303 Y36.107 Z-1.003 R2.006
    G1 X482.347 Y42.243 Z-1.221
    G2 X482.858 Y42.753 Z-1.251 R44.41
    G2 X483.376 Y43.254 Z-1.281 R44.53
    G2 X484.6 Y44.362 Z-1.415 R32.915
    G2 X485.878 Y45.406 Z-1.549 R33.17
    G2 X486.508 Y45.856 Z-1.683 R9.452
    G2 X487.172 Y46.253 Z-1.816 R9.911
    G2 X487.771 Y46.549 Z-2.001 R7.955
    G1 Z20
    G1 X487.813 Y46.568
    G1 Z9
    G1 Z-2 F72
    G2 X489.124 Y47.523 R13.472 F400
    G2 X491.248 Y48.565 R10.441
    G2 X492.432 Y48.77 R3.527
    G2 X493.671 Y48.613 R4.971
    G2 X494.497 Y48.203 R2.228
    G2 X494.884 Y47.803 R2.097
    G2 X495 Y47.452 R0.591
    G2 X494.996 Y47.347 R1.666
    G2 X494.784 Y46.925 R0.601
    G2 X494.391 Y46.718 R1.036
    G2 X493.634 Y46.616 R2.847
    G1 X493.408
    G1 X491.375
    G1 X491.091
    G1 X488.538
    G3 X487.813 Y46.568 R5.493
    G1 Z20
    G1 X483.453 Y22.817
    G1 Z9
    G1 Z-2.001 F72
    G3 X483.042 Y22.455 Z-1.454 R765.916 F400
    G3 X481.952 Y21.491 Z0 R637.721
    G1 X480.453 Y20.163 Z2
    G1 Z20
    G1 X479.736 Y18.721
    G1 Z11
    G1 Z2 F72
    G1 X481.687 Y16.923 Z0 F400
    G3 X482.093 Y16.56 Z-0.411 R18.91
    G3 X482.509 Y16.207 Z-0.822 R21.421
    G3 X482.787 Y16.236 Z-0.854 R14.138
    G3 X483.065 Y16.271 Z-0.886 R14.267
    G3 X483.529 Y16.36 Z-0.999 R4.279
    G3 X483.981 Y16.497 Z-1.112 R4.744
    G1 X484.023 Y16.513 Z-1.129
    G1 X484.066 Y16.53 Z-1.145
    G3 X484.62 Y16.779 Z-1.414 R7.565
    G3 X485.153 Y17.068 Z-1.683 R8.77
    G3 X485.625 Y17.37 Z-2.001 R7.346
    G1 Z20
    G1 X482.509 Y16.207
    G1 Z9.589
    G1 Z-0.822 F72
    G1 X479.687 Y13.385 Z2 F400
    G1 Z20
    G1 X491.646 Y17.38
    G1 Z9
    G1 Z-2.001 F72
    G3 X492.415 Y17.135 Z-1.765 R32.785 F400
    G3 X493.401 Y16.851 Z-1.466 R31.532
    G3 X494.403 Y16.608 Z-1.25 R19.75
    G3 X495.417 Y16.419 Z-1.034 R18.867
    G3 X496.109 Y16.327 Z-0.96 R13.686
    G3 X496.805 Y16.271 Z-0.886 R13.389
    G3 X497.852 Y16.22 Z-0.84 R109.864
    G3 X498.899 Y16.178 Z-0.793 R109.678
    G1 X501.692 Y13.385 Z2
    G1 Z20
    G1 X498.899 Y16.178
    G1 Z9.603
    G1 Z-0.793 F72
    G3 X499.296 Y16.55 Z-0.397 R160.071 F400
    G3 X499.692 Y16.923 Z0 R157.753
    G1 X501.685 Y18.808 Z2
    G1 Z20
    G1 X457.582 Y47.259
    G1 Z11
    G1 Z2 F72
    G1 X461.163 Y45.673 Z-0.871 F400
    G2 X461.616 Y45.823 Z-0.914 R40.929
    G2 X462.069 Y45.968 Z-0.957 R41.102
    G2 X462.727 Y46.156 Z-1.062 R13.377
    G2 X463.394 Y46.31 Z-1.166 R13.799
    G2 X464.445 Y46.454 Z-1.511 R7.916
    G2 X465.506 Y46.467 Z-1.856 R9.378
    G2 X465.781 Y46.451 Z-2.001 R10.5
    G1 Z20
    G1 X465.827 Y46.447
    G1 Z9
    G1 Z-2 F72
    G2 X466.978 Y45.424 R4.594 F400
    G2 X467.452 Y44.752 R6.682
    G1 X467.498 Y44.674
    G2 X468.08 Y42.836 R4.84
    G2 X468.23 Y40 R26.761
    G1 Y17.385
    G1 X470.384
    G1 Y33.39
    G1 Y48.405
    G1 X465.827 Y46.447
    G1 Z20
    G1 X461.163 Y45.673
    G1 Z9.564
    G1 Z-0.871 F72
    G3 X460.882 Y45.146 Z-0.436 R59.561 F400
    G3 X460.605 Y44.616 Z0 R57.015
    G1 X459.35 Y42.176 Z2
    G1 Z20
    G1 X470.383 Y48.403
    G1 Z9
    G1 Z-2.001 F72
    G1 X471.088 Y49.474 Z-1.296 F400
    G1 X474.384 Y52.77 Z2
    G1 Z20
    G1 X470.41
    G1 Z11
    G1 Z2 F72
    G1 X471.088 Y49.474 Z-1.296 F400
    G1 Z20
    G1 X470.383 Y17.386
    G1 Z9
    G1 Z-2.001 F72
    G1 X474.384 Y13.385 Z2 F400
    G1 Z20
    G1 X468.231 Y17.386
    G1 Z9
    G1 Z-2.001 F72
    G1 X464.23 Y13.385 Z2 F400
    G1 Z20
    G1 X417.66 Y29.993
    G1 Z9
    G1 Z-2 F72
    G2 X417.615 Y31.202 R16.251 F400
    G2 X418.462 Y36.532 R17.187
    G2 X419.903 Y39.911 R20.964
    G2 X420.851 Y41.497 R19.228
    G2 X421.042 Y41.778 R16.114
    G3 X420.478 Y40.052 R12.709
    G3 X419.769 Y34.279 R23.854
    G3 X420.644 Y27.33 R28.034
    G3 X423.683 Y20.767 R19.855
    G3 X424.399 Y19.812 R22.421
    G3 X428.283 Y16.526 R12.899
    G2 X422.041 Y20.333 R15.01
    G2 X417.66 Y29.993 R15.412
    G1 Z20
    G1 X421.073 Y41.834
    G1 Z9
    G1 Z-2.001 F72
    G2 X422.168 Y43.532 Z-1.816 R14.278 F400
    G2 X423.784 Y45.339 Z-1.595 R14.161
    G2 X424.486 Y45.962 Z-1.533 R15.946
    G2 X425.223 Y46.543 Z-1.472 R15.936
    G2 X425.504 Y46.745 Z-1.452 R13.353
    G2 X425.79 Y46.941 Z-1.432 R13.337
    G2 X426.99 Y47.653 Z-1.395 R13.958
    G2 X428.256 Y48.243 Z-1.358 R13.919
    G2 X428.988 Y48.516 Z-1.369 R13.919
    G2 X429.735 Y48.748 Z-1.381 R13.932
    G2 X431.052 Y49.041 Z-1.438 R12.376
    G2 X432.394 Y49.189 Z-1.496 R12.402
    G2 X433.163 Y49.208 Z-1.543 R12.721
    G2 X433.932 Y49.181 Z-1.589 R12.737
    G2 X436.29 Y48.804 Z-1.783 R12.881
    G2 X438.538 Y47.999 Z-1.978 R12.942
    G2 X438.747 Y47.899 Z-2.001 R14.417
    G2 X439.286 Y47.549 R12.151
    G2 X441.572 Y45.645 R16.345
    G2 X445.8 Y38.345 R16.377
    G2 X446.846 Y30.481 R30.091
    G2 X446.195 Y24.695 R26.043
    G2 X445.348 Y22.2 R12.778
    G3 X446.44 Y23.845 R16.526
    G3 X446.87 Y24.627 R19.514
    G3 X447.941 Y27.053 R20.433
    G3 X449 Y33.029 R17.398
    G3 X448.266 Y37.74 R15.49
    G3 X447.02 Y40.759 R19.853
    G3 X446.624 Y41.481 R14.662
    G3 X441.441 Y46.634 R14.301
    G3 X438.747 Y47.9 R17.529
    G1 Z20
    G1 X445.175 Y21.918
    G1 Z9
    G1 Z-2.001 F72
    G2 X444.866 Y21.447 Z-1.945 R14.538 F400
    G2 X443.022 Y19.255 Z-1.662 R14.386
    G2 X442.695 Y18.944 Z-1.629 R18.601
    G2 X442.36 Y18.642 Z-1.596 R18.614
    G2 X441.833 Y18.2 Z-1.552 R13.33
    G2 X441.284 Y17.787 Z-1.507 R13.291
    G2 X438.066 Y16.121 Z-1.502 R12.775
    G2 X434.509 Y15.427 Z-1.497 R12.771
    G2 X434.098 Y15.412 Z-1.519 R13.818
    G2 X433.686 Y15.41 Z-1.541 R13.827
    G2 X433.232 Y15.421 Z-1.57 R15.03
    G2 X432.778 Y15.445 Z-1.599 R15.053
    G2 X432.166 Y15.501 Z-1.644 R14.025
    G2 X431.557 Y15.584 Z-1.69 R14.046
    G2 X428.677 Y16.365 Z-2.001 R13.901
    G1 Z20
    G1 X376.926 Y19.866
    G1 Z9
    G1 Z-2 F72
    G3 X381.599 Y16.688 R12.485 F400
    G2 X381.507 Y16.753 R9.883
    G2 X378.767 Y19.307 R14.211
    G2 X376.3 Y24.035 R12.954
    G2 X375.307 Y31.25 R26.707
    G2 X376.314 Y38.516 R26.736
    G2 X377.572 Y41.514 R13.324
    G3 X374.978 Y37.864 R13.803
    G3 X374.673 Y37.202 R15.081
    G3 X373.906 Y35.099 R19.684
    G3 X373.153 Y30 R17.655
    G3 X373.18 Y28.837 R25.333
    G3 X376.926 Y19.866 R14.19
    G1 Z20
    G1 X381.612 Y16.681
    G1 Z9
    G1 Z-2.001 F72
    G3 X383.23 Y15.984 Z-1.828 R11.089 F400
    G3 X385.065 Y15.532 Z-1.642 R10.99
    G3 X385.596 Y15.462 Z-1.607 R11.084
    G3 X386.129 Y15.417 Z-1.571 R11.06
    G3 X386.682 Y15.398 Z-1.544 R11.423
    G3 X387.235 Y15.406 Z-1.517 R11.4
    G3 X387.735 Y15.435 Z-1.501 R12.649
    G3 X388.233 Y15.484 Z-1.484 R12.64
    G3 X392.567 Y16.855 Z-1.634 R12.1
    G3 X396.093 Y19.724 Z-1.784 R12.194
    G1 X396.099 Y19.731
    G1 X396.105 Y19.738 Z-1.786
    G3 X396.509 Y20.234 Z-1.85 R19.859
    G3 X396.897 Y20.744 Z-1.914 R19.931
    G3 X397.329 Y21.359 Z-2.001 R16.606
    G1 Z20
    G1 X397.345 Y21.383
    G1 Z9
    G1 Z-2 F72
    G3 X401.421 Y31.617 R17.472 F400
    G3 X401.461 Y32.981 R23.396
    G3 X399.251 Y41.066 R15.893
    G3 X398.712 Y41.924 R18.248
    G3 X395.023 Y45.977 R18.45
    G3 X388.936 Y50.312 R57.93
    G2 X387.144 Y51.44 R141.8
    G2 X388.699 Y50.019 R36.48
    G2 X389.302 Y48.731 R2
    G2 X390.834 Y48.072 R2
    G2 X394.788 Y43.572 R211.352
    G2 X395.787 Y42.298 R19.493
    G2 X397.293 Y39.701 R15.329
    G2 X398.309 Y37.082 R24.5
    G2 X399.071 Y33.794 R19.874
    G2 X399.307 Y30.481 R23.304
    G2 X398.664 Y24.956 R24.067
    G2 X397.345 Y21.383 R15.633
    G1 Z20
    G1 X389.302 Y48.731
    G1 Z9
    G1 Z-2.001 F72
    G1 X389.288 Y48.716 Z-1.985 F400
    G1 X389.233 Y48.654 Z-1.927
    G1 X389.177 Y48.593 Z-1.87
    G1 X389.121 Y48.531 Z-1.816
    G1 X389.065 Y48.47 Z-1.762
    G2 X388.727 Y48.133 Z-1.519 R4.501
    G2 X388.348 Y47.843 Z-1.276 R3.171
    G2 X387.986 Y47.644 Z-1.195 R2.741
    G2 X387.596 Y47.507 Z-1.114 R2.37
    G3 X387.21 Y47.404 Z-1.112 R26.649
    G3 X386.824 Y47.295 Z-1.11 R26.647
    G3 X385.351 Y46.82 Z-1.139 R26.647
    G3 X383.907 Y46.26 Z-1.169 R26.686
    G3 X382.929 Y45.816 Z-1.241 R19.233
    G3 X381.978 Y45.318 Z-1.313 R19.381
    G3 X380.407 Y44.301 Z-1.521 R14.588
    G3 X378.979 Y43.093 Z-1.728 R14.687
    G1 X378.949 Y43.064 Z-1.734
    G1 X378.918 Y43.034 Z-1.739
    G3 X377.583 Y41.528 Z-2.001 R13.667
    G1 Z20
    G1 X387.119 Y51.458
    G1 Z9
    G1 Z-2.001 F72
    G3 X386.981 Y51.562 Z-1.986 R98.544 F400
    G3 X385.917 Y52.344 Z-1.92 R155.764
    G3 X384.847 Y53.117 Z-1.854 R155.211
    G2 X382.846 Y54.591 Z-1.752 R93.56
    G2 X380.885 Y56.117 Z-1.649 R93.699
    G2 X380.411 Y56.509 Z-1.635 R17.22
    G2 X379.953 Y56.919 Z-1.621 R17.177
    G2 X379.498 Y57.37 Z-1.618 R8.733
    G2 X379.078 Y57.854 Z-1.615 R8.734
    G2 X378.742 Y58.3 Z-1.604 R8.974
    G2 X378.433 Y58.766 Z-1.592 R8.98
    G2 X378.076 Y59.391 Z-1.571 R10.322
    G2 X377.764 Y60.04 Z-1.55 R10.323
    G2 X377.675 Y60.254 Z-1.546 R6.582
    G2 X377.593 Y60.471 Z-1.542 R6.576
    G2 X377.379 Y61.281 Z-1.54 R4.885
    G2 X377.307 Y62.116 Z-1.538 R4.885
    G2 X377.506 Y63.376 Z-1.526 R4.098
    G2 X378.082 Y64.513 Z-1.514 R4.099
    G1 X378.112 Y64.555
    G1 X378.143 Y64.596 Z-1.512
    G2 X378.743 Y65.297 Z-1.502 R7.232
    G2 X379.427 Y65.916 Z-1.492 R7.232
    G2 X379.538 Y66.002 Z-1.49 R6.908
    G2 X379.651 Y66.087 Z-1.489 R6.908
    G2 X380.781 Y66.754 Z-1.476 R6.758
    G2 X382.018 Y67.19 Z-1.464 R6.758
    G1 X382.068 Y67.202
    G1 X382.118 Y67.214 Z-1.463
    G2 X383.752 Y67.515 Z-1.483 R17.293
    G2 X385.408 Y67.658 Z-1.504 R17.315
    G2 X386.31 Y67.67 Z-1.549 R18.266
    G2 X387.211 Y67.638 Z-1.593 R18.306
    G2 X387.441 Y67.623 Z-1.608 R19.383
    G2 X387.671 Y67.605 Z-1.622 R19.4
    G2 X388.869 Y67.453 Z-1.75 R14.551
    G2 X390.05 Y67.204 Z-1.878 R14.79
    G2 X390.678 Y67.026 Z-2.001 R11.695
    G1 Z20
    G1 X390.775 Y66.995
    G1 Z9
    G1 Z-2 F72
    G2 X391.705 Y66.401 R7.416 F400
    G2 X394.21 Y64.291 R28.709
    G3 X396.215 Y62.506 R44.835
    G3 X396.851 Y62.089 R3.262
    G3 X397.018 Y62.031 R0.695
    G3 X397.307 Y62 R1.397
    G3 X397.457 Y62.004 R3.276
    G3 X398.112 Y62.287 R1.005
    G1 X398.171 Y62.349
    G3 X398.384 Y62.909 R0.843
    G3 X397.911 Y64.132 R1.814
    G3 X396.885 Y65.008 R5.451
    G3 X393.407 Y66.51 R10.83
    G3 X390.775 Y66.995 R26.975
    G0 Z60
    G0 G49 Z[60+#[11000+#4111]] H0
    ( END INC )
    G90 G0 G49 G53 Z0
    G0 M5
    T0 M6
    G53 G0 X-3200 Y1600
    IF [#606 EQ 0] GOTO 9051
    M98 P#700
    N9051 M26

    Similar Threads:
    Last edited by mrsa; 09-12-2018 at 01:46 PM.

  2. #2
    Join Date
    Dec 2009

    Default Re: G code problem - Fanuc Series 21i-MB

    can you make a small video when you press start cycle and let us see the machine??
    the code is ok,must be something from machine side that is not set correct,like a door or safety switch.
    thank you.

  3. #3
    Join Date
    Jan 2009
    United States

    Default Re: G code problem - Fanuc Series 21i-MB

    The difference between /M3 S6000 and M3 S6000 is that a slash in the beginning of a line will be ignored when Block Delete is on. (a button or switch on the control)

  4. #4
    Join Date
    Jul 2014

    Default Re: G code problem - Fanuc Series 21i-MB

    Iam not on machine now to make video but it moves correctly and spindle does not rotate.
    Someone told me that the reason that does not rotates is that i have not M6 T_ command in my code to load tool.
    Tool has put on manually before program run by hand...
    Machine has automatic tool change with 26 tools magazine.

  5. #5
    Join Date
    Jan 2009
    United States

    Default Re: G code problem - Fanuc Series 21i-MB

    Your first program you say doesn't rotate the spindle and there is no tool change. It doesn't make sense since M3 S6000 works in MDI
    If M6 T_ is the problem then the program should stop on that line and throw an error.

  6. #6
    Join Date
    Jul 2014

    Default Re: G code problem - Fanuc Series 21i-MB

    So because no alarm something other happens ...
    The monday i will go to machine and will check again.
    The second program rotates ok the spindle also from MDI M3 S6000 rotates ok.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on

Our Brands

G code problem - Fanuc Series 21i-MB

G code problem - Fanuc Series 21i-MB