CN116094494A - Latch misleading cancellation circuit, control method and control device thereof - Google Patents

Latch misleading cancellation circuit, control method and control device thereof Download PDF

Info

Publication number
CN116094494A
CN116094494A CN202211418930.XA CN202211418930A CN116094494A CN 116094494 A CN116094494 A CN 116094494A CN 202211418930 A CN202211418930 A CN 202211418930A CN 116094494 A CN116094494 A CN 116094494A
Authority
CN
China
Prior art keywords
voltage
value
adjustable
latch
adjustable range
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211418930.XA
Other languages
Chinese (zh)
Inventor
张宇辉
沈俐
何春茂
郑睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211418930.XA priority Critical patent/CN116094494A/en
Publication of CN116094494A publication Critical patent/CN116094494A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/01Details
    • H03K3/013Modifications of generator to prevent operation by noise or interference
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34013Servocontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The application provides a cancellation circuit of latch misleading, its control method and controlling means, and the controller is used for providing predetermined voltage to the enabling end of latch, and under the condition that predetermined voltage is low level, latch switches on, and cancellation circuit includes: the filtering structure comprises a voltage dividing device and an energy storage device, one end of the voltage dividing device is used for being electrically connected with a preset power supply, the other end of the voltage dividing device is used for being electrically connected with a connecting branch of the controller and the enabling end, the energy storage device is connected in parallel with the two ends of the voltage dividing device, and the filtering structure is used for filtering the preset voltage under the condition that the preset voltage is at a high level so as to at least reduce spike of the preset voltage; and the measuring structure is electrically connected with the other end of the voltage dividing device and is used for measuring the electrical parameters of the voltage dividing device and the energy storage device and measuring the voltage value of the preset voltage after being filtered by the filtering structure. The latch power-on error conduction method and device solve the problem of power-on error conduction of the latch.

Description

