what would be the purpose of needing an override signal for running in manual? are you trying to limit access to jogging the robot from un authorised people? this could be accomplished much cleaner by assigning logins in the UAS and specifying either what individuals can do or groups (ie maintenance, supervisors, ect…)
The main reason is due to the setup of other robots in the factory, for example the factory also have motoman robots, that has the interlock programmed in this fashion. I ended up doing the following, connecting the doQuickStop to the systeminput Quickstop:
MODULE VippaCheckMod
VAR bool bInterlock;
PROC main()
IF diVippaOK=0 AND DiEjZonVippa=0 AND bInterlock=FALSE THEN