Guest User

Untitled

a guest
Nov 24th, 2011
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. .ini file additions
  2. [DISPLAY]
  3. ...
  4. PYVCP = panel.xml
  5.  
  6. [HAL]
  7. ...
  8. POSTGUI_HALFILE = postgui.hal
  9.  
  10.  
  11. panel.xml
  12.  
  13. <?xml version='1.0' encoding='UTF-8'?>
  14. <pyvcp>
  15. <!--
  16. slider for torch delay
  17. -->
  18.  
  19. <scale>
  20. <font>("Helvetica",16)</font>
  21. <width>"25"</width>
  22. <halpin>"delay"</halpin>
  23. <resolution>0.1</resolution>
  24. <orient>HORIZONTAL</orient>
  25. <initval>0.1</initval>
  26. <min_>0.1</min_>
  27. <max_>10</max_>
  28. </scale>
  29.  
  30. </pyvcp>
  31.  
  32.  
  33. postgui.hal
  34.  
  35. loadrt oneshot names=torch-delay
  36. addf torch-delay servo-thread
  37.  
  38. net delay-time torch-delay.width <= pyvcp.delay-f
  39. net delay-start torch-delay.in <= motion.digital-out-00
  40. net go-torch motion.digital-in-00 <= torch-delay.out-not
  41.  
  42. anonimasu.ngc
  43. G0 X2 Y2
  44. Z-0.999
  45. M62 P0 (turn on the delay)
  46. Z-1
  47. M66 P0 L1 Q25 (wait for delay to finish)
  48. M63 P0
  49. G1 X3 Y3 F10
  50. M2
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment