Relay circuit device
The relay circuit device with mechanical and semiconductor relays addresses false alarms by confirming potential differences, allowing continuous operation and reducing user workload during machine tool startup.
Patent Information
- Application Number
- JP2021043369
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-17
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-03-17
AI Technical Summary
Existing programmable controllers issue false alarms and stop sequence programs when external loads are not connected during machine tool startup, leading to increased user workload due to the lack of voltage changes at relay terminals.
A relay circuit device with mechanical and semiconductor relays, controlled by a control unit, ensures operation continuity by confirming potential differences before applying load current, and stopping operations if such differences are not detected.
Enables continuous operation without increasing user workload by preventing false alarms and ensuring seamless startup even when external loads are not connected.
Smart Images

Figure 0007593182000001 
Figure 0007593182000002 
Figure 0007593182000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a relay circuit device having a plurality of relays and a control unit that controls these relays. [Background technology]
[0002] Conventionally, for example, to control a machine tool, a programmable controller having a relay for turning on (conducting) and off (interrupting) a load current for operating the actuator of the machine tool, etc. Some such programmable controllers are designed to monitor the operating state of the relay in order to enhance safety.
[0003] For example, Patent Document 1 describes a programmable controller (PLC) having a relay circuit configured to connect two mechanical relays in series, in which a common terminal (COM) and a normally open terminal (NO) are electrically connected when a current is passed through the coil and the common terminal (COM) and a normally closed terminal (NC) are electrically connected when the coil is not energized, and to supply current to a load when the common terminals (COM) and the normally open terminals (NO) of both mechanical relays are in a conductive state. This programmable controller is provided with a readback circuit made of a photocoupler corresponding to each of the two mechanical relays, and is configured so that the operating state of each mechanical relay can be monitored in a control unit. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-47556 A Summary of the Invention [Problem to be solved by the invention]
[0005] In order to monitor the operating state of a relay in a programmable controller, it is possible to use the change in voltage at the terminal of the relay due to the output voltage of an external power supply that operates an external load such as an actuator. However, for example, when adjusting the start-up of a machine tool controlled by a programmable controller, it may be necessary to perform adjustment work such as checking the operation of a sequence program in a state where all external loads are not connected because some of the external loads have not yet arrived. In such a case, since there is no change in the voltage at the terminal of the relay that operates the unconnected external load, it is determined that a failure has occurred in the relay even though a failure has not actually occurred, an alarm is issued, and execution of the sequence program is stopped.
[0006] In order to prevent the execution of the sequence program from being stopped even in such a case, it is possible to allow the user to set a parameter for ignoring the alarm and continuing the execution of the sequence program, or to connect a dummy load, but either of these methods increases the workload of the user.
[0007] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to provide a relay circuit device that can continue to operate even when an external load is not connected, without increasing the workload of the user. [Means for solving the problem]
[0008] In order to achieve the above object, the present invention provides a relay circuit device comprising: a mechanical relay in which a mechanical contact is switched between a conductive state and a cut-off state in response to a relay control signal; a semiconductor relay connected in series with the mechanical contact; and a control unit for controlling the mechanical relay and the semiconductor relay, wherein a load current from an external power source flows to an external load via the mechanical contact and the semiconductor relay when the mechanical contact and the semiconductor relay are both in a conductive state, and the load current is cut off when at least one of the mechanical contact and the semiconductor relay is in a cut-off state, the control unit performing a first step of bringing the mechanical contact into a conductive state when the load current is caused to flow through the external load; a second step of confirming that a potential difference due to the output voltage of the external power source has been generated between the current input terminal and the current output terminal of the semiconductor relay by bringing the mechanical contact into a conductive state; and a third step of bringing the current input terminal and the current output terminal of the semiconductor relay into a conductive state after it has been confirmed that the potential difference has been generated. When it is not possible to confirm that the potential difference has been generated in the second step, the device stops operating on condition that there is a record indicating that the potential difference has been generated in at least one previously executed process of the second step.
[0009] In order to achieve the above object, the present invention provides a relay circuit device comprising first and second mechanical relays each having a mechanical contact that switches between a conductive state and a cut-off state in response to a relay control signal, a semiconductor relay connected in series with the first and second mechanical relays, and a control unit that controls the first and second mechanical relays and the semiconductor relay, wherein when the mechanical contacts of the first and second mechanical relays and the semiconductor relay are all in a conductive state, a load current from an external power source flows to an external load via the mechanical contacts of the first and second mechanical relays and the semiconductor relay, and when at least one of the mechanical contacts of the first and second mechanical relays and the semiconductor relay is in a cut-off state, the load current is cut off, and the control unit controls the control unit to control the control unit when the load current is caused to flow through the external load. a second step of confirming that a potential difference caused by the output voltage of the external power supply has occurred between the current input terminal and the current output terminal of the semiconductor relay by bringing the mechanical contacts of the first and second mechanical relays into a conductive state; and a third step of bringing the current input terminal and the current output terminal of the semiconductor relay into a conductive state after confirming that the potential difference has occurred, and the device stops operation when it is not possible to confirm that the potential difference has occurred in the second step, on condition that there is a record indicating that the potential difference has occurred in at least one previously executed process of the second step. Effect of the Invention
[0010] According to the relay circuit device of the present invention, it is possible to continue operation even when an external load is not connected, without increasing the workload of the user. [Brief description of the drawings]
[0011] [Figure 1]1 is a circuit diagram showing a configuration example of a relay circuit device according to an embodiment of the present invention; [Diagram 2] 1A and 1B are schematic diagrams showing an example of the configuration of an input-side mechanical relay, in which (a) shows a state in which an electromagnet is not energized, and (b) shows a state in which the electromagnet is energized. [Diagram 3] FIG. 2 is a circuit diagram showing an example of a circuit configuration of a first semiconductor relay. [Figure 4] 4 is a timing chart showing an example of the operation of the relay circuit device. [Diagram 5] 10 is a flowchart illustrating an example of a process executed by a control unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] [Embodiment Mode] An embodiment of the present invention will be described with reference to Figures 1 to 5. Note that the embodiment described below is shown as a preferred specific example for carrying out the present invention, and while there are some parts that specifically exemplify various technical matters that are technically preferable, the technical scope of the present invention is not limited to this specific embodiment.
[0013] Fig. 1 is a circuit diagram showing an example of a circuit configuration of a relay circuit device according to an embodiment of the present invention. This relay circuit device 10 is used to pass and cut off load current to first and second external loads 61, 62 in an output module 1 of a programmable controller that controls equipment such as a machine tool. The output module 1 has a plurality of relay circuit devices 10, and Fig. 1 shows one of these relay circuit devices 10.
[0014] The programmable controller executes a sequence program that indicates the operating procedures and operating conditions of the machine tool or other device to be controlled, and operates each relay in the output module 1 according to this sequence program. A typical sequence program is a ladder program written in the ladder diagram language defined in IEC 61131-3. The sequence program is created by the user and stored in the programmable controller.
[0015] The relay circuit device 10 includes two mechanical relays 2A, 2B, two semiconductor relays 3A, 3B, first to sixth photocouplers 41-46, and a control unit 5 that controls the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B. The control unit 5 outputs first and second relay control signals 51, 52 to control the mechanical relays 2A, 2B, and outputs third and fourth relay control signals 53, 54 to control the semiconductor relays 3A, 3B.
[0016] When controlling the mechanical relays 2A, 2B, the control unit 5 asserts (activates) the first and second relay control signals 51, 52 simultaneously and negates (deactivates) the first and second relay control signals 51, 52 simultaneously, but the first relay control signal 51 and the third relay control signal 53, and the second relay control signal 52 and the fourth relay control signal 54 are output by different control circuits in the control unit 5. That is, in the control unit 5, these control circuits are duplicated, and the control unit 5 is configured to be able to cut off the load currents of the first and second external loads 61, 62 if at least one of the control circuits is operating normally.
[0017] The first and second loads 61, 62 are, for example, electric actuators that operate a magnet switch or a movable part of equipment. The first external load 61 is connected to the positive pole of a first external power source 71, and the second external load 62 is connected to the positive pole of a second external power source 72. The output module 1 has a first input terminal 11 connected to the first external load 61, a second input terminal 12 connected to the second external load 62, a first output terminal 13 connected to the negative pole of the first external power source 71, and a second output terminal 14 connected to the negative pole of the second external power source 72. The output module 1 also has a P terminal 15 and an N terminal 16 to which a control power source 8 for operating the mechanical relays 2A and 2B is connected. The control power source 8 generates, for example, a DC voltage of 24 V between the P terminal 15 and the N terminal 16.
[0018] Hereinafter, of the two mechanical relays 2A, 2B, the mechanical relay 2A on the first and second input terminals 11, 12 side may be referred to as the input side mechanical relay 2A, and the mechanical relay 2B on the first and second output terminals 13, 14 side may be referred to as the output side mechanical relay 2B. Also, of the semiconductor relays 3A, 3B, the semiconductor relay 3A for conducting and cutting off the load current of the first external load 61 may be referred to as the first semiconductor relay 3A, and the semiconductor relay 3B for conducting and cutting off the load current of the second external load 62 may be referred to as the second semiconductor relay 3B. The input side mechanical relay 2A corresponds to the first mechanical relay of the invention claimed in the present application. The output side mechanical relay 2B corresponds to the second mechanical relay of the invention claimed in the present application.
[0019] Each of the mechanical relays 2A and 2B is a forced guide relay having an electromagnet 21, one normally closed contact 22, and first and second normally open contacts 23 and 24. When the electromagnet 21 is not energized, the normally closed contact 22 is in an ON (conductive) state, and the first and second normally open contacts 23 and 24 are in an OFF (disconnected) state. When the electromagnet 21 is energized, the normally closed contact 22 is in an OFF state, and the first and second normally open contacts 23 and 24 are in an ON state. The normally closed contact 22 and the first and second normally open contacts 23 and 24 are mechanical contacts that are switched between an ON state and an OFF state by mechanical contact / non-contact between contact members.
[0020] 2 is a schematic diagram showing a configuration example of an input-side mechanical relay 2A, where (a) shows a state in which the electromagnet 21 is not energized, and (b) shows a state in which the electromagnet 21 is energized. The normally closed contact 22 is made up of a fixed contact member 221 attached to the fixed plate 201 and a movable contact member 222 attached to the movable plate 202. The first normally open contact 23 is made up of a fixed contact member 231 attached to the fixed plate 203 and a movable contact member 232 attached to the movable plate 204. The second normally open contact 24 is made up of a fixed contact member 241 attached to the fixed plate 205 and a movable contact member 242 attached to the movable plate 206.
[0021] The electromagnet 21, the normally closed contact 22, and the first and second normally open contacts 23, 24 are housed in a resin housing 28 together with an iron piece 25 arranged opposite the electromagnet 21, a return spring 26 for biasing the iron piece 25, and a guide plate 27 interlocking with the iron piece 25. When the electromagnet 21 is switched between a conductive state and a non-conductive state, the iron piece 25 rotates and swings about a support shaft 251, and the guide plate 27 moves forward and backward. The iron piece 25 is biased to one side in the rotational direction by the return spring 26. The guide plate 27 connects the iron piece 25 and the movable plates 202, 204, 206, and the movable plates 202, 204, 206 flex relative to the fixed plates 201, 203, 205 in conjunction with the movement of the iron piece 25.
[0022] When the electromagnet 21 is not energized, the fixed contact member 221 and the movable contact member 222 of the normally closed contact 22 are in contact with each other, and the fixed contact members 231, 241 and the movable contact members 232, 242 of the first and second normally open contacts 23, 24 are not in contact with each other. When the electromagnet 21 is energized, the fixed contact member 221 and the movable contact member 222 of the normally closed contact 22 are separated from each other, and the fixed contact members 231, 241 and the movable contact members 232, 242 of the first and second normally open contacts 23, 24 are in contact with each other. The mechanical relay 2B on the output side is also configured in a similar manner.
[0023] Fig. 3 is a circuit diagram showing an example of the circuit configuration of the first semiconductor relay 3A. The first semiconductor relay 3A is configured as an IC (Integrated Circuit) in which an IC chip is sealed in a sealing material made of resin or the like, and Fig. 3 shows the circuit configuration together with the pin numbers (1 to 6) of the first semiconductor relay 3A.
[0024] The first semiconductor relay 3A has a photodiode 31, first and second photoMOSFETs 32 and 33, and first and second rectifier diodes 34 and 35. When a current flows from pin 1 to pin 2 and the photodiode 31 emits light, the first and second photoMOSFETs 32 and 33 are activated, and a current can flow from pin 6 to pin 4 by the first photoMOSFET 32 and the second rectifier diode 35, or from pin 4 to pin 6 by the second photoMOSFET 33 and the second rectifier diode 34. The second semiconductor relay 3B is configured in a similar manner.
[0025] A third relay control signal 53 is input from the control unit 5 to the first pin of the first semiconductor relay 3A. When the third relay control signal 53 is asserted, the sixth and fourth pins of the first semiconductor relay 3A are brought into a conductive state. The sixth pin is a current input terminal of the first semiconductor relay 3A, and the fourth pin is a current output terminal of the first semiconductor relay 3A. In addition, a fourth relay control signal 54 is input to the first pin of the second semiconductor relay 3B. When the fourth relay control signal 54 is asserted, the sixth and fourth pins of the second semiconductor relay 3B are brought into a conductive state. The sixth pin is a current input terminal of the second semiconductor relay 3B, and the fourth pin is a current output terminal of the second semiconductor relay 3B.
[0026] Hereinafter, a state in which a current can flow from pin 6 to pin 4 in the first semiconductor relay 3A is referred to as the on state of the first semiconductor relay 3A, and a state in which a current is interrupted between pins 6 and 4 of the first semiconductor relay 3A is referred to as the off state of the first semiconductor relay 3A. Also, a state in which a current can flow from pin 6 to pin 4 in the second semiconductor relay 3B is referred to as the on state of the second semiconductor relay 3B, and a state in which a current is interrupted between pins 6 and 4 of the second semiconductor relay 3B is referred to as the off state of the second semiconductor relay 3B.
[0027] The first semiconductor relay 3A is connected in series between the first normally open contact 23 of the input-side mechanical relay 2A and the first normally open contact 23 of the output-side mechanical relay 2B. The second semiconductor relay 3B is connected in series between the second normally open contact 24 of the input-side mechanical relay 2A and the second normally open contact 24 of the output-side mechanical relay 2B.
[0028] A load current I flows through the first external load 61 when the first normally open contact 23 of the input side mechanical relay 2A, the first semiconductor relay 3A, and the first normally open contact 23 of the output side mechanical relay 2B are all in the ON state. 1 When at least one of the first normally open contact 23 of the input side mechanical relay 2A, the first semiconductor relay 3A, and the first normally open contact 23 of the output side mechanical relay 2B is turned off, the load current I 1 is blocked.
[0029] A load current I flows through the second external load 62 when the second normally open contact 24 of the input side mechanical relay 2A, the second semiconductor relay 3B, and the second normally open contact 24 of the output side mechanical relay 2B are all in the ON state. 2 When at least one of the second normally open contact 24 of the input side mechanical relay 2A, the second semiconductor relay 3B, and the second normally open contact 24 of the output side mechanical relay 2B is turned off, the load current I 2 is blocked.
[0030] The first relay control signal 51 output by the control unit 5 is input to the anode terminal of the first photocoupler 41, and the second relay control signal 52 is input to the anode terminal of the second photocoupler 42. When both the first and second relay control signals 51, 52 are asserted, the phototransistors of the first and second photocouplers 41, 42 are both turned on, and a current supplied from the control power supply 8 flows through each of the electromagnets 21 of the mechanical relays 2A, 2B. As a result, the normally closed contacts 22 of each of the mechanical relays 2A, 2B are turned off, and the first and second normally open contacts 23, 24 are turned on.
[0031] An anode terminal of the third photocoupler 43 is supplied with current from the control power supply 8 via the normally closed contact 22 of the input side mechanical relay 2A. In addition, an anode terminal of the fourth photocoupler 44 is supplied with current from the control power supply 8 via the normally closed contact 22 of the output side mechanical relay 2B. The phototransistor of the third photocoupler 43 is turned on when the normally closed contact 22 of the input side mechanical relay 2A is turned on, and the phototransistor of the fourth photocoupler 44 is turned on when the normally closed contact 22 of the output side mechanical relay 2B is turned on.
[0032] The output signal of the third photocoupler 43 is input to the control unit 5 as a first readback signal 55, and the output signal of the fourth photocoupler 44 is input to the control unit 5 as a second readback signal 56. The first readback signal 55 and the second readback signal 56 are pulled up by pull-up resistors 91 and 92, respectively. The control unit 5 can check the operating state of the mechanical relay 2A on the input side by the first readback signal 55, and can check the operating state of the mechanical relay 2B on the output side by the second readback signal 56.
[0033] The first semiconductor relay 3A has a 6th pin connected to the first normally open contact 23 of the input-side mechanical relay 2A, and a 4th pin connected to the first normally open contact 23 of the output-side mechanical relay 2B. The 6th pin of the first semiconductor relay 3A is connected to the anode terminal of the fifth photocoupler 45 via a resistor 93. The cathode terminal of the fifth photocoupler 45 is connected to the 4th pin of the first semiconductor relay 3A.
[0034] Furthermore, the second semiconductor relay 3B has a 6th pin connected to the second normally open contact 24 of the input-side mechanical relay 2A, and a 4th pin connected to the second normally open contact 24 of the output-side mechanical relay 2B. Furthermore, the 6th pin of the second semiconductor relay 3B is connected to the anode terminal of the sixth photocoupler 46 via a resistor 94. The cathode terminal of the sixth photocoupler 46 is connected to the 4th pin of the second semiconductor relay 3B.
[0035] The output signal of the fifth photocoupler 45 is input to the control unit 5 as a first diagnostic signal 57, and the output signal of the sixth photocoupler 46 is input to the control unit 5 as a second diagnostic signal 58. The first diagnostic signal 57 and the second diagnostic signal 58 are pulled up by pull-up resistors 95 and 96, respectively. The first diagnostic signal 57 is asserted when a potential difference of a predetermined value or more occurs between the 4th pin and the 6th pin of the first semiconductor relay 3A, and is negated otherwise. The second diagnostic signal 58 is asserted when a potential difference of a predetermined value or more occurs between the 4th pin and the 6th pin of the second semiconductor relay 3B, and is negated otherwise. The potential difference generated between the 4th pin and the 6th pin of the first semiconductor relay 3A is due to the output voltage of the first external power source 71. The potential difference generated between the 4th pin and the 6th pin of the second semiconductor relay 3B is due to the output voltage of the second external power source 72.
[0036] The first output terminal 13 is connected to the movable contact member 232 of the first normally open contact 23 of the output side mechanical relay 2B, and a load current I 1 The second output terminal 14 is connected to the movable contact member 242 of the second normally open contact 24 of the output side mechanical relay 2B, and a load current I 2 will be output.
[0037] Fig. 4 is a timing chart showing an example of the operation of the relay circuit device 10. In Fig. 4, the voltage level of each signal is indicated by H (high) and L (low). In Fig. 4, the first external output signal indicates the voltage of the first input terminal 11. Moreover, the second external output signal indicates the voltage of the second input terminal 12.
[0038] The control unit 5 supplies a load current I 1 ,I 2When each of the relays 2A and 2B is energized, the first and second relay control signals 51 and 52 are asserted (L→H) at the same time. As a result, a current flows through the electromagnets 21 of the mechanical relays 2A and 2B, the normally closed contacts 22 of the mechanical relays 2A and 2B are turned off, and the signal states of the first and second readback signals 55 and 56 change from L to H. Almost simultaneously with the change in the first and second readback signals 55 and 56, the first and second normally open contacts 23 and 24 of the input side mechanical relay 2A are turned on, and the signal states of the first and second diagnostic signals 57 and 58 change from H to L (asserted). The signal states of the first and second diagnostic signals 57 and 58 change slightly later than the change in the first and second readback signals 55 and 56, corresponding to the time required for the guide plates 27 of the mechanical relays 2A and 2B to move.
[0039] The control unit 5 can detect, by a change in the signal state of the first and second readback signals 55, 56, that the mechanical relays 2A, 2B have been operated, i.e., that the normally closed contact 22 has been turned off and the first and second normally open contacts 23, 24 have been turned on. The control unit 5 can also detect, by a change in the signal state of the first diagnostic signal 57, that a potential difference has been generated between the 4th pin and the 6th pin of the first semiconductor relay 3A due to the output voltage of the first external power source 71. The control unit 5 can also detect, by a change in the signal state of the second diagnostic signal 58, that a potential difference has been generated between the 4th pin and the 6th pin of the second semiconductor relay 3B due to the output voltage of the second external power source 72.
[0040] The control unit 5 supplies a load current I 1When energizing the first external load 61, the control unit 5 asserts the third relay control signal 53 and turns on the first semiconductor relay 3A after confirming that the first normally open contact 23 of the input side mechanical relay 2A has been turned on by the first readback signal 55, that the first normally open contact 23 of the output side mechanical relay 2B has been turned on by the second readback signal 56, and that a potential difference due to the output voltage of the first external power supply 71 has been generated between the fourth and sixth pins of the first semiconductor relay 3A due to a change in the signal state of the first diagnostic signal 57. 1 When the first semiconductor relay 3A is energized, the first normally open contacts 23 of the mechanical relays 2A and 2B are turned on before the first semiconductor relay 3A is turned on.
[0041] As a result, when the first normally open contacts 23 of the mechanical relays 2A and 2B are turned on, a load current I 1 Since no current flows through the first normally open contact 23, the occurrence of arc discharge at the first normally open contact 23 can be suppressed.
[0042] The control unit 5 also supplies a load current I 2 When energizing the second external load 62, the control unit 5 asserts the fourth relay control signal 54 and turns on the second semiconductor relay 3B after confirming that the second normally open contact 24 of the input side mechanical relay 2A has been turned on by the first readback signal 55, that the second normally open contact 24 of the output side mechanical relay 2B has been turned on by the second readback signal 56, and that a potential difference due to the output voltage of the second external power supply 72 has been generated between the fourth and sixth pins of the second semiconductor relay 3B due to a change in the signal state of the second diagnostic signal 58. 2 When the relays 2A and 2B are energized, the second normally open contacts 24 of the mechanical relays 2A and 2B are turned on before the second semiconductor relay 3B.
[0043] As a result, when the second normally open contacts 24 of the mechanical relays 2A and 2B are turned on, a load current I 2 Since no current flows through the second normally open contact 24, the occurrence of arc discharge at the second normally open contact 24 can be suppressed.
[0044] On the other hand, the control unit 5 controls the load current I 1 ,I 2 When cutting off the relays, the first and second relay control signals 51, 52 and the third and fourth relay control signals 53, 54 are simultaneously negated (H → L). Since the first and second semiconductor relays 3A, 3B have a faster response speed than the mechanical relays 2A, 2B, by simultaneously negating all of the first to fourth relay control signals 51-54, the first and second semiconductor relays 3A, 3B are turned off before the first and second normally open contacts 23, 24 of the mechanical relays 2A, 2B, respectively.
[0045] As a result, the load current I is supplied by the first and second semiconductor relays 3A and 3B before the first and second normally open contacts 23 and 24 of the mechanical relays 2A and 2B are turned off. 1 ,I 2 is interrupted, the movable contact members 232, 242 are separated from the fixed contact members 231, 241 in the first and second normally open contacts 23, 24 with no current flowing through them. This makes it possible to prevent arc discharge from occurring at the first and second normally open contacts 23, 24.
[0046] When the signal states of one or both of the first and second readback signals 55, 56 do not change from L to H even if the control unit 5 asserts the first and second relay control signals 51, 52, it determines that an abnormality has occurred in the circuit, issues an alarm, negates all of the first to fourth relay control signals 51-54, and stops the control operations of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B. Also, when the signal states of one or both of the first and second readback signals 55, 56 remain H, the control unit 5 determines that an abnormality has occurred in the circuit, issues an alarm, negates all of the first to fourth relay control signals 51-54, and stops the control operations of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B.
[0047] FIG. 5 shows a load current I 1 1 is a flowchart showing in more detail an example of a process executed by the control unit 5 when a load current I is applied to the first external load 61. 1 When energizing the relays, the control unit 5 first asserts the first and second relay control signals 51, 52 (step S1). Next, the control unit 5 determines whether the first readback signal 55 and the second readback signal 56 are both on (H level) (steps S2, S3), and if the first readback signal 55 and the second readback signal 56 are not both on even after a predetermined time has elapsed (step S4: Yes), it issues an alarm and stops operation (step S5).
[0048] Furthermore, if both the first read-back signal 55 and the second read-back signal 56 are on (steps S2 and S3: Yes), the control unit 5 determines whether the first diagnostic signal 57 is active (at L level) (step S6). As described above, the first diagnostic signal 57 is activated when a potential difference due to the output voltage of the first external power supply 71 occurs between the 4th and 6th pins of the first semiconductor relay 3A.
[0049] If it is determined in step S6 that the first diagnosis signal 57 is in an active state (step S6: Yes), the control unit 5 asserts the third relay control signal 53 (step S7). As a result, the sixth pin and the fourth pin of the first semiconductor relay 3A are brought into a conductive state, and a load current I 1 is energized.
[0050] Furthermore, if the first diagnostic signal 57 is determined to be in an active state in step S6 (step S6: Yes), the control unit 5 turns on a first confirmed flag (step S8). This first confirmed flag is cleared (turned off) by an initial process after the power supply of the programmable controller including the relay circuit device 10 is turned on, and once the first confirmed flag is turned on, the on state is maintained until the power supply of the programmable controller is cut off.
[0051] On the other hand, if the first diagnostic signal 57 is not in the active state in the determination in step S6 (step S6: No), the control unit 5 repeats the determination process in step S6 until a predetermined time has elapsed (step S9). The first diagnostic signal 57 may not be in the active state due to a short between the 4th and 6th pins of the first semiconductor relay 3A, a lack of conduction of the first normally open contact 23 of either the input side or the output side mechanical relay 2A, 2B, or a lack of connection of the first external load 61 or the second external power source 71.
[0052] If the first diagnosis signal 57 does not become active even after a predetermined time has elapsed (step S9: Yes), the control unit 5 judges whether or not the first confirmed flag is in an ON state (step S10). If the first confirmed flag is in an ON state (step S10: Yes), the control unit 5 issues an alarm, negates all of the first to fourth relay control signals 51 to 54, and stops the control operations of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B (step S11). On the other hand, if the first confirmed flag is not in an ON state (step S10: No), the control unit 5 does not issue an alarm and continues the control operations of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B. In addition, when the control unit 5 stops the control operations in step S5 or S11, the execution of the sequence program of the programmable controller is stopped. The issuance of the alarm is notified to the user by, for example, lighting an indicator lamp or displaying an error code or an error message.
[0053] The control unit 5 also supplies a load current I 2 When energizing the relays 2A, 2B and the second semiconductor relay 3B, the control unit 5 controls the mechanical relays 2A, 2B and the second semiconductor relay 3B in the same procedure as described above. In this case, the control unit 5 determines whether the second diagnostic signal 58 is in an active state in a process corresponding to the above step S6, and if the second diagnostic signal 58 is in an active state, asserts the fourth relay control signal 54 and turns on the second confirmed flag. If the second diagnostic signal 58 is not in an active state for a predetermined time and the second confirmed flag is on, an alarm is issued and the control operation is stopped. If the second diagnostic signal 58 is not in an active state for a predetermined time, but the second confirmed flag is not on, the control operation is continued. The second confirmed flag is cleared (off) by the initial process after the power is turned on, like the first confirmed flag, and if the second confirmed flag is turned on even once, the on state is maintained until the power is cut off.
[0054] The first confirmed flag being in an on state indicates that the first external load 61 and the first external power supply 71 are already connected. If the first diagnostic signal 57 does not become active even though the first external load 61 and the first external power supply 71 are already connected, it is possible that, for example, a short circuit fault has occurred in the first semiconductor relay 3A or its periphery. Furthermore, the second confirmed flag being in an on state indicates that the second external load 62 and the second external power supply 72 are already connected. If the second diagnostic signal 58 does not become active even though the second external load 62 and the second external power supply 72 are already connected, it is possible that, for example, a short circuit fault has occurred in the second semiconductor relay 3B or its periphery.
[0055] In this manner, the control unit 5 supplies the load current I 1 ,I 2 When energizing the relays 2A, 2B, the first and second normally open contacts 23, 24 of the mechanical relays 2A, 2B are all brought into a conductive state by sequential operations including a first step (step S1 above) of bringing the first and second normally open contacts 23, 24 of the mechanical relays 2A, 2B into a conductive state, a second step (step S6 above) of confirming that a potential difference due to the output voltages of the first and second external power sources 71, 72 has occurred between the current input terminals and the current output terminals of the semiconductor relays 3A, 3B by bringing the first and second normally open contacts 23, 24 of the mechanical relays 2A, 2B into a conductive state, and a third step (step S7 above) of bringing the current input terminals and the current output terminals of the semiconductor relays 3A, 3B into a conductive state after confirming that this potential difference has occurred.
[0056] Furthermore, when the control unit 5 cannot confirm that a potential difference has occurred in the second step (step S6), it issues an alarm on the condition that there is a record (first confirmation flag and second confirmation flag) indicating that a potential difference has occurred in at least one previously executed process of the second step (step S6), and stops the control operation of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B. In other words, even when it cannot confirm that a potential difference has occurred in the second step (step S6), if there is no record indicating that a potential difference has occurred in the previously executed process of the second step (step S6), it continues the control operation of the mechanical relays 2A, 2B and the semiconductor relays 3A, 3B. This is a measure to allow the sequence program to be executed and the adjustment work to be performed even if any of the first and second external loads 61, 62 and the first and second external power sources 71, 72 are not connected, for example, during startup adjustment of a machine tool.
[0057] That is, if either the first external load 61 or the first external power supply 71 is not connected, the first diagnostic signal 57 is not turned on, so the determinations in steps S6 and S10 are always negative (No), no alarm is issued, and operation continues. Similarly, if either the second external load 62 or the second external power supply 72 is not connected, no alarm is issued, and operation continues. Therefore, even if either the first and second external loads 61, 62 and the first and second external power supplies 71, 72 are not connected, the sequence program can be executed.
[0058] In this way, according to this embodiment, it is possible to continue operation even in a state where an external load is not connected, without increasing the workload of the user.
[0059] (Additional Note) Although the present invention has been described above based on the embodiment, the invention according to the claims is not limited to the embodiment. It should be noted that not all of the combinations of features described in the embodiment are necessarily essential to the means for solving the problems of the invention.
[0060] In addition, the present invention can be modified as appropriate by omitting some of the configurations, or adding or replacing some of the configurations, without departing from the spirit of the present invention. For example, in the above embodiment, the load current I 1 ,I 2 In the above embodiment, the semiconductor relays 3A and 3B are connected in series between the input-side mechanical relay 2A and the output-side mechanical relay 2B, but one of the input-side and output-side mechanical relays 2A and 2B may be omitted. [Explanation of symbols]
[0061] 10... Relay circuit device 23, 24... First and second normally open contacts 2A, 2B: Mechanical relay 3A, 3B: Semiconductor relay 5...Control unit 51...First relay control signal 52: Second relay control signal 53: Third relay control signal 54...fourth relay control signal 55...first readback signal 56...second readback signal 57...first diagnostic signal 58...second diagnostic signal 61...first external load 62... second external load 71... first external power supply 72…Second external power supply I 1 ,I 2 …Load current
Claims
1. A relay circuit device comprising: a mechanical relay in which a mechanical contact is switched between a conductive state and a cut-off state in response to a relay control signal; a semiconductor relay connected in series with the mechanical contact; and a control unit that controls the mechanical relay and the semiconductor relay, wherein when the mechanical contact and the semiconductor relay are both in a conductive state, a load current from an external power source flows to an external load via the mechanical contact and the semiconductor relay, and when at least one of the mechanical contact and the semiconductor relay is in a cut-off state, the load current is cut off, when the control unit passes the load current through the external load, the control unit brings both the mechanical contact and the semiconductor relay into a conductive state by sequential operations including: a first step of bringing the mechanical contact into a conductive state; a second step of confirming that a potential difference due to an output voltage of the external power supply has occurred between the current input terminal and the current output terminal of the semiconductor relay by bringing the mechanical contact into a conductive state; and a third step of bringing the current input terminal and the current output terminal of the semiconductor relay into a conductive state after confirming that the potential difference has occurred; when it cannot be confirmed that the potential difference has occurred in the second step, the operation is stopped on condition that there is a record indicating that the potential difference has occurred in at least one previously executed process of the second step. Relay circuit device.
2. A relay circuit device comprising: first and second mechanical relays each having a mechanical contact that switches between a conductive state and a cut-off state in response to a relay control signal; a semiconductor relay connected in series with the first and second mechanical relays; and a control unit that controls the first and second mechanical relays and the semiconductor relay, wherein when the mechanical contacts of the first and second mechanical relays and the semiconductor relay are all in a conductive state, a load current from an external power supply flows to an external load via the mechanical contacts of the first and second mechanical relays and the semiconductor relay, and when at least one of the mechanical contacts of the first and second mechanical relays and the semiconductor relay is in a cut-off state, the load current is cut off, the control unit, when passing the load current through the external load, places all of the mechanical contacts of the first and second mechanical relays and the semiconductor relay in a conductive state by sequential operations including: a first step of placing the mechanical contacts of the first and second mechanical relays in a conductive state; a second step of confirming that a potential difference due to an output voltage of the external power supply has occurred between a current input terminal and a current output terminal of the semiconductor relay by placing the mechanical contacts of the first and second mechanical relays in a conductive state; and a third step of placing the current input terminal and the current output terminal of the semiconductor relay in a conductive state after confirming that the potential difference has occurred; when it cannot be confirmed that the potential difference has occurred in the second step, the operation is stopped on condition that there is a record indicating that the potential difference has occurred in at least one previously executed process of the second step. Relay circuit device.
Citation Information
Patent Citations
Method and device for checking sequence program
JP1996305422A
Relay failure detection device
JP2010277835A
Relay failure diagnosis device
JP2020047556A
Controller for power supply circuit
WO2008062856A1
