Dark test method and anomaly diagnostic device

The method progressively adjusts diagnostic pulse width to ensure accurate abnormality diagnosis in output switching circuits, addressing false detections and component variations, ensuring reliable operation.

JP7960539B2Active Publication Date: 2026-12-03OKUMA CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022205495
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2026-12-03
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

Existing dark test methods for output switching circuits in programmable logic controllers face challenges in accurately diagnosing abnormalities in output devices that are always ON, particularly due to false detections caused by short diagnostic pulse widths and variations in circuit characteristics and temperature fluctuations.

Method used

A method and apparatus that progressively increase the diagnostic pulse width until a response pulse is detected, allowing for accurate abnormality diagnosis with minimal impact on the output devices, automatically adjusting to variations in circuit characteristics and temperature.

Benefits of technology

Enables reliable abnormality diagnosis with minimal diagnostic pulse width, reducing false detections and adapting to component variations and temperature fluctuations without requiring manual parameter adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007960539000001
    Figure 0007960539000001
  • Figure 0007960539000002
    Figure 0007960539000002
  • Figure 0007960539000003
    Figure 0007960539000003
Patent Text Reader

Abstract

To provide a dark test method that performs a dark test with a minimum diagnostic pulse width.SOLUTION: A dark test method for diagnosing whether there is an abnormality in an output switching circuit 2 that outputs a voltage signal so as to switch an output appliance 5 on and off, repeats a test process while gradually increasing a diagnostic pulse width until a response pulse is detected, and diagnoses that the output switching circuit 2 is abnormal when the diagnostic pulse width becomes equal to or exceeds a specified upper limit value, the test process including: outputting an OFF pulse-shaped switching signal of the diagnostic pulse width to the output switching circuit 2; and determining whether or not an OFF pulse-shaped response pulse can be detected from an output detection signal obtained by digitally converting a voltage signal output from the output switching circuit 2.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This specification discloses a dark test method for diagnosing an abnormality in an output switching circuit that outputs a voltage signal to output equipment, and an abnormality diagnosis device. [Background Art]

[0002] A programmable logic controller (PLC) used in the field of factory automation (FA) for automating factory production processes is a device that controls non-control equipment. In the output device of such a PLC, for example, when an emergency stop is requested, it is periodically diagnosed whether it is possible to stop the connected output equipment by controlling the output to the safe side (output OFF side).

[0003] For output equipment that repeatedly turns ON and OFF during normal operation (for example, a solenoid valve or the like), abnormality diagnosis can be performed at the timing when an output OFF command is issued. On the other hand, in the case of output equipment that is always ON during operation, such as a STO release input to a servo drive unit with a Safe Torque Off (STO) function, there is no timing to issue an output OFF command during long-term continuous operation, making abnormality diagnosis impossible.

[0004] Therefore, a method generally called a dark test or a pulse test is used, in which abnormality diagnosis is performed by outputting a short OFF pulse that the output equipment does not respond to.

[0005] FIG. 5 is a block diagram showing the configuration of an abnormality diagnosis device having a dark test function. Hereinafter, a dark test method will be described with reference to FIG. 5.

[0006] The output control unit 1 outputs an output switching signal to the output switching circuit 2 based on the output command output by the logic unit (not shown) and the diagnostic request output by the output diagnostic unit 4b. The output control unit 1 also outputs an output state indicating the content of the currently outputting output switching signal to the output diagnostic unit 4b. The output switching signal remains in the OFF state when the output command is OFF, and changes according to the diagnostic request when the output command is ON. Specifically, the output switching signal remains in the ON state when the output command is ON and the diagnostic request is OFF, and changes to an OFF pulse state when the output command is ON and the diagnostic request is ON. The output state includes three types of states: "Output ON" where the output switching signal remains in the ON state, "Output OFF" where the output switching signal remains in the OFF state, and "Diagnostic pulse output" where the output switching signal changes to an OFF pulse state.

[0007] The output switching circuit 2 is a circuit interposed between the power supply 6 for the output device and the output device 5, and includes a switch. Based on the output switching signal output by the output control unit 1, the output switching circuit 2 switches the switch and outputs an output signal, which is a voltage signal, to the output device 5. In a steady state, the output signal is the output voltage of the power supply 6 for the output device when the output switching signal is ON, and 0V when the output switching signal is OFF. The switch is, for example, an electrical switch made of semiconductors.

