CN1564455A - Controller of stepper dynamo - Google Patents

Controller of stepper dynamo Download PDF

Info

Publication number
CN1564455A
CN1564455A CN 200410030819 CN200410030819A CN1564455A CN 1564455 A CN1564455 A CN 1564455A CN 200410030819 CN200410030819 CN 200410030819 CN 200410030819 A CN200410030819 A CN 200410030819A CN 1564455 A CN1564455 A CN 1564455A
Authority
CN
China
Prior art keywords
drive circuit
counter
circuit
stepping motor
cpu
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
CN 200410030819
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 200410030819 priority Critical patent/CN1564455A/en
Publication of CN1564455A publication Critical patent/CN1564455A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

The controller in use for driving step motor includes CPU, counter, timer. Counting of counter is carried out for input pulse in positive and negative directions. The timer provides multiple time constants. Based on count of counter, CPU increase or decreases time constants of time delay in stages in interrupt servicing operation of timer in order to adjust pulse output. Drive circuit is drive circuit in constant current chopped wave. Functions of the invention are rotation smoothness, large moment, not losing step, raised use ratio of power source, and control speed.

Description

Controllor for step-by-step motor
Technical field
The present invention relates to controllor for step-by-step motor, particularly, the three-phase and four-line controllor for step-by-step motor of numerically controlled wire cutting machine.
Background technology
In the prior art, numerically controlled wire cutting machine is extensive use of stepping motor, particularly the three-phase and four-line stepping motor is as controlled driving power, adopt current-limiting resistance in its drive circuit, when its supply power voltage is 24V, when phase current was 2-3A, there was waste of electric energy in every power consumption that 48W-70W is arranged approximately when working mutually on this current-limiting resistance.Secondly, come its pulse period of signal of self-controller to alter a great deal, in order to improve control precision, the assurance stepping motor is not lost the step, and drive circuit will provide enough big power headroom and limit running frequency at reduced levels, thereby makes motor torque very little.Moreover, in the constant current chopper circuit of prior art, each phase winding of stepping motor can not be connected into has common port, gives the repacking of wire cutting machine tool driving power like this and upgrade to involve the whole winding joints of motor, thereby make troubles, be not suitable for using the three-phase four-wire system stepping motor.
The technical problem to be solved in the present invention provides a kind of controllor for step-by-step motor, comprise stepper motor driving circuit, its overcome exist in the prior art must make running frequency be limited in reduced levels for improving control precision, thereby make shortcomings such as torque is little, its controller output pulse period is done gradually long or gradually short the variation according to the cycle of input pulse, and it is level and smooth that motor is rotated, driving moment is big, do not lose the step, improve the power utilization rate, improve control rate.
Summary of the invention
For reaching above purpose, technical scheme of the present invention is:
A kind of controllor for step-by-step motor, comprise stepper motor driving circuit, power-supply circuit, it is characterized in that described controller comprises CPU, counter, timer, described cpu signal input is connected with pulse signal source, output is connected with drive circuit, and described counter is counted the input pulse corresponding to positive and reverse steering; Described timer is in CPU inside, and it provides multiple time constant, and CPU counting according to above-mentioned counter in the break in service work of timer increases, subtracts the delay time constant step by step, regulating impulse output.
A kind of controllor for step-by-step motor according to a further aspect in the invention, comprise stepper motor driving circuit, described drive circuit is the constant current chopper drive circuit, described constant current chopper drive circuit is a plurality of identical independent circuits, the number of phases of its number and stepping motor is consistent, each drive circuit is by the independently power supply power supply mutually of same number, and each phase winding of stepping motor inserts in the power amplifier of a described drive circuit, and one of each winding termination of stepping motor is connected to each other together.
A kind of controllor for step-by-step motor, comprise stepper motor driving circuit, power-supply circuit, it is characterized in that described controller comprises CPU, counter, timer, described cpu signal input is connected with pulse signal source, output is connected with drive circuit, and described counter is counted the input pulse corresponding to positive and reverse steering; Described timer is in CPU inside, and it provides multiple time constant, and CPU counting according to above-mentioned counter in the break in service work of timer increases, subtracts the delay time constant step by step, regulating impulse output; Described multiple time constant is arranged from long to short, and give corresponding pointer value from small to large, the count value of described counter is corresponding to the pulse difference of input and output, and the more described pointer value of CPU is big or little to the count value of counter, selects to subtract or increase described pointer value; Described drive circuit is the constant current chopper drive circuit, described constant current chopper drive circuit is a plurality of identical independent circuits, the number of phases of its number and stepping motor is consistent, each drive circuit is by mutual independence of same number or single power supply power supply, each phase winding of stepping motor inserts in the power amplifier of a described drive circuit, and one of each winding termination of stepping motor is connected to each other together; Current detecting and control circuit in the described constant current chopper drive circuit, comprise that the Schmidt circuit that is made of operational amplifier makes voltage comparator, and AND circuit, two inputs of described voltage comparator are imported the sampling voltage of expression winding current and the voltage that presets that current value is set in expression respectively; Power amplifier in the described constant current chopper drive circuit comprises first (QA1) and second (QA2) switching tube, and a sample resistance (RA1) and a phase winding (LA) are composed in series.
Effect of the present invention is to export to constant current chopper after the pulse via controller of input is handled to drive the three-phase and four-line stepping motor, makes the rotation of stepping motor level and smooth, and driving moment is big, and the assurance stepping motor is not lost the step, improves the power utilization rate, improves control rate.
Description of drawings
Fig. 1 is the circuit diagram of the embodiment of the invention.
Fig. 2 is the master control workflow diagram of embodiment of the invention middle controller.
Fig. 3 is interruption, the services flow chart of embodiment of the invention middle controller.
Embodiment
Describe embodiment in detail below with reference to accompanying drawing.
Fig. 1 is controller embodiment physical circuit figure of the present invention, comprises stepper motor driving circuit in this circuit diagram.Drive circuit drives the three-phase and four-line reaction stepping motor in this example, comprises three independently identical UA such as voltage source such as grade, UB, UC, gives three separate constant current chopper drive circuitry.These three groups of power supplys are not established common junction, export about 24V.LA, LB, LC are three groups of phase windings of stepping motor, because chopper circuit is independent mutually, do not have the tie point of electricity, so stepping motor can have common junction 0, are applicable to the three-phase four-wire system stepping motor.
Be the work of example explanation copped wave drive circuit with control step motor A phase winding LA below: the copped wave drive circuit comprises the current detecting and the control circuit of power amplifier, control circuit, power amplifier is connected in series by second switch pipe QA2, stepping motor one phase winding LA, the first switching tube QA1 and current sampling resistor RA1 and forms the leakage resistance of not limiting.And current detecting and control circuit comprise: make voltage ratio by the Schmidt circuit that operational amplifier ICA2 and RA9 form, and make current detecting and output control signal, ICA1 is an AND circuit, and QA3 is the prestage of second switch pipe.The concrete course of work is as follows:
The first switching tube QA1 can manage with Darlington transistor or VMOS, second switch pipe QA2 is the Darlington transistor of PNP, DA2 is a fly-wheel diode, the electric energy that DA1 discharges coil when QA1 closes reclaims to the power supply discharge, RA1 is a current sampling resistor, RAW is the current settings potentiometer, and ICA2 and resistance R A9 constitute Schmidt circuit.When photocoupler OA1 no signal, its receiving tube is an open-circuit condition, and switching tube QA1 does not have forward bias and closes, with the P2 pin of door ic chip A1 be low level, the P3 pin is output as low level, QA3 is operated in cut-off region, QA2 also is operated in cut-off region.Therefore there is not electric current among the coil LA.When OA1 had input, its receiving tube was a conducting state, and the P2 pin of ICA1 is a high level, and switching tube QA1 obtains forward bias current, the QA1 conducting.During the firm conducting of QA1, sample resistance RA1 voltage is 0 V, and the integrated P3 pin of operational amplifier ICA2 has been connected to setting voltage, the P3 pin is higher than P2 pin level, P1 pin output high level, and promptly the P1 pin of ICA1 is high, the P2 pin has been high, thereby P3 pin output high level, and QA3 obtains positive bias and conducting, QA2 is conducting also, the LA coil current rises, and the last electric current of RA1 rises, simultaneously, the P2 pin current potential of integrated ICA2 rises, when P2 pin current potential is higher than the P3 pin, Schmidt circuit upset, P1 pin output low level, P3 pin output low level with door ICA1 integrated package, QA3 ends, and QA2 also ends, after ending, the magnetic energy that has had among the motor coil L A passes through DA2, LA and QA1 continue discharge and afterflow, electric current begins to descend, and the sampling current potential descends, and promptly ICA2 integrated package P2 pin current potential descends, when being lower than P3 pin current potential, the Schmidt circuit upset, the QA2 conducting, power supply is powered to LA again, go round and begin again, finish the process that constant current chopper drives like this.When OA1 did not have input signal, QA1, QA2 closed, and the magnetic energy in the coil reclaims to the power supply discharge by DA2 and DA1.The LA winding drive circuit has independent current source, input signal is isolated, thereby does not have common junction with LB winding drive circuit and LC winding drive circuit, isolates mutually, therefore three-circuit get each winding an end as the common junction end, the work of entire circuit is not influenced.
The work of description control device now.
Three-phase signal A, the B of clock, C import CPU, its pulse period of this signal is changeable, in CPU, establish tape symbol counter D counting is given in this pulse, and open timer at CPU, timer is established many grades of delay time constants, and delay time is established 16 grades from long to short in the present embodiment, the time constant pointer is got 0-15, and the delay time constant is got between the 0.02S-0.7MS.The main program intercourse is according to the selected delay time constant of the value of counter D, the pulse of output three-phase six-beat, unison counter D reverse count.When counter D absolute value equals pointer value, pointer is constant, and selected time constant is constant.When the counting absolute value of pointer value greater than counter D, pointer value is subtracted 1, increase time constant and slow down output speed, otherwise, when pointer value during, pointer value is added 1 less than the counting absolute value, reduce time constant and accelerate output.Like this, the operating frequency of stepping motor is 50-1428HZ, gradually quickens step by step or decrescence speed rotation with the speed of input pulse, and stability of rotation is not lost the step.
The workflow of cpu controller is seen Fig. 2,3.
Fig. 2 represents CPU main program control flow, and Fig. 3 represents the service routine flow process that its timer interrupts.
Referring to Fig. 2, CPU judges whether to exist A, B, C signal (S1), whether has turn signal (S2), judges its forward and backward (S3), when just changeing, and pulse of every input, counter adds 1, and starts timer, and jumps to the S1 program of carrying out.During counter-rotating, counter subtracts 1 and start timer, and jumps to the S1 program of carrying out.
Interrupt, service routine be the CPU timer then, interrupt main program, the outage service routine, its course of work flow chart is seen Fig. 3.At first CPU judges that when the count value of counter D is zero (S10), expression does not have input pulse, and program is returned main program.Otherwise relatively there are three kinds of situations in the pointer of time-delay setting and the absolute value (S20) of count value, when equating, pointer is constant, and pointer value hour should be accelerated output, and pointer adds 1 (S201), when pointer value was big, then opposite, pointer subtracted 1, with the output speed that slows down (S202).Subsequently by the selected delay time constant (S30) of pointer value, CPU judges the positive and negative of count value, promptly judges to turn to positive and negative (S40), when count value is that one of timing output is rotated in the forward pulse signal, the count value of counter D is subtracted 1 (S41), return main program then.After judgement turns to when negative, exports an anti-rotational pulse signal, the count value of counter is added 1 (S42), return main program then.
Through after the above process, the output pulse is followed the tracks of input signal with suitable speed at any time, and stepping motor guarantees machining accuracy gradually to quicken step by step or decrescence fast stablize, smoothly rotate.
The action of button K1, K2 detects by CPU, and is effective when no A, B, C pulse input, this moment, turn signal was gradually quickened in output, for example: output from 500HZ to 10000HZ along or contrary (just or instead) three-phase six-beat signal, change the fast moving work top soon for stepping motor.

