[Home]Xylotex With EMC2

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Difference (from prior major revision) (no other diffs)

Added: 27a28,36

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.


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.


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited February 5, 2005 6:17 pm by Jmkasunich (diff)
Search:
Published under a Creative Commons License