Safety apparatus determining whether a detected presence is a work piece or a human
TECHNICAL FIELD 
     The present invention relates to a safety apparatus for ensuring the safety of a human in a space having a working area common to both an industrial machine such as a robot, and a human. 
     BACKGROUND ART 
     In spaces having a working area common to both an industrial machine such as a robot, and a human, measures to ensure the safety of the operator are extremely important. 
     In this respect, article 150 paragraph 4 of the Japanese Industrial Safety and Health Regulations requires an industrial robot to be surrounded by a safety fence. 
     In carrying out work operations with a robot however, the work to be processed must be brought in to the movable part of the robot, that is to say into the operating region of the robot arm. 
     In the case of an operating system wherein the work is brought in by a human, operator safety is normally ensured by adopting a system wherein a door is provided at the entrance/exit of the safety fence. When the door is opened for work to be brought in by a human, the drive power source for the robot arm is switched off. 
     With large factories however, in order to rationalize the manufacturing process and improve efficiency, many robots surrounded by safety fences are arranged along the work conveying path, and automation of the manufacturing process is achieved by automatic conveying of the work and continuous processing. With this type of operating system wherein the work is conveyed automatically, it is difficult to provide a door to the entrance/exit of the safety fence. In such a situation, a system has been considered (U.S. Pat. No. 4,309,696) wherein sensors and the like are provided at the entrance/exit of the safety fence so that if a person passes through the entrance/exit, this is detected by the sensor. Judgement is thus made that someone is inside the safety fence, so that the drive power source for the arm of the robot inside the safety fence is switched off. 
     However at this time, it is necessary to reliably discriminate between work which is being automatically conveyed in succession through the entrance/exit, and a human, and to keep the drive power source for the arm of the robot on when work is being conveyed, to avoid a drop in work efficiency, and to reliably turn off the drive power source of the robot arm when a human enters, to maintain human safety. 
     In view of the above problems, it is an object of the present invention to provide a safety apparatus whereby, when a human enters inside a safety fence surrounding industrial machinery, the power source to the movable portion of the machine can be reliably stopped, while when a work piece is conveyed inside the safety fence, the power source to the movable portion of the machine is not stopped. 
     DISCLOSURE OF THE INVENTION 
     Consequently with the present invention, a safety apparatus which discriminates whether or not an object passing through an entrance/exit of a work space of a machine for processing work being conveyed, is a human or a work piece, and which generates a signal to stop the drive of a movable portion of the machine when a human passes through the entrance/exit to ensure the safety of said human, comprises a first object detection means for detecting a human, constructed so that output signal energy is decreased when an object is detected passing through the entrance/exit, and so as to err in a direction of decrease in an output signal energy condition in the case of a malfunction, a second object detection means for detecting a work piece, constructed so that output signal energy is increased when an object is detected passing through the entrance/exit, and so as to err in a direction of decrease in an output signal energy condition in the case of a malfunction, and a logical addition operation means for operating on the logical OR of the output signal of the first object detection means and the output signal of the second object detection means, and is constructed so that when an output signal energy condition of the logical addition operation means shows a binary variable logical value of &#34;1&#34;,&#34;0&#34;, an output of the logical value &#34;0&#34; corresponding to the low energy condition becomes the signal to stop the drive of the movable portion of the machine. 
     As a result, when an object is present in the entrance/exit to the operating space, the output signal energy of the first object detection means decreases. At this time, if the object is a work piece, the output signal energy of the second object detection means increases. As a result the logical addition operation means generates an output of logic value &#34;1&#34; corresponding to the high energy condition, on the basis of the output from the second object detection means. In this case, the object passing through the entrance/exit is judged to be a work piece, so that a drive stop signal for the mechanical moving portion is not generated, leaving it in the movable condition to enable processing of the transported work piece. 
     On the other hand, if the aforementioned object is a human, the output signal energy of the second object detection means does not increase, so that the logical addition operation means generates an output of logic value &#34;0&#34; corresponding to the low energy condition. In this case, the object passing through the entrance/exit is judged to be a human, and a drive stop signal for the mechanical moving portion is generated, thereby stopping the drive of the moving portion to maintain operator safety. 
     More specifically, the first object detection means may comprise, a plurality of light emitting elements, vertically arrayed on one of the confronting wall faces of the work space entrance/exit, a plurality of excitation circuits provided for each of the respective light emitting elements to excite the light emitting elements at frequencies different to each other and to generate light beams from the corresponding light emitting elements, a plurality of light receiving elements vertically arrayed on the other of the wall faces and confronting the light emitting elements, which receive light beams from the confronting light emitting elements when an object is not present, a plurality of filter circuits provided for each of the respective light receiving elements, which only allow the passage of a light beam frequency signal generated by the light emitting element confronting the corresponding light receiving element, a plurality of amplification circuits which each amplify the output signal of a respective filter circuit, a plurality of rectification circuits which each rectify the output signal of a respective amplification circuit, and a logical product operation means for operating on the logical AND of the output signals of the plurality of rectification circuits and producing an output, and erring to give a logical value of &#34;0&#34; in the case of a malfunction. 
     Furthermore, the second object detection means may comprise, a transmitting coil disposed at the entrance/exit of the work space, an excitation circuit for exciting the transmitting coil to produce an alternating current signal, a receiving coil for receiving the alternating current signal from the transmitting coil and producing an output signal, an amplifying circuit for amplifying the output signal from the receiving coil, a rectifying circuit for rectifying the amplified output from the amplifying circuit, and a level detection circuit for producing an output signal of a logical value of &#34;1&#34; corresponding to a high energy condition when the output signal level of the rectifying circuit exceeds a predetermined level, the construction being such that when a work piece to be detected is present, the output signal energy of the receiving coil is increased on the basis of an electromagnetic induction effect, and the output signal level from the amplifying circuit for input to the level detection circuit becomes greater than a predetermined level. 
     Moreover, the work piece to be detected by the second object detection means is preferably made of metal. 
     When the work piece to be detected is not metal, it may be mounted on a pallet and transported thereby, and a metal element attached to the pallet. 
     Moreover, if the pallet is provided with a resonant circuit which resonates with the alternating current in the transmitting coil, the detection sensitivity can be increased. 
     Also the pallet may be provided with an information transmitting means which can transmit various types of information related to mechanical work processing operations, to a receiving coil. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic diagram of a mechanical operating system to which the present invention may be applied. 
     FIG. 2 is a simplified schematic diagram illustrating an example of an arrangement of a human detecting sensor and a work detecting sensor according to a first embodiment of the present invention. 
     FIG. 3 is a block diagram showing the human detecting sensor circuit. 
     FIG. 4 is a block diagram showing the work detecting sensor circuit. 
     FIG. 5 is a diagram illustrating a final output circuit of a safety apparatus according to the first embodiment. 
     FIG. 6 is a diagram illustrating pallets for carrying work according to various other embodiments. 
    
    
     BEST MODE FOR CARRYING OUT THE INVENTION 
     As follows is a detailed description based on the drawings, of embodiments of the safety apparatus according to the present invention. 
     FIG. 1 illustrates an example of an operating system to which the present embodiment may be applied. 
     In FIG. 1, the operating spaces for respective robots 1, 2 which include the arm operating regions A, B (indicated by circles in FIG. 1) as the movable portions, are surrounded by safety fences 3, 4. Entrance/exits &#34;a&#34;, &#34;b&#34; are provided in the respective safety fences 3, 4, while an entrance/exit &#34;c&#34; is provided in the safety fence located between the robots. Work is conveyed to inside the safety fence 3 from the entrance/exit &#34;a&#34; and is processed by robot 1. Subsequently, the work is conveyed via entrance/exit &#34;c&#34; to inside the safety fence 4 and processed by the robot 2. The work is then conveyed out through the entrance/exit &#34;b&#34;. Automatic and continuous conveyance of the work is achieved using a device such as a belt conveyor. 
     A description is given based on FIGS. 2 to 5, of a construction of embodiments of a safety apparatus suitable for the case of an operating system wherein the work piece is metal. 
     Each of the above-mentioned entrance/exits &#34;a&#34;-&#34;c&#34;, to be explained below, is provided with a human detecting sensor acting as a first object detecting means for detecting the presence of a human, and a work detecting sensor acting as a second object detecting means for detecting a metal work piece M. 
     The human detecting sensor is constructed as described below. 
     n-light emitting elements 10 1 , 10 2 , through 10 n  are aligned vertically on one wall face of the entrance/exits, and n-light receiving elements 11 1 , 11 2  through 11 n  are provided on the other wall face so as to confront the beforementioned light emitting elements 10 1 , 10 2 , through 10 n . The light emitting elements 10 1 , 10 5  2 through 10 n  are excited by respective exciting circuits 12 1 , 12 2  through 12 n  as shown in FIG. 3, having different frequencies to each other of f 1 , f 2  through f n , to emit light beams of corresponding frequencies f 1 , f 2  through f n  which cross the entrance/exit. The light receiving elements 11 1 , 11 2  through 11 n  receive the light beams from the light emitting elements 10 1 , 10 2  through 10 n  when an object is not present, and convert these into electrical signals. The converted outputs are then input to filter circuits 13 1 , 13 2  through 13.sub. n which will only pass the corresponding frequencies f 1 , f 2  through f n . The outputs from the filter circuits 13 1 , 13 2  through 13 n  are amplified by AC amplifiers 14 1 , 14 2  through 14 n , and rectified by rectifying circuits 15 1 , 15 2  through 15 n , and are then input to a conventional fail-safe AND gate 16 such as disclosed in U.S. Pat. No. 4,661,880, U.S. Pat. No. 4,667,184 etc. The AND gate 16 generates an output X of logic value &#34;1&#34; corresponding to a high energy condition, or of logic value &#34;0&#34; corresponding to a low energy condition on the basis of the level of the input signals from the respective rectifier circuits 15 1 , 15 2  through 15 n . Only when all of the input signals from the respective rectifier circuits 15 1 , 15 2  through 15 n  are at a higher level than the power-supply voltage for the AND gate 16 (a logic level of logic value &#34;1 &#34;) does it generate the output of logic value &#34;1&#34;. 
     The beforementioned work detecting sensor is constructed as described below. 
     A transmitting coil 21 and receiving coil 22 are disposed so as to be close to work passing through the beforementioned entrance/exit. The coil width L for both coils 21, 22 is made sufficiently greater than the thickness of the entrance/exit wall face in the direction of work conveyance. The transmitting coil 21 is excited by the signal generating circuit 23 which acts as an exciting circuit. The receiving coil 22 receives a signal from the transmitting coil 21, and when a work piece M is present, the energy of the receiving coil output increases due to the electromagnetic induction effect. This output signal is input to an AC amplifier 24. The amplified output from the AC amplifier 24 is rectified by a rectifying circuit 25, and then input to a conventional level detection circuit 26 such as disclosed in U.S. Pat. No. 4,661,880, and U.S. Pat. No. 4,757,417 etc., which utilizes a comparator. The level detection circuit 26 generates an output Y of logic value &#34;1&#34; or of low level logic value &#34;0&#34;, on the basis of the level of the input signal from the rectifying circuit 25. When a work piece M is present at the entrance/exit, the output signal level from the rectifying circuit 25 exceeds a predetermined level (a logic level corresponding to logic value &#34;1&#34;), so that the level detection circuit 26 generates an output of logic value &#34;1&#34;. Preferably the threshold level of the level detection circuit 26 is set higher than the level of increase due to an electromagnetic inductance effect caused by metal material in the vicinity of the entrance/exit when a work piece M is not present. 
     The output X of the AND gate 16, and the output Y of the level detection circuit 26 are input to an OR gate 30, and based on the output Z from the OR gate 30, when this has a logic value of &#34;1&#34;, the drive power supply for the robot arm is maintained in the ON condition to permit drive, while when this has a logic value of &#34;0&#34;, the drive power supply for the robot arm is switched off. 
     As follows is a brief explanation of the type of characteristics required by a sensor for use in a fail-safe human detection sensor whereby human safety can be ensured even in the event of a malfunction. 
     Initial consideration is of two sensor types. One is constructed such that the light beam emitted from the light emitting element and normally received by the light receiving element, is cut off by the presence of an object and not received by the light receiving element. The other (a type wherein on the receiver side, the receiver energy is increased due to the existence of an object) is constructed such that the light beam emitted from the light emitting element and normally not received by the light receiving element, is reflected by an object when present and received by the light receiving element. 
     In this case, with the latter sensor construction, when for example a light beam is not produced due to failure of the light emitting element, then even if an object is present for example at a location for detection, an object detection signal is not generated. Consequently, when a sensor of such construction is used for detecting a human, then in the case of a malfunction, an output signal condition indicating the non-presence of a human is produced in spite of the fact that a human is present, thus producing a dangerous error. 
     On the other hand, with the former sensor construction, when for example a light beam is not produced due to failure of the light emitting element, then an object detection signal indicating that an object exists at a location for detection is generated. Consequently, with a sensor of such construction, in the case of a malfunction, an output signal condition indicating the presence of a human is produced, thus erring on the safe side with no possibility of erring to the danger side. 
     Accordingly, the human detection sensor according to the present embodiment constructed such that the output signal energy is reduced with detection of an object, is a fail-safe sensor giving an output signal condition indicating the presence of a human at the time of a malfunction. 
     Moreover, when used as a sensor for detecting work, it maintains the robot drive portion in the drive condition when work is detected. Hence the sensor construction must be such that a movable portion drive signal is generated with an increase of output signal energy when work is detected. With such an arrangement, when the output signal energy is lost due to a malfunction, the drive signal for the movable portion of the robot is not generated. The movable portion of the robot drive is thus stopped, resulting in a fail-safe sensor which errs to the safe side with respect to human safety. 
     Next is a description of the operation of the present apparatus with respect to entrance/exit &#34;a&#34;. Operation for entrance/exits &#34;b&#34;, &#34;c&#34; is similar and description is omitted for brevity. 
     Initially when the work piece M passes for example through the entrance/exit &#34;a&#34;, the light beam from at least one of the light emitting elements 10 1 , 10 2 , through 10 n  of the human detection sensor is blocked due to the passing of the work piece M. As a result, the output signal from the filter circuit connected to the light receiving element confronting the light emitting element which emitted the blocked light beam is lost. Hence, since not all of the output signals of the rectifying circuits 15 1 , 15 2  through 15 n  can have a logic value of &#34;1&#34;, the output signal X of the AND gate 16 becomes a logic value of &#34;0&#34;. 
     However, when the metal work piece M passes the work piece detection sensor, the alternating current signal from the transmitting coil 21 is strengthened due to the electromagnetic inductance effect, and received by the receiving coil 22, thus increasing the energy of the output signal from the receiving coil 22. The output signal of increased energy is amplified by the AC amplifier 24, rectified by the rectifying circuit 25, and then input to the level detection circuit 26. The input signal level from the rectifying circuit 25 rises above a predetermined level due to the increase in output signal energy from the receiving coil 22. As a result the output signal Y of the level detection circuit 26 becomes a logic value of &#34;1&#34;. 
     Accordingly, when the work piece M is in the entrance/exit, the output Z of the OR gate 30 which operates on the output signal X and the output signal Y becomes a logic value of &#34;1&#34;. Hence the robot movable portion is maintained in a drivable condition so that work processing is possible. 
     On the other hand, when a human passes through the entrance/exit &#34;a&#34;, then with regards to the human detection sensor, as with the beforementioned case for the passing of a work piece, the light beam from at least one of the light emitting elements 10 1 , 10 2 , through 10 n  is blocked by the passing of the human, so that not all of the output signals from the rectifying circuit 15 1 , 15 2  through 15 n  become a logic value of &#34;1&#34;. Hence the output X of the AND gate 16 becomes a logic value of &#34;0&#34;. 
     However, with regards to the work detection sensor, the passing of a human does not produce an electromagnetic inductance effect, so that the receiving signal energy of the receiving signal coil 22 is not increased. Hence the output signal energy of the receiving signal coil 22 is also not increased. As a result, the output signal level of the rectifying circuit 25 is lower than the predetermined level of the level detection circuit 26. The output signal Y of the level detection circuit 26 thus becomes a logic value of &#34;0&#34;. 
     Accordingly, when a human passes the entrance/exit, the output signal X and output signal Y both become a logic value of &#34;0&#34;, so that the output signal Z of the OR gate 30 becomes a logic value of &#34;0&#34;. A drive stop signal for the robot moving portion is thus generated to stop the robot moving portion, thereby ensuring the safety of a human who passes inside the safety fence. 
     Moreover, in the case of a malfunction in the human detection sensor, such as one wherein a light beam from the light emitting element is not generated, the apparatus is fail-safe since in this case, the output signal X of the AND gate 16 becomes a logic value of &#34;0&#34;, i.e. the signal condition indicating the presence of an object (human). Thus at the point in time wherein a work piece M is no longer present, the output signal of the OR gate 30 becomes a logic value of &#34;0&#34; so that the movable portion of the robot is stopped immediately. Furthermore, with the work detection sensor also, if a malfunction arises, the energy increase in the output signal of the receiving signal coil 22 is lost. As a result, the output signal of the level detection circuit 26 becomes a logic value of &#34;0&#34;, i.e., the signal condition indicating that a work piece is not present. The output of the OR gate 30 thus becomes a logic value of &#34;0&#34;, and the robot movable portion stops. 
     In this way the construction is such that for the human detection sensor, the output signal energy is reduced by the presence of an object, while for the work detection sensor the output signal energy is increased by the presence of an object. Hence with a construction wherein drive of the robot movable portion is controlled by the logical OR output of both sensors, it is possible to reliably differentiate between the entry of a human, or the entry of a work piece into the robot operating space. Thus human safety can be ensured with a fail-safe construction, without any drop in operating efficiency of an automatic conveyance work operating system. 
     The light beams from the light emitting elements 10 1 , 10 2 , through 10 n  are emitted to the light receiving elements 11 1 , 11 2  through 11 n  side with a certain degree of spread. However, since the light beams of the light emitting elements 10 1 , 10 2 , through 10 n  are given frequencies different from each other, and filter circuits 13 1 , 13 2  through 13 n  are provided to filter the output signals from the light receiving elements 11 1 , 11 2  through 11 n , then even if a light beam from a light emitting element other than a confronting light emitting element is incident on a light receiving element, the effect can be cut off by the filtering operation of the filter circuits 13 1 , 13 2  through 13 n . Hence the generation of an erroneous output signal by the AND gate 16 due to the reception of such a light beam can be prevented. 
     With the above embodiment, the description has been for the case of a metal work piece. In the case of non-metal work pieces these may be mounted on a pallet such as shown in FIG. 6 (A)-(C), and thereby conveyed. 
     FIG. 6(A) shows an example of a pallet 40 in which is embedded a metal element &#34;m&#34;. In this case, when the pallet 40 on which the work piece is mounted passes through the entrance/exit &#34;a&#34;, the work detection sensor operates in a similar manner to that mentioned before due to the electromagnetic induction effect caused by the metal element &#34;m&#34; in the pallet 40. The work piece can thus be detected indirectly by detection of the pallet 40. 
     FIG. 6(B) shows an example of a pallet 50 in which is embedded a resonance circuit comprising a coil 51 and capacitor 52, which resonates with an alternating current signal generated from the transmitting coil 21. 
     In this case, when the pallet 50 on which the work piece is mounted passes through the entrance/exit &#34;a&#34;, the received signal energy in the receiving coil 22 side increases due to the coil 51 inside the pallet 50. Moreover, the alternating current signal energy transmitted from the transmitting coil 21 to the receiving coil 22 is greatly amplified due to the resonance effect of the capacitor 52 and coil 51 resonance circuit. As a result, the detection sensitivity of the pallet 50, i.e. the work piece detection sensitivity, is considerably improved. 
     FIG. 6(C) shows an example of a pallet 60 in which is embedded a coil 61 with a transmitter 62 connected thereto. (in this case the transmitting coil 21 and signal generating circuit 23 shown in FIG. 2 are not required). 
     With this embodiment, it is possible to make up a system wherein a coding etc. is pre-stored, so that information relating to the pallet 60 and the work piece M mounted thereon (information such as work type and number, and pallet number etc.) is transmitted as a code signal from the transmitter 62 to the receiving coil 22. Hence as the pallet 60 passes, the information is transmitted to the robot side as processing information for the work piece carried on the pallet 60 and as pallet control information. 
     With these cases also, when the work is mounted on such pallets and conveyed, then in abnormal situations such as when the metal element &#34;m&#34; is not embedded in the pallet 40, or when a disconnection fault occurs in the coil 51 etc. inside the pallet 50, or when the transmitter 62 inside the pallet 60 cannot transmit a signal due to a low power supply (discharged battery), the output Y of the level detection circuit 26 does not become a logic value of &#34;1&#34;. The system is thus fail-safe, with a signal to stop drive of the robot movable portion being generated when the pallet passes through the entrance/exit. 
     In the above embodiments a work detection sensor utilizing an electromagnetic induction effect is illustrated. However it may also be possible to have a work detection sensor constructed for example, with the light emitting elements and light receiving elements disposed on the same side, and the work piece or pallet detected when a light beam from a light emitting element is reflected by the work piece or the pallet and received by a light receiving element. In this case also, work piece or pallet detection information can be transmitted as an increase in the output signal energy of the light receiving element, making it similar to the present embodiments using an electromagnetic induction effect. Moreover, instead of using a pallet, a metal element or coil may be mounted directly to a non-metallic body. 
     With the present invention as described above, the human detection sensor uses a sensor constructed so as to transmit object detection information as a reduction in receiving side output signal energy, while the work detection sensor uses a sensor constructed so as to transmit the object detection information as an increase in receiving side output signal energy. With this construction, the drive or stop for the mechanical moving portion is controlled on the basis of the logical OR output of both sensors. Hence if an output signal is lost due to a sensor malfunction, the mechanical moving portion is always stopped. Thus excellent operator safety may be reliably ensured in a fail safe manner. 
     INDUSTRIAL APPLICABILITY 
     With the present invention in an automatic operation system for processing a work piece using an industrial machine such as a robot, the safety of an operator working at a work site which also involves machinery, can be considerably improved. Hence injury to the operator due to the machinery can be prevented, greatly improving industrial utility.