Latch misleading cancellation circuit, control method and control device thereof
Technical Field
The present application relates to the field of numerical control technologies, and in particular, to a latch misleading cancellation circuit, a control method thereof, a control device, a computer readable storage medium, a processor, and a numerical control system.
Background
The numerical control system is a brain of the numerical control machine tool and controls each joint of the numerical control machine tool. The three-axis linkage numerical control system is developed according to the three-axis linkage machine tool of my department, has higher speed and precision requirements, and can cause workpiece machining failure or safety accidents due to errors of a few microseconds. In the use of the machine, when the controller takes over the latch at the moment of power-on, the controller can generate a microsecond-level falling edge (called power-on burr later), so that the latch enabled by the low level can be triggered by mistake, a subsequent circuit is caused to form a passage, equipment is caused to operate by mistake, the processing precision can be affected, and even the risk in the aspect of safety can be caused.
Therefore, how to eliminate the problem of power-on erroneous conduction of the latch is a technical problem to be solved in the prior art.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The main objective of the present application is to provide a latch mis-conduction cancellation circuit, a control method, a control device, a computer readable storage medium, a processor and a numerical control system thereof, so as to solve the problem of latch power-on mis-conduction in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a cancellation circuit of a latch misleading, an enable terminal of the latch being electrically connected to a controller for supplying a predetermined voltage to the enable terminal of the latch, the latch being turned on in a case where the predetermined voltage is a low level, the cancellation circuit comprising: the filtering structure comprises a voltage dividing device and an energy storage device, wherein one end of the voltage dividing device is used for being electrically connected with a preset power supply, the other end of the voltage dividing device is used for being electrically connected with a connecting branch of the controller and the enabling end, the energy storage device is connected in parallel with two ends of the voltage dividing device, and the filtering structure is used for filtering the preset voltage under the condition that the preset voltage is at a high level so as to at least reduce spike of the preset voltage; the measuring structure is electrically connected with the other end of the voltage dividing device and is used for measuring the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device, and the measuring structure is also used for measuring the voltage value of the preset voltage after being filtered by the filtering structure.
Optionally, the voltage divider device includes an adjustable resistor, and the energy storage device includes an adjustable capacitor.
Optionally, the measuring structure includes an oscilloscope, a resistance reading instrument and a capacitance reading instrument, one end of the oscilloscope is electrically connected with the other end of the voltage divider, two ends of the resistance reading instrument are connected in parallel with two ends of the adjustable resistor, and two ends of the capacitance reading instrument are connected in parallel with two ends of the adjustable capacitor.
Optionally, the cancellation circuit further comprises: the first end of the delay circuit is used for being electrically connected with the output end of the latch; and the light-emitting device is electrically connected with the second end of the delay circuit, and is lightened under the condition that the latch is misled by the controller.
According to another aspect of the embodiment of the present invention, there is also provided a control method of the latch misleading cancellation circuit, including: acquiring an electrical parameter of the voltage dividing device, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a preset voltage when the preset voltage is high level and no voltage jump occurs, and the second voltage value is a voltage value of a preset power supply; determining a second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage dividing device when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage dividing device; and adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device according to the first adjustable range and the second adjustable range so that the difference value between the adjusted jump value and the first voltage value is in a preset range, wherein the jump value is a jump peak voltage when the preset voltage jumps.
Optionally, the voltage dividing device includes an adjustable resistor, the energy storage device includes an adjustable capacitor, the electrical parameter of the voltage dividing device includes a resistance value and a power of the adjustable resistor, the electrical parameter of the energy storage device includes a capacitance value of the adjustable capacitor, and determining the second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value includes: determining a minimum resistance value of the adjustable resistor according to the first voltage value, the second voltage value and the power; determining a third adjustable range as [ R ] according to the minimum resistance value min -A,R min +A]Wherein R is min For the minimum resistance value, A is a predetermined threshold; controlling the resistance value of the adjustable resistor to change in the third adjustable range, determining the minimum value of a second adjustable range according to the working state of the light-emitting device, and determining the resistance value of the adjustable resistor corresponding to the lighting state as the minimum value of the second adjustable range under the condition that the light-emitting device is changed from the extinction state to the lighting state; and determining the maximum adjustment value of the adjustable resistor as the maximum value of the second adjustable range.
Optionally, the measuring structure includes an oscilloscope, and according to the first adjustable range and the second adjustable range, the electrical parameter of the voltage divider and the electrical parameter of the energy storage device are adjusted, so that the difference between the adjusted jump value and the first voltage value is within a predetermined range, including: a first adjustment step of adjusting the capacitance value of the adjustable capacitor according to the first adjustable range, wherein the adjusted capacitance value of the adjustable capacitor is located in the first adjustable range; a second adjustment step of adjusting the resistance value of the adjustable resistor according to the second adjustable range under the condition that the adjusted capacitance value of the adjustable capacitor is unchanged, and acquiring the adjusted jump value through the oscilloscope; a determining step of determining whether the difference between the adjusted jump value and the first voltage value is within the predetermined range; and a circulation step of circularly executing the second adjustment step and the determination step at least once until the difference is within the predetermined range or until the second adjustment step has adjusted all the resistance values within the second adjustable range, under the condition that the difference is not within the predetermined range.
Optionally, in the case that all the resistance values in the second adjustable range are adjusted in the second adjustment step, and the difference value is not in the predetermined range, the method further includes: and circularly executing the first adjusting step, the second adjusting step and the determining step at least once until the difference value is within the preset range or until the first adjusting step adjusts all the capacity values within the first adjustable range.
According to still another aspect of the embodiments of the present invention, there is further provided a control apparatus for the latch misleading cancellation circuit, including: the power supply device comprises an acquisition unit, a voltage dividing unit and a power supply unit, wherein the acquisition unit is used for acquiring an electrical parameter of the voltage dividing device, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a preset voltage when the preset voltage is high level and no voltage jump occurs, and the second voltage value is a voltage value of a preset power supply; the determining unit is used for determining a second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage dividing device when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage dividing device; the adjusting unit is configured to adjust an electrical parameter of the voltage divider and an electrical parameter of the energy storage device according to the first adjustable range and the second adjustable range, so that a difference between the adjusted jump value and the first voltage value is within a predetermined range, where the jump value is a jump peak voltage when the predetermined voltage jumps.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, and when the program is executed, perform any one of the methods.
According to another aspect of the embodiment of the present invention, there is also provided a numerical control system including: a controller; the enabling end of the latch is electrically connected with the controller, and the controller is used for providing a preset voltage for the enabling end of the latch, and the latch is conducted under the condition that the preset voltage is at a low level; any one of the latch misleading cancellation circuits; one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
In the embodiment of the invention, the elimination circuit for the false conduction of the latch performs filtering treatment on the high-level preset voltage provided by the controller to the latch through the filtering structure electrically connected to the connecting branch of the controller and the enabling end of the latch so as to at least reduce spike in the preset voltage, and measures the electrical parameters of the voltage dividing device and the energy storage device through the measuring structure and the voltage value of the preset voltage after the filtering treatment, thereby facilitating the staff to know the working parameters and the filtering effect of the current filtering structure. According to the method and the device, the filtering effect of the filtering structure is achieved, the latch which is enabled by the low level and is caused by the spike is prevented from being misled, and then the latch output end equipment is prevented from being mistriggered to operate, so that the control precision of the latch output end equipment is guaranteed to be higher, and the reliability and the safety of the equipment operation are guaranteed.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 shows a schematic diagram of a latch misleading cancellation circuit according to an embodiment of the present application;
FIG. 2 illustrates a flow diagram of a control method of a latch misleading cancellation circuit according to an embodiment of the present application;
FIG. 3 shows a schematic diagram of a control device of a latch misleading cancellation circuit according to an embodiment of the present application;
fig. 4 to 20 respectively show graphs of filtering effects corresponding to filtering structures of different electrical parameters according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
10. an elimination circuit; 20. a latch; 30. a controller; 40. a predetermined power supply; 100. a voltage dividing device; 101. an energy storage device; 102. a measurement structure; 103. a delay circuit; 104. a light emitting device.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background art, in order to solve the problem of power-on misconduction of the latch in the prior art, in an exemplary embodiment of the present application, a latch misconduction cancellation circuit, a control method, a control device, a computer readable storage medium, a processor, and a numerical control system are provided.
According to an exemplary embodiment of the present application, there is provided a cancellation circuit 10 for erroneous conduction of a latch as shown in fig. 1, an enable end OE of the latch 20 is electrically connected to a controller 30, the controller 30 is configured to provide a predetermined voltage to the enable end OE of the latch 20, and the latch 20 is turned on when the predetermined voltage is at a low level, and the cancellation circuit 10 includes: a filtering structure including a voltage dividing device 100 and an energy storage device 101, wherein one end of the voltage dividing device 100 is used for being electrically connected with a predetermined power supply 40, the other end of the voltage dividing device 100 is used for being electrically connected with a connection branch of the controller 30 and the enable end OE, the energy storage device 101 is connected in parallel with two ends of the voltage dividing device 100, and the filtering structure is used for filtering the predetermined voltage to at least reduce spike of the predetermined voltage when the predetermined voltage is at a high level; and a measurement structure 102 electrically connected to the other end of the voltage dividing device 100, wherein the measurement structure 102 is configured to measure an electrical parameter of the voltage dividing device 100 and an electrical parameter of the energy storage device 101, and the measurement structure 102 is further configured to measure a voltage value of the predetermined voltage filtered by the filtering structure.
In the latch misleading elimination circuit, the filter structure is electrically connected to the connection branch of the controller and the enabling end of the latch, and the high-level preset voltage provided by the controller to the latch is subjected to filter processing to at least reduce spike in the preset voltage, and the electrical parameters of the voltage dividing device and the energy storage device and the voltage value of the preset voltage after the filter processing are measured through the measurement structure, so that the working parameters and the filter effect of the current filter structure can be conveniently known by workers. According to the filter structure, the latch which is enabled by the low level and is prevented from being misled by the spike is achieved, so that the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
Specifically, the spike is a negative spike, and at the moment of powering up the latch, the controller takes over the latch and provides a high-level voltage to the latch, so that the latch is not conducted, but the problem of misconduction of the latch can be caused due to the influence of the power-up burr of the negative spike.
According to a specific embodiment of the present application, as shown in fig. 1, the voltage dividing device includes an adjustable resistor, and the energy storage device includes an adjustable capacitor. Through adjustable resistance and adjustable electric capacity, avoided the repeated welding work when changing resistance, appearance value at every turn, also can prevent repeated dismantlement and welding to peripheral circuit's adverse effect.
Of course, the voltage divider is not limited to the adjustable resistor, but may be a resistor with a fixed resistance value, and the energy storage device is not limited to the capacitor, but may be an inductor, or the like.
In a more specific embodiment, the voltage dividing device is an adjustable resistor, and the energy storage device is an adjustable capacitor.
In yet another embodiment of the present application, the measuring structure includes an oscilloscope, a resistance reading instrument, and a capacitance reading instrument, wherein one end of the oscilloscope is electrically connected with the other end of the voltage divider, two ends of the resistance reading instrument are connected in parallel to two ends of the adjustable resistor, and two ends of the capacitance reading instrument are connected in parallel to two ends of the adjustable capacitor. The oscilloscope measures the voltage value of the preset voltage after being filtered by the filtering structure, and displays a waveform chart of the change of the preset voltage along with time, so that a worker can further check the elimination effect of the spike in the preset voltage waveform, the resistance value of the current adjustable resistor is read through the resistance reading instrument, the capacitance value of the current adjustable capacitor is read through the capacitance reading instrument, the resistance value and the capacitance value can be determined in real time, experimental data can be conveniently recorded, and the resistance value of the adjustable resistor and the capacitance value of the adjustable capacitor can be conveniently adjusted according to the current resistance value, capacitance value and filtering effect, so that the spike elimination effect is further guaranteed to be better, and the misconduction problem of the latch is further avoided.
In another embodiment, as shown in fig. 1, the cancellation circuit further includes: a delay circuit 103, wherein a first end of the delay circuit 103 is electrically connected to an output end of the latch 20; a light emitting device 104, wherein the light emitting device 104 is electrically connected to the second terminal of the delay circuit 103, and the light emitting device 104 is turned on when the latch 20 is turned on by mistake by the controller 30. The switching state of the light emitting device can be used for feeding back the adjusting effect in real time, and the operation is convenient. In addition, the power-on spike pulse generated by the controller is in microsecond level and is directly connected with the light-emitting device, the phenomenon that the light-emitting device is lightened can be immediately passed, and the observation is inconvenient, so that a delay circuit is additionally arranged between the latch and the light-emitting device, signals can be amplified, and the effect of eliminating power-on false touch of the latch can be conveniently observed.
The delay circuit can be any suitable delay circuit structure in the prior art, and the light emitting device can be a light emitting tube such as a diode.
The elimination circuit is simple in structure, and through design and application of the capacitance and the resistance of the basic components, the power-on burr generated by the controller to the latch is reduced or even eliminated under the condition that the manufacturing cost is hardly increased, and the problem of power-on false triggering of the latch is solved. In addition, the anti-interference capability of the device can be improved, and if the controller generates a low-level interference signal in the operation process, the latch can be prevented from being triggered by mistake. Meanwhile, the measuring structure is matched, so that the adjusting effect can be fed back in real time when the ratio of the capacitance to the resistance value is adjusted, and the operation is convenient. For the circuits of the same controller and latch, after the optimal configuration of the capacitance value and the resistance value is obtained, only the filtering structure can be reserved in the subsequent production process, so that the cost is reduced, and the space of a PCB (printed circuit board) is saved.
According to another exemplary embodiment of the present application, there is also provided a method for controlling the latch misleading cancellation circuit.
Fig. 2 is a flowchart of a control method of the latch misleading cancellation circuit according to the embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S101, acquiring an electrical parameter of the voltage divider, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a predetermined voltage when the predetermined voltage is high and no voltage jump occurs, and the second voltage value is a voltage value of a predetermined power supply;
step S102, determining a second adjustable range according to the electrical parameter of the voltage divider, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage divider when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage divider;
in this embodiment of the present application, the voltage dividing device includes an adjustable resistor, the energy storage device includes an adjustable capacitor, the electrical parameter of the voltage dividing device includes a resistance value and a power of the adjustable resistor, the electrical parameter of the energy storage device includes a capacitance value of the adjustable capacitor, and determining the second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value includes: determining a minimum resistance value of the adjustable resistor according to the first voltage value, the second voltage value and the power; determining the third adjustable range as [ R ] according to the minimum resistance value min -A,R min +A]Wherein R is min A is a predetermined threshold value for the minimum resistance value; controlling the resistance value of the adjustable resistor to change in the third adjustable range, determining the minimum value of a second adjustable range according to the working state of the light-emitting device, and determining the resistance value of the adjustable resistor corresponding to the lighting state as the minimum value of the second adjustable range when the light-emitting device is changed from the extinction state to the lighting state; and determining the maximum adjustment value of the adjustable resistor as the maximum value of the second adjustable range.
The predetermined voltage is maintained at a high level output during the transition of the light emitting device from the off state to the on state.
According to the first voltage value, the second voltage value and the power, a specific implementation manner of determining the minimum resistance value of the adjustable resistor is as follows: determining the minimum resistance value of the adjustable resistor as
Figure BDA0003942443960000071
Wherein R is min For the minimum resistance value, U 1 At the second voltageValue U 2 The first voltage value, P, is the power.
In one embodiment, the second voltage value U 1 =5v, the first voltage value U 2 When the power p=1/10W is 3.3V, R is calculated by the formula min =28.9Ω. The maximum adjustment value is determined by the self resistance property of the adjustable resistor, and in the embodiment of the application, the maximum adjustment value R max =10KΩ。
Of course, the first voltage value, the second voltage value, the power, and the maximum adjustment value are not limited to the above values, and may be flexibly selected by those skilled in the art according to practical situations.
Step S103, according to the first adjustable range and the second adjustable range, adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device so that the difference between the adjusted jump value and the first voltage value is within a predetermined range, wherein the jump value is a jump peak voltage when the voltage jump occurs in the predetermined voltage.
Specifically, the measuring structure includes an oscilloscope, and according to the first adjustable range and the second adjustable range, adjusts an electrical parameter of the voltage dividing device and an electrical parameter of the energy storage device, so that a difference between the adjusted jump value and the first voltage value is within a predetermined range, including: a first adjustment step of adjusting the capacitance value of the adjustable capacitor according to the first adjustable range, wherein the adjusted capacitance value of the adjustable capacitor is located in the first adjustable range; a second adjustment step of adjusting the resistance value of the adjustable resistor according to the second adjustable range under the condition that the capacitance value of the adjustable capacitor after adjustment is unchanged, and acquiring the jump value after adjustment through the oscilloscope; a determining step of determining whether the difference between the adjusted jump value and the first voltage value is within the predetermined range; and a circulating step of circulating the second adjusting step and the determining step at least once until the difference is within the predetermined range or until the second adjusting step has adjusted all the resistances within the second adjustable range.
Through the cyclic adjustment process, the resistance value of the corresponding adjustable resistor and the capacitance value of the adjustable capacitor when the filtering effect is best are determined, and further, the effect of the adjusted elimination circuit on eliminating the spike is better.
In addition, after the difference is within the predetermined range, a person skilled in the art can record the resistance value of the current adjustable resistor and the capacitance value of the adjustable capacitor through the measurement structure, and remove the measurement structure, the delay circuit and the light emitting device in the cancellation circuit, so as to save the cost of the cancellation circuit, save the space of the PCB, and recycle the removed measurement structure, delay circuit and light emitting device into the cancellation circuit of other latches.
According to still another specific embodiment of the present application, in a case where all the resistance values in the second adjustable range are adjusted in the second adjusting step and the difference value is not within the predetermined range, the method further includes: and circularly executing the first adjusting step, the second adjusting step and the determining step at least once until the difference value is within the preset range or until the first adjusting step is used for adjusting all the capacity values within the first adjustable range.
In the control method of the latch misleading elimination circuit, firstly, the electrical parameter of the voltage divider, the first adjustable range of the electrical parameter of the preset energy storage device and the voltage value of the preset power supply are obtained, and when the preset voltage is high level and no voltage jump occurs in the preset voltage, the voltage value of the corresponding preset voltage is also obtained; then, determining a second adjustable range according to the obtained parameter values, wherein the minimum value of the second adjustable range is the electrical parameter of the voltage dividing device corresponding to the condition that the filtering structure does not play a role in filtering, and the maximum value is the maximum adjustment value of the electrical parameter of the voltage dividing device; finally, according to the first adjustable range and the second adjustable range, the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device are adjusted so that the difference value between the adjusted jump value and the first voltage value is within a preset range, and the jump value is the jump peak voltage when the preset voltage jumps, namely the trough value of the spike. According to the method, the second adjustable range of the voltage divider corresponding to the filtering structure when the filtering structure plays a role is determined, and then the electrical parameters of the voltage divider and the energy storage device are adjusted according to the second adjustable range and the first adjustable range, so that the adjusted voltage divider and the energy storage device have good filtering effect on the spike of the preset voltage, the adjusted jump value is basically close to the first voltage value, the jump value can not cause the conduction of the latch, the latch enabled by the low level is prevented from being misled due to the spike, the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a control device of the latch misleading elimination circuit, and it should be noted that the control device of the latch misleading elimination circuit of the embodiment of the application may be used to execute the control method of the latch misleading elimination circuit provided by the embodiment of the application. The following describes a control device of the latch misleading cancellation circuit provided in the embodiment of the present application.
Fig. 3 is a schematic diagram of a control device of the latch misleading cancellation circuit according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
an obtaining unit 50, configured to obtain an electrical parameter of the voltage divider, a first adjustable range, a first voltage value, and a second voltage value, where the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of the predetermined voltage when the predetermined voltage is at a high level and no voltage jump occurs in the predetermined voltage, and the second voltage value is a voltage value of the predetermined power supply;
A determining unit 60, configured to determine a second adjustable range according to the electrical parameter of the voltage divider, the first voltage value, and the second voltage value, where a minimum value of the second adjustable range is the electrical parameter of the corresponding voltage divider when the filtering structure does not perform the filtering function, and a maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage divider;
in this embodiment of the present application, the voltage divider includes an adjustable resistor, the energy storage device includes an adjustable capacitor, the electrical parameter of the voltage divider includes a resistance value and a power of the adjustable resistor, the electrical parameter of the energy storage device includes a capacitance value of the adjustable capacitor, and the determining unit includes: the first determining module is used for determining the minimum resistance value of the adjustable resistor according to the first voltage value, the second voltage value and the power; a second determining module for determining a third adjustable range as [ R ] according to the minimum resistance value min -A,R min +A]Wherein R is min A is a predetermined threshold value for the minimum resistance value; the control module is used for controlling the resistance value of the adjustable resistor to change in the third adjustable range, determining the minimum value of a second adjustable range according to the working state of the light-emitting device, and determining that the resistance value of the adjustable resistor corresponding to the lighting state is the minimum value of the second adjustable range when the light-emitting device is changed from the extinction state to the lighting state; and the third determining module is used for determining that the maximum adjustment value of the adjustable resistor is the maximum value of the second adjustable range.
The predetermined voltage is maintained at a high level output during the transition of the light emitting device from the off state to the on state.
According to the first voltage value, the second voltage value and the power, a specific implementation manner of determining the minimum resistance value of the adjustable resistor is as follows: determining from the first voltage value, the second voltage value, and the powerThe minimum resistance value of the adjustable resistor is
Figure BDA0003942443960000091
Wherein R is min For the minimum resistance value, U 1 For the second voltage value, U 2 The first voltage value, P, is the power.
In one embodiment, the second voltage value U 1 =5v, the first voltage value U 2 When the power p=1/10W is 3.3V, R is calculated by the formula min =28.9Ω. The maximum adjustment value is determined by the self resistance property of the adjustable resistor, and in the embodiment of the application, the maximum adjustment value R max =10KΩ。
Of course, the first voltage value, the second voltage value, the power, and the maximum adjustment value are not limited to the above values, and may be flexibly selected by those skilled in the art according to practical situations.
The adjusting unit 70 is configured to adjust the electrical parameter of the voltage divider and the electrical parameter of the energy storage device according to the first adjustable range and the second adjustable range, so that a difference between the adjusted jump value and the first voltage value is within a predetermined range, and the jump value is a jump peak voltage when the predetermined voltage jumps.
Specifically, the measurement structure includes an oscilloscope, and the above-mentioned adjustment unit includes: the first adjusting module is used for adjusting the capacitance value of the adjustable capacitor according to the first adjustable range, and the adjusted capacitance value of the adjustable capacitor is located in the first adjustable range; the second adjusting module is used for adjusting the resistance value of the adjustable resistor according to the second adjustable range under the condition that the capacitance value of the adjusted adjustable capacitor is unchanged, and acquiring the adjusted jump value through the oscilloscope; a fourth determining module, configured to determine whether the difference between the adjusted jump value and the first voltage value is within the predetermined range; and a circulation module configured to circulate the second adjustment step and the determination step at least once until the difference is within the predetermined range or until the second adjustment step has adjusted all the resistances within the second adjustable range, when the difference is not within the predetermined range.
Through the cyclic adjustment process, the resistance value of the corresponding adjustable resistor and the capacitance value of the adjustable capacitor when the filtering effect is best are determined, and further, the effect of the adjusted elimination circuit on eliminating the spike is better.
In addition, after the difference is within the predetermined range, a person skilled in the art can record the resistance value of the current adjustable resistor and the capacitance value of the adjustable capacitor through the measurement structure, and remove the measurement structure, the delay circuit and the light emitting device in the cancellation circuit, so as to save the cost of the cancellation circuit, save the space of the PCB, and recycle the removed measurement structure, delay circuit and light emitting device into the cancellation circuit of other latches.
According to still another specific embodiment of the present application, the above apparatus further includes: and the execution module is used for circularly executing the first adjustment step, the second adjustment step and the determination step at least once until the difference value is in the preset range or until the first adjustment step adjusts all the capacitance values in the first adjustable range under the condition that the second adjustment step has adjusted all the resistance values in the second adjustable range and the difference value is not in the preset range.
In the control device of the latch misleading elimination circuit, the acquisition unit acquires the electrical parameter of the voltage divider, the first adjustable range of the electrical parameter of the preset energy storage device and the voltage value of the preset power supply, and also acquires the voltage value of the corresponding preset voltage when the preset voltage is at a high level and no voltage jump occurs in the preset voltage; determining a second adjustable range by a determining unit according to the obtained parameter values, wherein the minimum value of the second adjustable range is the electrical parameter of the voltage dividing device corresponding to the condition that the filtering structure does not play a role in filtering, and the maximum value is the maximum adjustment value of the electrical parameter of the voltage dividing device; and adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device by the adjusting unit according to the first adjustable range and the obtained second adjustable range so that the difference value between the adjusted jump value and the first voltage value is in a preset range, wherein the jump value is a jump peak voltage when the preset voltage jumps, namely a trough value of the spike. According to the device, the second adjustable range of the voltage divider corresponding to the filtering structure when the filtering structure plays a role is determined, and then according to the second adjustable range and the first adjustable range, the electrical parameters of the voltage divider and the energy storage device are adjusted, so that the adjusted voltage divider and the energy storage device have good filtering effects on the spike of the preset voltage, and further the adjusted jump value is basically close to the first voltage value, so that the jump value can not cause the conduction of the latch, the latch enabled by the low level is prevented from being misled due to the spike, the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
The control device of the latch misleading cancellation circuit includes a processor and a memory, wherein the acquisition unit, the determination unit, the adjustment unit, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problem of power-on error conduction of the latch in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program that, when executed by a processor, implements the above-described control method of a latch misleading cancellation circuit.
The embodiment of the invention provides a processor, which is used for running a program, wherein the control method of the latch misleading elimination circuit is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S101, acquiring an electrical parameter of the voltage divider, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a predetermined voltage when the predetermined voltage is high and no voltage jump occurs, and the second voltage value is a voltage value of a predetermined power supply;
step S102, determining a second adjustable range according to the electrical parameter of the voltage divider, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage divider when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage divider;
step S103, according to the first adjustable range and the second adjustable range, adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device so that the difference between the adjusted jump value and the first voltage value is within a predetermined range, wherein the jump value is a jump peak voltage when the voltage jump occurs in the predetermined voltage.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S101, acquiring an electrical parameter of the voltage divider, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a predetermined voltage when the predetermined voltage is high and no voltage jump occurs, and the second voltage value is a voltage value of a predetermined power supply;
step S102, determining a second adjustable range according to the electrical parameter of the voltage divider, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage divider when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage divider;
step S103, according to the first adjustable range and the second adjustable range, adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device so that the difference between the adjusted jump value and the first voltage value is within a predetermined range, wherein the jump value is a jump peak voltage when the voltage jump occurs in the predetermined voltage.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
According to still another exemplary embodiment of the present application, there is also provided a numerical control system including: a controller; a latch, wherein an enable end of the latch is electrically connected with the controller, the controller is used for providing a preset voltage to the enable end of the latch, and the latch is conducted when the preset voltage is at a low level; any one of the above latch misleading cancellation circuits; the apparatus comprises one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods described above.
The numerical control system comprises the elimination circuit and a processor, wherein the processor is used for executing the control method. In the above-mentioned cancellation circuit, the filtering structure electrically connected to the connection branch of the enabling end of the controller and the latch is used for performing filtering processing on the high-level predetermined voltage provided by the controller to the latch, so as to at least reduce the spike in the predetermined voltage, and the measuring structure is used for measuring the electrical parameters of the voltage dividing device and the energy storage device, and the voltage value of the predetermined voltage after the filtering processing, so that the working parameter of the current filtering structure and the filtering effect can be conveniently known by the staff. According to the filter structure, the latch which is enabled by the low level and is prevented from being misled by the spike is achieved, so that the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the whole numerical control system are guaranteed.
In order to make the technical solutions of the present application more clearly known to those skilled in the art, the solutions of the present application will be described below in conjunction with specific embodiments.
Examples
The enable pin OE of the latch is active low and is connected to a predetermined power supply of 5V through an adjustable resistor. When the controller outputs a high level to take over the OE pin, the controller outputs a high level to switch from a low level, so that the OE is pulled down to 0V (i.e. the above-mentioned spike, see the dotted line in fig. 4) at a moment, which results in the enabling of the low level active OE pin, as shown in fig. 4, which results in the subsequent circuit forming a path and thus the operation of the external device. Through the design and application of the capacitance and the resistance of the basic components, the influence of spike pulse can be effectively eliminated. According to the difference of capacitance and resistance configuration in the cancellation circuit, the cancellation capability for the spike will be different, and the specific difference is as follows:
adjusted to 1kΩ+2.2μF, as shown in FIG. 5, the spike trough was approximately 2.3V and OE was found to be 3.2V; the power-on time of the OE is too slow compared with 5V, and the latch is still caused to be switched on by mistake;
adjusted to 1kΩ +470nF, as shown in fig. 6, the spike trough was approximately 420mv and oe was found to be 3.2V;
Adjusted to 680 Ω +470nF, as shown in fig. 7, the peak trough was about 588mv and oe was found to be 3.32V;
adjusted to 100deg.C +470nF, as shown in FIG. 8, the spike trough is about 1.84V and OE is found to be 3.52V;
adjusted to 100deg.C+680 nF, as shown in FIG. 9, the peak trough is about 2V, OE is found to be 3.52V;
adjusted to 100deg.OMEGA+1μF, as shown in FIG. 10, the spike trough was about 2.6V, and OE was found to be 3.52V;
adjusted to 100deg.OMEGA+2.2μF, as shown in FIG. 11, with a spike trough of about 3.2V and OE measured to be 3.52V;
adjusted to 62Ω+470nF, as shown in fig. 12, the spike trough was approximately 2.3V, oe was found to be 3.62V;
adjusted to 62Ω+680nF, as shown in FIG. 13, the spike trough was approximately 2.6V, OE was found to be 3.62V;
adjusted to 62Ω+1μF, as shown in FIG. 14, the spike trough was approximately 2.9V, OE was found to be 3.62V;
adjusted to 62Ω+2.2μF, as shown in FIG. 15, the spike trough was approximately 3.2V and OE was found to be 3.62V;
adjusted to 51Ω+470nF, as shown in fig. 16, the spike trough was approximately 2.6V, oe was found to be 3.68V;
adjusted to 51Ω+680nF, as shown in FIG. 17, the spike trough was approximately 2.7V, OE was found to be 3.68V;
adjusted to 51Ω+1μF, as shown in FIG. 18, the spike trough was approximately 3V and OE was found to be 3.68V;
Adjusted to 51Ω+2.2μF, as shown in FIG. 19, with a spike trough of about 3.5V and OE measured to be 3.68V;
adjusted to 33Ω+2.2μF, as shown in FIG. 20, the spike trough was approximately 3.7V and OE was found to be 3.8V. At this time, the sharp pulse is almost eliminated, and the phenomenon of false touch can not occur any more after multiple times of verification of different PCB boards.
If the resistance decreases again, the controller will not be able to control the latch.
The specific control process of the elimination circuit is as follows: maximum adjustment value R of resistor according to original design max The voltage and the power at two ends calculate the minimum resistance value R min . Original design R max At 10kΩ, OE was found to be 3.3V, the power of the adjustable resistor was 1/10W, the minimum resistance R min The method comprises the following steps:
Figure BDA0003942443960000131
controlling the adjustable resistor at R min Near test to find critical value R of the latch which the controller cannot take over th I.e. the minimum value of the second adjustable range mentioned above. Thereafter at R max And critical value R th And the values of the adjustable resistor and the adjustable capacitor are continuously adjusted for testing, so that matching meeting the requirements is found.
The smaller the resistance value of the adjustable resistor, the stronger the ability to eliminate spikes, but the voltage on the OE pin will exceed the highest voltage when the controller outputs a high level, thus causing the controller to fail to control the latch, resulting in continuous conduction of subsequent circuits. The larger the capacitance value of the adjustable capacitor is, the stronger the capability of eliminating spike is, but the power-on speed of the OE is reduced, so that the controller cannot take over the latch in time, and the subsequent circuit is still enabled to be conducted instantaneously.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the latch misleading elimination circuit, the filter structure electrically connected to the connection branch of the controller and the enabling end of the latch is used for carrying out filter processing on the high-level preset voltage provided by the controller to the latch so as to at least reduce spike in the preset voltage, and the measuring structure is used for measuring the electrical parameters of the voltage dividing device and the energy storage device and the voltage value of the preset voltage after the filter processing, so that the working parameter and the filter effect of the current filter structure can be conveniently known by staff. According to the filter structure, the latch which is enabled by the low level and is prevented from being misled by the spike is achieved, so that the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
2) In the control method of the latch misleading elimination circuit, firstly, the electrical parameter of the voltage divider, the first adjustable range of the electrical parameter of the preset energy storage device and the voltage value of the preset power supply are obtained, and when the preset voltage is high level and no voltage jump occurs in the preset voltage, the voltage value of the corresponding preset voltage is also obtained; then, determining a second adjustable range according to the obtained parameter values, wherein the minimum value of the second adjustable range is the electrical parameter of the voltage dividing device corresponding to the condition that the filtering structure does not play a role in filtering, and the maximum value is the maximum adjustment value of the electrical parameter of the voltage dividing device; finally, according to the first adjustable range and the second adjustable range, the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device are adjusted so that the difference value between the adjusted jump value and the first voltage value is within a preset range, and the jump value is the jump peak voltage when the preset voltage jumps, namely the trough value of the spike. According to the method, the second adjustable range of the voltage divider corresponding to the filtering structure when the filtering structure plays a role is determined, and then the electrical parameters of the voltage divider and the energy storage device are adjusted according to the second adjustable range and the first adjustable range, so that the adjusted voltage divider and the energy storage device have good filtering effect on the spike of the preset voltage, the adjusted jump value is basically close to the first voltage value, the jump value can not cause the conduction of the latch, the latch enabled by the low level is prevented from being misled due to the spike, the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
3) In the control device of the latch misleading elimination circuit, the acquisition unit acquires the electrical parameter of the voltage dividing device, the first adjustable range of the electrical parameter of the preset energy storage device and the voltage value of the preset power supply, and also acquires the voltage value of the corresponding preset voltage when the preset voltage is at a high level and no voltage jump occurs in the preset voltage; determining a second adjustable range by a determining unit according to the obtained parameter values, wherein the minimum value of the second adjustable range is the electrical parameter of the voltage dividing device corresponding to the condition that the filtering structure does not play a role in filtering, and the maximum value is the maximum adjustment value of the electrical parameter of the voltage dividing device; and adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device by the adjusting unit according to the first adjustable range and the obtained second adjustable range so that the difference value between the adjusted jump value and the first voltage value is in a preset range, wherein the jump value is a jump peak voltage when the preset voltage jumps, namely a trough value of the spike. According to the device, the second adjustable range of the voltage divider corresponding to the filtering structure when the filtering structure plays a role is determined, and then according to the second adjustable range and the first adjustable range, the electrical parameters of the voltage divider and the energy storage device are adjusted, so that the adjusted voltage divider and the energy storage device have good filtering effects on the spike of the preset voltage, and further the adjusted jump value is basically close to the first voltage value, so that the jump value can not cause the conduction of the latch, the latch enabled by the low level is prevented from being misled due to the spike, the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the equipment operation are guaranteed.
4) The numerical control system comprises the elimination circuit and a processor, wherein the processor is used for executing the control method. In the above-mentioned cancellation circuit, the filtering structure electrically connected to the connection branch of the enabling end of the controller and the latch is used for performing filtering processing on the high-level predetermined voltage provided by the controller to the latch, so as to at least reduce the spike in the predetermined voltage, and the measuring structure is used for measuring the electrical parameters of the voltage dividing device and the energy storage device, and the voltage value of the predetermined voltage after the filtering processing, so that the working parameter of the current filtering structure and the filtering effect can be conveniently known by the staff. According to the filter structure, the latch which is enabled by the low level and is prevented from being misled by the spike is achieved, so that the latch output end equipment is prevented from being mistriggered to operate, the control precision of the latch output end equipment is guaranteed to be high, and the reliability and the safety of the whole numerical control system are guaranteed.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (12)

