( A 20 x 20 mm hole matrix of 10 holes x 5 rows for standing drills or other parts ( Set start reference datum at x000, y000 ( Install a Drill 3.1mm and adjust depth to suit the material etc. ( Spindle speed set to 2500rpm ( operation begins automatically when quil TDC switch is opened ( raise the quill at the end of the last X+zzzmm stroke ( with appropriate care the part can be remove the part during the parked condition ( return speed may be increased if justified by higher production rate clr ( clear all existing programms/commands p ( begin programme m 1 ( set motor to FULL step mode t 200 ( set start speed to 300 steps/sec max 800 ( set MAXimum motor speed to steps per sec. i.e. 1000 steps/sec a 400 ( set acceleration to 1500 steps/sec/sec de 400 ( set deceleration to 1500 steps/sec/sec k 50 ( sets step constant to 50 ? s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 1500 ( ---------- move "X" axis +15.00mm to locate 1st hole Y 1500 ( ---------- move "Y" axis +15.00mm to locate 1st hole s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 ( move "x" axis +20.00mm s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 ( move "x" axis +20.00mm s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC Y 2000 ( ---------- move to 2nd line of holes s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC Y 2000 ( -------- move to 3nd line of holes s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC Y 2000 ( ---------- move to 4nd line of holes s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC Y 2000 ( ---------- move to 5nd line of holes s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 ( move "x" axis +20.00mm s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X 2000 s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC X -19500 ( ------ return quil to x home Y -9500 ( ------ return quil to y home s 4 1 ( check that the TDC switch is closed s 4 0 ( BDC switch OPEN - press is cycling or at TDC c 0 ( turn motor current off g ( go to begining and repeas as often as job/parts require