Which type of security door opens upon a loss of power?
Well, you figure out where and why you're losing power, and proceed from there. Your problem could be anywhere in that circuit, and none of us possess a magic crystal ball that'll tell us where your power loss originates. There's wiring which runs from the cab to the door, usually run inside of a conduit. That wouldn't be a bad place to start.