CN111147049B - Pulse stopping method for avoiding spike pulse - Google Patents

Pulse stopping method for avoiding spike pulse Download PDF

Info

Publication number
CN111147049B
CN111147049B CN201911317539.9A CN201911317539A CN111147049B CN 111147049 B CN111147049 B CN 111147049B CN 201911317539 A CN201911317539 A CN 201911317539A CN 111147049 B CN111147049 B CN 111147049B
Authority
CN
China
Prior art keywords
pulse
interval
dangerous
stopping
sending
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.)
Active
Application number
CN201911317539.9A
Other languages
Chinese (zh)
Other versions
CN111147049A (en
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.)
Shenzhen Samkoon Technology Corp ltd
Original Assignee
Shenzhen Samkoon Technology Corp ltd
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 Shenzhen Samkoon Technology Corp ltd filed Critical Shenzhen Samkoon Technology Corp ltd
Priority to CN201911317539.9A priority Critical patent/CN111147049B/en
Publication of CN111147049A publication Critical patent/CN111147049A/en
Application granted granted Critical
Publication of CN111147049B publication Critical patent/CN111147049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/02Generators characterised by the type of circuit or by the means used for producing pulses

Landscapes

  • Control Of Stepping Motors (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a pulse stopping method for avoiding spike pulse, and relates to the field of pulse signals. The method comprises the following steps: setting a safety interval and a dangerous interval of a single pulse, wherein the dangerous interval is a time interval containing a falling edge; and prohibiting the stop of sending the pulse in the dangerous interval. The invention avoids the generation of spike pulse by the pulse stopping mechanism of the pulse sending end, thereby solving the problem of accumulated error caused by spike pulse in the prior art. And the pulse stopping mechanism can be adjusted according to the receiving performance of the pulse receiving end without improving the receiving performance of the pulse receiving end, so that the pulse stopping mechanism can adapt to the pulse receiving end with any performance.

Description

Pulse stopping method for avoiding spike pulse
Technical Field
The invention relates to the field of pulse signals, in particular to a pulse stopping method for avoiding spike pulses.
Background
In the manufacturing industry, stepper motors and servo motors are widely used as basic elements of numerical control machine tools, industrial robots, special equipment and the like, and a PLC, a motion controller, a numerical control system and the like are used for controlling the stepper motors and the servo motors in a pulse mode. The frequency of the pulses controls the rotation speed of the motor, and the number of the pulses controls the rotation quantity, so that the running speed and the position of the equipment are controlled. Taking a PLC as an example, the PLC is taken as a pulse sending end, a pulse is sent to an input end of a motor driver through an output pin, the input end of the motor driver judges the number of the pulse by detecting the edge of the pulse, a pulse receiving end usually detects the falling edge of the pulse, when the pulse receiving end detects a falling edge, the pulse receiving end considers that one pulse is received, and the driver drives the motor to rotate by an angle corresponding to the pulse. The pulse high and low levels respectively account for 50% in normal transmission.
In an ideal case, the pulse frequency transmitted by the pulse transmitting end is guaranteed to be lower than the highest receiving frequency of the pulse receiving end. However, in practice, the pulse transmitted by the transmitting end is controlled by a program, and there are various special cases in which when the transmitting end needs to stop the pulse transmission immediately, the pulse waveform is stopped immediately, and the stopping position is random, as shown in fig. 1, the pulse transmission is stopped immediately at the moment when the falling edge just occurs, and the level is pulled up automatically, so that a spike pulse W may be generated, and the pulse receiving end cannot receive the pulse due to the receiving characteristic of the hardware circuit, and the spike pulse which cannot be received is ignored. And even if a spike, the transmitting end considers that a pulse has been transmitted as long as it has transmitted a falling edge. This causes an error between the actual running distance of the motor and the actual transmission of the PLC, and a long running time causes an accumulated error.
In the prior art, at the pulse receiving end, no better way is provided in the industry at present to deal with the spike problem caused by the sudden stop of the pulse transmitting end. In theory, the receiving performance of the pulse receiving end is improved, and the spike pulse with the effective level width in a certain range can be received, but due to the uncertainty of the pulse stopping time, the effective level width of the spike pulse can be infinitely small, and the pulse receiving end cannot infinitely improve the receiving performance of the spike pulse due to the limitation of cost and hardware, and the improvement of the receiving performance of the pulse receiving end can also cause the reduction of anti-interference capability and the increase of cost in practical application. On the pulse transmitting side, when the pulse stop command is generated, the pulse transmitting is completed, and the pulse transmitting is not stopped immediately, so that the spike pulse is avoided. When the frequency is high, the processing mode is effective, and the time of stopping pulse lag has little influence on the system. However, when the pulse frequency is low, there is also a spike problem, and this is not applicable, for example, the pulse frequency is 1Hz, and waiting for the pulse transmission to be completed may take up to 1 second, and in pulse control, this waiting is unacceptable.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a pulse stopping method for avoiding spike pulse, which can avoid the generation of spike pulse through a pulse stopping mechanism of a pulse transmitting end.
One embodiment of the present invention provides a pulse stopping method for avoiding spike pulses, the method comprising the steps of:
setting a safety interval and a dangerous interval of a single pulse, wherein the dangerous interval is a time interval containing a falling edge;
and prohibiting the stop of sending the pulse in the dangerous interval.
The pulse stopping method for avoiding spike pulse has the following advantages: the generation of spike pulse is avoided through a pulse stopping mechanism of the pulse sending end, so that the problem of accumulated error caused by spike pulse in the prior art is solved. And the pulse stopping mechanism can be adjusted according to the receiving performance of the pulse receiving end without improving the receiving performance of the pulse receiving end, so that the pulse stopping mechanism can adapt to the pulse receiving end with any performance.
According to other embodiments of the present invention, a pulse stopping method for avoiding spike pulse, wherein the step is set in the dangerous interval to prohibit stopping of sending pulse, specifically includes:
when receiving a command for stopping sending the pulse, the pulse sending end judges the section where the current pulse is sent;
if the current pulse is in the safety interval, stopping sending the pulse;
and if the current pulse is in the dangerous interval, continuing to send the pulse until the pulse is in the safe interval, and stopping sending.
According to still further embodiments of the present invention, the safety interval includes a first safety interval and a second safety interval, and the dangerous interval is located between the first safety interval and the second safety interval.
According to other embodiments of the present invention, a pulse stopping method for avoiding spike pulse, the steps set a dangerous interval of a single pulse, specifically includes:
comparing the highest sending frequency of the pulse sending end with the highest receiving frequency of the pulse receiving end;
taking one pulse width of the smaller one to determine the width of the dangerous interval.
Drawings
FIG. 1 is a schematic diagram of a spike;
FIG. 2 is a flow chart of an embodiment of a method for pulse stopping to avoid spikes in accordance with the present invention;
fig. 3 is a schematic flow chart of step S200 in fig. 2;
fig. 4 is a schematic diagram of intervals of a single pulse at the pulse transmitting end in an embodiment of the present invention.
Detailed Description
The conception and the technical effects produced by the present invention will be clearly and completely described in conjunction with the embodiments below to fully understand the objects, features and effects of the present invention. It is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and that other embodiments obtained by those skilled in the art without inventive effort are within the scope of the present invention based on the embodiments of the present invention.
In the description of the present invention, if an orientation description such as "upper", "lower", "front", "rear", "left", "right", etc. is referred to, it is merely for convenience of description and simplification of the description, and does not indicate or imply that the apparatus or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the invention. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" on another feature, it can be directly disposed, secured, or connected to the other feature or be indirectly disposed, secured, connected, or mounted on the other feature.
In the description of the embodiments of the present invention, if "several" is referred to, it means more than one, if "multiple" is referred to, it is understood that the number is not included if "greater than", "less than", "exceeding", and it is understood that the number is included if "above", "below", "within" is referred to. If reference is made to "first", "second" it is to be understood as being used for distinguishing technical features and not as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Example 1
Referring to fig. 2, a flow chart of a pulse stopping method for avoiding spike in the present embodiment is shown.
The method comprises the following steps:
s100, setting a safety interval and a dangerous interval of a single pulse, wherein the dangerous interval is a time interval containing a falling edge;
s200, prohibiting to stop sending the pulse in the dangerous interval.
Referring to fig. 3, step S200 specifically includes:
s210, when a pulse transmission stopping request is received, the pulse transmitting end judges the interval where the current pulse is transmitted;
s220, if the current pulse is in a safe interval, stopping sending the pulse;
s230, if the current pulse is in a dangerous interval, continuing to send the pulse until the pulse is in a safe interval, and stopping sending.
In this embodiment, the safety zone includes a first safety zone and a second safety zone, and the dangerous zone is located between the first safety zone and the second safety zone.
Referring to fig. 4, a schematic diagram of intervals of a single pulse at the pulse transmitting end in the present embodiment is shown. Wherein S1 is a first safety zone, D is a dangerous zone, and S2 is a second safety zone. The dangerous section D is located between the first safe section S1 and the second safe section S2, and the first safe section S1, the dangerous section D and the second safe section S2 together form a single pulse section.
The above steps are described using the single pulse example shown in fig. 4:
step S100: setting safety intervals S1 and S2 of a single pulse and a dangerous interval D, wherein the dangerous interval D is a time interval comprising partial areas on the left side and the right side of a falling edge;
step S200: at the pulse transmitting end, the stop of transmitting the pulse, that is, the stop of the pulse, is prohibited in the dangerous section D.
Since there is a period of time for the CPU to process from the receipt of the pulse stop command to the stop of the transmission of the pulse, there may be a pulse to the left of the falling edge when the pulse stop command is received, and a pulse to the right of the falling edge when the transmission is actually stopped, which may also cause a spike. Based on this, step S200 specifically includes:
step S210: when the pulse transmitting end receives a pulse stopping instruction (or a pulse stopping instruction), the pulse transmitting end judges the section where the current pulse is transmitted;
step S220: if the current pulse is in the safety interval S1 or S2, stopping sending the pulse;
step S230: if the current pulse is in the dangerous interval D, continuing to send the pulse until the pulse is in the second safe interval S2, and stopping sending.
In this embodiment, the width of the dangerous interval D is determined by the smaller of the highest sending frequency of the pulse sending end and the highest receiving frequency of the pulse receiving end, and can be dynamically adjusted according to the performance of the dangerous interval D, i.e. the width of the dangerous interval D is a pulse width of the smaller, i.e. after the falling edge, the effective low level is ensured to be kept for a period of time, so that the pulse is prevented from being made into a spike pulse.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.

Claims (2)

1. A pulse stopping method for avoiding spike pulse, which is applied to a pulse transmitting end, characterized in that the method comprises the following steps:
setting a safety interval and a dangerous interval of a single pulse, wherein the dangerous interval is a time interval containing a falling edge;
the pulse transmission is forbidden to be stopped in the dangerous interval;
the safety interval comprises a first safety interval and a second safety interval, the dangerous interval is positioned between the first safety interval and the second safety interval, and the first safety interval, the dangerous interval and the second safety interval jointly form a single pulse interval;
the step of setting a dangerous interval of a single pulse specifically comprises the following steps: comparing the highest sending frequency of the pulse sending end with the highest receiving frequency of the pulse receiving end; taking one pulse width of the smaller one to determine the width of the dangerous interval.
2. The pulse stopping method for avoiding spike pulse according to claim 1, wherein said step of prohibiting stopping of sending pulse in said dangerous interval comprises:
when receiving a command for stopping sending the pulse, the pulse sending end judges the section where the current pulse is sent;
if the current pulse is in the safety interval, stopping sending the pulse;
and if the current pulse is in the dangerous interval, continuing to send the pulse until the pulse is in the safe interval, and stopping sending.
CN201911317539.9A 2019-12-19 2019-12-19 Pulse stopping method for avoiding spike pulse Active CN111147049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911317539.9A CN111147049B (en) 2019-12-19 2019-12-19 Pulse stopping method for avoiding spike pulse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911317539.9A CN111147049B (en) 2019-12-19 2019-12-19 Pulse stopping method for avoiding spike pulse

Publications (2)

Publication Number Publication Date
CN111147049A CN111147049A (en) 2020-05-12
CN111147049B true CN111147049B (en) 2023-10-27

Family

ID=70519001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911317539.9A Active CN111147049B (en) 2019-12-19 2019-12-19 Pulse stopping method for avoiding spike pulse

Country Status (1)

Country Link
CN (1) CN111147049B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4852529A (en) * 1986-03-07 1989-08-01 Bennett Automotive Technology Pty. Ltd. Laser energy ignition system
JPH03169280A (en) * 1989-11-22 1991-07-22 M Syst Giken:Kk Motor-driven servoactuator
JPH08289593A (en) * 1995-04-13 1996-11-01 Nippon Parusumootaa Kk Pulse generating circuit
JP2001327194A (en) * 2000-05-12 2001-11-22 Oriental Motor Co Ltd Pulse oscillation ic and motor positioning control method and device using the ic
CN103716015A (en) * 2012-11-08 2014-04-09 余冠军 Vibration resistance incremental electronic pulse generator
JP2015032682A (en) * 2013-08-02 2015-02-16 住友重機械工業株式会社 Gas laser device, method for outputting pulse laser beam, and laser processing device
CN105388817A (en) * 2015-12-23 2016-03-09 珠海格力电器股份有限公司 Pulse generation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3815423B2 (en) * 2002-11-07 2006-08-30 ソニー株式会社 Transmitting apparatus and transmitting method, receiving apparatus and receiving method, pulse position detecting method, and tracking method
US7911808B2 (en) * 2007-02-10 2011-03-22 Active-Semi, Inc. Primary side constant output current controller with highly improved accuracy
US8289088B2 (en) * 2009-06-30 2012-10-16 Oracle America, Inc. Inverting difference oscillator
CN108904977A (en) * 2018-04-16 2018-11-30 宁波越凡医疗科技有限公司 Export the device of electric stimulation pulse

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4852529A (en) * 1986-03-07 1989-08-01 Bennett Automotive Technology Pty. Ltd. Laser energy ignition system
JPH03169280A (en) * 1989-11-22 1991-07-22 M Syst Giken:Kk Motor-driven servoactuator
JPH08289593A (en) * 1995-04-13 1996-11-01 Nippon Parusumootaa Kk Pulse generating circuit
JP2001327194A (en) * 2000-05-12 2001-11-22 Oriental Motor Co Ltd Pulse oscillation ic and motor positioning control method and device using the ic
CN103716015A (en) * 2012-11-08 2014-04-09 余冠军 Vibration resistance incremental electronic pulse generator
JP2015032682A (en) * 2013-08-02 2015-02-16 住友重機械工業株式会社 Gas laser device, method for outputting pulse laser beam, and laser processing device
CN105388817A (en) * 2015-12-23 2016-03-09 珠海格力电器股份有限公司 Pulse generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张琳 ; 马家驹 ; 胡文华 ; .脉冲半导体激光器驱动电源的设计.激光杂志.2009,(04),全文. *

Also Published As

Publication number Publication date
CN111147049A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN102265261B (en) Electronic control system, electronic control units and method of synchronization control, for vehicles
US6938190B2 (en) Failure detector for communication network in automobile
US7447576B2 (en) In-vehicle control apparatus communicably coupled through a communication line
US6351823B1 (en) Method and device for monitoring a computer system having at least two processors
US5414717A (en) Multiplex communication control apparatus
US5637841A (en) Elevator system
JP4306624B2 (en) Starter control device
US10599104B2 (en) Control device and motor control system
US4815007A (en) Apparatus for controlling a robot
CN107989993B (en) Shift range controller
CN111147049B (en) Pulse stopping method for avoiding spike pulse
CN105060037A (en) Brake control method and system
CN108946409B (en) Elevator car door operation control method and device, elevator and storage medium
JPH07848B2 (en) Method and apparatus for controlling a roving stop mechanism in a spinning machine
CN112548546B (en) Screw locking method and screw locking device
KR20180081570A (en) How the control device of the automobile works
US4691807A (en) Elevator control apparatus
US4884162A (en) Method and apparatus for preventing the overheat of a line feed motor for a printer
EP0782246A1 (en) Method and apparatus for detecting runaway of motor
KR101567973B1 (en) Can communication apparatus and method
CN114666181B (en) Special vehicle chassis rotating speed control method and control system
US20220126409A1 (en) Screw fastening failure determination device, screw fastening device, screw fastening failure determination method, and non-transitory computer readable medium
JP2006170559A (en) Communication control method for communication wiring connection equipment, communication control method for air conditioner, and air conditioner
US20070012522A1 (en) Elevator controller and controlling method
US6218954B1 (en) Communication control device

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
GR01 Patent grant
GR01 Patent grant