Create the following states inside a PRG_ElevatorControl :
Controls for opening and closing the cabin and landing doors. codesys elevator project