Thanks for your reply..
Yes i have done that.I need the universal output from program or the switch output to close/unclose (external output) gripper because i want an interlock on the switch . I don't want the switch to work if a part is in the gripper.