A structure for electrical locks comprising:
- two rotational members respectively secured to two handles respectively at two sides of a door, each rotational member adapted to be mechanically connected with a bolt for locking or unlocking the door, each rotational member defining a recess on a periphery thereof;
- a latching assembly including a cartridge, a sliding element, and a resiliently dividing rod, said cartridge defining a first through passage and a second through passage substantially perpendicular to said first through passage, said sliding element having a first end and a second end, opposite to said first end, and defining a recess on a periphery between said first end and said second end, said recess of said sliding element extending in a direction substantially parallel to said second through passage of said cartridge, said resiliently dividing rod fitted in said second through passage of said cartridge to divide said first through passage into two lateral zones respectively corresponding to said recesses of said rotational members, said sliding member being slidably fitted in one of said lateral zones of said first through passage capable of engaging with one of said recesses of said rotational members at said first end, wherein said second end of said sliding element is formed as a curved peripheral surface;
- and
- a controlling means including a resiliently pushing assembly and a solenoid for driving said resiliently pushing assembly to move back to a retracted position, said resiliently pushing assembly having an arm extending generally parallel to its moving direction, said arm being capable of engaging with said second end of said sliding element of said latching assembly such that, when said solenoid is de-energized, said resiliently pushing assembly can be normally moved forward to a latching position to have said first end of said sliding element moved out of said first through passage of said cartridge to be engaged with one of said recesses of said rotational members so as to lock a respective handle for protecting the door from being unlocked by the respective handle, when said solenoid is energized, said resiliently pushing assembly can be moved back by said solenoid to the retracted position so that said first end of said sliding element can move into said first through passage of said cartridge so as to free the respective handle to allow the door to be unlocked by the respective handle;
- whereby said sliding element can be selectively fitted in one of said lateral zones of said first through passage of said cartridge to allow said sliding member to engage one of said recesses of said rotational members so as to selectively lock a respective handle to protect the door from being unlocked by the respective handle.