In case this is useful, I made the following routine.
You can paste the output of a cam processor where shown, so that it
becomes a subroutine, then add parameters for final cut depth,
incremental cut depth etc.

===========================================================================================
G17 G21 G40 G49 G54 G80 G90 G94 (Customise to your needs)

#<_XY_Feed> = 200
#<_Z_Feed> = 25

F#<_XY_Feed>     (Feed rate)
S1               (Spindle speed)
M3               (Start spindle)

(**************************** SUBROUTINES **************************)

O100 sub

    (Put CAM file here)

O100 endsub

(**************************** MAIN PROGRAM **************************)

#<_jog_clear>       = 1.00  (Clearance of cutter above work surface)
#<_cut_depth>       = 0.00  (Start from surface)
#<_retract>         = 0.1
#<_step_depth>      = 0.25  (Depth of each successive cut)
#<_plunge>          = 0.10  (Depth to plunge to before starting cut)
#<_total_depth>     = -2.00 (Depth to make cuts to)


O120 while [[#<_cut_depth> - #<_step_depth>] gt #<_total_depth>]
    #<_pre_cut> = [#<_cut_depth> + #<_plunge>]
    #<_cut_depth> = [#<_cut_depth> - #<_step_depth>]
    O100 call
O120 endwhile

O130 if [#<_cut_depth> ne #<_total_depth>]
    #<_pre_cut> = [#<_cut_depth> + #<_plunge>]
    #<_cut_depth> = #<_total_depth>
    O100 call
O130 endif

(****************************** FINISH *****************************)

M05                         (Spindle OFF)
M02
===========================================================================================

Cheers,
Robert von Knobloch

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to