If the lock is supported to be used with the access control system jointly and be controlled the lock at a long distance, the Scheme 3 can be used:
Relay Р1 is closed at opened or unfastened door posisitions. Relay Р2 is turned on in case of an alarm. Contact C3 supports lock unfastening, and contact C4 - fastening correspondingly. At immediate turning relays Р3 and Р4 on the lock will shift into mode of blocking in closed position.