Hi,
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[1]) THEN // if button 1 is pressed
IF(DO[1]) THEN // see if button 1 lamp is already on and switch it
DO[1]=Off
ELSE
DO[1]=On
ENDIF
ENDIF
I tried to add WAIT but that's apparently not allowed in bglogic. I'm sure there's a better way to this...
Petri