[0008] The output detection circuit 3 converts the output signal output by the output switching circuit 2 into a digital signal and outputs it to the output diagnostic unit 4b as an output detection signal.

[0009] The output diagnostic unit 4b diagnoses the output switching circuit 2 based on the output detection signal output by the output detection circuit 3 and the output status output by the output control unit 1. That is, if the output status and the output detection signal do not match, the diagnostic unit 41b outputs an abnormality detection signal indicating an abnormality in the output switching circuit 2. When an abnormality detection signal is output, various error processing is performed in a logic unit (not shown). The output diagnostic unit 4b also outputs a diagnostic request and a diagnostic pulse width to the output control unit 1. For example, the diagnostic pulse request unit 42b outputs a diagnostic request ON to the output control unit 1 when the "output ON" state continues for a certain period of time. The diagnostic pulse request unit 42b also outputs a value pre-set in the pulse width storage unit 44 as the diagnostic pulse width to the output control unit 1.

[0010] Output device 5 is, for example, a solenoid valve or a servo drive unit with STO function.

[0011] The output device power supply 6 is, for example, a power supply for driving a solenoid valve or an input power supply for the STO release terminal of a servo drive unit with an STO function.

[0012] The following describes the operation when the output control unit 1 outputs a diagnostic pulse as an output switching signal.

[0013] When the diagnostic request is ON, the output control unit 1 outputs a diagnostic pulse (OFF pulse) as an output switching signal, as shown in the output switching signal in Figure 3. The OFF pulse width of the diagnostic pulse is the same as the diagnostic pulse width output by the output diagnostic unit 4b. Due to the circuit's response delay, the output signal output by the output switching circuit 2 in response to the diagnostic pulse in Figure 3 will have a waveform similar to the output signal shown in Figure 3. Furthermore, the output detection circuit 3 digitally converts the output signal, and the output detection signal becomes an OFF pulse-shaped digital signal (hereinafter referred to as the "response pulse") as shown in the output detection signal in Figure 3. When the output state is "diagnostic pulse output", the diagnostic unit 41b of the output diagnostic unit 4b checks whether the output detection signal includes the response pulse. If the output detection signal includes the response pulse, the output diagnostic unit 4b diagnoses that the output signal can be turned OFF, that is, that the output switching circuit 2 is functioning normally. Conversely, if the output detection signal does not include the response pulse, the output diagnostic unit 4b outputs an abnormality detection signal indicating an abnormality in the output switching circuit 2.

[0014] If the pulse width of the diagnostic pulse is too short, the output signal will have a waveform that does not completely turn OFF, as shown in the output signal in Figure 4, for example. In this case, if the output signal does not fall below the threshold voltage of the output detection circuit 3, the output detection signal will not contain a response pulse, as shown in the output detection signal in Figure 4, and the output diagnostic unit 4b will incorrectly detect an abnormality in the output switching circuit 2. On the other hand, if the pulse width of the diagnostic pulse is too long, the output device 5 will react to the OFF state of the output signal.

[0015] In other words, the pulse width of the diagnostic pulse is important in dark testing, and it is necessary to appropriately set the pulse width of the diagnostic pulse depending on the variation in the response characteristics of the output switching circuit 2 and the type of output device 5 connected. As a method for setting the pulse width of the diagnostic pulse, for example, Patent Document 1 discloses a technique in which the diagnostic pulse is output with multiple pulse widths, and the pulse width of the output detection signal corresponding to each pulse width is compared to determine the pulse width that does not cause false detection by auto-tuning. [Prior art documents] [Patent Documents]

[0016] [Patent Document 1] International Publication No. 2019 / 069433 [Overview of the Initiative] [Problems that the invention aims to solve]

[0017] For dark testing, a shorter diagnostic pulse width is preferable to minimize the impact on output devices. However, a short diagnostic pulse width increases the likelihood of false detection of abnormalities due to individual differences in the connected output devices and the semiconductor components constituting the output switching circuit 2. Therefore, to avoid false detection of abnormalities, it is necessary to set a diagnostic pulse width with a sufficient margin in advance. Furthermore, the size of the margin needs to take into account the characteristic variations of the semiconductor components constituting the output switching circuit 2 and characteristic fluctuations due to temperature, requiring the work of determining an appropriate margin through design and evaluation.

[0018] The problem that this invention aims to solve is to provide a dark test method and diagnostic apparatus that perform dark tests with the minimum diagnostic pulse width. [Means for solving the problem]

