gioreva

Untitled

Dec 5th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. FeedCurrent = GetOemDRO(818) 'Get the current settings
  2. ZCurrent = GetOemDro(802)
  3. Code "G4 P1" 'Pause 1 second to give time to position probe plate
  4. Code "F100" 'slow feed rate to 10 MM/MIN
  5. ToolH =1.4 'Tool tool height requires actual measurement
  6. ZNew = ZCurrent - 30 'probe down 30mm
  7. Code "G31 Z" &ZNew
  8. While IsMoving()
  9. Wend
  10. Call SetDro (2,ToolH)
  11. Code "G0 Z" &10 'This number is greater than the height of the tool setting tool
  12. Code "F" &FeedCurrent 'restore starting
  13.  
  14.  
  15.  
  16.  
Add Comment
Please, Sign In to add comment