Scott, is there a way to keep jog on the MPG1 until an arrow key is pressed and the when it is released its back to mpg mode? Tried it with simple scripting and it locked jog on a key press when using "dooembutton (jogkey)" in a script. Since I see this is very close to what I am asking I would post it here.
Thanks,
Wes
Wes,
I don't think you can do what you want directly..... I dont thing Cypress Enable has a way for you to get "KeyDown" and "KeyUp" events from the keyboard, if it did, you could use VB. In a screen set, you can tie a button to a Key press, but this is only for a single shot KeyDown (press event), it doesnt throw a key released.
so if you used that method, it would not work right eigther I dont think. Brains also, does not have any key watch functions..... so no joy there......
You could do it with Hardware, i.e. Pokeys, ModIO, modbus boards, (modbus devices), shuttle pro.....and otehr devices that would bring in hardware Discrete Inputs.
i.e. if you had a PoKeys, on of its pins would represent some + or - dir of some axis, when you press it, it would jog that way, when released it would stop, in mach you could watch a ULED that would be tied to that pin, and if that ULED is on, (0r any of the cont external hardwaer jog pins), it would flip mach to cont jog type, when released, then MPG mode back again.......
Last two options would be:
1). A plugin, since C++ can grab key events.
2). A flash screen, since it has key listeners.
Others may have other opions, that do more VB than me, I just dont see the kind of power you want, in cypress enable. Standard VB yes...
sorry,
scott