Upload
seyton123
View
40
Download
0
Embed Size (px)
DESCRIPTION
对刀代码
Citation preview
'Rem Probe Down by PEU (Based on Erniebro Work)FeedCurrent = GetOemDRO(818) 'Get the current settingsZCurrent = GetDro(2)Code "G4 P1" 'Pause 1 second to give time to position probe plateCode "F100" 'slow feed rate to 100 MM/MINGageH = GetOEMDRO (1002)Rem Probe Down by PEU (Based On 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 100 MM/MINGageH = GetUserDRO(1152)ZNew = ZCurrent - 20 'probe down 20 mm Code "G31 Z" &ZNewWhile IsMoving()WendCall SetDro (2,GageH)FinalMove = GageH * 1Code "G0 Z" &FinalMoveCode "G0 Z" &30Code "F" &FeedCurrent 'restore starting feed rate dr.lin 2009.10.16