Patent Publication Number: US-11384569-B2

Title: Lock with replaceable modules

Description:
BACKGROUND OF THE INVENTION 
     1. Fields of the Invention 
     The present invention relates to a lock with replaceable modules, and more particularly, to a lock that can be equipped with different components to have different functions to be used in different sites. 
     2. Descriptions of Related Art 
     Locks are connected to doors to obtain purposes of safety and privacy by the control to the locks. The locks for doors used in different sites are required to have different functions. For example, doors that are used to gate entrances usually need a core to control the deadbolt of the lock, and need a handle to control the latch bolt. If the door is required to restrict rotation of the handle when the door is closed and the deadbolt is not retracted, then a special lock has to be purchased. It is not possible to expand such function from existing locks. If the lock is locked only by the latch bolt or the deadbolt, without using another function, then a lock with only the latch bolt and the deadbolt is needed, and this feature cannot be obtained by amending existing locks. If the lock needs to be locked from the inside of the room, and cannot be unlocked from outside of the room via the handle of the lock, and the lock can only be unlocked by rotation of the core of the lock, or if the lock needs a long-travel distance deadbolt by a one-time rotation of the core, or the lock includes a roller deadbolt, or the lock has an emergency unlocking feature, either of the locks mentioned above has to be replaced by a brand new lock with the specific function. All of the possible users need to have a new key. This definitely costs a lot and results in difficulties of management. The inventory cost, the researching cost, and the manufacturing cost are all increased 
     The present invention is intended to provide a lock to eliminate the drawbacks mentioned above. 
     SUMMARY OF THE INVENTION 
     The present invention relates to a lock with replaceable modules, and the lock comprises a case including a first part and a second part which is connected to the first part to form the case. The case includes a latch bolt recess, a restriction recess and a deadbolt recess defined in the lateral side thereof. The latch bolt recess communicates with an installation recess at the distal end of the X-axis of the latch bolt recess. The installation recess includes a first positioning portion located corresponding to the distal end of the latch bolt recess. The case includes an installation hole defined in the Z-axis thereof and is located within the installation recess. The case includes a first positioning wall formed at the inner bottom of the latch bolt recess. The first positioning wall is connected with the second positioning wall, and forms a first slot. The bottom of the latch bolt recess communicates with the restriction recess via the first slot. The distal end of the restriction recess communicates with the installation recess. The first slot includes a first fixing recess and a second fixing recess defined in the second positioning wall. The case includes a core recess defined in the distal end of the X-axis of the deadbolt recess. The core recess communicates with the installation recess. The deadbolt recess includes a first guiding slot defined in the wall thereof. The core recess includes a second guiding slot defined in the wall thereof. The core recess includes a third positioning wall on the top thereof, and the third positioning wall includes a first positioning portion on the top thereof. The third positioning wall includes a second positioning portion formed on the bottom thereof. The core recess includes a fourth positioning wall which is located corresponding one end of the third positioning wall. The core recess includes an elongate groove defined in one end of the fourth positioning wall. A core hole is defined through the inner bottom of the core recess and located along the Z-axis of the core recess. 
     Preferably, a stop wall is located between the deadbolt recess and the core recess. The first and second fixing recesses, the stop wall, the elongate groove and the fourth positioning wall are located in the first part. The first and second guiding slots are located in the second part. 
     Preferably, the latch bolt recess includes a latch bolt which includes a head, a passive member and a spring. The passive member is fixed to the head, and the spring is biased between the inside of the latch bolt recess and the passive member. When in a closed position, the spring extends to protrude the head out from the case. When in an opened position, the spring is compressed so that the head does not protrude out from the case. The installation recess includes a top rotation member and a bottom rotation member. The top rotation member and the bottom rotation member are overlapped with each other and do not drive each other. The top rotation member includes a first transmission member, a first hole located corresponding to the installation hole, and a first contact portion. The bottom rotation member includes a second transmission member, a second hole which is located corresponding to the installation hole, and a second contact portion. The first positioning portion includes a first resilient member which biases the first contact portion and the second contact portion. When the first transmission member and the second transmission member are assigned to the top rotation member or the bottom rotation member, and are rotated, the first contact portion or the second contact portion compresses the first resilient member and pushes the passive member so that the spring is compressed and the head does not protrude out from the case. When in a closed position, the first resilient member bounces back and contacts the first contact portion and the second contact portion, the first transmission member and the second transmission plate do not contact the passive member. 
     Preferably, the latch bolt recess includes a positioning recess, a connection recess and the installation recess defined in communication with each other along the X-axis of the latch bolt recess. A fifth positioning wall is formed on one end of the X-axis of the latch bolt recess. The positioning recess is defined between the fifth positioning wall and the second positioning wall. The case includes a connection groove defined in one end of the fifth positioning wall. A first connector protrudes from the other end of the fifth positioning wall. The second positioning wall includes a second connector which is located corresponding to the first connector. The connection recess is defined between the first connector and the second connector. The passive member is engaged with the connection groove and includes a bent portion extending from each of two ends thereof. Each bent portion includes a through hole, and the latch bolt includes a shank which extends through the through holes and is connected to the head. The shank includes a positioning ring mounted thereto which is located between the bent portions. The spring is located between the positioning ring and the bent of the head so that the positioning ring is located in the positioning recess and biased by the spring and contacts the first and second connectors. 
     Preferably, the first resilient member is a torsion spring, and the torsion spring includes two legs which respectively contact the wall of the installation recess, and first and second contact portions. The torsion spring provides a pivotal force. 
     Preferably, the case has a first restriction member in the restriction recess. The restriction recess includes a restriction bolt which has a restriction member and a slide. The slide includes a first shifting recess located corresponding to the first restriction member. A transmission block is located on the Z-axis of the slide. The slide includes a stop face formed on an end face thereof which is located corresponding to the transmission block. The second positioning wall includes a second restriction member which is pivotably connected to a stop plate which has a pivotal portion, a transmission portion, a stop portion and a guiding portion. The pivotal portion is located between the transmission portion and the stop portion, and is pivotably connected to the second restriction member. The transmission portion is located corresponding to the second positioning wall, and has a contact portion protruding toward the first fixing recess. The top rotation member includes a push block that pushes the transmission portion when the top rotation member is rotated from the closed position to the opened position, and the push block pushes the stop plate from a stop position to a non-stop position. The stop portion is located corresponding to the first slot and the fifth positioning wall. The guiding portion is located corresponding to the slide. The guiding portion includes an inclined second shifting recess and an inclined third shifting recess. The transmission block is engaged with the second shifting recess, and the first restriction member is engaged with the third shifting recess. The first fixing recess includes a second resilient member whose one end contacts the contact portion. The second fixing recess includes a third resilient member whose one end contacts the stop face. When in the non-stop position, the third resilient member pushes the restriction member to protrude out from the case via the stop face, and makes the transmission block and the first restriction member respectively contact the second and third shifting recesses to let the stop portion not to protrude from the latch bolt recess. Alternatively, the third resilient member is compressed to make the restriction member not to protrude out from the case, and makes the transmission block and the first restriction member not be pushed, the transmission portion is pushed by the push block to make the stop portion not to protrude from the latch bolt recess. When in the stop position, the third resilient member is compressed and the restriction member does not protrude out from the case, the transmission block and the first restriction member are not pushed, and the stop plate is pushed by recovery force from the second resilient member to pivot the stop plate by the contact portion, so that the stop portion protrudes into the latch bolt recess the first resilient when in the closed position. 
     Preferably, the first restriction member is located in the first part. 
     Preferably, the case includes a bore which is located corresponding to the restriction recess, and includes a lock block slidably received therein. The lock block includes a control bar, a passage, an engaging portion and an inclined portion. The control bar protrudes beyond the bore. The first restriction member extends through the passage. The bottom rotation member includes an engaging notch which is located corresponding to the engaging portion. The top rotation member includes a push portion which is located corresponding to the inclined portion. When in the closed position, the lock block is located at a first position where the lock block slides to engage the engaging portion with the engaging notch. When the lock block is located at a second position, the engaging portion is disengaged from the engaging notch. When the top rotation member is transmitted from the closed position to the opened position, the engaging portion contacts the inclined portion so that the lock block is transmitted to the second position. 
     Preferably, the bore is defined in the second part. 
     Preferably, the core recess has a first guide member, a restriction plate, a driving member, an extension plate and a stop plate received therein. The core recess defines a loop-like rail. The bottom of the restriction plate is located at the rail. The first guide member extends through a first guide hole defined in the restriction plate. A resilient unit is biased between the restriction plate and a bottom of the third positioning wall. The resilient unit is connected to the second positioning portion, and the resilient direction of the resilient unit is correspondent to the first guide hole. The restriction plate includes at least one engaging member. One end of the driving member is connected to a deadbolt which is movable in the deadbolt recess and is stopped by the stop wall. The driving member includes a slide slot in which the first guide member extends. The driving member includes a second guide member which is slidable in the first guiding slot and located opposite to one end face of the restriction plate. The driving member includes a first notch and a second notch defined in the top thereof. The driving member includes a third notch which is located opposite to the bottom of the deadbolt and located corresponding to the rail. The driving member includes a third guide member that is located opposite to one end of the deadbolt and one end face of the restriction plate, and located corresponding to the second guide guiding slot. The extension plate has an end thereof eccentrically and pivotably connected to the second guide member, and the extension plate includes an extension slot which extends toward two opposite extension directions which are located corresponding to the slide slot. The first guide member is slidable within the extension slot. The extension plate includes a concaved portion defined in the lateral side corresponding to the second guide member. The stop plate is pivotably connected to the third guide member. The stop plate includes an extension portion which includes a corner. The extension portion includes a rod which is slidable in the elongate groove. The top rotation member includes a pivotal member which is pivotably connected to a transmission plate. The transmission plate includes a guide slot to which the second guide member is mounted. When at a locked position, the deadbolt extends beyond the deadbolt recess, and the engaging member is engaged with the second notch. The first guide member is located at one inner end of the extension slot and the slide slot and opposite to the deadbolt. The top rotation member is located at the closed position, and the rod is moved to the top inner end of the elongate groove. When in an unlocked position, the deadbolt is located in the deadbolt recess, and the engaging member is engaged with the first notch. The first guide member is located at another inner end of the extension slot and the slide slot. The second guide member is located at the top inner end of the guide slot. The bottom of the transmission plate is located at the rail. The rod is located at the bottom inner end of the elongate groove. The corner is removed from the rail. When in the opened position, the second guide member is located at the bottom inner end of the guide slot. 
     Preferably, the restriction plate includes a restriction part. The transmission plate includes an engaging recess located corresponding to the restriction part. The engaging recess has a space that is larger than the restriction part, and engaging recess includes an inclined guide face which is located corresponding to the position where the restriction part compresses the resilient unit. When in the locked position, the top rotation member rotates from the closed position to the opened position, the transmission plate operates the restriction part to drive the restriction plate to compress the resilient unit by the guide face. The restriction plate moves to disengage the engaging member from the second notch. The guide slot pulls the second guide member to move the deadbolt to the unlocked position, and the latch bolt moves to the opened position. 
     Preferably, the second part includes a longitudinal slot and the restriction part is slidable in the longitudinal slot. 
     Preferably, the core recess has a first guide member, a restriction plate, a driving member, an extension plate and a stop plate received therein. The core recess defines a loop-like rail. The bottom of the restriction plate is located at the rail. The first guide member extends through a first guide hole defined in the restriction plate. A resilient unit is biased between the restriction plate and the bottom of the third positioning wall. The resilient unit is connected to the second positioning portion and the resilient direction of the resilient unit is correspondent to the first guide hole. The restriction plate includes at least one engaging member. The driving member includes a lug extending from one end thereof. The driving member and the lug are movable in the deadbolt recess. The driving member includes a slide slot in which the first guide member extends. The driving member includes a second guide member which is slidable in the first guiding slot and located opposite to one end face of the restriction plate. The driving member includes a first notch and a second notch defined in the top thereof. The driving member includes a third guide member that is located opposite to one end face of the restriction plate and the lug, and the third guide member is located corresponding to the second guiding slot. The extension plate has an end thereof eccentrically and pivotably connected to the second guide member, and the extension plate includes an extension slot which extends toward two opposite extension directions which are located corresponding to the slide slot. The first guide member slidable within the extension slot. The extension plate includes a concaved portion defined in the lateral side corresponding to the second guide member. A stop plate is pivotably connected to the third guide member. The stop plate includes an extension portion which includes a corner. The extension portion includes a rod which is slidable in the elongate groove. The top rotation member includes a pivotal member which is pivotably connected to a transmission plate. The transmission plate includes a guide slot to which the second guide member is mounted. The transmission plate includes a protrusion on one side thereof and located corresponding to the lug. When at a locked position, the engaging member is engaged with the second notch, and the protrusion contacts the bottom of the lug. The first guide member is located at one inner end of the extension slot and the slide slot and opposite to the deadbolt. The top rotation member is located at the closed position, and the rod is moved to the top inner end of the elongate groove. When in an unlocked position, the engaging member is engaged with the first notch. The first guide member is located at another inner end of the extension slot and the slide slot. The second guide member is located at the top inner end of the guide slot. The bottom of the transmission plate is located at the rail. The rod is located at the bottom inner end of the elongate groove. The corner is removed from the rail. When in the opened position, the second guide member is located at the bottom inner end of the guide slot. 
     Preferably, the core recess has a first guide member, a restriction plate, a driving member, an extension plate and a stop plate received therein. The core recess defines a loop-like rail. The bottom of the restriction plate is located at the rail. The first guide member extends through a first guide hole defined in the restriction plate. A resilient unit is biased between the restriction plate and the bottom of the third positioning wall. The resilient unit is connected to the second positioning portion and the resilient direction of the resilient unit is correspondent to the first guide hole. The restriction plate includes at least one engaging member. One end of the driving member is connected to the deadbolt which is movable in the deadbolt recess and is stopped by the stop wall. The driving member includes a slide slot in which the first guide member extends. The driving member includes a second guide member which is slidable in the first guiding slot and located opposite to one end face of the restriction plate. The driving member includes a first notch and a second notch defined in the top thereof. The driving member includes a third guide member that is located opposite to the bottom of the deadbolt and located corresponding to the second guiding slot. The third guide member is located opposite to one end face of the restriction plate. The extension plate has an end thereof eccentrically and pivotably connected to the second guide member, and the extension plate includes an extension slot which extends toward two opposite extension directions which are located corresponding to the slide slot. The first guide member is slidable within the extension slot. The extension plate includes a concaved portion defined in the lateral side corresponding to the second guide member. The stop plate is pivotably connected to the third guide member. The stop plate includes an extension portion which includes a corner. The extension portion includes a rod which is slidable in the elongate groove. When at a locked position, the deadbolt extends beyond the deadbolt recess, and the engaging member is engaged with the second notch. The first guide member is located at one inner end of the extension slot and the slide slot and opposite to the deadbolt. The rod is located at the top inner end of the elongate groove. The corner is disengaged from the rail. When in an unlocked position, the deadbolt is located in the deadbolt recess, the engaging member is engaged with the first notch. The first guide member is located at another inner end of the extension slot and the slide slot. 
     Preferably, the deadbolt includes a roller. 
     Preferably, the driving member has a first slot and a transverse slot. The driving member includes two channels defined in the distal end thereof. The driving member is connected to a first spring, a second spring and at least one positioning rod. The first spring is located corresponding to the first slot. The deadbolt includes a body, an insertion member, a roller and a slide. The body has a fixing slot to which the distal end of the driving member is connected. The body includes a receiving space located opposite to one end of the driving member. The body includes at least one fixing hole which communicates with the fixing slot. The insertion member is received in the fixing hole and includes two connection portions which are respectively inserted into the channels. Each connection portion has a through hole. An accommodating room is formed between the two connection portions so as to receive the roller therein. A pin extends through the roller, and two ends of the pin are fixed with the two through holes. The insertion member includes a guide rod protruding therefrom which is located corresponding to the transverse slot. The second spring biases the end face of the insertion member that is located opposite to the roller. 
     Preferably, the slide is restricted by the positioning rods. The slide includes a first guide pin and a guide hole. The first guide pin extends through the first slot. The slide includes an inclined surface so that the first spring biases the inclined surface so that the slide is movable along the first slot. The guide hole includes an extension slot and an inclined slot. The extension slot is located at the top end of the guide hole and located corresponding to the transverse slot. The inclined slot communicates with the extension slot and inclinedly extends toward a direction away from the roller. The slide has a transmission rod extending toward a direction away from the roller, and the transmission rod is located at the rai when the lock is at the unlocked position. When in a non-transmission position, the slide is biased by the first spring so that the first guide pin is located at the inner bottom end of the first slot. The insertion member is biased by the second spring and the roller protrudes beyond the receiving space. When in a transmission position, the transmission rod is pushed, and the slide and the inclined slot move toward the top of the first slot, the guide rod contacts the inclined slot to drive the slide and the roller to move along the transverse slot and toward a direction opposite to the roller. The roller does not protrude beyond the receiving space. 
     Preferably, the driving member has a second slot which is located corresponding to the first slot. The slide has a second guide pin which is movable in the second slot. 
     Preferably, the slide includes a first receiving notch defined in the bottom thereof, and an extension portion extends from the top of the slide. A second receiving notch is formed at the lower end of the extension portion. The positioning rods are respectively engaged with the first receiving notch, the lateral side of the extension portion that faces the roller, and the second receiving notch at the non-transmission position. 
     Preferably, the body includes at least one guide way defined in the inside of the fixing slot and located at the path that the roller moves between the non-transmission position and the transmission position. The insertion member includes ridges which slide on the guide ways. 
     The advantages of the present invention are that, the lock includes the latch bolt recess, the restriction recess, the deadbolt recess, the installation recess, the first positioning portion, the second positioning portion, the installation hole, the first, second, third and fourth positioning walls, the first slot, the first and second fixing recesses, the core recess, the stop wall, the first and second guiding slots, the elongate groove, the core hole. By the feature of replaceable modules, the lock can be selectively equipped with the latch bolt, the restriction bolt, the restriction member, the deadbolt, the top and bottom rotation members, the first, second and third resilient members, the resilient unit, and the core so that the lock may have different functions and combinations. For example, the lock can be locked by the latch bolt, unlocked by the handle, prevented from being unlocked by shifting the latch bolt from the gap between the door and the door frame, locked by the deadbolt, and the lock may have emergency unlocking feature, the feature of long-travel deadbolt, and use the roller deadbolt. The lock of the present invention can be used on the locks of gate doors, plant doors, storage rooms, emergency escape doors, rooms, and bathrooms. The users do not need to replace the whole locks, and simply add or remove the necessary components. For the manufacturers, the cost for inventory, research and manufacturing are reduced. 
     The present invention will become more obvious from the following description when taken in connection with the accompanying drawings which show, for purposes of illustration only, a preferred embodiment in accordance with the present invention. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  is a perspective view to show the first embodiment of the lock of the present invention; 
         FIG. 2  is an exploded view of the first embodiment of the lock of the present invention; 
         FIG. 3  is another exploded view of the first embodiment of the lock of the present invention; 
         FIG. 4  is a right side view, the second part of the case being removed, showing the first and second guiding slots and the longitudinal slot; 
         FIG. 5  is a left side view with the first part of the case being removed; 
         FIG. 6  shows that the handle of the top rotation member of the disclosure in  FIG. 4  is rotated and in an opened position; 
         FIG. 7  shows that the handle of the bottom rotation member of the disclosure in  FIG. 5  is rotated and in an opened position; 
         FIG. 8  shows the stop position of the disclosure in  FIG. 4 ; 
         FIG. 9  shows that the cam in  FIG. 4  is rotated to lift the restriction plate; 
         FIG. 10  shows that the lock in  FIG. 9  is operated to the middle position; 
         FIG. 11  shows that the lock in  FIG. 9  is operated to the locked position; 
         FIG. 12  shows that the cam in  FIG. 11  is rotated to lift the restriction plate; 
         FIG. 13  shows that the lock in  FIG. 12  is operated to the middle position; 
         FIG. 14  shows that the lock in  FIG. 13  is transmitted to the cam to push the corner of stop plate; 
         FIG. 15  shows that the lock in  FIG. 4  is transmitted to the cam to push the transmission plate to the opened position; 
         FIG. 16  shows the lock block of the lock of the present invention; 
         FIG. 17  is a right side view of the second embodiment of the lock which is located at the first position and shows the bore, with the second part of the case being removed; 
         FIG. 18  shows the second position of the disclosure in  FIG. 17 ; 
         FIG. 19  is a right side view with the second part of the case being removed of the third embodiment of the lock of the present invention, and shows the longitudinal slot, wherein the lock is in the locked position; 
         FIG. 20  shows that the transmission plate in  FIG. 19  cooperates with the guide face to let the restriction part drive the restriction plate so that the restriction plate moves to the position where the engaging member is removed from the second notch; 
         FIG. 21  shows the unlocked position and the opened position of the disclosure in  FIG. 20 ; 
         FIG. 22  shows another engaging member of the present invention; 
         FIG. 23  is a right side view of the fourth embodiment of the present invention wherein the second part of the case is removed, and the lock is at the closed position; 
         FIG. 24  shows that the lock in  FIG. 23  is in the locked position; 
         FIG. 25  shows the roller-type deadbolt in the fifth embodiment of the lock of the present invention; 
         FIG. 26  is an exploded view of the disclosure of  FIG. 25 ; 
         FIG. 27  shows that the body in  FIG. 25  is removed; 
         FIG. 28  shows the right side view of the fifth embodiment of the present invention, wherein the second part of the case is removed, and the lock is at the unlocked position and the non-transmission position; 
         FIG. 29  is a right side view of the locked position of the lock of  FIG. 28 ; 
         FIG. 30  is a right side view to show that the engaging member, the deadbolt and the core are located at the transmission position in the fifth embodiment of the present invention; 
         FIG. 31  is a right side view to show that the engaging member, the deadbolt and the core are located at the non-transmission position in the fifth embodiment of the present invention; 
         FIG. 32  is a top view of the disclosure of the fifth embodiment of the present invention; 
         FIG. 33  is a right side view of the sixth embodiment of the present invention, wherein the second part of the case is removed; 
         FIG. 34  is a right side view of the seventh embodiment of the present invention, wherein the second part of the case is removed; 
         FIG. 35  is a right side view of the eighth embodiment of the present invention, wherein the second part of the case is removed, and 
         FIG. 36  is a right side view of the ninth embodiment of the present invention, wherein the second part of the case is removed. 
     
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring to  FIGS. 1 to 5 , the present invention provides a multiple functions and module replaceable lock, and the lock comprises a case  1  which includes a first part  11  and a second part  12  which is connected to the first part  11  to form the case  1 . The case  1  is installed to a door (not shown). 
     The case  1  includes a latch bolt recess  13 , a restriction recess  14  and a deadbolt recess  15  defined in a lateral side from top to bottom of the case  1 . 
     The distal end of the X-axis of the latch bolt recess  13  communicates with an installation recess  16 . The installation recess  16  includes a first positioning portion  161  located corresponding to the distal end of the latch bolt recess  13 . The case  1  includes an installation hole  162  defined in the Z-axis thereof and located within the installation recess  16 . The case  1  includes a first positioning wall  131  formed at the bottom of the latch bolt recess  13 . The first positioning wall  131  connects with the second positioning wall  132 , and forms a first slot  133 . The bottom of the latch bolt recess  13  communicates with the restriction recess  14  via the first slot  133 . The distal end of the restriction recess  14  communicates with the installation recess  16 . The first slot  133  further includes a first fixing recess  134  and a second fixing recess  135  defined in the second positioning wall  132 . 
     The case  1  includes a core recess  17  defined in the distal end of the X-axis of the deadbolt recess  15 , and the core recess  17  communicates with the installation recess  16 . The deadbolt recess  15  includes a first guiding slot  151  defined in a wall thereof. The core recess  17  includes a second guiding slot  171  defined in a wall thereof. The core recess  17  includes a third positioning wall  172  on the top thereof, and the third positioning wall  172  includes a first positioning portion  161  on the top thereof. The third positioning wall  172  includes a second positioning portion  173  formed on the bottom thereof. The core recess  17  includes a fourth positioning wall  174  which is located corresponding one end of the third positioning wall  172 . The core recess  17  includes an elongate groove  175  defined in one end of the fourth positioning wall  174 . A core hole  176  is defined through the inner bottom of the core recess  17  and located along the Z-axis of the core recess  17 . 
     For the arrangement of the first and second parts  11 ,  12 , in one embodiment, a stop wall  177  is located between the deadbolt recess  15  and the core recess  17 . The first and second fixing recesses  134 ,  135 , the stop wall  177 , the elongate groove  175  and the fourth positioning wall  174  are located in the first part  11 . The first and second guiding slots  151 ,  171  are located in the second part  12 . The rest of the components can be installed to the first and second parts  11 ,  12 , but not limited thereto. 
     The present invention may use different components to be installed to the lock so as to obtain different functions. In the first embodiment, the case  1  has more functions and can be used to the gate door. 
     Function 1: The Latch Bolt  2  Locking the Lock. 
     The latch bolt recess  13  includes a latch bolt  2  which includes a head  21 , a passive member  22  and a spring  23 . The passive member  22  is fixed to the head  21 , and the spring  23  is biased between the inside of the latch bolt recess  13  and the passive member  22 . When in a closed position, the spring  23  extends to protrude the head  21  out from the case  1 . When in an opened position, the spring  23  is compressed so that the head  21  does not protrude out from the case  1 . The installation recess  16  includes a top rotation member  24  and a bottom rotation member  25 . The top rotation member  24  and the bottom rotation member  25  are overlapped with each other and do not drive each other. The top rotation member  24  includes a first transmission member  241 , a first hole  242  located corresponding to the installation hole  162  and a first contact portion  243 . The bottom rotation member  25  includes a second transmission member  251 , a second hole  252  which is located corresponding to the installation hole  162 , and a second contact portion  253 . The first positioning portion  161  includes a first resilient member  26  which biases the first contact portion  243 . In one embodiment, the first resilient member  26  is a torsion spring, and the torsion spring includes two legs which respectively contact a wall of the installation recess  16  and first and second contact portions  243 ,  253 . The torsion spring provides pivotal force. 
     In order to control the rotation of the top and bottom rotation members  24 ,  25 , a handle  27  is installed to a first hole  242  and a second hole  252 , so that the top and bottom rotation members  24 ,  25  do not drive mutually. The two respective handles  27  are installed individually and do not drive mutually. 
     Regarding to the transmission and positioning of the latch bolt  2  and the passive member  22 , the latch bolt recess  13  includes a positioning recess  136 , a connection recess  137  and the installation recess  16  defined in communication with each other along the X-axis of the latch bolt recess  13 . A fifth positioning wall  138  is formed on one end of the X-axis of the latch bolt recess  13 . The positioning recess  136  is defined between the fifth positioning wall  138  and the second positioning wall  132 . The case  1  includes a connection groove  1381  defined in one end of the fifth positioning wall  138 . A first connector  1382  protrudes from the other end of the fifth positioning wall  138 . The second positioning wall  132  includes a second connector  1321  which is located corresponding to the first connector  1382 . The connection recess  137  is defined between the first connector  1382  and the second connector  1321 . The passive member  22  is engaged with the connection groove  1381  and includes a bent portion  221  extending from each of two ends thereof. Each bent portion  221  includes a through hole  222 . The latch bolt  2  includes a shank  223  which extends through the through holes  222  and is connected to the head  21 . The shank  223  includes a positioning ring  224  mounted thereto which is located between the bent portions  221 . The spring  23  is located between the positioning ring  224  and the bent  221  of the head  21  so that the positioning ring  224  is located in the positioning recess  136  and biased by the spring  23  and contacts the first and second connectors  1382 ,  1321 . 
     The first transmission member  241  is installed as disclosed in  FIG. 6  which is a view from inside of the door, when the users rotate the handle  27  and rotate the top rotation member  24 , the first transmission member  241  compresses the first resilient member  26  and contacts the passive member  22 , so that the spring  23  is compressed and the head  21  does not protrude out from the case  1 . As shown in  FIG. 7  which is a view from outside of the door, the second transmission member  251  is installed as disclosed in  FIG. 7 . When the users rotate the other handle  27  and rotate the bottom rotation member  25 , the second transmission member  251  compresses the first resilient member  26  and contacts the passive member  22 , so that the spring  23  is compressed and the head  21  does not protrude out from the case  1 . As the head  21  does not protrude out from the case  1 , the lock is in the opened position and the door can be opened. When in the closed position as shown in  FIG. 4 , the first resilient member  26  bounces back and contacts the first contact portion  243  and the second contact portion  253 . The first transmission member  241  and the second transmission plate  251  do not contact the passive member  22 . The head  21  of the latch bolt  2  protrudes out from the case  1  and is inserted into the door frame. The door cannot be opened by rotating the handles  27  from inside or from outside. 
     Function 2: preventing the latch bolt  2  from being shifted to open the door. 
     In order to prevent the latch bolt  2  from being shifted to the opened position to open the door by rotating the handle  27  from outside, or to prevent the latch bolt  2  from being directly shifted to the opened position to open the door from outside, the case  1  has a first restriction member  141  in the restriction recess  14 . The restriction recess  14  can be installed to the first part  11  but not limited thereto. The restriction recess  14  includes a restriction bolt  3  which has a restriction member  31  and a slide  32 . The slide  32  includes a first shifting recess  321  located corresponding to the first restriction member  141 . A transmission block  322  is located on the Z-axis of the slide  32 . The slide  32  includes a stop face  323  formed on an end face thereof which is located corresponding to the transmission block  322 . The second positioning wall  132  includes a second restriction member  1322  which is pivotably connected to a stop plate  33  which has a pivotal portion  331 , a transmission portion  332 , a stop portion  333  and a guiding portion  334 . The pivotal portion  331  is located between the transmission portion  332  and the stop portion  333 , and is pivotably connected to the second restriction member  1322 . The transmission portion  332  is located corresponding to the second positioning wall  132 , and has a contact portion  3321  protruding toward the first fixing recess  134 . The top rotation member  24  includes a push block  244  that is able to be rotated from the closed position to the opened position to push the transmission portion  332 . And the push block  244  pushes the stop plate  33  to pivot from a stop position to a non-stop position. The stop portion  333  is located corresponding to the first slot  133  and the fifth positioning wall  138 . The guiding portion  334  is located corresponding to the slide  32 . The guiding portion  334  includes an inclined second shifting recess  335  and an inclined third shifting recess  336 . The transmission block  322  is engaged with the second shifting recess  335 , and the first restriction member  141  is engaged with the third shifting recess  336 . The first fixing recess  134  includes a second resilient member  34  whose one end contacts the contact portion  3321 . The second fixing recess  135  includes a third resilient member  35  whose one end contacts the stop face  323 . In one embodiment, the second and third resilient members  34 ,  35  are both torsion springs to provide pivotal forces. 
     When in the non-stop position as shown in  FIGS. 4 and 5 , the third resilient member  35  pushes the restriction member  31  to protrude out from the case  1  via the stop face  323 , and makes the transmission block  322  and the first restriction member  141  respectively contact the second and third shifting recesses  335 ,  336  to let the stop portion  333  not to protrude from the latch bolt recess  13 . Alternatively, as shown in  FIG. 6 , the third resilient member  35  is compressed to make the restriction member  31  not to protrude out from the case  1 , and makes the transmission block  322  and the first restriction member  141  are not being pushed. The transmission portion  332  is pushed by the push block  244  of the top rotation member  24  to make the stop portion  333  not to protrude from the latch bolt recess  13 . When in the stop position as shown in  FIG. 8 , the third resilient member  35  is compressed and the restriction member  31  does not protrude out from the case  1 . That is to say, the door frame does not have a hole for the restriction bolt  3 , and the door frame has a hole that is located corresponding to the latch bolt  2 , so that when the door is closed to the door frame, the latch bolt  2  is located at the closed position, and the restriction member  31  does not protrude out from the case  1 . The transmission block  322  and the first restriction member  141  are not pushed, and the stop plate  33  is pushed by the recovery force from the second resilient member  34  to pivot the stop plate  33  by the contact portion  3321 , so that the stop portion  333  protrudes into the latch bolt recess  13  when in the closed position. The latch bolt  2  cannot be retracted into the latch bolt recess  13  by neither a force applied from outside of the case  1 , not by rotating the handle  27  to rotate the bottom rotation member  25  from outside of the door. The only way is to rotate the handle  27  from the inside of the door to let the push block  244  of the top rotation member  24  push the transmission portion  332  to remove the stop portion  333  from the latch bolt recess  13  to shift the latch bolt  2  from the closed position to the opened position. 
     Function 3: the locking feature of the deadbolt  8 . 
     In order to enhance the locking feature of the deadbolt  8 , the core recess  17  includes a first guide member  178 , a restriction plate  4 , an engaging member  5 , an extension plate  6  and a stop plate  7 . The core recess  17  includes a core  18  via the core hole  176 , the core  18  includes a cam  181  which is rotatable. The range of the rotation of the cam  181  defines a loop-like rail “R”. The core  18  includes a keyhole in each of two ends thereof. A knob may be connected to the core  18  at the inside of the door to directly rotate the cam  181 , and the core  18  has a keyhole at the outside of the door for accepting a key inserted therein. 
     The bottom of the restriction plate  4  is located at the rail “R”. The first guide member  178  extends through a first guide hole  41  defined in the restriction plate  4  so as to balance and restrict the moveable range of the restriction plate  4 . A resilient unit  42  is biased between the restriction plate  4  and the bottom of the third positioning wall  172 . The resilient unit  42  is connected to the second positioning portion  173  and the resilient direction of the resilient unit  42  is correspondent to the first guide hole  41 . The restriction plate  4  includes at least one engaging member  43 . 
     One end of the driving member  5  is connected to the deadbolt  8  which is movable in the deadbolt recess  15  and is stopped by the stop wall  177 . The driving member  5  includes a slide slot  51  in which the first guide member  178  extends. The driving member  5  includes a second guide member  52  which is slidable in the first guiding slot  151  and located opposite to one end face of the restriction plate  4 . The driving member  5  includes a first notch  53  and a second notch  54  defined in the top thereof, and the first and second notches  53 ,  54  are located corresponding to the engaging member  43 . The driving member  5  includes a third notch  55  which is located corresponding to the bottom of the deadbolt  8 . The driving member  5  includes a third guide member  56  that is located opposite to one end of the deadbolt  8  and one end face of the restriction plate  4 , and located corresponding to the third guide member  56  is slidable in the second guiding slot  171  so as to stabilize the transmission direction of the driving member  5 . 
     The extension plate  6  has an end thereof eccentrically and pivotably connected to the second guide member  52 , and the extension plate  6  includes an extension slot  61  which extends toward two opposite extension directions which are located corresponding to the slide slot  51 . An intermediate point  63  is formed at the turning position where the two opposite extension directions meet. The first guide member  178  is slidable within the extension slot  61 . The extension plate  6  includes a concaved portion  62  defined in the lateral side corresponding to the second guide member  52 . 
     A stop plate  7  is pivotably connected to the third guide member  56 , and the stop plate  7  includes an extension portion  71  which includes a corner  72 . The extension portion  71  includes a rod  73  which is slidable in the elongate groove  175  defined in an end face of the case  1 . 
     The top rotation member  24  includes a pivotal member  245  which is pivotably connected to a transmission plate  28 . The transmission plate  28  includes a guide slot  281  to which the second guide member  52  is mounted. 
     When in the locked position, as shown in  FIGS. 4 and 9 , the cam  181  of the core  18  first pushes the restriction plate  4  upward to compress the resilient unit  42 , and the cam  181  contacts the left wall of the third notch  55  of the driving member  5  so that the driving member  5  gradually moves toward left. In the meanwhile, the stop plate  7  is pulled toward the left by the third guide member  56 , and the rod  73  is engaged with the elongate slot  175 , so that the stop plate  7  is pivoted. The first guide member  178  is located in one of the extension directions of the extension slot  61 . As shown in  FIG. 10 , the first guide member  178  is located at the middle position. Because the extension slot  61  includes two extension directions so that there will be a mediate point  63  at the position where the two extension directions meet. When at the middle position, the deadbolt  8  partially protrudes into the deadbolt recess  15  as mentioned before, and the first guide member  178  is located at the mediate position  63 , and the extension plate  6  is located at the rail “R”. When the cam  181  continuously rotates counterclockwise, the cam  181  pivots the extension plate  6  and drives the driving member  5  toward the left. The first guide member  178  moves toward the other direction of the extension slot  61  so that the driving member  5  moves a long distance by one single rotation of the cam  181 , and the deadbolt  8  protrudes a long distance as well. The concaved portion  62  is formed to allow the extension plate  6  to be pivoted by the cam  181 . In one embodiment, the concaved portion  62  can be omitted and the function can also be proceeded by a specific shape of the extension plate  6 . As shown in  FIG. 11 , after the extension plate  6  is pivoted, the lock is at its locked position, and the deadbolt  8  protrudes into the deadbolt recess  15 . The cam  181  is disengaged from the restriction plate  4  and the restriction plate  4  is moved to its initial position by recovery force. The engaging member  43  is engaged with the second notch  54  to prevent the deadbolt  8  from being retracted into the deadbolt recess  15  by a force from outside of the case  1 . The first guide member  178  is located at one inner end of the extension slot  61  and the slide slot  51  and opposite to the deadbolt  8 . The transmission plate  28  is not rotatable by the restriction of the second guide member  52 . When rotating the top rotation member  24 , because the transmission plate  28  is stopped by the second guide member  52 , the top rotation member  24  is located at the closed position, and the rod  73  is moved to the top inner end of the elongate groove  175 . 
     During the process to the unlocked position, as shown in  FIGS. 12, 13 and 9  in sequence, the cam  181  rotates clockwise to lift the restriction plate  4  to disengage the engaging member  43  from the second notch  54 . The can  181  contacts the right wall of the third notch  55  so that the driving member  5  gradually moves to the left. As shown in  FIG. 14 , in order to allow the deadbolt  8  to be completely inserted into the deadbolt recess  15 , by the corner  72  of the stop plate  7 , the cam  181  contacts the corner  72  when returning to the unlocked position, so that the stop plate  7  drives the driving member  5  to let the deadbolt  8  return to the unlocked position as shown in  FIG. 4 . The corner  72  is then removed from the rail “R”, and the engaging member  43  is engaged with the first notch  53  because the cam  181  is removed from the restriction plate  4 . The first guide member  178  is located at the other inner end of the extension slot  61  and the slide slot  51 . The second guide member  52  is located at the top inner end of the guide slot  281 . As mentioned before, the latch bolt  2  and the top rotation member  24  are located at the opened position. By the function 1 mentioned before, the latch bolt  2  moves to the open position by rotating the top rotation member  24 , and the second guide member  52  is located at the bottom inner end of the guide slot  281 . As shown in  FIG. 15 , by the rotation of the cam  181  in the unlocked position, the cam  181  pushes the transmission plate  28  upward so as to operate the top rotation member. 
     In one embodiment, the functions 1, 2, and 3 are combined. The lock includes the latch bolt  2 , the deadbolt  8  and the restriction bolt  3 . The case  1  includes a strike plate  19  which includes a first hole located corresponding to the latch bolt recess  13 , a second hole located corresponding to the restriction recess  14 , and a third hole located corresponding to the deadbolt recess  15 . The latch bolt  2  can be inserted into the first hole, the restriction bolt  3  can be inserted into the second hole, and the deadbolt  8  can be inserted into the third hole. The first, second and third holes of the strike plate  19  may vary according to the installation of the latch bolt  2 , the restriction bolt  3  and the deadbolt  8  to the lock. 
     Function 4: long travel distance of the deadbolt  8 . 
     It is noted that the functions 1, 2 and 3 are described before, wherein the extension plate  6  is mainly used to allow the deadbolt  8  to extend at least 22 mm by one-time rotation of the core  18  to meet the related regulations and improve the shortcoming of the conventional locks which require multiple rotation of the core. The function 4 includes all of the functions 1, 2 and 3. In one embodiment, the case  1  may not be used, other type of case may also be used. 
     In one embodiment, the following structure and components are required to obtain the function. The present invention provides another embodiment of the lock wherein the deadbolt has a long travel distance by one-time operation. 
     The lock comprises a case  1  having a core recess  17  and a deadbolt recess  15 . An elongate groove  175  is defined in one end face of the case  1 . The core recess  17  including a first guide member  178  and defines a loop-shaped rail “R”. 
     A driving member  5  has an end fixed to a deadbolt  8  which is movably in the deadbolt recess  15 . The driving member  5  has a slide slot  51  in which the first guide member  178  is slidably received therein. The driving member  5  has a second guide member  52  on an end face thereof. A third notch  55  is defined in the bottom of the driving member  5 . For the deadbolt  8 , the case  1  includes a stop wall  177  located between the core recess  17  and the deadbolt recess  15 , the deadbolt  8  is movable in the deadbolt recess  15  and stopped by the stop wall  177 . The third notch  55  is located at the rail “R”. 
     An extension plate  6  has an end thereof eccentrically and pivotably connected to the second guide member  52 . The extension plate  6  includes an extension slot  61  which extends toward two opposite extension directions which are located corresponding to the slide slot  51 . An intermediate point  63  is formed at a turning position where the two opposite extension directions meet. The first guide member  178  is slidable within the extension slot  61 . In order to let the cam  181  pushes the extension plate  6  at the middle position, the extension plate  6  includes a concaved portion  62  defined in the lateral side corresponding to the second guide member  52 . The concaved portion  62  and a sidewall of the concaved portion  62  are located at the rail “R” when at the middle position. 
     In order to help the deadbolt  8  to be moved to the unlocked position, in one embodiment, the driving member  5  includes a third guide member  56  on one end face. A stop plate  7  is pivotably connected to the third guide member  56 , and the stop plate  7  includes an extension portion  71  which includes a corner  72 . The extension portion  71  includes a rod  73  which is slidable in an elongate groove  175  defined in an end face of the case  1 . 
     The lock includes the function 3 that the core  18  drives the deadbolt  8 . As shown in  FIGS. 4 and 9-14 , when in the unlocked position, the deadbolt  8  is located in the deadbolt recess  15 , and the first guide member  178  is located in the extension slot  61  and one end of the slide slot  51 . The rod  73  is located at the bottom inner end of the elongate groove  175 . The corner  72  is removed from the rail “R” when at the unlocked position. When at the middle position, the deadbolt  8  partially protrudes into the deadbolt recess  15 , and the first guide member  178  is located at the mediate point  63 . The extension plate  6  is located at the rail “R” and can be pushed by the cam  181  to increase the travel distance of the deadbolt  8 . When at the locked position, the deadbolt  8  partially protrudes into the deadbolt recess  15 , and the extension plate  6  is pivoted by the first guide member  178  so that the first guide member  178  is located in the extension slot  61  and the other end of the slide slot  51  that is located opposite to the deadbolt  8 . The rod  73  is located at the inner top end of the elongate slot  175 . 
     In order to prevent the deadbolt  8  from being retracted into the deadbolt recess  15  by a force from outside of the case  1 , the restriction plate  4  as mentioned before can be installed. The operation and function will not be repeated here. 
     If the lock with the long travel distance of the deadbolt can be unlocked from operation of the handle  27  located the inside of the case  1 , the case  1  includes a latch bolt recess  13  and an installation recess  16 . The case  1  includes an installation hole  162  defined in the Z-axis of the installation recess  16 . The latch bolt recess  13  includes a latch bolt  2  which includes a head  21 , a passive member  22  and a spring  23 . The passive member  22  is fixed to the head  21 . The spring  23  is biased between the inside of the latch bolt recess  13  and the passive member  22 . When in a closed position, the spring  23  extends to protrude the head  21  out from the case  1 . When in an opened position, the spring  23  is compressed so that the head  21  does not protrude out from the case  1 . The installation recess  16  includes a top rotation member  24  which includes a first transmission member  241 , a first hole  242  located corresponding to the installation hole  162 , and a first contact portion  243 . The installation recess  16  includes a first positioning portion  161  located corresponding to the distal end of the latch bolt recess  13 . The first positioning portion  161  includes a first resilient member  26  which biases the first contact portion  243 . When the first transmission member  241  is assigned to the top rotation member  24  and is rotated by the top rotation member  24 , the first contact portion  243  compresses the first resilient member  26  and pushes the passive member  22  so that the spring  23  is compressed and the head  21  does not protrude out from the case  1 . 
     In another embodiment, if the lock can be unlocked by operation of the handle  27  at the outside of the case  1 , the installation recess  16  includes a bottom rotation member  25 . The top rotation member  24  and the bottom rotation member  25  are overlapped with each other and do not drive mutually. The bottom rotation member  25  includes a second transmission member  251 , a second hole  252  which is located corresponding to the installation hole  162 , and a second contact portion  253 . Preferably, the first resilient member  26  is a torsion spring. The torsion spring includes two legs which respectively contact the wall of the installation recess  16  and first and second contact portions  243 ,  253 . When the first transmission member  241  and the second transmission member  251  are assigned to the top rotation member  24  or the bottom rotation member  25 , and are rotated, the first contact portion  243  or the second contact portion  253  compresses the first resilient member  26  and pushes the passive member  22  so that the spring  23  is compressed and the head  21  does not protrude out from the case  1 . 
     In yet another embodiment, for the latch bolt  2 , the latch bolt recess  13  includes a positioning recess  136 , a connection recess  137  and the installation recess  16  defined in communication with each other along the X-axis of the latch bolt recess  13 . A fifth positioning wall  138  is formed on one end of the X-axis of the latch bolt recess  13 . The positioning recess  136  is defined between the fifth positioning wall  138  and the second positioning wall  132 . The case  1  includes a connection groove  1381  defined in one end of the fifth positioning wall  138 . A first connector  1382  protrudes from the other end of the fifth positioning wall  138 . The second positioning wall  132  includes a second connector  1321  which is located corresponding to the first connector  1382 . The connection recess  137  is defined between the first connector  1382  and the second connector  1321 . The passive member  22  is engaged with the connection groove  1381  and includes a bent portion  221  extending from each of two ends thereof. Each bent portion  221  includes a through hole  222 . The latch bolt  2  includes a shank  223  which extends through the through holes  222  and is connected to the head  21 . The shank  223  includes a positioning ring  224  mounted thereto which is located between the bent portions  221 . The spring  23  is located between the positioning ring  224  and the bent  221  of the head  21  so that the positioning ring  224  is located in the positioning recess  136  and biased by the spring  23  and contacts the first and second connectors  1382 ,  1321 . 
     Function 5: preventing the bottom rotation member  25  from being rotated by operation of the handle  27  at outside of the case  1 . 
     As shown in  FIGS. 16 to 18 , a second embodiment of the lock is disclosed, and the differences between the first and second embodiments are that the restriction recess  14  includes a lock block  36 , and does not have the restriction bolt  3  and the stop plate  33  as mentioned in function 2. Therefore, the function 5 and the function 2 cannot be existed simultaneously, but can be existed with the functions 1, 3 and 4. The second embodiment is used to the door of bathrooms, kitchens and hallways. The core  18  may have a keyhole in each of two ends thereof, alternatively, a knob can be connected to the core located at the inside of the door so as to directly rotate the cam  181 . A key is used to be inserted into the keyhole from the outside of the door, depending on practical needs. The case  1  includes a bore  142  which is located corresponding to the restriction recess  14 , and the bore  142  is defined in the second part  12  and includes the lock block  36  slidably received therein. The lock block  36  includes a control bar  361 , a passage  362 , an engaging portion  363  and an inclined portion  364 . The control bar  361  protrudes beyond the bore  142 . The first restriction member  142  extends through the passage  362 . The bottom rotation member  25  includes an engaging notch  254  which is located corresponding to the engaging portion  363 . The top rotation member  24  includes a push portion  246  which is located corresponding to the inclined portion  364 . As shown in  FIG. 17 , when in the closed position, the lock block  36  is located at a first position where the lock block  36  slides to engage the engaging portion  363  with the engaging notch  254 . Therefore, the operation of the handle  27  on the outside of the door cannot rotate the bottom rotation member  25  to position the latch bolt  2  at the unlocked position. As shown in  FIG. 18 , the top rotation member  24  is rotated by operating the handle  27  on the inside of the door. Alternatively, the top rotation member  24  can also be rotated by using the core  18  at the inside or outside to rotate the core  181  to rotate the top rotation member  24  by the transmission plate  28 . Therefore, the top rotation member  24  is rotated from the closed position to the opened position, the push portion  246  contacts the inclined portion  364  to drive the lock block  36  to a second position such that the engaging portion  363  is disengaged from the engaging notch  254 . The lock block  36  releases the bottom rotation member  25 , and the latch bolt  2  is located at the opened position. 
     In this embodiment, because there is no restriction bolt  3 , so that the case  1  includes the first hole located corresponding to the latch bolt recess  13 , and the strike plate  19  having the third hole located corresponding to the deadbolt recess  15 . 
     Function 6: unlocking feature in emergency. 
     As shown in  FIG. 19  which shows the third embodiment of the present invention, wherein the differences between the first and third embodiments are that the restriction plate  4  includes a restriction part  44  that is installed to the existed restriction plate  4 . The second part  12  has a longitudinal slot  163  in which the restriction part  44  slides. The transmission plate  28  includes an engaging recess  282  located corresponding to the restriction part  44 . The restriction part  44  has a sufficient length so that the engaging recess  282  can mount to the restriction part  44 . The engaging recess  282  has a space that is larger than the restriction part  44 , and engaging recess  282  includes an inclined guide face  283  which is located corresponding to the position where the restriction part  44  compresses the resilient unit  42 . In other words, the deadbolt  8  is located at the locked position, and the latch bolt  2  is located at the closed position. When the core  18  does not rotate the cam  181 , the users can operate the handle  27  on the inside of the door to rotate the top rotation member  24  to rotate the closed position to the opened position. As shown in  FIG. 20 , the transmission plate  28  operates the restriction part  44  to drive the restriction plate  4  to compress the resilient unit  42  by the guide face  283 . The restriction plate  4  moves to disengage the engaging member  43  from the second notch  54 . The guide slot  281  pulls the second guide member  52  to move the deadbolt  8  to the unlocked position, and the latch bolt  2  moves to the opened position as shown in  FIG. 21 . The embodiment can be used on emergency doors so that the latch bolt  2  and the deadbolt  8  can be unlocked and opened by operating the handle on the inside of the door without using the key. 
     Besides, if the cam  181  is rotated by rotating the core  18 , the lock can also be set to the unlocked position and the opened position. 
     It is noted that the function 6 can be combined with the functions 1 to 3, however, in one embodiment, the third embodiment can also be used with different type of case instead of the case  1  as disclosed. 
     Function 7: Locking the Handle  27  at the Locked Position. 
     As shown in  FIGS. 22 to 24 , the fourth embodiment is disclosed, and the differences between the first and fourth embodiments are that the driving member  5  is not connected with the deadbolt  8 , so that the embodiment cannot perform function 3. As shown in  FIGS. 22, 23 , the driving member  5  has a lug  57 , and the transmission plate  28  has a protrusion  284  that is located corresponding to the lug  57 . It is noted that in this embodiment, the handle  27  can only be installed to the top rotation member  24 , and the installation hole  162  of the bottom rotation member  25  is closed. Alternatively, each of the top and bottom rotation members  24 ,  25  can be connected with a handle  27 , and the two handles  27  have to be rotated simultaneously. As shown in  FIG. 24 , when in the locked position, the engaging member  43  is engaged with the second notch  54 , and the protrusion  284  contacts the bottom of the lug  57  so that when trying to rotate the top rotation member  24 , the top rotation member  24  is restricted by the protrusion  284  and the lug  57 , and cannot be rotated. Even if there is a handle  27  installed to the outside of the door, because the two handles  27  are co-rotated, so that the latch bolt  2  cannot move to the opened position because the top rotation member  24  cannot be rotated. The only way is to rotate the cam  181  by the core  18  by moving the restriction plate  4  to disengage the engaging member  43  from the second notch  54 , and to move the driving member  5  to the unlocked position to separate the protrusion  284  from the lug  57 . Therefore, the latch bolt  2  can move to the opened position. 
     Function 8: deadbolt  8  having a roller  83 . 
     As shown in  FIGS. 25 to 29 , the fifth embodiment is disclosed, wherein the differences between the embodiments 1 and 5 are that the fifth embodiment can only perform functions 3 and 4, and cannot perform function 1 and 2. The deadbolt  8  includes a roller  83  and can be used for doors of storage rooms or plants. The deadbolt  8  including the roller  83  does not necessarily used in the case  1  as disclosed, different types of cases can also be used. This embodiment includes only the functions 3 and 4. The driving member  5  has a first slot  58  and a transverse slot  581 . The driving member  5  includes two channels  582  defined in a distal end thereof. The driving member  5  is connected to a first spring  583 , a second spring  584  and at least one positioning rod  585 . The first spring  583  is located corresponding to the first slot  58 . 
     The deadbolt  8  further includes a body  81 , an insertion member  82 , the roller  83  and a slide  84 , wherein the body  81  has a fixing slot  811  to which a distal end of the driving member  5  is connected. The body  81  includes a receiving space  812  located corresponding opposite to one end of the driving member  5 . The body  81  includes at least one fixing hole  813  which communicates with the fixing slot  811 . 
     The insertion member  82  is received in the fixing hole  813  and includes two connection portions  821  which are respectively inserted into the channels  582 . Each connection portion  821  has a through hole  822 . An accommodating room  823  is formed between the two connection portions  821  so as to receive the roller  83  therein. A pin  831  extends through the roller  83 , and two ends of the pin  831  are fixed with the two through holes  822 . The insertion member  82  includes a guide rod  824  protruding therefrom which is located corresponding to the transverse slot  581 . The second spring  584  biases the end face of the insertion member  82  that is located opposite to the roller  83 . In order to allow the insertion member  82  to slide in the fixing slot  811  stably, the body  81  includes at least one guide way  814  defined in an inside of the fixing slot  811  and located at the path that the roller  83  moves between non-transmission position and transmission position. The insertion member  82  includes ridges  825  which slide on the guide ways  814 . 
     The slide  84  is restricted by the positioning rods  585 . In one embodiment, the slide  84  includes a first receiving notch  841  defined in the bottom thereof, and an extension portion  842  extending from the top thereof. A second receiving notch  843  is formed at the lower end of the extension portion  842 . The positioning rods  585  are respectively engaged with the first receiving notch  841 , the lateral side of the extension portion  842  that faces the roller  83 , and the second receiving notch  843  at the non-transmission position. Therefore, the slide  84  can only be moved longitudinally. 
     The slide  84  includes a first guide pin  844  and a guide hole  845 . The first guide pin  844  extends through the first slot  58 . The slide  84  includes an inclined surface  846  so that the first spring  583  biases the inclined surface  846  so that the slide  84  is movable along the first slot  58 . The guide hole  845  includes an extension slot  847  and an inclined slot  848 . The extension slot  847  is located at the top end of the guide hole  845  and located corresponding to the transverse slot  581 . The inclined slot  848  communicates with the extension slot  847  and inclinedly extends toward a direction away from the roller  83 . The slide  84  has a transmission rod  849  extending toward a direction away from the roller  83 , and the transmission rod  849  is located at the rail “R” when the lock is at the unlocked position. 
     In order to balance the movement of the slid  84 , the driving member  5  has a second slot  586  which is located corresponding to the first slot  58 . The slide  84  has a second guide pin  8441  which is movable in the second slot  586 . 
     As shown in  FIGS. 28 and 29 , when the deadbolt  8  is located at the locked position or the unlocked position, the deadbolt  8  is able to perform the function 3. When in the non-transmission position, as shown in  FIGS. 28  and  30 , the slide  84  is biased by the first spring  583  so that the first guide pin  844  is located the inner bottom end of the first slot  58 . The insertion member  82  is biased by the second spring  584  and the roller  83  protrudes beyond the receiving space  812 . When in the transmission position, as shown in  FIG. 31 , only the driving member  5 , the deadbolt  8  and the core  18  are disclosed for clarity purpose, the transmission rod  849  is pushed by the cam  181  so that the slide  84  and the inclined slot  848  move toward the top of the first slot  58 . The guide rod  824  contacts the inclined slot  848  to drive the slide  84  and the roller  83  to move along the transverse slot  581  and toward a direction opposite to the roller  83 . Therefore, the roller  83  does not protrude beyond the receiving space  812 . The purpose is that when in the unlocked position as shown in  FIG. 27 , the roller  83  partially protrudes beyond the case  1  so that by rotating the cam  181  clockwise to move the transmission rod  849 , the roller  83  does not protrude beyond the case  1  so that the door can be opened and closed. Because in the non-transmission position, insertion member  82  is not restricted, and is only biased by the second spring  584  to press the roller  83  along a direction perpendicular to the axis of the roller  83 , and this also makes the roller  83  be moved into the receiving space  812 . Therefore, by a force applied to the door, the door can be opened or closed. 
     As shown in  FIG. 32 , for the receiving box  9  installed to the door frame, the receiving box  9  includes a receiving hole  91  that is located corresponding to the deadbolt  8 . The receiving hole  91  includes two resilient members  92  received therein. Each receiving member  92  includes an installation portion  921  and a holding portion  922 . The installation portion  921  is connected to the wall of the receiving hole  91 , and the holding portion  922  is a bent portion and extends toward the opening of the receiving hole  91 . A holding room is defined between the two holing portions  922  and located corresponding to the roller  83  and the deadbolt  8 . When the door is opened, the roller  83  is stopped by the holding portions  922  so that the roller  83  is not retracted into the receiving room  812 , so that the door cannot be closed. When the door is closed, by operating the core  18 , the roller  83  is retracted into the receiving space  812 , so that the roller  83  is not affected by the holding portions  922  and is successfully closed. 
     The lock may have at least one of the functions 1 to 8 according to practical needs, and can be used in different locations. For example, as shown in  FIG. 33  which discloses the sixth embodiment, and can perform functions 1 and 5 so that the lock can be used on bathroom doors. As shown in  FIG. 34  which discloses the seventh embodiment, and can perform functions 1, 5 and 7 so that the lock can be used on room doors. As shown in  FIG. 35  which discloses the eighth embodiment, and can perform function  1  so that the lock can be used on bathroom doors, kitchen doors and hallway doors. The portion that does not have the core hole  176  can be sealed by inserting a seal member (not shown). As shown in  FIG. 36  which discloses the ninth embodiment, and can perform function 3 so that the lock can be used on storage room doors. 
     While we have shown and described the embodiment in accordance with the present invention, it should be clear to those skilled in the art that further embodiments may be made without departing from the scope of the present invention.