To let people out of the castle, the sentry, would blow a whistle, and the guard commander would come through the gate to sign the people out, then following a command, the sentry would then open the gate.