Disclosure of Invention
The embodiment of the invention provides a digital inverter welding machine and a power-on self-test method thereof, which aim to solve the problem that once a loop of the conventional digital inverter welding machine has a fault, an IGBT is damaged.
The invention discloses a power-on self-test method of a digital inverter welding machine, which comprises the following steps:
after the welding machine is electrified, generating a pulse group M1 to control the self inverter circuit to work;
acquiring a primary side current signal and a voltage value V of a voltage signal output by an inverter loop, and converting the primary side current feedback signal into an actual pulse group W2;
and self-checking according to a preset self-checking rule according to the voltage value V of the voltage signal, a preset threshold voltage value VH, a difference value between the pulse width W1 of the generated pulse group M1 and the pulse width W2 of the actual pulse group M2 and a preset pulse width WH.
Preferably, the method further comprises: and displaying the self-checking result in a prompt code mode.
Preferably, the self-checking rule is:
when the voltage value V of the voltage signal is smaller than the threshold voltage value VH, the secondary rectification loop or the main loop is abnormal, and the abnormal error-reporting prompt of the secondary rectification loop or the main loop is generated and the start-up is suspended;
when the voltage value V1 of the voltage signal is greater than or equal to the threshold voltage value VH and the difference value between the pulse width W2 of the actual pulse group and the pulse width W1 of the generated pulse group is greater than or equal to the preset pulse width WH, the inverter circuit is abnormal, and an abnormal error-reporting prompt of the inverter circuit is generated and the startup is suspended;
when the voltage value V1 of the voltage signal is greater than or equal to the threshold voltage value VH and the difference value between the pulse width W1 of the generated pulse group and the pulse width W2 of the actual pulse group is smaller than the preset pulse width WH, the machine works normally and the power-on self-test is finished.
Preferably, after the pulse group M1 is generated, the method further records the sequence number n of the currently generated pulse group M1, and when the voltage value V1 of the voltage signal is greater than or equal to the threshold voltage value VH, and the difference between the pulse width W1 of the generated pulse group and the pulse width W2 of the actual pulse group is smaller than the preset pulse width WH, the method further performs the following steps:
comparing the number N of the currently generated pulse group M1 with the preset maximum value N of the number of the pulse groups, and if the number N of the currently generated pulse group is equal to N, finishing the power-on self-test; if the sequence number N of the currently generated pulse group is smaller than N, waiting for the expiration of a preset time interval T, and generating a next pulse width group M1;
wherein N is a positive integer less than or equal to 5.
Preferably, the pulse group M1 generated as described above includes 5 pulse waves each having a pulse width of 2 us.
Preferably, the preset pulse width WH is 200 ns.
Preferably, the predetermined time interval T is 200 ns.
The invention further discloses a digital inverter welding machine which comprises a main chip circuit, a control circuit and an inverter circuit which are connected in sequence; the digital inverter welding machine also comprises an actual pulse width detection circuit; wherein,
the main chip circuit is used for generating a pulse group M1 and sending the pulse group M1 to the control circuit; acquiring a voltage value V of a voltage signal output by the inverter circuit, and performing self-checking on the digital inverter welding machine according to a preset self-checking rule according to the voltage value V and a preset threshold voltage value VH, and the difference value between the pulse width W1 of the generated pulse group M1 and the pulse width W2 of the actual pulse group M2 and the preset pulse width WH;
the control circuit is used for generating a driving signal when receiving the pulse group and driving the inverter circuit to work;
the actual pulse width detection circuit is used for collecting the primary side current signal output by the inverter circuit, converting the primary side current signal into an actual pulse group M2 and sending the actual pulse group M2 to the main chip circuit.
Preferably, the digital inverter welding machine further comprises a display panel for displaying the prompt code of the self-checking result.
Preferably, the main chip circuit comprises a pulse group generating module, a pulse width comparing module, a voltage value comparing module and a self-checking module, wherein,
the pulse group generating module is used for generating a pulse group M1 after being electrified and sending the pulse group M1 to the control circuit;
the pulse width comparison module is configured to compare a difference between a pulse width W1 of the generated pulse group M1 and a pulse width W2 of the actual pulse group M2 with a preset pulse width WH;
the voltage value comparison module is used for acquiring a voltage value V of a voltage signal output by the inverter circuit and comparing the voltage value V with a preset threshold voltage value VH;
the self-checking module is used for self-checking the digital inverter welding machine according to a preset self-checking rule and a comparison result of the pulse width comparison module and the voltage value comparison module, and sending a prompt code corresponding to the self-checking result to the display panel.
Preferably, the pulse group generating module is further configured to record a serial number N of the generated pulse group M1, and determine whether the current pulse group M1 is the last pulse group according to a preset maximum value N of the pulse group number; and when the current pulse group M1 is not the last pulse group, after waiting for the expiration of the preset time interval T, generating the next pulse width group M1.
Preferably, the actual pulse width detection circuit is integrated on the control circuit as a chip or a module.
The invention automatically outputs the pulse group for self-checking after being electrified, and when the loop is abnormal, the loop where the fault is positioned can be quickly determined, and the IGBT can not be damaged absolutely.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 1 is a schematic block diagram of a first preferred embodiment of the digital inverter welding machine according to the present invention; the embodiment comprises the following steps: a main chip circuit 10, a control circuit 20, an inverter circuit 30 and an actual pulse width detection circuit 40, wherein,
a main chip circuit 10 for generating a pulse group M1 and sending it to the control circuit 20; acquiring a voltage value V of a voltage signal output by the inverter circuit 30, and performing self-detection according to a preset self-detection rule according to the voltage value V of the voltage signal, a preset threshold voltage value VH, a difference value between a pulse width W1 of a generated pulse group M1 and a pulse width W2 of an actual pulse group M2 and a preset pulse width WH;
the control circuit 20 is used for generating a driving signal to drive the inverter circuit 30 to work when receiving the pulse group;
the inverter circuit 30 is used for inverting, transforming and rectifying the input current signal and feeding back the obtained primary side current signal to the actual pulse width detection circuit 40; feeding back the obtained voltage signal to the main chip circuit 10;
and the actual pulse width detection circuit 40 is used for converting the received primary side current signal into an actual pulse group M2 and sending the actual pulse group M2 to the main chip circuit 10.
FIG. 2 is a schematic block diagram of a second preferred embodiment of the digital inverter welding machine according to the present invention; the embodiment comprises the following steps: a main chip circuit 10, a control circuit 20, an inverter circuit 30, an actual pulse width detection circuit 40 and a display panel 50; the functions of the control circuit 20, the inverter circuit 30 and the actual pulse width detection circuit 40 are the same as those of the first embodiment, and are not repeated here, and in this embodiment:
the main chip circuit 10 includes a pulse group generating module 11, a pulse width comparing module 12, a voltage value comparing module 13 and a self-test module 14, wherein,
the pulse group generating module 11 is configured to generate a pulse group M1 after being powered on, and send the pulse group M1 to the control circuit 20; the pulse train control device is used for recording the serial number N of the generated pulse train M1 and judging whether the current pulse train M1 is the last pulse train or not according to the preset maximum value N of the number of the pulse trains; when the current pulse group M1 is not the last pulse group, after waiting for the expiration of the preset time interval T, generating a next pulse width group M1;
a pulse width comparison module 12, configured to compare a difference between the received actual pulse group M2 and the generated pulse group M1 with a preset pulse width WH;
the voltage value comparison module 13 is configured to collect a voltage value V of the received voltage signal, and compare the voltage value V of the voltage signal with a preset threshold voltage value VH;
the self-checking module 14 is configured to perform self-checking on the digital inverter welding machine according to a preset self-checking rule and a comparison result of the pulse width comparison module 12 and the voltage value comparison module 13, and send a prompt code corresponding to the self-checking result to the display panel 50;
and the display panel 50 is used for displaying the prompt code of the received self-checking result.
In one embodiment, the actual pulse width detection circuit 40 may also be integrated on the control circuit 20 as a chip or module.
As shown in fig. 3, a flowchart of a first preferred embodiment of the power-on self-test method of the digital inverter welding machine according to the present invention; in this embodiment, making N equal to 1 specifically includes the following steps:
step S201: electrifying a welding machine;
step S202: the main chip circuit 10 generates a pulse group M1 and sends it to the control circuit 20;
in this embodiment, the pulse group M1 generated by the master chip includes 5 pulse waves, and the pulse width of each pulse wave is 2 us; in other embodiments, the number and the pulse width of the pulse wave of the pulse group M1 may be other data, and may be set as required;
step S203: after receiving the pulse group M1, the control circuit 20 generates a driving signal to drive the inverter circuit to work;
step S204: the inversion loop circuit 30 inverts, transforms and secondarily rectifies the input signal, feeds back the obtained primary side current signal to the actual pulse width detection circuit 40, and feeds back the voltage signal to the main chip circuit 10;
step S205: the actual pulse width detection circuit 40 converts the received primary side current signal into an actual pulse group M2, and sends the actual pulse group M2 to the main chip circuit 10;
step S206: the main chip circuit 10 compares the voltage value V of the received voltage signal with a preset threshold voltage value VH, and the difference between the pulse width W2 of the received actual pulse group M2 and the pulse width W1 of the generated pulse group M1 with the preset pulse width WH;
if the voltage value V1 is greater than or equal to the threshold voltage value VH, the difference between the pulse width W1 of the generated pulse group and the pulse width W2 of the actual pulse group is greater than or equal to a preset pulse width WH; step S207 is executed; if the voltage value V of the received voltage signal is smaller than the threshold voltage value VH; step S208 is executed; otherwise, step S209 is executed;
in this embodiment, the preset pulse width WH is 200 ns;
step S207: when the inversion loop is abnormal, generating an inversion loop abnormal error reporting prompt and suspending starting, and finishing the self-checking;
in the invention, the starting is suspended, namely all forms of output activities are stopped to wait for processing by a user.
Step S208; when the secondary rectifying circuit or the main circuit is abnormal, generating an abnormal error reporting prompt of the secondary rectifying circuit or the main circuit and suspending the startup, and finishing the self-checking;
step S209: the machine works normally, and the self-checking is finished.
Since the single self-test may have the condition of missing test, the invention also provides the embodiment of multiple self-tests to improve the reliability of the self-test.
As shown in fig. 4, a flowchart of a second preferred embodiment of the power-on self-test method of the digital inverter welding machine according to the present invention; in this embodiment, making N equal to 5 specifically includes the following steps:
step S301: electrifying a welding machine;
step S302: the main chip circuit 10 generates a pulse group M1, records the serial number n of the current pulse group, and sends the serial number n to the control circuit 20;
in this embodiment, the pulse group M1 generated by the master chip includes 5 pulse waves, and the pulse width of each pulse wave is 2 us; in other embodiments, the number and the pulse width of the pulse wave of the pulse group M1 may be other data, and may be set as required;
step S303: after receiving the pulse group M1, the control circuit 20 generates a driving signal to drive the inverter circuit to work;
step S304: the inversion loop circuit 30 inverts, transforms and secondarily rectifies the input signal, feeds back the obtained primary side current signal to the actual pulse width detection circuit 40, and feeds back the voltage signal to the main chip circuit 10;
step S305: the actual pulse width detection circuit 40 converts the received primary side current signal into an actual pulse group M2, and sends the actual pulse group M2 to the main chip circuit 10;
step S306: the main chip circuit 10 compares the voltage value V of the received voltage signal with a preset threshold voltage value VH, and the difference between the pulse width W2 of the received actual pulse group M2 and the pulse width W1 of the generated pulse group M1 with the preset pulse width WH; if the voltage value V1 is greater than or equal to the threshold voltage value VH, and the difference between the pulse width W2 of the actual pulse group M2 and the pulse width W1 of the generated pulse group M1 is greater than or equal to the preset pulse width WH, then step S307 is executed; if the voltage value V of the received voltage signal is smaller than the threshold voltage value VH, executing step S308; otherwise, go to step S309;
in this embodiment, the preset pulse width WH is 200 ns;
step S307: when the inversion circuit is abnormal, generating an inversion circuit abnormal error reporting prompt, suspending starting, simultaneously displaying a prompt code corresponding to the inversion circuit abnormality, and finishing the self-checking;
step S308; when the secondary rectification loop or the main loop is abnormal, generating an abnormal error reporting prompt of the secondary rectification loop or the main loop, suspending starting, displaying a prompt code corresponding to the abnormality of the secondary rectification loop or the main loop, and finishing the self-checking;
step S309: judging whether the serial number n of the current pulse group is less than or equal to 5, if so, executing the step S310; if yes, go to step S311;
step S310: after waiting for the preset time interval T to expire, turning to the step S301 for execution;
in this embodiment, the preset time interval T is 200 ns;
step S311: and (4) displaying a prompt code corresponding to normal work when the machine works normally, and finishing the self-checking.
The invention automatically outputs the pulse group for self-checking when starting up, and even if abnormity occurs, the IGBT can not be damaged by the instant current flowing through the IGBT due to the narrow pulse width.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.