How to set a code lock
Coded Door Lock: Mechanical and Electronic : How To Set A Code Lock
Quote from Article entitled Coded Door Lock: Mechanical and Electronic:
All coded locks are divided into two types: padlocks and mortise locks. Padlocks are commonly used on doors of commercial and industrial premises, and mortise locks - on entrance and interior doors. In general, they differ only by methods of lock installation. Also all coded locks are divided according to the process control of the locking mechanism. There are mechanical and electronic (or magnetic) locks.
The full version of the article can be found here.