You are an expert at summarizing long articles. Proceed to summarize the following text:

You are an expert at summarizing long articles. Proceed to summarize the following text: 
RELATED APPLICATIONS 
     This application is a continuation-in-part of U.S. patent application Ser. No. 11/386,928, filed Mar. 22, 2006, which is a continuation-in-part of U.S. patent application Ser. No. 10/905,524, filed Jan. 7, 2005, which is a continuation of U.S. patent application Ser. No. 10/345,864, filed Jan. 16, 2003, now U.S. Pat. No. 6,874,828, incorporated herein by reference, which is a continuation of U.S. patent application Ser. No. 09/962,508, filed Sep. 25, 2001 (now U.S. Pat. No. 6,581,986), incorporated herein by reference, which is based on Disclosure Document No. 453,811, filed Mar. 26, 1999, entitled “Vending Cam Lock,” incorporated herein by reference, and claims priority on U.S. Provisional Patent Application No. 60/252,210, filed Nov. 21, 2000, incorporated herein by reference. This application is also related to, and incorporates by reference, U.S. Pat. No. 6,575,504, filed Sep. 25, 2001, which descends from the aforesaid Provisional application (i.e., U.S. Provisional Patent Application Ser. No. 60/252,210). 
    
    
     TECHNICAL FIELD OF THE INVENTION 
     The present invention relates generally to locking devices and, more particularly, to a locking system for vending machines and the like and a method for locking and unlocking the same. 
     BACKGROUND OF THE INVENTION 
     In various machines such as vending machines, food machines, candy machines, refrigerated drink machines, and the like, there is ordinarily provided a lock assembly to prevent unauthorized access to the contents thereof. For example, some vending machines are provided with a key-activated lock assembly such as a pop-out T-handle lock assembly which allows an authorized user to open the door of the vending machine with a properly-encoded key. Such T-handle lock assemblies are well known in the art, as evidenced by numerous patents including U.S. Pat. No. 3,089,330 (Kerr), U.S. Pat. No. 3,550,412 (Pitel et al.), U.S. Pat. No. 4,552,001 (Roop), U.S. Pat. No. 4,760,721 (Steinbach), U.S. Pat. No. 4,899,561 (Myers), and U.S. Pat. No. 5,548,982 (Rawling). With such lock assemblies, the door is initially closed in a loose manner to catch the locking components of the lock assembly. Next, the handle of the locking assembly is rotated to draw the door against the housing of the vending machine and to compress a seal between the door and the housing. Other, more modern, vending machines are provided with a keypad-activated lock assembly which permits the door of the vending machine to be opened when a predetermined access code or combination is entered into the keypad. The prior art, however, failed to provide a lock assembly which automatically pulls the door of a vending machine into a completely closed position against the housing and/or a lock assembly which utilizes a remotely controlled electronic latching mechanism to lock and unlock the door. More recently, however, as shown in U.S. Pat. No. 6,068,305 (Myers et al.) such a locking system was proposed. Further refinements, improvements and better, different and improved locking components and systems have been sought by users and manufacturers of the machines. 
     The now most commercially accepted electronic locking system marketed by applicants&#39; assignee TriTeq Lock and Security, LLC. is disclosed and claimed in its aforementioned U.S. Pat. Nos. 6,874,828, 6,581,986, 6,575,504 and pending application Pub. No. US 2005/0161953. There, a motor driven bayonet locking system has a bayonet locking element that moves both in the transational and rotational axis and coacts with a stationary slotted plate by extending to enter the plate, rotating to create an interferance from being withdrawn and then retracting to pull in and lock the door. 
     Other approaches both prior and later which are not believed to have become commercially acceptable sought to employ different types of mechanical latches and undirectionally actions electronic drivers such as solenoids. 
     Bond U.S. Pat. No. 4,167,104 proposed use of screw posts going into a threaded opening with a solenoid operating latching bolt. Similarly, Stillwagon U.S. Pat. Nos. 6,867,685 and 6,525,644 did the same with a notched post latch. 
     Martinez Publication US 2003/0127866 proposes a motor driven rotary hook and u-bolt where the hook shape provides pull in cam action. 
     Beylotte et al. Pub. No. US 2004/0154363 sought to motor drive a threaded post into a threaded split nut as in prior mechanically operated T-handle vending machine locks. Beylotte et al. who proposed a motor driven cam hook an alternative embodiment. 
     U.S. patent to Myers et al. (U.S. Pat. No. 6,068,308) is an earlier form of latch with a pull in function. 
     OBJECTS OF THE INVENTION 
     Accordingly, a general object of the present invention is to provide an improved locking system capable of even being a key-less electronic operated lock for vending machines and the like. 
     A related object of the present invention is to provide a cam-operated or bayonet locking system and method for locking and unlocking vending machines or the like in a novel and secure manner. 
     An additional object of the present invention is to provide a cam-operated or bayonet locking system having the foregoing characteristics which is more reliable, durable, economical and convenient to use. 
     SUMMARY OF THE INVENTION 
     An electro-mechanical cam-operated system having a function that facilitates specialized movements that can be utilized to secure and seal a variety of devices. The sealing action is being defined as a pulling motion of the primary mechanism. The locking action happens by virtue of a localized geometry that interfaces into an another specialized designed receiver device. The receiver device is generally mounted in a stationary manner. The localized geometrically designed element is called a cam or a bayonet for the purposes of this abstract. The cam or bayonet design is not intended to be a single geometry element that unto itself is design critical to the operation concept of this mechanism. Alternate methodology may be used to facilitate the securing portion of the mechanism. 
     The cam is designed to operate perpendicular to the receiver in such a manner as to allow it to enter into the receiver by allowing the cam to have geometry that allows the cam to enter into it. After this is accomplished an electrical detection device sends a signal to an electrical control device. This device then sends a signal to a motor that in turn rotates a cylindrical device located about another cam. This cylindrical device has a unique geometry that interfaces with a central located tube type of device and a tubular type pin. The combined rotation causes the other cam to first rotate 90 degrees or thereabout. And then begin to wind its way up a spiral ramp located in a pocket of the cylindrical device. This cylindrical device also has two binary electrical devices that are strategically located to detect the relative position of the locking cam for both rotation and sealing (pull). This cylindrical device has a typical gear shape located on its outside diameter. This gear movement is derived from a worm gear interface that is driven by a motor. The motor derives its intelligence from the electrical controller. 
     The bayonet is designed to operate tangent to the receiver in such a manner as to allow it to interlock into the receiver by allowing the bayonet to have geometry that allows the bayonet to enter into and pass behind it. After this is accomplished an electrical detection device sends a signal to an electrical control device. This device then sends a signal to a motor that in turn rotates a cylindrical device located about the bayonet. This cylindrical device has a unique geometry that interfaces with a central located tube type of device and a tubular type pin. The combined rotation causes the bayonet to first rotate 90 degrees or thereabout. And then begin to wind its way up a spiral ramp located in a pocket of the cylindrical device. This cylindrical device also has two binary electrical devices that are strategically located to detect the relative position of the bayonet for both rotation and sealing (pull). This cylindrical device has a typical gear shape located on its outside diameter. This gear movement is derived from a worm gear interface that is driven by a motor. The motor derives its intelligence from the electrical controller. 
     In another embodiment in accordance with the present invention, an optionally key-less electronically operated bayonet locking device and method of operating the same is provided wherein a rotatable and translatable bayonet device or means having an arrow shaped end is carried by respective ones of the vending machine door and cabinet and a stationary slotted receiving member carried by the other one of the respective door and cabinet. The bayonet device arrow shaped end enters the slotted receiving member and then rotates to secure the door and the end translates longitudinally to pull in the door for effectively sealing a door gasket on the machine. The locking device is constructed so as to enable that rotation at least in the transitional phase with longitudinal translation of the arrow shaped end occurs together. 
     A specific intelligence is embedded into the controller that facilitates several fault modes and operational parameter of the electromechanical system. This intelligence may be delineated as relay or software type of logic. The lock controller provides two specific functions. 
     Access control functions to ascertain the authorized user is accessing the locking device. Several access control methodologies may be utilized such as keypads with specific codes for entry, hand-held transceivers, electronic digital keys, transponders, etc. 
     Typical access control functions such as keypads, remote controls and electronic keys are taught in Denison U.S. Pat. No. 5,618,082 and Vandershel U.S. Pat. No. 5,349,345. The locking device may utilize any such access control methodology that is appropriate for the application for the operator and the enclosure the lock is mounted to. 
     Lock motor control functions once the controller has determined the lock is authorized to change from the locked to unlocked state, or, authorized to change from the unlocked to locked state. The components required to accomplish the required motor control operation are the motor drive, cam or bayonet, Receiver, Receiver Sensor, SW1 end of rotation sensor, SW2 30 degree Sensor, over-current sensor, and the CPU based controller. 
     The cylindrical device has a cover located about the opposite side of the area that causes the pin to wind it way on the ramp. This cover keeps the pin in a proper perpendicular path to the mechanisms securing motion. 
     The utilization of this device is providing simple easy access to devices that by necessity of application have a gasket or another means of sealing a door or the like. This would be described by what is common known as an automotive door. The door must be accelerated to a speed that can facilitate the compression of the gasket and then secure the door. Much like slamming of a car door. This device provides an alternate method of closing the door and pulling the gasket to a sealed condition. This device is also furthered in its invention by having methodology through electrical monitoring of the cam or bayonet conditions to adjust the pressure on the door gasket or seal. This is accommodated either by electrical position devices or detecting the motor characteristics by the electrical controller. The automotive door is used to only describe the actions, which caused the necessity of this invention. Any device that has a requirement for securing and sealing is a possible application of this device. 
     Applications: Truck Doors, Vending Machine Doors, Automotive Doors, Refrigerator Doors, Etc. 
     The cylindrical device with its associated motor and electrical detection devices are always mounted in a manner that separates them from the receiver unit. To further clarify this explanation consider the following sample concept, a car door has a rotary type securing device that is generally located in the door that secures its via a mechanical interface with a pin that is located in the frame of the vehicle. The cylindrical device would draw a similarity in its function as the rotary type device. The utility of this is to further the security by sealing the door after closing. Recalling that this device in its improvement into the market does not require massive forces to initiate the function of securing the cam or bayonet. This means that the device the system is mounted to would inherently be subject to less stress and wear, thus extending its life. 
     While there are mechanisms in the public domain that facilitate total system functionality of the specific motion similar to that being described here. One of the unique attributes of this product design is its ability to absorb very high closing impact forces without subjecting the system or the mechanism it is mounted to any impact damages. This system has shock absorbing devices located within the tube and positioned on the end of the cam or bayonet. Such is this geometry that it does not deter from the adjustment function as an independent local event in the motion of pulling in. The cam or bayonet in this system also serves to assist with alignment of the device it&#39;s attached to. By moving from the closed to the secure positions the cam or bayonet has geometry which considers the perpendicularity into its motion and effectively cams it into the perpendicular position. 
     Also the other commercial systems which have similar motion to securing and sealing do not utilize the unique rotary motion of the cam or bayonet used in this system. 
     This system replaces many devices in the public domain. Systems such a handles for vending machines. This system is designed to operate within the structure of the device it is securing. Therefore there is not external means by which to attack it. It may operate via an electrical controller that can utilize a variety of communication methods that are commercially available. These include but are not limited to Infrared, Radio frequency, and Switch keylock. 
     Because this design requires the application of an electrical signal to the motor to activate the system for both securing and opening sequence These activities can be monitored for later data collection. This data collection can be facilitated in many methodologies. This data then can serve the operator or owner for the purposes of detecting what key was used to gain access to the system. 
     One methodology which is being claimed that is unique to this design is the ability to monitor the data through acquisition of the data with the remote initialization device. Typically known as a key, Key FOB of remote control. While this data collection is not primary to the system function. It acts to enhance the product to the market place. 
     US Reference: 
     U.S. Pat. No. 6,068,305 Fort Lock 
     U.S. Pat. No. 4,993,247 Sampo Lock 
     U.S. Pat. No. 5,272,894 Star Lock 
     Fort Lock U.S. Pat. No. 6,068,305 shows a type of system that pulls in. The pulling forces are transmitted through a rotor type latch. This system differs in that it uses a local designed bayonet that interfaces with a special receiver unit. Sampo U.S. Pat. No. 4,993,247 cites a slip nut arrangement. And U.S. Pat. No. 5,272,894 Star lock shows a retrofit design that eliminates the lazy action but still require manual input. 
    
    
     
       BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING(S) 
         FIG. 1  is a perspective view of an illustrative vending type machine A with a door B and cabinet C in a partially open position showing the locking devices; 
         FIG. 2  is an enlarged perspective view of the system with the door mounted receiver and cabinet mounted cam operating lock; 
         FIG. 3  is an enlarged perspective view of the receiver and cam operator in a locked position free of the door and cabinet; 
         FIG. 4  is a plan view of the receiver; 
         FIGS. 5A and 5B  respectively are plan views showing the beginning secure functions for the cam and receiver; 
         FIGS. 6A and 6B  are plan views showing the advancements of the cam into the receiver; 
         FIGS. 7A and 7B  are plan views of the system showing rotational locking and drawing in by the cam; 
         FIGS. 8A and 8B  are plan views showing the cam locking unit in its unlocked position without the receiver; 
         FIGS. 9A and 9B  are plan views like  FIGS. 8A and 8B  with the receiver; 
         FIGS. 10A to 10F  are perspective views of alternative cam designs useful with the electronic lock; 
         FIGS. 11 and 12  are flow charts showing respective lock and unlock sequences of operation for the cam locking system; 
         FIG. 13  is a perspective, partially exploded view of a modified form of a receiver and cam operator; and 
         FIG. 14  is a plan view partially in section of the operating lock of  FIG. 13  in a locked portion 
         FIG. 15  is a perspective view of an illustrative vending type machine A with a door B, gasket B′ and cabinet C in a closed position and showing a remote controller D; 
         FIG. 16  is a perspective view of the machine of  FIG. 15  with the door opened partially; 
         FIG. 17  is a perspective view of the machine of  FIGS. 15 and 16  with the door opened and showing the locking devices; 
         FIG. 18  is a perspective view of the bayonet system complete less the receiver unit. Wiring has been deleted to clarify the view. Item  101  is the localized design called a bayonet, it is shown in the secure and pulled in (sealed) position. Item  102  is the cylindrical device with the gear. Item  103  located about its outside diameter. Item  104  is the cover for the cylindrical device. Item  105  is a plate which serves to mount all of the items. The plate generally is part of the device that is to be secured. Item  106  is the electrical detection mount bracket that houses Items  106   a  (SW1) and Item  106   b  (SW2) Item  107  is the local geometry which detects the position of the cylindrical device. Item  108  is the electrical controller board. Item  109  is the adjuster device that positions the bayonet. Item  110  is the motor that provides the drives the gear assembly. Item  111  is the tube. Item  112  is a snap ring that holds the cylindrical device on the tube assembly. 
         FIG. 19  is a perspective clarifying the position indicators Item  107  of the cylindrical device. 
         FIG. 20  is a perspective view of the receiver unit. Item  113  is the receiver plate. Item  114  is the housing of the receiver. Item  115  is a door or moveable plate that the bayonet Item  101  pushes as it is inserted into the receiver. Item  117  which is mounted in Item  116  and fasten to Item  114  then switches state. The controller through wiring Item  120  detects this. Items  118  and  119  serve to mount and bias the door assembly. Area Item  114   a  is provided as a typical mounting scenario. 
       The stationary receiver unit of  FIG. 20  is mounted into the stationary cabinet C as shown in  FIG. 17  using the holes  114   a . The slotted plate  113  receives the end arrow section of the bayonet  101  shown in  FIGS. 18 and 19 . The moveable plate  115  of  FIG. 20  is pushed rearward by the arrow section of the bayonet  101 , which causes the movable plate to rotate about the axle  118  and activates the switch  117 , resulting in activation of the gear motor  110  shown in  FIGS. 18 and 19 . A flat spring  206  that is nested in both sides of the receiver unit and having two curved shapes allows the slotted plate  113  to move horizontally in both directions. After the arrow section of the bayonet  101  is removed from the stationary receiver unit, the flat spring will reposition the slotted plate  113  about its original centerline position as it relates to the stationary receiver. This movement allows for horizontal manufacturing tolerance for both the cabinet C and the door B as the lock of  FIG. 19  and the stationary receiver of  FIG. 20  are mounted. The vertical slot in the slotted plate  113  allows for vertical tolerances. 
         FIGS. 21 and 22  respectively are perspective views of the beginning secure functions. Item  101  is aligned to a slot located in Item  113 . Items  111  and  102  move into position (as they are mounted to Item  105 ) this places the end of the Item  101  behind the Item  113 . ( FIG. 19 ). At this time (SW2) changes state serving as a local detection device.  FIG. 15  Item  106   b.    
         FIG. 23  is a perspective view that has Items  102 ,  112 , and  104  removed. Item  111  is kept stationary via slots located in area  111   a  and with conventional threads. Item  101  has a slot through it to allow a spring action provided by Item  123  as the Item  101  impacts Item  113 . The  101   a  slot provides the area for this. The pin Item  122  is held in place by the geometry  111   b . The rollers Items  121  will provide antifriction surfaces during future operations. 
         FIG. 24  is a perspective view of the bayonet system in its secure position. The Item  102  has rotated and item  106   FIG. 18  (sw1) has detected the proper position via the Item  107  geometry. Item  101  is now located behind Item  113  and is rotated 90 degrees. 
         FIG. 25  is a perspective view indicating what the internal geometry is in place at the same time as  FIG. 21 . Pin Item  122  has moved into position along the  111   b  area. This is accomplished via  FIG. 23  area  102   a . Gear Item  103  rotates about the area  102   e  guided by Item  111 . Surface  102   a  causes pin Item  122  to move 90 degrees. 
         FIG. 26 , item  102   d  is provided as mounting surfaces for  FIG. 25  Item  104 . Surface  104   a  as mounted into Item  102  provide guiding for Items  121  and then translated through to Item  122 . Areas Item  104   d  correspond to Item  102   d    FIG. 23 . Area  102   a  has a steel reinforced arrangement to prevent deformation of the plastic as it ages. 
         FIG. 27  is a perspective view showing the pulling or sealing function. Item  102  has continued to rotate via the motor Item  110 . The local geometry of the ramp area  102   a  through  102   b  causes the rollers Items  121  to move with it. This pulls (moves) the Item  101  back away from Item  113 . This is seen by the extension of Item  109  as it protrudes from Item  111 . 
         FIG. 28  is a perspective view of the outer guide that mates with the  FIG. 23  guide. 
         FIG. 29  is a perspective view of the bayonet Item  101 . Item  101   c  is threaded to facilitate the adjuster screw Item  109 . This screw limits the travel of the Item  101  by intersection of the pin Item  122  with the bottom of the Item  119 . 
         FIGS. 30 and 31  are flow charts showing the respective lock and unlock sequences of operation for the bayonet locking system. 
     
    
    
     Between Item  102  and mounting plate Item  105  mounting plate there is a thin plate to allow for a sliding friction plate surface this allows for a lubrication area. 
     In consideration of the electrical functions of the system the following description applies to the controller utilized. This controller features unique combination of sensing and control that differentiate it from controllers used in the public domain. 
     DETAILED DESCRIPTION OF THE INVENTION 
     Locked to Unlocked for Both the Cam and Bayonet Locking Systems: 
     For specific details of the electronic control operation, reference may be made to our co-pending application publication Jul. 28, 2005 as US 2005/0161953A1. In controlling the motor to change the state of the lock from locked to unlocked, the controller must first receive a valid access control signal from the operator (via a secure access control input means such as a keypad or hand-held transmitter) and shall proceed to energize the motor in the forward direction. The controller will wait for a position feedback indicator which is measured by a controller CPU to determine the lock has landed in the unlocked state. If this sensor is closed, the controller will proceed to break and de-energize the motor. In case the sensor is failed, the controller uses a motor current feedback signal to detect end of worm gear travel by sensing a stall motor condition and to de-energize the motor. In case both sensors fail, the controller will discontinue operation based on elapsed time. 
     In the case an over-current signal is received, the controller must determine if this signal is a function of a jammed cam with the lock still in the locked state, or if this signal is a function of the worm gear reaching the unlocked state and the sensor failed. In the case of a jam, the receiver sensor is expected to be closed and the condition is still locked. Thus, the controller will proceed to assume a locked condition. In the case the receiver sensor is open, it as assumed that the cam has unseated from the receiver and the lock is unlocked. Thus, the controller will proceed to the unlocked state. 
     Unlocked to Locked for the Cam Locking System: 
     In controlling the motor,  FIG. 2 , item  10  to change the state of the lock from unlocked to locked, the controller shall wait to receive a valid lock signal from the operator. This signal shall at a minimum be a sensor signal received by the controller whether the cam,  FIG. 2 , item  1  is positioned to be seated in the receiver. 
     The receiver  13  sensor  FIG. 4  is a plate like a member with a slot opening  13 A preferably mounted to door B ( FIG. 1 ), which is open when the lock is unlocked 
     In  FIGS. 2 and 3  there is shown the sequence of closing and locking a vending machine door in accordance with the present electronic cam lock system, Door B carrying the receiver  13  with slot opening  13 A is moved toward the cabinet C which here carries the cylinder driven unit  2  which operates the cam element  1 . In  FIG. 3 , the plate receiver is guided in place by a Y slot guide  20 , the motor drive advances the cam  1  into the slot  13 A and the unit  2  is ready for rotation of the cam  1 . 
     As seen in  FIGS. 5A and 5B , the receiver  13  will engage a spring held side  17  that can be moved horizontally to sense the positioning of the receiver with respect to the retracted or unlock position of the cam  1 . The slide  17  has a sloped notch area  18  which operates sensor switch  19  to provide the signals for when the locking and unlocking actions can be operated by a controller and the motor drive unit. When the cam  1  is in position and the sensor switch allows the motor drive to operate,  FIGS. 5A and 5B , the cam  1  is advanced longitudinally as shown in  FIGS. 6A and 6B  so that receiver  13  is captured and the door is held closed. Referring to  FIGS. 7A and 7B  the cam  1  is rotated within slot  13 A and the result is that a door carrying receiver  13  would be pulled in. The drive motor  10  rotates the cam  1  in the receiver and pulls in the door until the sensor signals the cam position for the controller to stop the motor. During locking if switch  19  senses that the receiver has moved back out of position before the cam  1  enters the slot the motor is reversed and the unlock position is maintained until the next cycle. 
     In  FIGS. 8A and 8B , the cam  1  driving unit  2  and its components are shown as mounted to a bracket  5  which is easily attachable to a cabinet as in  FIGS. 1 and 2 . The cam element  1  is shown in the retracted and unlock positions. 
     Referring to  FIGS. 10A-F , there is shown various alternative cam  1  elements which can be used with the present locking system.  FIG. 10B  shows the same cam as in the previous  FIGS. 1-9 , and it is preferably used with a guide  20  as shown in  FIG. 3 . 
       FIG. 10A  shows a notched element  1  with a raised lip  22  and notched  23  which would coact with receiver  13 , slot  13 A for a self guidance action. It is similar to the bayonet catch action of applicants&#39; referenced patents. 
       FIG. 10C  shows another notched form with a notch  23 C and a horizontal lip  22 C. This form provides a tip  24 C to guide the cam into slot  13 A. 
       FIG. 10D  shows a cam form with a single roller  25 D and  FIG. 10E  shows a double roller  26 B for smoother transitions and increased cam life in more demanding and heavy duty applications, respectively.  FIG. 10F  shows a shaped cam  28  that is generally conical. It will enter the receiver slot and provide pull in with the longitudinal movement of the driving unit and rotation is unnecessary to its operation. Rollers, not shown, can be carried by the receiver or the conical shaped cam to reduce wear and friction. 
     Flow charts  FIG. 11  and  FIG. 12 , respectively indicate the lock to locked events and vise versa for the cam locking system. The sensor switch  19  which is operated by slide  17  that determines the position and absence of the receiver  13  provides the requisite signals for the controller to operate the motor  10 . 
     Referring to  FIGS. 13 and 14  there is shown a locking system like the one discussed with respect to  FIG. 3 , for example, but with additional support means for the outboard end of the cam when in the extended portion. This provides additional strength against attempted prying open of the door. 
     In accordance with the present aspect of the invention, the cam  1  is preferably like that in  FIG. 10C . A plate member  30  that can be affixed along wall bracket  5 , carries a bushing means  32  into which the extended portion  24   c  of cam  1  fits and provides strengthened support of the cam outboard end. 
     As explained further herein, the present invention can be used with an axially rotatable pin with a finned end here shown on the door B in  FIG. 17 . The pin upon rotation when the door is closed catches one of the fins against a bracket  132  on the cabinet C. Placement of at least one of such pin and bracket arrangements prevents prying of the door at a corner. With the cam locking means adjacent an opposite corner, both door opening corners are protected. 
     Unlocked to Locked for the Bayonet Locking System: 
     In controlling the motor  FIG. 18  item  110  to change the state of the lock from unlocked to locked, the controller  FIG. 18  Item  108  shall wait to receive a valid lock signal from the operator. This signal shall at a minimum be a sensor signal received by the controller that the bayonet  FIG. 17  Item  101  is seated in the receiver as indicated by  FIG. 19  (Receiver sensor closed). It is a requirement that the controller must measure the state change of the receiver sensor  FIG. 20  Item  117  from open to closed circuit in order to initiate the locking event. In addition to this signal, the controller  FIG. 18  Item  108  may also expect to receive a valid access control signal from the operator simultaneously, for example the electronic key. This dual signal requirement would serve the purpose of insuring the operator will not accidentally lock the access control means in the enclosure. The controller  FIG. 18  Item  108  shall proceed to energize the motor  FIG. 18  Item  110  in the reverse direction. The controller  FIG. 18  Item  108  will wait for a position feedback indicator  FIG. 18  Item  106   a  (SW1) which is measured by the controller CPU located on  FIG. 18  Item  108  to determine the lock has landed in the secure state. In case the  FIG. 18  Item  106   a  (SW1) sensor is failed, the controller uses a motor current feedback signal to detect end of  FIG. 26  area  102   b  end of travel by sensing a stall motor condition and to de-energize the motor. In case both sensors fail, the controller will discontinue operation based on elapsed time. 
     In addition to the typical locking control operation described above, several safety and fault tolerant monitoring processes must be included in the locking control algorithm. For example, when the controller proceeds to energize the motor, the bayonet will begin to turn and will proceed to be captured behind the stationary receiver device to accomplish the locking feature. At this interface, there can exist a misalignment of the bayonet to the receiver  FIG. 17  item  113  and the bayonet Item  101  can jam into the receiver surface area  FIG. 21  area  113   a , which would cause a failure of the lock. This failure can be detected by the electronics, which would proceed with a reinitialization process of the lock components (lock bayonet and controller). 
     The bayonet jam detection will most likely take place during the period the bayonet is rotating to pass behind the receiver. This period is detected by the controller by monitoring a feedback sensor that measures the  FIG. 18  Item  102  which relates to the bayonet position, referred to as the  FIG. 18  Item  106   b  30 degree sensor SW2. To properly recover from a bayonet jam event during the bayonet rotation period described above, the detection system we chose to implement is a system where the lock motor controller  FIG. 18  Item  108  monitors two sensors and controls the lock motor  FIG. 18  Item  110  as described below: 
     The bayonet receiver sensor  FIG. 20  Item  117 , which is open when the lock is unlocked, would produce a closed signal when the bayonet seats in the receiver to initiate the locking event. Referred to as closed but not secure. If while the  FIG. 18  Item  106   b  (SW2) sensor is closed (less than 30 degrees rotation), the receiver later produces an open signal to the controller to indicate the bayonet is no longer properly aligned behind the receiver. 
     A sensor that measures the current draw of the motor turning the bayonet. If while the  FIG. 18  Item  106   b  (SW2) sensor is closed and motor current exceeds a predetermined value which equals the stall current value of the motor selected for the application, the controller will determine that the bayonet is jammed into the receiver, or, possibly another type of bayonet restriction exists. 
     The bayonet jam recovery procedure that the controller shall follow is described below: 
     The controller  FIG. 18  Item  108  shall proceed to de-energize the motor  FIG. 18  item  110  to stop the bayonet  FIG. 18  Item  101  from attempting to turn. 
     The controller shall proceed with a forward energization of the lock motor to return the bayonet to the fully unlocked position. Once the  FIG. 18  Item  106   a  (SW1) sensor is closed and the fully unlocked position  FIG. 21  is achieved by the bayonet, the controller will brake the  FIG. 18  Item  110  motor and the controller  FIG. 18  Item  108  will return to the unlocked operation mode. In this mode, the controller  FIG. 18  Item  108  will wait for a locking initiation signal from the operator via a state change from open to closed by the receiver sensor.  FIG. 20  Item  117 . 
     Flow-charts  FIG. 30  and  FIG. 31 , respectively, indicate the lock to unlocked events and vise versa for the bayonet locking system. 
     In accordance with another feature of the invention, referring to  FIG. 17 , an axially rotatable pin  130  with a finned end  131  is here shown on the door B. The pin  130  upon rotation when the door is closed catches one of the fins  131  against a bracket  132 , here shown on the cabinet C. Placement of at least one of such pin and bracket arrangements prevents prying of the door at a corner. With the bayonet locking means adjacent an opposite corner, both door opening corners are protected.

Summary:
An electronic locking system for vending machines or the like is provided for locking and unlocking the machine preferably with a remotely controlled electronic operating device.