Showing posts with label CNC. Show all posts
Showing posts with label CNC. Show all posts

Monday, August 1, 2011

My EMC2 parallel port lathe config

Parallel port setup

Output pins ( pc to lathe )
Pin 1. X step
Pin 2. X direction
Pin 3. Digital out 0 (Enable X)
Pin 4. Z step
Pin 5. Z direction
Pin 6. Digital out 1 (Enable Z)
Pin 7. Spindle CW
Pin 8. Spindle CCW
Pin 9. Spindle PWM (currently not in use)
Pin 14. Digital out 2
Pin 16. Digital out 3
Pin 17. Coolant flood

Input pins (Lathe to pc)
Pin 10. Spindle index
Pin 11. Both limit + home X
Pin 12. Both limit + home Z
Pin 13. Estop In
Pin 15. unused Below data is for reference from aquickcnc dot com Step / Direction control information: X-Direction: Pin 2 X-Step: Pin 3 Y-Direction: Pin 4 Y-Step: Pin 5 Z-Direction: Pin 6 Z-Step: Pin 7 Limit Inputs: Pins 10 - 13 E-Stop Switch: Pin 15

Parallel Port pinout for CNC Lathe

Output functions in EMC2
 

Inputs functions in EMC2

CNC I/O requirements

Brown colored fonts are - OUTPUT
Green colored fonts are - INPUT


Spindle:
  1. Clock Wise
  2. Counter clock wise
  3. Spindle index
  4. PWM

Axis:
  1. Step
  2. Direction
  3. Enable / Disable (recommended for stepper systems)
  4. Home
  5. Limits +ve
  6. Limits -ve

Others:
  1. Coolant Flood
  2. Emergency Switch Input
  3. Manual pulse generator (MPG)
  4. Machine LAMP

Errors and compensation in CNC

  1. Backlash
  2. Pitch error compensation