README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. -------------------------------------
  2. --- CNC-Control
  3. --- Fully Open Source CNC remote control device
  4. ------
  5. Copyright (c) 2009-2011 Michael Buesch <m@bues.ch>
  6. --- Integrating CNC-Control into EMC2 ---
  7. EMC 2.5.0(-pre) or later is required.
  8. Integration into EMC2 is easy, because the CNC-Control HAL file is pretty
  9. much selfcontained. Just copy the driver/cnccontrol.hal file to your EMC2
  10. configuration directory. Then modify your .ini file to load the new .hal file.
  11. EMC2 can load multiple HAL files. So all that is needed usually is to add
  12. a line like this
  13. HALFILE = cnccontrol.hal
  14. to the end of the [HAL] section of your .ini file. Add the new HALFILE line
  15. below any exitsing HALFILE line.
  16. To install the HAL driver, just copy it somewhere you can execute files from.
  17. We suggest to just copy the driver to the EMC2 configuration directory as well:
  18. cp -a driver/{cnccontrol_driver.py,emc2hal_cnccontrol} /MY/EMC2/CONFIG/DIRECTORY/
  19. After that you need to adjust your PATH environment variable to include
  20. the EMC2 config directory (or the directory where you put the files).
  21. As the CNC-Control HAL driver has to access the CNC-Control USB device, either
  22. startup EMC as root, or configure your USB device permissions (udev) to allow
  23. binding the userspace USB driver as restricted user to the device.
  24. All configuration of the CNC-Control device can be done through the
  25. cnccontrol.hal file. Just look into the file and read the comments.