1. A cancellation circuit for latch misleading, the enable terminal of the latch being electrically connected to a controller for providing a predetermined voltage to the enable terminal of the latch, the latch being conductive in the event that the predetermined voltage is low, the cancellation circuit comprising:
the filtering structure comprises a voltage dividing device and an energy storage device, wherein one end of the voltage dividing device is used for being electrically connected with a preset power supply, the other end of the voltage dividing device is used for being electrically connected with a connecting branch of the controller and the enabling end, the energy storage device is connected in parallel with two ends of the voltage dividing device, and the filtering structure is used for filtering the preset voltage under the condition that the preset voltage is at a high level so as to at least reduce spike of the preset voltage;
the measuring structure is electrically connected with the other end of the voltage dividing device and is used for measuring the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device, and the measuring structure is also used for measuring the voltage value of the preset voltage after being filtered by the filtering structure.
2. The cancellation circuit of claim 1, wherein the voltage divider device comprises an adjustable resistor and the energy storage device comprises an adjustable capacitor.
3. The cancellation circuit of claim 2, wherein the measurement structure includes an oscilloscope, a resistance reading instrument, and a capacitance reading instrument, one end of the oscilloscope is electrically connected with the other end of the voltage divider, two ends of the resistance reading instrument are connected in parallel with two ends of the adjustable resistor, and two ends of the capacitance reading instrument are connected in parallel with two ends of the adjustable capacitor.
4. A cancellation circuit according to any one of claims 1 to 3, further comprising:
the first end of the delay circuit is used for being electrically connected with the output end of the latch;
and the light-emitting device is electrically connected with the second end of the delay circuit, and is lightened under the condition that the latch is misled by the controller.
5. A control method of the latch misleading cancellation circuit according to any one of claims 1 to 4, comprising:
acquiring an electrical parameter of the voltage dividing device, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a preset voltage when the preset voltage is high level and no voltage jump occurs, and the second voltage value is a voltage value of a preset power supply;
Determining a second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage dividing device when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage dividing device;
and adjusting the electrical parameters of the voltage dividing device and the electrical parameters of the energy storage device according to the first adjustable range and the second adjustable range so that the difference value between the adjusted jump value and the first voltage value is in a preset range, wherein the jump value is a jump peak voltage when the preset voltage jumps.
6. The method of claim 5, wherein the voltage divider device comprises an adjustable resistor, the energy storage device comprises an adjustable capacitor, the electrical parameter of the voltage divider device comprises a resistance value and a power of the adjustable resistor, the electrical parameter of the energy storage device comprises a capacitance value of the adjustable capacitor, and determining the second adjustable range based on the electrical parameter of the voltage divider device, the first voltage value, and the second voltage value comprises:
Determining a minimum resistance value of the adjustable resistor according to the first voltage value, the second voltage value and the power;
determining a third adjustable range as [ R ] according to the minimum resistance value min -A,R min +A]Wherein R is min For the minimum resistance value, A is a predetermined threshold;
controlling the resistance value of the adjustable resistor to change in the third adjustable range, determining the minimum value of a second adjustable range according to the working state of the light-emitting device, and determining the resistance value of the adjustable resistor corresponding to the lighting state as the minimum value of the second adjustable range under the condition that the light-emitting device is changed from the extinction state to the lighting state;
and determining the maximum adjustment value of the adjustable resistor as the maximum value of the second adjustable range.
7. The method of claim 6, wherein the measurement structure comprises an oscilloscope, and wherein adjusting the electrical parameters of the voltage divider device and the energy storage device according to the first adjustable range and the second adjustable range such that the difference between the adjusted jump value and the first voltage value is within a predetermined range comprises:
a first adjustment step of adjusting the capacitance value of the adjustable capacitor according to the first adjustable range, wherein the adjusted capacitance value of the adjustable capacitor is located in the first adjustable range;
A second adjustment step of adjusting the resistance value of the adjustable resistor according to the second adjustable range under the condition that the adjusted capacitance value of the adjustable capacitor is unchanged, and acquiring the adjusted jump value through the oscilloscope;
a determining step of determining whether the difference between the adjusted jump value and the first voltage value is within the predetermined range;
and a circulation step of circularly executing the second adjustment step and the determination step at least once until the difference is within the predetermined range or until the second adjustment step has adjusted all the resistance values within the second adjustable range, under the condition that the difference is not within the predetermined range.
8. The method of claim 7, wherein in the case where the second adjusting step has adjusted all the resistances in the second adjustable range and the difference is not within the predetermined range, the method further comprises:
and circularly executing the first adjusting step, the second adjusting step and the determining step at least once until the difference value is within the preset range or until the first adjusting step adjusts all the capacity values within the first adjustable range.
9. A control device of a latch misleading cancellation circuit according to any one of claims 1 to 4, comprising:
the power supply device comprises an acquisition unit, a voltage dividing unit and a power supply unit, wherein the acquisition unit is used for acquiring an electrical parameter of the voltage dividing device, a first adjustable range, a first voltage value and a second voltage value, wherein the first adjustable range is a preset adjustment range of the electrical parameter of the energy storage device, the first voltage value is a voltage value of a preset voltage when the preset voltage is high level and no voltage jump occurs, and the second voltage value is a voltage value of a preset power supply;
the determining unit is used for determining a second adjustable range according to the electrical parameter of the voltage dividing device, the first voltage value and the second voltage value, wherein the minimum value of the second adjustable range is the electrical parameter of the corresponding voltage dividing device when the filtering structure does not play a role in filtering, and the maximum value of the second adjustable range is the maximum adjustment value of the electrical parameter of the voltage dividing device;
the adjusting unit is configured to adjust an electrical parameter of the voltage divider and an electrical parameter of the energy storage device according to the first adjustable range and the second adjustable range, so that a difference between the adjusted jump value and the first voltage value is within a predetermined range, where the jump value is a jump peak voltage when the predetermined voltage jumps.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 5 to 8.
11. A processor for running a program, wherein the program when run performs the method of any one of claims 5 to 8.
12. A numerical control system, comprising:
a controller;
the enabling end of the latch is electrically connected with the controller, and the controller is used for providing a preset voltage for the enabling end of the latch, and the latch is conducted under the condition that the preset voltage is at a low level;
a latch misleading cancellation circuit according to any one of claims 1 to 4;
one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 5-8.
CN202211418930.XA 2022-11-14 2022-11-14 Latch misleading cancellation circuit, control method and control device thereof Pending CN116094494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211418930.XA CN116094494A (en) 2022-11-14 2022-11-14 Latch misleading cancellation circuit, control method and control device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211418930.XA CN116094494A (en) 2022-11-14 2022-11-14 Latch misleading cancellation circuit, control method and control device thereof

