Hi Kirk, Yes, basically you reflect the X axis about the origin. The only problem is that this has to be done in your current coordinate system, before the tool offset is applied. If I understand your solution correctly it would change the machine coordinates. X=0 in machine coordinates will usually be a long way from X=0 in work coordinates.
Les Kirk Wallace wrote: > So you just need to have the polarity of the X axis (and maybe the > spindle direction) switch when the rear tool is selected? Thinking > aloud ... > > (from my > http://www.wallacecompany.com/cnc_lathe/HNC/emc2/configs/hnc_io-3a.hal > ) > ... > # create signals for tool loading loopback > linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared > linkpp iocontrol.0.tool-change turret.0.position-change > linkpp turret.0.position-changed iocontrol.0.tool-changed > ... > > Instead of turret.0.position-change, you could have > check-for-rear-tool.0.check and /.checked, .rear-tool. You would have to > stick to a range of tool numbers that would be considered rear tools. > > Then in the spindle section, use check-for-rear-tool.0.check.rear-tool > to change the sense of the spindle direction. > > ("newsig" is old, should update to use "net" properly) > ... > ### SPINDLE ### > # connect spindle fwd/rev to I/O controller > newsig SpindleFwd bit > newsig SpindleRev bit > newsig SpindleDACen bit > > (insert HAL component to switch spindle sense) > > net SpindleFwd motion.spindle-forward > linksp SpindleFwd parport.0.pin-01-out > linksp SpindleFwd or2.0.in0 > > linksp SpindleRev motion.spindle-reverse > linksp SpindleRev parport.0.pin-02-out > linksp SpindleRev or2.0.in1 > ... > > I haven't thought much about this, but it might work. > > > Kirk > http://wallacecompany.com/machine_shop/ > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
