I want a green light to show the robot is running.
if the stop button is pressed or the door is opened the light goes of.
You can map and make a signal that will be a system output for program is executing. Have it turn on a relay which will power your light. You can read up on such things in the System parameter manual.
Hey OP! I am curious to know how you solved this issue.