Monitoring device for power input of numerical control system, monitoring method thereof and storage medium
阅读说明:本技术 数控系统电源输入的监测装置及其监测方法、存储介质 (Monitoring device for power input of numerical control system, monitoring method thereof and storage medium ) 是由 曾超峰 刘志峰 曹杰 于 2020-05-08 设计创作,主要内容包括:本发明公开了一种数控系统电源输入的监测装置及其监测方法、存储介质,包括:整流滤波电路,用于对电源输入进行整流滤波并输出直流电至监测电路;与整流滤波电路连接的监测电路,用于根据输入的直流电分别输出第一电平信号Vout1、第二电平信号Vout2至逻辑处理电路;与监测电路连接的逻辑处理电路,用于读取并判断第一电平信号Vout1、第二电平信号Vout2的电平;通过上述设置,即使两组监测模块中的一个发生故障,也可保证监测的安全可靠性以及稳定性。(The invention discloses a monitoring device for power input of a numerical control system, a monitoring method and a storage medium thereof, wherein the monitoring device comprises: the rectification filter circuit is used for rectifying and filtering the power input and outputting direct current to the monitoring circuit; the monitoring circuit is connected with the rectifying and filtering circuit and is used for respectively outputting a first level signal Vout1 and a second level signal Vout2 to the logic processing circuit according to the input direct current; the logic processing circuit is connected with the monitoring circuit and is used for reading and judging the levels of the first level signal Vout1 and the second level signal Vout 2; through the arrangement, even if one of the two groups of monitoring modules breaks down, the safety reliability and the stability of monitoring can be ensured.)
1. The utility model provides a monitoring devices of numerical control system power input which characterized in that includes:
the rectification filter circuit is used for rectifying and filtering the power input and outputting direct current to the monitoring circuit;
the monitoring circuit is connected with the rectifying and filtering circuit and is used for respectively outputting a first level signal Vout1 and a second level signal Vout2 to the logic processing circuit according to the input direct current;
and the logic processing circuit is connected with the monitoring circuit and used for reading and judging the levels of the first level signal Vout1 and the second level signal Vout2, saving a no power supply input mark when judging that the first level signal Vout1 and the second level signal Vout2 are both first level values, saving a power supply input mark and a Vout1 fault mark when judging that the first level signal Vout1 is a first level value and the second level signal Vout2 is a second level value, saving the power supply input mark and the Vout2 fault mark when judging that the first level signal Vout1 is a second level value and the second level signal Vout2 is a first level value, and saving the power supply input mark when judging that the first level signal Vout1 and the second level signal Vout2 are both second level values.
2. The device for monitoring the power input of the numerical control system as claimed in claim 1, wherein the monitoring circuit comprises a first monitoring module for outputting a first level signal Vout1 according to the DC power input by the rectifying and filtering circuit and a second monitoring module for outputting a second level signal Vout2 according to the DC power input by the rectifying and filtering circuit, and the input ends of the first and second monitoring modules are connected to the output end of the rectifying and filtering circuit.
3. The device for monitoring the power input of the numerical control system according to claim 2, wherein the first monitoring module comprises a first photoelectric coupler and a first pull-up unit, the output end of the rectifying and filtering circuit is connected with pins 1 and 2 of the light source of the first photoelectric coupler, pins 4 of the light receiver of the first photoelectric coupler are respectively connected with the first pull-up unit and the logic processing circuit, and pin 3 of the light receiver of the first photoelectric coupler is grounded.
4. The device for monitoring the power input of the numerical control system according to claim 3, wherein the second monitoring module comprises a second photoelectric coupler and a second pull-up unit, the output end of the rectifying and filtering circuit is connected with pins 1 and 2 of the light source of the second photoelectric coupler, pins 4 of the light receiver of the second photoelectric coupler are respectively connected with the second pull-up unit and the logic processing circuit, and pin 3 of the light receiver of the second photoelectric coupler is grounded.
5. The device for monitoring the power input of the numerical control system according to claim 4, wherein the rectifying and filtering circuit comprises a bridge rectifier and a filtering capacitor, the 2 pins and the 4 pins of the bridge rectifier are used for being connected with the power input, the 1 pin and the 3 pins of the bridge rectifier are connected through the filtering capacitor, the 3 pins of the bridge rectifier are respectively connected with the 1 pin of the light source of the first photoelectric coupler and the 1 pin of the light source of the second photoelectric coupler, and the 1 pin of the bridge rectifier is respectively connected with the 2 pins of the light source of the first photoelectric coupler and the 2 pins of the light source of the second photoelectric coupler.
6. A monitoring method of a monitoring device for power input of a numerical control system is characterized by comprising the following steps: the logic processing circuit controls reading and judges the levels of a first level signal Vout1 and a second level signal Vout2 which are respectively input by the monitoring circuit; when the first level signal Vout1 and the second level signal Vout2 are both determined to be the first level value, the no power input flag is saved, when the first level signal Vout1 is determined to be the first level value and the second level signal Vout2 is determined to be the second level value, the power input flag and the Vout1 failure flag are saved, when the first level signal Vout1 is determined to be the second level value and the second level signal Vout2 is determined to be the first level value, the power input flag and the Vout2 failure flag are saved, and when the first level signal Vout1 and the second level signal Vout2 are both determined to be the second level value, the power input flag is saved.
7. The method for monitoring the device for monitoring the power input of the numerical control system according to claim 6, further comprising: the logic processing circuit controls that when the level of the first level signal Vout1 jumps, the level of the first level signal Vout1 is read in a delayed mode and whether the first level signal Vout1 is a first level value is judged, if the first level signal Vout1 is judged to be the first level value, a Vout1 power-down mark is saved, and if the first level signal Vout1 is judged to be the first level value, a Vout1 power-up mark is saved; the logic processing circuit controls to re-read and judge the levels of the first level signal Vout1 and the second level signal Vout2 respectively input by the monitoring circuit.
8. The method for monitoring the device for monitoring the power input of the numerical control system according to claim 7, further comprising: the logic processing circuit controls that when the level of the second level signal Vout2 jumps, the level of the second level signal Vout2 is read in a delayed mode and whether the second level signal Vout2 is a first level value is judged, if the second level signal Vout2 is judged to be the first level value, a Vout2 power-down mark is saved, and if the second level signal Vout2 is judged to be the first level value, a Vout2 power-up mark is saved; the logic processing circuit controls to re-read and judge the levels of the first level signal Vout1 and the second level signal Vout2 respectively input by the monitoring circuit.
9. The monitoring method of the device for monitoring the power input of the numerical control system according to claim 8, wherein the time delay has a value ranging from 100us to 500 us.
10. A computer-readable storage medium, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and when loaded and executed by a processor, implements the steps of the method for monitoring a monitoring device of a numerical control system power input according to any one of claims 6-10.
Technical Field
The invention relates to the field of control systems of numerical control equipment, in particular to a monitoring device and a monitoring method thereof.
Background
In industrial production, a control system power supply of a numerical control system host is the most important part for maintaining the normal operation of the whole numerical control system, and the failure or the fault can cause the shutdown of the system or damage the whole system, even cause life safety accidents. When the power supply of the control system of the numerical control system host is powered off or power failure, the operating data, the setting data and the processing program parameters of the numerical control system work must be immediately stored, and the existing protection method of the monitoring circuit for the power supply input of the numerical control system host usually adopts a single circuit to monitor whether the voltage of a single power supply input type exists for protection. However, the voltage input type of the monitoring power supply is single by adopting the method, and the monitoring circuit is difficult to find when a fault occurs, so that the stability, the universality and the safety reliability are poor.
It is seen that improvements and enhancements to the prior art are needed.
Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a monitoring device for power supply input of a numerical control system, a monitoring method and a storage medium thereof, and aims to improve the stability and the safety reliability of monitoring a host of the numerical control system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a monitoring device for power supply input of a numerical control system comprises: the rectification filter circuit is used for rectifying and filtering the power input and outputting direct current to the monitoring circuit; the monitoring circuit is connected with the rectifying and filtering circuit and is used for respectively outputting a first level signal Vout1 and a second level signal Vout2 to the logic processing circuit according to the input direct current; and the logic processing circuit is connected with the monitoring circuit and used for reading and judging the levels of the first level signal Vout1 and the second level signal Vout2, saving a no power supply input mark when judging that the first level signal Vout1 and the second level signal Vout2 are both first level values, saving a power supply input mark and a Vout1 fault mark when judging that the first level signal Vout1 is a first level value and the second level signal Vout2 is a second level value, saving the power supply input mark and the Vout2 fault mark when judging that the first level signal Vout1 is a second level value and the second level signal Vout2 is a first level value, and saving the power supply input mark when judging that the first level signal Vout1 and the second level signal Vout2 are both second level values.
The monitoring device for the power input of the numerical control system comprises a first monitoring module and a second monitoring module, wherein the first monitoring module is used for outputting a first level signal Vout1 according to the direct current input by the rectifying and filtering circuit, the second monitoring module is used for outputting a second level signal Vout2 according to the direct current input by the rectifying and filtering circuit, and the input ends of the first monitoring module and the second monitoring module are connected with the output end of the rectifying and filtering circuit.
The monitoring device for the power input of the numerical control system is characterized in that the first monitoring module comprises a first photoelectric coupler and a first pull-up unit, the output end of the rectification filter circuit is connected with 1 pin and 2 pins of a light emitting source of the first photoelectric coupler, 4 pins of a light receiver of the first photoelectric coupler are respectively connected with the first pull-up unit and the logic processing circuit, and 3 pins of the light receiver of the first photoelectric coupler are grounded.
The monitoring device for the power input of the numerical control system is characterized in that the second monitoring module comprises a second photoelectric coupler and a second pull-up unit, the output end of the rectification filter circuit is connected with 1 pin and 2 pins of a light emitting source of the second photoelectric coupler, 4 pins of a light receiver of the second photoelectric coupler are respectively connected with the second pull-up unit and the logic processing circuit, and 3 pins of the light receiver of the second photoelectric coupler are grounded.
The monitoring device for the power input of the numerical control system is characterized in that the rectification filter circuit comprises a bridge rectifier and a filter capacitor, wherein 2 pins and 4 pins of the bridge rectifier are used for being connected with the power input, 1 pin and 3 pins of the bridge rectifier are connected through the filter capacitor, 3 pins of the bridge rectifier are respectively connected with 1 pin of a light source of a first photoelectric coupler and 1 pin of a light source of a second photoelectric coupler, and 1 pin of the bridge rectifier is respectively connected with 2 pins of the light source of the first photoelectric coupler and 2 pins of the light source of the second photoelectric coupler.
A monitoring method of a monitoring device for power supply input of a numerical control system comprises the following steps: the logic processing circuit controls reading and judges the levels of a first level signal Vout1 and a second level signal Vout2 which are respectively input by the monitoring circuit; when the first level signal Vout1 and the second level signal Vout2 are both determined to be the first level value, the no power input flag is saved, when the first level signal Vout1 is determined to be the first level value and the second level signal Vout2 is determined to be the second level value, the power input flag and the Vout1 failure flag are saved, when the first level signal Vout1 is determined to be the second level value and the second level signal Vout2 is determined to be the first level value, the power input flag and the Vout2 failure flag are saved, and when the first level signal Vout1 and the second level signal Vout2 are both determined to be the second level value, the power input flag is saved.
The monitoring method of the monitoring device for the power supply input of the numerical control system further comprises the following steps: the logic processing circuit controls that when the level of the first level signal Vout1 jumps, the level of the first level signal Vout1 is read in a delayed mode and whether the first level signal Vout1 is a first level value is judged, if the first level signal Vout1 is judged to be the first level value, a Vout1 power-down mark is saved, and if the first level signal Vout1 is judged to be the first level value, a Vout1 power-up mark is saved; the logic processing circuit controls to re-read and judge the levels of the first level signal Vout1 and the second level signal Vout2 respectively input by the monitoring circuit.
The monitoring method of the monitoring device for the power supply input of the numerical control system further comprises the following steps: the logic processing circuit controls that when the level of the second level signal Vout2 jumps, the level of the second level signal Vout2 is read in a delayed mode and whether the second level signal Vout2 is a first level value is judged, if the second level signal Vout2 is judged to be the first level value, a Vout2 power-down mark is saved, and if the second level signal Vout2 is judged to be the first level value, a Vout2 power-up mark is saved; the logic processing circuit controls to re-read and judge the levels of the first level signal Vout1 and the second level signal Vout2 respectively input by the monitoring circuit.
The monitoring method of the monitoring device for the power supply input of the numerical control system is characterized in that the value range of the time delay is 100us-500 us.
A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which when loaded and executed by a processor, implements the steps of a monitoring method of a monitoring device of a numerical control system power input as recited in any one of the above.
Has the advantages that:
compared with the prior art, the invention provides a monitoring device for power input of a numerical control system, a monitoring method thereof and a storage medium, redundant monitoring is adopted for the power input of the numerical control system by arranging two groups of monitoring modules, and when level signals Vout1 and Vout2 are judged to be high level, a power input-free mark is saved; when the level signal Vout1 is high and Vout2 is low, the power input flag and the Vout1 fault flag are saved; when the level signal Vout1 is determined to be low and Vout2 is high, the power input flag and the Vout2 fault flag are saved; when the level signals Vout1 and Vout2 are both low level, the power input mark is saved; the method and the device realize accurate feedback of the working conditions of the numerical control system and the monitoring modules, and can ensure the safety reliability and stability of monitoring even if one of the two groups of monitoring modules breaks down.
Drawings
Fig. 1 is a logic diagram illustrating steps of a monitoring method of a monitoring device for power input of a numerical control system according to the present invention.
Fig. 2 is a logic diagram of the triggering of the first level signal Vout1 according to the monitoring method of the monitoring device for power input of the numerical control system of the present invention.
Fig. 3 is a logic diagram of the triggering of the second level signal Vout1 according to the monitoring method of the monitoring device for power input of the numerical control system of the present invention.
Fig. 4 is a schematic diagram of a frame of a monitoring device for power input of a numerical control system according to the present invention.
Fig. 5 is a schematic diagram of an embodiment of a monitoring device for power input of a numerical control system according to the present invention.
Description of the main element symbols: 100-power input, 200-rectifying filter circuit, 300-monitoring circuit, 310-first monitoring module, 311-first pull-up unit, 320-second monitoring module, 321-second pull-up unit and 400-logic processing circuit.
Detailed Description
The invention provides a monitoring device for power input of a numerical control system, a monitoring method thereof and a storage medium, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the scope of the invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other suitable relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
Referring to fig. 1, 4-5, the present invention provides a monitoring device for power input of a numerical control system, comprising: the
It should be noted that the first level value may be set to a high level or a low level, and the second level value is opposite to the first level value; for example: when the first level value is set to a high level, the second level value is set to a low level.
Referring to fig. 1 and 4-5, in practical applications, when the
When the
Through the arrangement, the monitoring device adopts two level signals to simultaneously monitor and judge the
Referring to fig. 4-5, in some embodiments, the
Specifically, in some embodiments, the
Similarly, the
The first pull-
Through the arrangement, the photoelectric signals output by the first photoelectric coupler OP1 and the photoelectric coupler OP2 are pulled up, the effect of level inversion is achieved, namely, no power supply is input, high level is output, and otherwise, power supply is input, low level is output. Correspondingly, in the present embodiment, the first level value is set to a high level, indicating that there is no power input, and the second level value is set to a low level, indicating that there is power input.
Referring to fig. 4-5, in some embodiments, the rectifying and filtering
Preferably, pin 1 of the bridge rectifier D1 is connected in series with
Preferably, in this embodiment, the
Referring to fig. 4 to 5, specifically, a V pin of the single chip microcomputer U1 is connected to a power supply voltage, the power supply voltage is preferably 3.3V or 5V, a G pin of the single chip microcomputer U1 is grounded, an OSC1 pin of the single chip microcomputer U1 is grounded through a capacitor C2, an OSC2 pin of the single chip microcomputer U1 is grounded through a capacitor C3, and an external crystal oscillator XTAL is further connected between an OSC1 pin of the single chip microcomputer U1 and the OSC2 pin. It should be noted that the pins PA0 and PA1 of the single chip microcomputer U1 are I/O ports having external interrupt and edge trigger functions, so as to implement the transition detection of the level signal, and the pins U1 having the above functions can be used for reading the level signal, and are not limited to the pins PA0 and PA 1. The OSC1 pin and the OSC2 pin of the single chip microcomputer U1 are external crystal oscillator pins, and may also be connected to an external crystal oscillator XTAL through other external crystal oscillator pins on the single chip microcomputer, and are not limited to the OSC1 pin and the OSC2 pin.
Referring to fig. 1-5, the present invention further provides a monitoring method for a monitoring device of a
As described above in the monitoring device of the power input of the numerical control system, similarly, the first level value may be set to a high level or a low level, and the second level value is opposite to the first level value; for example: when the first level value is set to a high level, the second level value is set to a low level.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:数控机床自动编程方法