Hi David,
Yeah, that's a pretty trivial change - although including it so it's a more 'generic' change for general consumption is a bit more challenging. (A nice generic change would be to make the device programmable.)
Question though, does the table need to always rotate (say) clockwise 180 then anticlockwise 180 or can it rotate the same direction always?
If it can rotate the same direction then you could simply drive the sense input (the ack line will tell you that the table is still moving).
If the rotation has to alternate then you could use a tiny bit of logic around the [<<] && [>>] keys.
Finally if you do build the device I could tweek a couple of lines as a one off to get the sense input to rotate in alternate directions.
Changing the following lines in keypad.c should do the trick.
Code:
static bool gFlipDir = true;
if (SenseIn && Keypad == NOKEY)
{
if (gFlipDir)
Keypad = KEYNEXT;
else
Keypad = KEYPREV;
gFlipDir= !gFlipDir;
}
Originally Posted by
dpaulson
I have a request if it's possible to include. I have a 1 meter dia rotary table that I use with a welding robot. The idea of this table is for the robot to weld up components on one half of the table while an operator loads/unloads components on the other half. When both operator and robot are ready, then table turns 180 deg and then the process is repeated. I have a small circut board that receives an input from the operator and the robot and when both are 'set' then it closes a contact for output to an external controller. I presently use a Rutex step and dir servo product and his pcut software on a pc to control the table, but this setup is quite cumbersome. All that I require would be a product like this , but have one input to move 180 deg, but when pressed again to move -180deg and so on. Is this something that you can program in?
Thanks
David