Xylotex_With_EMC2 - rmu75/linuxcnc-wiki GitHub Wiki


date: '2005-02-06T03:17:09' title: Xylotex With EMC2

The HAL configuration commands for the original EMC pinout look like this:

linksp Xstep parport.0.pin-03-out
linksp Xdir  parport.0.pin-02-out
linksp Ystep parport.0.pin-05-out
linksp Ydir  parport.0.pin-04-out
linksp Zstep parport.0.pin-07-out
linksp Zdir  parport.0.pin-06-out

That puts the step commands on the odd numbered pins and the direction commands on the even numbered pins.

For xylotex, replace those commands with:

linksp Xstep parport.0.pin-02-out
linksp Xdir  parport.0.pin-03-out
linksp Ystep parport.0.pin-04-out
linksp Ydir  parport.0.pin-05-out
linksp Zstep parport.0.pin-06-out
linksp Zdir  parport.0.pin-07-out

You can generate any custom pinout the same way.

For convenience, the two pinouts above are included in the emc2/configs directory, as standard_pinout.hal and xylotex_pinout.hal

If you want to change the polarity of the direction pins (to reverse an axis), just add a line like this:

setp parport.0.pin-03-out-invert 1

That line inverts pin 3 of the parport, which is X direction for Xylotex. You can invert any pin or pins.

⚠️ **GitHub.com Fallback** ⚠️