Monitoring device for power input of numerical control system, monitoring method thereof and storage medium

文档序号:1140664 发布日期:2020-09-11 浏览:5次 中文

阅读说明:本技术 数控系统电源输入的监测装置及其监测方法、存储介质 (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 rectifier filter circuit 200 is used for rectifying and filtering the power input 100 and outputting direct current to the monitoring circuit 300; the monitoring circuit 300 is connected to the rectifying and filtering circuit 200, and is used for outputting a first level signal Vout1 and a second level signal Vout2 to the logic processing circuit 400 according to the input direct current; a logic processing circuit 400 connected to the monitoring circuit 300, for reading and determining the levels of the first level signal Vout1 and the second level signal Vout2, saving a no power input flag when determining that the first level signal Vout1 and the second level signal Vout2 are both the first level value, saving a power input flag and a Vout1 fault flag when determining that the first level signal Vout1 is the first level value and the second level signal Vout2 is the second level value, saving the power input flag and the Vout2 fault flag when determining that the first level signal Vout1 is the second level value and the second level signal Vout2 is the first level value, and saving the power input flag when determining that the first level signal Vout1 and the second level signal Vout2 are both the second level value; as can be seen, the power input 100 is denoted by Vin.

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 logic processing circuit 400 determines that the first level signal Vout1 and the second level signal Vout2 are both the first level value, the monitoring results of the two level signals on the power input 100 are consistent, and a result without power input can be obtained, and a power input free flag is saved, so that the numerical control system can feed back the state information of the numerical control system without power input to an operator through the power input free flag. When the logic processing circuit 400 determines that the first level signal Vout1 and the second level signal are both the second level value, the monitoring results of the two level signals on the power input 100 are consistent, and the result with the power input can be obtained, and the power input flag is stored, so that the numerical control system can feed back the state information that the numerical control system is in the state with the power input to the operator through the state without the power input flag.

When the logic processing circuit 400 determines that the first level signal Vout1 is the first level value and the second level signal Vout2 is the second level value or that the first level signal Vout1 is the second level value and the second level signal Vout2 is the first level value, the monitoring results of the two level signals are inconsistent, one of the two level signals detects power input and the other one does not detect power input, that is, it can be determined that a fault occurs in a portion of the monitoring circuit 300 corresponding to the level signal for which power input is not detected, a power input flag and a Vout1/Vout2 fault flag are stored, and the numerical control system feeds back information to an operator through the power input flag and the Vout1/Vout2 fault flag.

Through the arrangement, the monitoring device adopts two level signals to simultaneously monitor and judge the power input 100 through the monitoring circuit 300, utilizes a redundant method to monitor the state of the power input 100, and obtains whether the monitoring circuit 300 part corresponding to the level signals has faults or not through a comparison mode besides monitoring whether the numerical control system has the power input, so that the safety, reliability and stability of monitoring can be ensured even if the monitoring result of one level signal is wrong.

Referring to fig. 4-5, in some embodiments, the monitoring circuit 300 includes a first monitoring module 310 for outputting a first level signal Vout1 according to the dc power input by the rectifying and filtering circuit 200 and a second monitoring module 320 for outputting a second level signal Vout2 according to the dc power input by the rectifying and filtering circuit 200, wherein the input terminals of the first and second monitoring modules 310 and 320 are connected to the output terminal of the rectifying and filtering circuit 200.

Specifically, in some embodiments, the first monitoring module 310 includes a first photo coupler OP1 and a first pull-up unit 311, the output terminal of the rectifying and filtering circuit 200 is connected to pins 1 and 2 of the light emitting source of the first photo coupler OP1, and pins 4 of the light receiver of the first photo coupler OP1 are respectively connected to the first pull-up unit 311 and the logic processing circuit 400, and specifically, pins 4 of the light receiver of the first photo coupler OP1 are connected to the logic processing circuit 400 through a current limiting resistor R7; the 3-pin of the light receiver of the first photocoupler OP1 is grounded.

Similarly, the second monitoring module 320 includes a second photo coupler OP2 and a second pull-up unit 321, the output terminal of the rectifying and filtering circuit 200 is connected to pins 1 and 2 of the light source of the second photo coupler OP2, and pins 4 of the light receiver of the second photo coupler OP2 are respectively connected to the second pull-up unit 321 and the logic processing circuit 400, specifically, pins 4 of the light receiver of the first photo coupler OP2 are connected to the logic processing circuit 400 through a current limiting resistor R8; the 3 pin of the light receiver of the second photo coupler OP2 is grounded.

The first pull-up unit 311 includes a first pull-up resistor R3 and a pull-up voltage, and the pull-up voltage is connected to the 4 th pin of the first photocoupler OP1 through the first pull-up resistor R3; the second pull-up unit 321 includes a second pull-up resistor R6 and a pull-up voltage, and the pull-up voltage is connected to the 4 th pin of the second photocoupler OP2 through the second pull-up resistor R6; the pull-up voltage is preferably 3.3V.

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 circuit 200 includes a bridge rectifier D1 and a filter capacitor, where pins 2 and 4 of the bridge rectifier D1 are used to connect to the power input 100, pin 1 and pin 3 of the bridge rectifier D1 are connected through the filter capacitor, pin 3 of the bridge rectifier D1 is connected to pin 1 of the light source of the first photocoupler and pin 1 of the light source of the second photocoupler, and pin 1 of the bridge rectifier D1 is connected to pin 2 of the light source of the first photocoupler and pin 2 of the light source of the second photocoupler, respectively; rectifying and filtering the power input 100 is achieved.

Preferably, pin 1 of the bridge rectifier D1 is connected in series with pin 2 of the light source of the first photocoupler through a zener diode D2, a resistor R1 and a resistor R2, and the bridge rectifier D1 is connected in series with pin 2 of the light source of the second photocoupler through a zener diode D3, a resistor R4 and a resistor R5; the voltage stabilizing diode plays a role in stabilizing voltage and ensures the stability of level signal output.

Preferably, in this embodiment, the logic processing circuit 400 is configured as a single chip microcomputer, and the type of the single chip microcomputer is preferably STM32 series.

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 power input 100 of a numerical control system, comprising the steps of: the logic processing circuit 400 controls reading and judges the levels of the first level signal Vout1 and the second level signal Vout2 respectively input by the monitoring circuit 300; 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.

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.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数控机床自动编程方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类