( CASA DE9-Y+ milling rectangle + 2 fixing holes ( drills two holes and mills rectangle-shaped hole in Y direction ( . ( Install 3 mm cutter ( Set start reference at centre-line of "D" hole ( Spindle speed set to 2500~3000rpm ( 80% Kero+ 20% RTD used as cutting lubricant ( . clr ( clear all existing programs/commands p ( begin programme m 1 ( set motor to FULL step mode t 200 ( set start speed to 200 steps/sec max 400 ( set MAXimum motor speed to steps per sec. i.e. 400 steps/sec a 500 ( set acceleration to 500 steps/sec/sec de 500 ( set deceleration to 1500 steps/sec/sec k 50 ( sets step constant to 50 y -1250 ( to first TOP hole s 4 0 ( BDC switch OPEN s 4 1 ( check that the TDC switch is closed o 1 1 ( mist lubrication on s 4 0 ( BDC switch OPEN o 1 0 ( mist lubrication off y 2500 ( move y to other hole s 4 1 ( check that the TDC switch is closed o 1 1 ( mist lubrication on s 4 0 ( BDC switch OPEN o 1 0 ( mist lubrication off x 420 ( move x axis to "D" hole "X" axis centre line y -375 ( move y axis to "D" hole "y" axis centre line s 4 1 ( check that the TDC switch is closed o 1 1 ( mist lubrication on x -840 y -1750 x 840 y 1750 s 4 0 ( BDC switch OPEN o 1 0 ( mist lubrication off x -420 y -875 c 0 ( turn motor current off q