[0019] A dark test method for diagnosing whether there is an abnormality in an output switching circuit that outputs a voltage signal for switching the ON / OFF state of an output device includes a test process that includes outputting an OFF pulse-shaped switching signal with a diagnostic pulse width to the output switching circuit, and determining whether an OFF pulse-shaped response pulse can be detected from an output detection signal obtained by digitally converting the voltage signal output from the output switching circuit, and repeating this process while gradually increasing the diagnostic pulse width until the response pulse can be detected, and diagnosing that the output switching circuit is abnormal when the diagnostic pulse width exceeds a specified upper limit.

[0020] Further, an abnormality diagnosis device that diagnoses whether there is an abnormality in an output switching circuit that outputs a voltage signal for ON / OFF switching of output equipment includes: an output detection circuit that obtains an output detection signal obtained by digitally converting the voltage signal; an output control unit that outputs a switching signal indicating ON or OFF to the output switching circuit; and an output diagnosis unit that executes a dark test for diagnosing whether there is an abnormality in the output switching circuit. In the dark test, the output diagnosis unit instructs the output control unit to output an OFF pulse-shaped output switching signal with a diagnostic pulse width, and repeats test processing of determining whether an OFF pulse-shaped response pulse can be detected from the output detection signal while gradually increasing the diagnostic pulse width until the response pulse can be detected. When the diagnostic pulse width becomes equal to or greater than a specified upper limit value, it is diagnosed that the output switching circuit is abnormal.

Effects of the Invention

[0021] By repeatedly performing the test processing while increasing the diagnostic pulse width, the dark test can be performed with the minimum diagnostic pulse width according to variations in circuit characteristics or characteristic fluctuations due to temperature. In addition, since the diagnostic pulse width of the dark test can be automatically adjusted according to variations in circuit characteristics or characteristic fluctuations due to temperature, even when circuit components are changed due to production discontinuation or dual purchasing with alternative components, it is unnecessary to change parameters related to the dark test.

Brief Description of the Drawings

[0022] [Figure 1] It is a flowchart showing the flow of a dark test method. [Figure 2] It is a block diagram showing the configuration of a diagnostic device having a dark test function. [Figure 3] It is a diagram showing an example of the relationship between an output switching signal and an output detection signal during a dark test. [Figure 4] It is a diagram showing an example of the relationship between an output switching signal and an output detection signal during a dark test. [Figure 5] It is a block diagram showing a diagnostic device having a dark test function in a conventional example. [Description of Embodiments]

[0023] Hereinafter, examples of the present invention will be described. FIG. 2 is a block diagram showing the configuration of the diagnostic device. Elements common to the conventional example described above with reference to FIG. 5 are assigned the same reference numerals, and descriptions thereof are omitted.

[0024] The output diagnostic unit 4a diagnoses the output switching circuit 2 based on the output detection signal output by the output detection circuit 3 and the output state output by the output control unit 1. That is, when the output state and the output detection signal do not match, the diagnostic unit 41a outputs an abnormality detection signal indicating an abnormality in the output switching circuit 2. When the abnormality detection signal is output, various error processes are executed by a logic unit (not shown). Further, the output diagnostic unit 4a outputs a diagnostic request and a diagnostic pulse width to the output control unit 1. For example, the diagnostic pulse request unit 42a outputs a diagnostic request ON to the output control unit 1 when the "output ON state" as the output state continues for a certain period of time, and when the diagnostic unit 41a requests re-execution of the test process. Further, the diagnostic pulse request unit 42a outputs the value set in the pulse width changing unit 43 to the output control unit 1 as the diagnostic pulse width.

[0025] The diagnostic pulse request unit 42a updates the diagnostic pulse width according to the factor for outputting the diagnostic request ON, and sets it in the pulse width changing unit 43. The diagnostic unit 41a outputs an abnormality detection signal when the output state is "ON output" or "OFF output" and the output state and the output detection signal do not match. Further, when the output state is "diagnostic pulse output", the diagnostic unit 41a requests the diagnostic pulse request unit 42a to re-execute the test process when a response pulse (OFF pulse) is not obtained from the output detection signal and the diagnostic pulse width is less than the upper limit value. When a response pulse is not obtained and the diagnostic pulse width is equal to or greater than the upper limit value, an abnormality detection signal is output.

[0026] FIG. 1 is a flowchart showing an example of the dark test of the present invention. The output control unit 1 and the output diagnostic unit 4a in the block diagram of FIG. 2 execute each step shown in the flowchart of FIG. 1.

