MACH3 Chinese Version
The Code of the knife:
'Rem Probe down by PEU (Based in Erniebro work)Feedcurrent = Getoemdro (818)'Read F valueSafez = Getoemdro ( Wu)'reading security Z-valuesZcurrent = Getdro (2) Code"G4 P1" 'Pause 1 second to give time to position probe plateCode"F100" 'Slow feed rate to Mm/minGageh = Getoemdro (1002)RemProbe down by PEU (Based in Erniebro work)Feedcurrent = Getoemdro (818)'Get The current settingsZcurrent = Getoemdro (802) Code"G4 P1" 'Pause 1 second to give time to position probe plateCode"F100" 'Slow feed rate to Mm/minGageh = Getuserdro (1152) Znew= Zcurrent- - 'Z drops up to 30mm when the knife is onCode"G31 Z"&znew whileismoving () WendPagerSetdro (2, Gageh) Finalmove= Gageh + Safez'Z axis: Height of cutter block + safety HeightIfSafez<finalmove ThenCode"G0 Z"&FinalmoveElseCode"G0 Z"&safez'back to Security ZEnd ifCode"F"&feedcurrent'Restore starting Feed rate
Seek Edge code:
RemProbe down by PEU (Based in Erniebro work)Feedcurrent = Getoemdro (818)'Get The current settingsXcurrent = Getoemdro (802) Code"G4 P1" 'Pause 1 second to give time to position probe plateCode"F100" 'Slow feed rate to Mm/minGageh = Getuserdro (1152) ' read out the thickness of the knife block xnew=xcurrent + - 'probe down (mm)Code"G31 X"&xnew whileismoving () WendPagerSetdro (0, Gageh *-1) Finalmove= (Gageh *-1)-3 'negative on the knife block, then retract the knife -3Code"G0 X"&Finalmovecode"F"&feedcurrent'Restore starting Feed rate
Mach3 Edge Finder and knife code