The HAL is rather strange. What drives the analogue and digital outputs? All you should need is:
loadrt carousel pockets=6 encoding=index dir=1 addf carousel.0 servo-thread #Tool turret encoder input net car-index carousel.0.sense-0 <= [HMOT](CARD0).7i76.0.0.input-20-not net car-pulse carousel.0.sense-1 <= [HMOT](CARD0).7i76.0.0.input-21-not #Tool turret forward output net car-fwd carousel.0.motor-fwd => [HMOT](CARD0).7i76.0.0.output-00 net tool-prep-loop iocontrol.0.tool-prepare iocontrol.0.tool-prepared net tool-change-cmd iocontrol.0.tool-change carousel.0.enable net tool-change-fb iocontrol.0.tool-changed carousel.0.ready net tool-slot iocontrol.0.tool−prep−pocket carousel.0.pocket-number loadusr sim_pin carousel.0.jog-fwd Then when you issue an M6 Tn G43 the tool changer should go to the numbered pocket. (You can configure to change on Tnn like most commercial lathes do, but that can come later, once it works) Do you have the tools set up in the right pockets? Tnn looks in the tool table to find which pocket Tnn is in. Your example above has T3 setting pocket-number to 4, and T4 setting pocket-number to 5. pocket-number is the _input_ to carousel which seems to be coming via a G-code output. If TnM6 is working at all then I think that your remap is still in place, and is doing odd things. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users