Thanks! Karl...I have the Hardinge CHNC running under camsoft with the Galil card. Spent A LOT of time getting the turret to index reliably. Ended up adding anther solenoid to slow the turret down one position away from stop. The way it works - an exhaust valve controls the turret index speed - too slow and it won't pop up and turn - too fast it misses the index pawl pin popping out to stop it. Drove me nuts re adjusting EVERY day. I talked to a shop that had 50 CHNCs and they said yep, biggest problem on the Hardinge. Sooo, my macro starts the turret at full air, then slows it WAY down just before popping in the stop pin. With this upgrade, I haven't adjusted the turret in many years. NOTE - this machine very worn in the turret area - a complete mechanical rebuild would have solved this issue also.
Anyway, the attached macro is a bit more complex than you need. It also has a feature to index the turret from the operator panel and several other checks. Its also written in the Camsoft logic language. But logic is logic - all the same. Couple syntax things to help you read it - \<digit><digit> is just a variable name. #<digit><digit> is an input or an output.
If you go to the Camsoft sales site and navigate the the Hardinge CHNC running - its this machine.
<EDIT> Inputs are PRECIOUS in Galil... if I were doing this task under Galil, an encoder on the turret position would be an idea to consider. I had even thought about replacing that worn out air motor with a small servo. You might consider this also.
No, I just wrote a module in the .Net program to translate the G-code to a Galil command line. Then I store the command line in an array to be transmitted on demand.Interesting. I'm curious, Galil had written a gcode interpreter back in the ISA card days. Are you using that?
No, I just wrote a module in the .Net program to translate the G-code to a Galil command line. Then I store the command line in an array to be transmitted on demand.
Man you are way more programmer than I am. Yep, just linear don't look that bad. But add arcs and make everything work with all the modal commands and it quickly becomes a monster. I bow before greatness