[0027] The diagnostic pulse request unit 42a of the output diagnostic unit 4a starts the dark test process and proceeds to step S01, for example, when the output state output by the output control unit 1 remains in the ON state for a certain period of time. The output diagnostic unit 4a then executes each step up to step S06.

[0028] In step S01, the diagnostic pulse request unit 42a checks the "test not performed" flag and determines whether it is the first dark test or not. The "test not performed" flag is a flag that is turned ON during the power-on initialization process (not shown). If the "test not performed" flag is ON, the process proceeds to step S02; if the "test not performed" flag is OFF, the process proceeds to step S03.

[0029] Step S02 is the step of determining the initial value of the diagnostic pulse width when the dark test is performed for the first time. In step S02, the diagnostic pulse request unit 42a sets the preset minimum pulse width as the diagnostic pulse width for the pulse width change unit 43, and proceeds to step S04.

[0030] Step S03 is the step of determining the initial value of the diagnostic pulse width when performing the dark test for the second time or later. In step S03, the diagnostic pulse request unit 42a sets the diagnostic pulse width of the pulse width change unit 43 to a value obtained by subtracting a preset pulse width increment from the previous pulse width value saved in step S09 during the previous dark test, and then proceeds to step S04.

[0031] Steps S04 and S05 are processes in which the pulse width changing unit 43 limits the diagnostic pulse width to the minimum pulse width if the diagnostic pulse width set in the pulse width changing unit 43 in S03 is less than the minimum pulse width, and the process proceeds to step S06 after the limiting process. The minimum pulse width is a value that has been set in advance.

[0032] In step S06, the diagnostic pulse request unit 42a outputs a diagnostic request ON and the diagnostic pulse width set in the pulse width change unit 43 to the output control unit 1, and the process proceeds to step S07.

[0033] Step S07 is a process executed by the output control unit 1. The output control unit 1 outputs a diagnostic pulse with a diagnostic pulse width according to the diagnostic request and proceeds to step S08. Note that each step from step S08 onward is executed by the output diagnostic unit 4a.

[0034] In step S08, the diagnostic unit 41a determines whether there is a response pulse to the diagnostic pulse output in step S07 and notifies the diagnostic pulse request unit 42a. If the output test signal contains a response pulse, the process proceeds to step S09; otherwise, the process proceeds to step S11.

[0035] Step S09 is the process executed when the dark test is completed successfully. The diagnostic pulse request unit 42a considers the dark test to have been completed successfully when it receives a response pulse corresponding to the diagnostic pulse. The diagnostic pulse request unit 42a then saves the diagnostic pulse width when the dark test is completed successfully as the previous pulse width value and turns OFF the test not performed flag. After that, the process proceeds to step S10.

[0036] In step S10, the diagnostic pulse request unit 42a turns off the diagnostic request and completes the dark test.

[0037] Steps S11 and S12 are processes to increase the diagnostic pulse width if there is no response pulse in step S08. In step S11, the diagnostic pulse request unit 42a adds the pulse width increment to the diagnostic pulse width output by the pulse width change unit 43 and resets it to the pulse width change unit 43. In step S12, the diagnostic unit 41a compares the reset diagnostic pulse width with the maximum pulse width. If the diagnostic pulse width is less than or equal to the maximum pulse width, the process proceeds to step S13. In step S13, the diagnostic pulse request unit 42a turns off the diagnostic request and then performs the processes from step S06 onwards again with the reset diagnostic pulse width. If the diagnostic pulse width exceeds the maximum pulse width, the process proceeds to step S14. The maximum pulse width is a preset value.

[0038] Step S14 is a process that is executed when the diagnostic pulse width of the diagnostic pulse exceeds the maximum pulse width. In step S14, the diagnostic unit 41a outputs an abnormality detection signal, and a logic unit (not shown) detects an abnormality in the output switching circuit 2 from the abnormality detection signal and performs various error processing.

[0039] In this way, by configuring the processing of the output control unit 1 and the output diagnostic unit 4, the dark test can always be performed with the minimum pulse width, even if there are variations in the characteristics of the output switching circuit 2 or characteristic fluctuations due to temperature. The maximum pulse width should be set to match, for example, the output device with the slowest response among the output devices expected to be connected to the output switching circuit 2. Naturally, if a fast-responding output device is connected, the output device will respond to the diagnostic pulse when the diagnostic pulse width is the maximum pulse width, but if the output switching circuit 2 is functioning normally, the diagnostic pulse width will only increase to a pulse width at which the output device does not respond, so there is no effect. For example, if there is a malfunction in the output switching circuit 2 and it cannot output OFF, it will not be able to output a diagnostic pulse and the output device will not respond. In this case, the malfunction is detected in step S14 of Figure 1 and appropriate error processing is performed.

