Re: Help Automating This Jig
The Gecko 540 is fine, as is Excel. The problem is that the Gecko only understands electrical pulses and a direction signal, and Excel only outputs math. Somewhere in between you need some software that converts that math into pulses. So let's say you want to move P1 from 0 to + 1 inch and the resolution is 1000 pulses / inch then you would need to send 1000 pulses to the P1 motor driver.
Mach3 software would generate the pulses and direction signal when connected to the Gecko, but it would have no idea what to do with the math from Excel. Mach3 only understands G code. Now Excel could convert the math into G code and output that to a file using the macro function, but you would still have to manually select the file to load into Mach3. Very close to what you want, but not fully automated. To automate the last piece would require some custom software.
It might be possible to write an Excel macro that accesses the printer port directly and could be made to turn the lines on and off. Not sure if it's possible to control the printer port using VBA.
Jim Dawson
Sandy, Oregon, USA