Robot working with machine tending

A robot is working with a ProMill.
During the first process, the machine will automatically open and close the door, but during the second process, the machine can not automatically open and close the door.
How to fix it?
My software version is 4.0. It’s too old.
ex_2.vcmx (1.5 MB)