42
« on: July 04, 2016, 01:44:16 PM »
Just an update. I have the gear change working well. Its funny, I figured I would start learning the scripts with Gear change thinking it would be much easier than the tool changer. It actually is more difficult because of the way SpinSpeed and M3/M4 are tied together is not so obvious way. But it ended up being a great learning experience.
I ran into a problem where anytime I used an "IF NOT GetInBit(?) THEN" statement, it always returned true irregardless of the input state. Had no clue what was making my programs do silly stuff. Finally narrowed it down to a plug-in issue I'm pretty sure. If I use the "IF NOT GetOEMLed(?) THEN", this works as expected so it's not likely a mach issue. But if I call on CSLABS hardware, it never worked. A regular "IF GetInBit(?) THEN" statement does work correctly. I emailed CSLABS support and waiting on reply. As a workaround, I can do this.
"IF GeTInBit(?)=0 THEN" and this works inplace of using the IF NOT.
So I moved on to the tool changer and found it to be rather straight forward so far. I am able to orient the spindle with no speed or timing issues straight from the CSLABS I/O. Tool carosel seems to have no issue landing on the correct tool with the geneva cam setup. Never really paid attention to how they work and now I get it. Awesome design. Instead of trying to land within 1 degree or less, you now get to just land within 180 degrees and you are good. Clever solution.
So I have it where the Z, Carosel in/out, and Carosel tool select all work in harmony. I want it to work as close to the original machine as I can. On power up and Homing, the Haas always homed the z, then x and y and then it would go put the existing tool in the current pocket. Raise Z to safe and run carosel to tool 1 and load that tool.
I like this and it makes perfect sense to me. It seems Mach likes to just load up with tool 0 and its up to the operator to not forget to fix this.
So couple of questions:
What would be the best way to add carosel and tool 1 selection when homing all?
Can I eliminate mach displaying a tool zero. Instead, all tools are 1 through 16.
Thanks,
Mike