top of page

Software used: CIMCO editor

I like to write algorithms based on formulas which i have derived by myself.


-Involute
It is written allow easy changes in step over (Endmill Ae)
 
%
O0001

N1
#10=1        (SMALLER RADIUS)
#15=20        (BIGGER RADIUS)
#16=-4        (ABSOLUTE DEPTH)

#17=10        (BULLNOSE DIA)

#20=1000        (NUBER OF STEPS)


#25=.7    (STEPOVER XY)

#26=45        (AGLE OF ROTATION)
#27=1500    (FEEDRATE)
 
G80 G90 G17 G20 G40

T1 M6

G54 G00 X0 Y0 S3000 M3

G43 H1 D1 Z1.

M8

G68 R#26

#30=360/#20
#40=0
#45=#25/#20
#50=#15
#60=0

G91
X-#15+1
G90
Z#16
G91
G41 G01 X+1

WHILE [#50 GT #10] DO 1

    G1 X[[#50]*[COS[#40]-COS[#40+#30]]]  Y[[#50]*[SIN[#40]-SIN[#40+#30]]] F#27
    #40=#40+#30
    #50=#50-#45
    
END 1
IF [#20 EQ 4] GOTO 100
G1 X[[#10]*[COS[#40]-COS[#40+#30]]]  Y[[#10]*[SIN[#40]-SIN[#40+#30]]] F#27

WHILE [#60 LT 360] DO 2

    G1 X[[#10]*[COS[#40]-COS[#40+#30]]]  Y[[#10]*[SIN[#40]-SIN[#40+#30]]] F#27
    #60=#60+#30
    #40=#40+#30
    
END 2

N100

G40 G1 X[[-#17*1.1/2]*COS#40] Y[[-#17*1.1/2]*SIN#40]

G69

G0 Z20. M9 M5
%
-Pseudo trochoidal slot milling
 
%
O0001

N1

G80 G90 G17 G21 G40

T1 M6

G54 G00 X0 Y0 S3000 M3

G43 H1 D1 Z1.

M8

G1 Z.0 F50

#101=6 (RAD)
#102=20(WIDTH)
#103=1 (STEPOVER)
#104=5 (DEPTH OF CUT)  
#105=100 (LENGTH)
#106=0 (ANGLE)
#107=15 (TOTAL DEPTH)
#110=60. (FEED)
#115=120. (RAPID FEED)

M97 P100

G0 Z2.

G91 G28 Z0.

G28 Y0.
M30


N100

G91

G68 R#106

#131=0

WHILE [#131 LT #107] DO 1             (DEPTH LOOP)

    #130=-#103

    G1 Z-#104 F#110

    G1 G41 Y-[#102/2] F#115           (RAPID TO INITIAL POS)

    WHILE [#130 LT #105] DO 2        (TROCHOID LOOP)

        G1 X#103 F#110          (INCREMENT CUT)

        G3 X0 Y#102 R#102         (CUT RAD)

        G1 X-[#101*1.5]         (RETRAC CUTTER)

        G3 X0 Y-#102 R#102 F#115     (BACK RAD)

        G1 X[#101*1.5]             (BACK TO INITIAL POS)

        #130=#130+#103             (LOOP VARIABLE)

    END 2

    G1 G40 Y[#102/2] F#115             (RETRACT TO START POS)

    G0 Z#104

    G1 X-[#130]

    G1 Z-#104

    #131=#131+#104                 (LOOP VARIABLE)

END 1

G69

M99
%
bottom of page