Claims (7)

1, a kind of controllor for step-by-step motor, comprise stepper motor driving circuit, power-supply circuit, it is characterized in that described controller comprises CPU, counter, timer, described cpu signal input is connected with pulse signal source, output is connected with drive circuit, and described counter is counted the input pulse corresponding to positive and reverse steering; Described timer is in CPU inside, and it provides multiple time constant, and CPU counting according to above-mentioned counter in the break in service work of timer increases, subtracts the delay time constant step by step, regulating impulse output.
2, controller according to claim 1, it is characterized in that described multiple time constant arranges from long to short, and give corresponding pointer value from small to large, the count value of described counter is corresponding to the pulse difference of input and output, the more described pointer value of CPU is big or little to the count value of counter, selects to subtract or increase described pointer value.
3, controller according to claim 1 and 2, it is characterized in that described drive circuit is the constant current chopper drive circuit, described constant current chopper drive circuit is a plurality of identical independent circuits, the number of phases of its number and stepping motor is consistent, each drive circuit is by the independently power supply power supply mutually of same number, each phase winding of stepping motor inserts in the power amplifier of a described drive circuit, and one of each winding termination of stepping motor is connected to each other together.
4, controller according to claim 1 is characterized in that described drive circuit is the constant current chopper drive circuit, and each phase winding of stepping motor inserts in the power amplifier of a described drive circuit.
5, controller according to claim 3 is characterized in that: described stepping motor is a phase reaction formula stepping motor, and lead-out wire is a three-phase and four-line.
6, controller according to claim 3, current detecting and control circuit in the described constant current chopper drive circuit of its feature, comprise that the Shi Mite circuit that is made of operational amplifier makes voltage comparator, and AND circuit, two inputs of described voltage comparator are imported the sampling voltage of expression winding current and the voltage that presets that current value is set in expression respectively.
7, according to claim 3 or 4 described controllers, it is characterized in that: the power amplifier in the described constant current chopper drive circuit comprises that first (QA1) and second (QA2) switching tube, sample resistance (RA1) and a phase winding (LA) are composed in series.
CN 200410030819 2004-04-07 2004-04-07 Controller of stepper dynamo Pending CN1564455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410030819 CN1564455A (en) 2004-04-07 2004-04-07 Controller of stepper dynamo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410030819 CN1564455A (en) 2004-04-07 2004-04-07 Controller of stepper dynamo