[0040] Furthermore, the embodiments of the present invention are independent of the implementation configuration of the output device 5 and the power supply 6 for the output device shown in Figure 2. That is, the diagnostic device, the output device 5, and the power supply 6 for the output device shown in Figure 2 may be located in the same device, or they may be located in different devices. For example, the technology disclosed herein may be used as a dark test method for the STO function in a servo drive unit that realizes the STO function by shutting off the primary power supply of a photocoupler for transmitting gate signals that drives power elements. For example, the output device 5 in Figure 2 may be a photocoupler that transmits gate signals, the power supply 6 for the output device may be the primary power supply for the photocoupler, and the output switching circuit 2 may be a primary power supply shut-off circuit for the photocoupler, and all of these may be located in the same device. [Explanation of symbols]

[0041] 1 Output control unit, 2 Output switching circuit, 3 Output detection circuit, 4a, 4b Output diagnostic unit, 5 Output device, 6 Power supply for output device, 41a, 41b Diagnostic unit, 42a, 42b Diagnostic pulse request unit, 43 Pulse width changing unit, 44 Pulse width storage unit.

Claims

1. A dark test method for diagnosing whether there is an abnormality in an output switching circuit that outputs a voltage signal for switching an output device ON / OFF, The output switching circuit outputs an OFF pulse-shaped switching signal with a diagnostic pulse width. The output detection signal obtained by digitally converting the voltage signal output from the output switching circuit is used to determine whether or not an OFF pulse-like response pulse can be detected. The test process, including the above, is repeated while gradually increasing the diagnostic pulse width until the response pulse can be detected. If the response pulse is detected, the output switching circuit is diagnosed as normal and the dark test is completed. If the diagnostic pulse width exceeds a specified upper limit, the output switching circuit is diagnosed as abnormal and the dark test is completed. A dark testing method characterized by the following features.

2. A dark test method according to claim 1, A dark test method characterized by storing the diagnostic pulse width when the response pulse is detected as the previous pulse width value, and determining the diagnostic pulse width in the first test process based on the previous pulse width value during the next dark test.

3. An abnormality diagnosis device for diagnosing whether there is an abnormality in an output switching circuit that outputs a voltage signal for switching the ON / OFF status of an output device, An output detection circuit that acquires an output detection signal obtained by digitally converting the aforementioned voltage signal, The output switching circuit includes an output control unit that outputs a switching signal indicating ON or OFF, An output diagnostic unit that performs a dark test to diagnose whether or not there is an abnormality in the output switching circuit, Equipped with, In the dark test, the output diagnostic unit instructs the output control unit to output an OFF pulse-shaped output switching signal with a diagnostic pulse width, and repeatedly performs a test process to determine whether an OFF pulse-shaped response pulse can be detected from the output detection signal, while gradually increasing the diagnostic pulse width until the response pulse can be detected. If the response pulse is detected, the output switching circuit is diagnosed as normal and the dark test is completed. If the diagnostic pulse width exceeds a specified upper limit, the output switching circuit is diagnosed as abnormal and the dark test is completed. An abnormality diagnosis device characterized by the following features.

4. An abnormality diagnosis device according to claim 3, The output diagnostic device stores the diagnostic pulse width when the response pulse is detected as the previous pulse width value, and for the next dark test, determines the diagnostic pulse width for the initial test process based on the previous pulse width value, characterized in that the output diagnostic device stores the diagnostic pulse width when the response pulse is detected as the previous pulse width value, and for the next dark test, determines the diagnostic pulse width for the initial test process.

Citation Information

Patent Citations

  • Information output apparatus

    JP2016020838A

  • Circuit arrangement for turning on and off electrical load and method for checking status of safety output part of the circuit arrangement

    JP2019220183A

  • Apparatus and method for monitoring the function of a safety switch means

    US20160195582A1

  • Parameter adjustment system, parameter adjustment method, and input-output device

    WO2019069433A1

  • Test pulse width calculation device, control device, test pulse width calculation method, and program

    WO2021005785A1