I almost responded to the original post, glad I didn't though. Was going to suggest a macro instead.
Emulating, looked fine here too, but made me wonder what the heck its function is actually intended to be. ? ?
I picture a mill or robot with an enclosure.
Open the door or gate while a program is running and it stops (instantly) most likely loosing pos., close the door and it resumes ? ? no reset requested ? ? ?
Imagine a robot and the door closes behind you, you'd be eaten alive.
Seems like it should just prevent the activation of any code or program cycle while IN #1 is active, otherwise EStop !
As far as disabeling jogging, while the door/gate is open (In 1 active) you might want to do some work with the pendant or what not. So you would NEED jogging enabled.....but no chance of a Cycle Start.
Any idea of its intended function ?
Russ