I'm trying to use bg-logic to recognize keys pressed on a simple keypad by the operator. BGlogic so that they can be used while the robot is doing something else (the idea is to mark next jobs as ready).
It works haphazardly, and I suspect it's because the bglogic program is so fast it runs several times in one keypress.
The program is simply like
IF(DI) THEN // if button 1 is pressed
IF(DO) THEN // see if button 1 lamp is already on and switch it
I tried to add WAIT but that's apparently not allowed in bglogic. I'm sure there's a better way to this...