Publications (1)

Publication Number Publication Date
CN116094494A true CN116094494A (en) 2023-05-09

Family

ID=86198121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211418930.XA Pending CN116094494A (en) 2022-11-14 2022-11-14 Latch misleading cancellation circuit, control method and control device thereof

Country Status (1)

Country Link
CN (1) CN116094494A (en)

Similar Documents

Publication Publication Date Title
RU2565595C2 (en) Detector of contact with skin
DE60018669T2 (en) Device for bioelectrical impedance measurement
CN103439570B (en) A kind of chip leakage current test system
DE102013207165B4 (en) Portable electronic device and accessory therefor and operating method for the portable electronic device
CN107104735B (en) A kind of optical module
US10928426B2 (en) Removable transient voltage detector
CN108957210B (en) Electrolytic capacitor polarity detection circuit and detection device
US20180076731A1 (en) Dual-input single-output power supply
CN114376274B (en) Aerosol generating device, control method thereof, control device and storage medium
CN116094494A (en) Latch misleading cancellation circuit, control method and control device thereof
CN114050798A (en) Radio frequency control circuit, radio frequency control method, electronic device, and storage medium
US8661233B2 (en) System configuration
CN103491261B (en) SIM cuts card error detector element, mobile terminal and detection method
JP2013217796A (en) Method of inspecting component embedded substrate
US8872521B2 (en) Electrical parameter detection device for peripheral component interconnect devices
CN111208451B (en) Electrocardiogram lead falling detection circuit, method and medical monitoring equipment
KR20210022539A (en) Electrode contact monitoring
CN107391324B (en) Test control device and method of storage system
CN109975878B (en) Device and method for detecting falling of surface excitation electrode plate of three-dimensional mapping system
DE102014224026A1 (en) Modular lighting device for dental applications
CN210297545U (en) Chip power supply circuit and chip
US11006898B2 (en) Biological information measurement apparatus, method for controlling the same, and recording medium
CN113805088A (en) Battery expansion coefficient calibration method and device and battery health state detection method
DE102018112607B3 (en) Operating and calibration procedures for a computer system, computer system and calibration device
EP2842216A1 (en) A method and a unit of power harvesting

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination