Wednesday, February 27, 2008

Update on Pendant Build...

27th February Update:
Finished coding the controller and fine tuning last night. Wired it up to the parallel port and it worked well. The indicators are in sync with Mach3 settings (for selected axis and MPG modes). Now, I don't have to look at the screen to know which axis is selected (X, Y, Z) or what MPG mode I'm using (X1, X10, X100, continuous)... a real time saver...

Will be working on the casing tonight...

2 comments:

Ferny said...

You do nice work!
Care to expound on the PIC program at all? Are you using PWM for the pulses or just wiggling a bit? I'm pretty new to CNC.

Thanks,
Ferny from CNCzone

9W2BSR said...

No PWM... just bit banging...
4 switches connected to PIC, i.e.,
Axis +, Axis -, Axis Select, MPG Mode
4 output connected to parallel port
Quadrature A/B, Axis Select, MPG Mode

On Axis Select, PIC check current axis selection then pulse the axis select output for about 250ms... to make sure Mach3 registers it...

Same on MPG mode... only two Mach3 mode used (Velocity and MultiStep)... the right number of pulse must be sent to change to the right mode...

On Axis+/-, PIC check current mode and send relevant number of pulses (1, 10 or 100 or continuous)... output is quadrature... similar to normal MPG...