;G. Popescu ( gapopescu _AT gmail DOT_ com ) Oct 2005
;ver 0.1
; This program cuts a box, with 2 boxes inside with variable dimensions.
; dimension in mils
;PARAMETERS
%1=.001 ; laser spot length X
%11=.001 ; laser spot length Y
%2=0.10 ; exterior box length X
%22=0.10 ; exterior box length Y
%30=0.006 ; distance from bottom to holes
%40=0.006 ; distance between holes
%50=0.197 ; hole x dimension
%60=0.400 ; hole y dimension
%90=%50+%40; ;one hole's x + gap
%100=%40/2+%2/2 ; x from hole 2 start point to exterior start point
%110=%22-%60-%30 ; y from hole 2 start point to exterior start point
; THESE VALUES ARE TO BE CHANGED WITH THE MATERIAL/LASER POWER
%3=1000 ; laser repetition rate
%4=6 ; number of pulses per image length
%5=%4*%2/%1 ; number of pulses per scan X for the exterior
%55=%4*%22/%11 ; number of pulses per scan Y for the exterior
%550=%4*%50/%1 ; number of pulses per scan X for the hole
%560=%4*%60/%1 ; number of pulses per scan Y for the hole
%6=%2*%3/%5 ; scan speed X
%66=%22*%3/%55 ; scan speed Y
; START
aa lp0,0,0,0
;hole 1
aa vl%6,%66,1,%3
aa ml%50,0,0,%550
aa ml0,%60,0,%560
aa ml-%50,0,0,%550
aa ml0,-%60,0,%560
; move to next hole
aa vl1,1,1,0
aa ml%90,0,0,0
;hole 2
aa vl%6,%66,1,%3
aa ml%50,0,0,%550
aa ml0,%60,0,%560
aa ml-%50,0,0,%550
aa ml0,-%60,0,%560
; move to exterior beginning
aa vl1,1,1,0
aa ml-%100,-%110,0,0
;exterior hole
aa vl%6,%66,1,%3
aa ml%2,0,0,%5
aa ml0,%22,0,%55
aa ml-%2,0,0,%5
aa ml0,-%22,0,%55
end
edit