On Tue, 14 Apr 2020 at 12:02, andrew beck <[email protected]> wrote:
> I don't quite understand if the carousel component can interlock the motors > so I don't turn both fwd and rev contactors on at the same time for > example. I have been told that the contactors make a quite nice BOOM when > that happens lol. I suppose that I can probably use a combination of hal > components and classic ladder for a toolchanger as they all can be linked > together its really up to the imagination/ Yes, carousel is only really meant to be one part of a toolchange system. It is only really intended to calculate the current carousel position and choose a direction to turn it. I would suggest that you can use the direction outputs and the ready outputs as input to CL, and then let CL do the direction interlocking. (Especially as there may need to be a dead-time between direction selections?) It looks like the component might potentially set both outputs at the same time, for a nanosecond or two: https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/components/carousel.comp#L269 But if you consider that those pins then need to pass through, at the very least, a hardware driver running in a separate HAL function, it can only really cause a problem if the system crashes between the two lines of code... -- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
