Hello all.
I am using KR300R2700 - 2F / FLR
With KRC 4 Controller
Application - Pick & Place. (Material Handling)
First i am using separate user keys for gripper open & gripper close. I am using this keys as
In SPS.
IF Is_Key_Pressed(14) THEN
Gripper Open pulse.
ENDIF
IF Is_Key_Pressed(15) THEN
Gripper Close pulse.
ENDIF
I want to open & close gripper on same (single) button.
As like, if gripper is open then it will be close & if gripper is close then it will be open.
I think, setting a flag is better option, but please suggest best way to use a single button.