Publications (1)

Publication Number Publication Date
CN1564455A true CN1564455A (en) 2005-01-12

Family

ID=34481186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410030819 Pending CN1564455A (en) 2004-04-07 2004-04-07 Controller of stepper dynamo

Country Status (1)

Country Link
CN (1) CN1564455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594111B (en) * 2009-07-07 2012-09-05 浙江新飞跃股份有限公司 Step motor controller
CN103872963A (en) * 2012-12-18 2014-06-18 苏州工业园区新宏博通讯科技有限公司 Position control method for servo motor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594111B (en) * 2009-07-07 2012-09-05 浙江新飞跃股份有限公司 Step motor controller
CN103872963A (en) * 2012-12-18 2014-06-18 苏州工业园区新宏博通讯科技有限公司 Position control method for servo motor

Similar Documents

Publication Publication Date Title
CN103248294B (en) Position-sensor-free DC brushless motor double closed loop speed regulation system control method
CN201536337U (en) DSP-based direct-current motor controller based on
CN201383787Y (en) Controller of brushless direct current motor
CN108322102A (en) The driver of synchronous control multichannel motor
CN102088266A (en) Brushless motor stepless speed change controller based on FPGA (Field Programmable Gate Array) digitization control
CN201113873Y (en) Electric bicycle control system
CN108809171A (en) It is a kind of to determine frequency PWM full-bridge type motor micro-stepping subdivision drive control methods and circuit
CN205566144U (en) Many motors speed servo drive control structure
CN2617079Y (en) Step-by-step motor controller
CN101364783A (en) Stepping motor driving apparatus
CN204906239U (en) Direct current motor speed control system based on single chip microcomputer control
CN1564455A (en) Controller of stepper dynamo
CN108015776B (en) Robot control system based on compactRIO
CN100464492C (en) Constant current driver for step motor
CN204993138U (en) Dead motor control system of anti -sticking
CN105429554B (en) A kind of control method of switch magnetic resistance driving system used for oil extractor
CN201199677Y (en) Power supply control apparatus for motor
CN201904749U (en) FPGA (field programmable gate array) digital control based variable speed controller for brushless motor
CN207354087U (en) A kind of door lifter speed-stabilizing circuit
CN204452101U (en) Electric vehicle third gear controller
CN202856676U (en) Stepper motor driver
CN201820113U (en) Control device of laser engraving machine
CN201477412U (en) Fully-digital direct current servo drive
CN206117549U (en) Multichannel stepper motor controller
CN2252452Y (en) Chopping constant-current type step-by-step motor drive circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication