Summary of the invention:
Technical matters to be solved by this invention provides a kind of single chip controller of automatic lathe for bearing rings, and it can reduce cost effectively, improves life-span and reliability, have fault self-diagnosis and cycle index tally function.
The technical scheme that the present invention solves its technical matters employing is:
It comprises interface card, display circuit board, it is characterized in that it also comprises signal processing circuit board, after single-chip microcomputer on the described signal processing circuit board detects input signal, produce output control signal, working cycle counting shows signal or failure code shows signal by single-chip microcomputer.
By the mutual transfer control signal of row's pin, display circuit board is fixed on the operation control panel of automatic lathe for bearing rings between signal processing circuit board and the interface card, and signal processing circuit board electrically connects by flat cable and display circuit board;
Interface card has 12 external control input endpoints, connects push switch, near switch, machine tool travel switch, and these switching signals are delivered to input photoelectric isolating circuit on the interface card through the connection terminal J11 on interface cards; Resistance 28,26 on the interface card, triode 2 constitute output driving current signal sampling, amplifying circuit, and the current signal of its output is also delivered to the input photoelectric isolating circuit; The push switch signal, flow to single-chip microcomputer on the signal processing circuit board via 16 row's pin plug J21 on 16 row's needle socket J12, the signal processing circuit board on the interface card near the current signal of switching signal, machine tool travel switching signal and output; Also has voltage-stabilized power supply circuit on the interface card;
3 potentiometers 1,2,3 for user's adjusting are arranged on the signal processing circuit board, the voltage signal that these 3 potentiometers produce is transported to the input end of the A/D converter of band in the single-chip microcomputer, produces time delayed signal after the voltage signal after the A/D conversion is again through the Single Chip Microcomputer (SCM) program computing; Single-chip microcomputer on the signal processing circuit board produces output control signal, working cycle counting shows signal, failure code shows signal to the push switch signal, carry out computing, processing near the analog voltage signal of switching signal, machine tool travel switching signal, output current signal and potentiometer 1,2,3; Wherein count shows signal, failure code shows signal via the connection terminal J23 on the signal processing circuit board and 10 tape shape cable transmission to display circuit board; When signal processing circuit board receive the push switch signal, during near switching signal, machine tool travel switching signal and current signal, single-chip microcomputer is analyzed, is handled each signal, when signal processing circuit board is exported 6 position digital signals to display circuit board, the expression automatic lathe is working properly, and this 6 figure place is the working cycle number of times; When signal processing circuit board output be 2 position digital signals the time, expression lathe operation irregularity, this 2 figure place is the fault code, the trouble spot of prompting lathe; Single-chip microcomputer produces 9 tunnel output control signals, pass to the output photoelectric isolating circuit of interface card via 11 row's needle socket J13 on 11 rows pin plug J22 and the interface cards on the signal processing circuit board, signal moves thereby control automatic lathe for bearing rings through isolating, amplify rear drive solenoid valve, relay, pilot lamp; 6 charactrons are arranged on the display circuit board, and the count signal or the fault code signal that are transmitted by signal processing circuit board show on charactron after handling through decoder ic, position drive integrated circult.
The model of the single-chip microcomputer on the described signal processing circuit board is PIC16F877A or PIC16F877.
The model of the decoder ic chip on the described display circuit board is CD4543 or MC14543,74HC4543.
The model of the position drive integrated circult chip on the described display circuit board is 74HC238 or 74LS238.
The present invention compares the beneficial effect that is produced with background technology:
1, because the present invention adopts cheap general single chip PIC16F877 to do the master control chip and is optimized design at automatic lathe for bearing rings specially, simplifies circuit structure, so reduced cost of the present invention;
2, because the present invention uses high-power FET to do control output, the safeguard measure that has adopted software and hardware to combine has improved serviceable life of the present invention and reliability;
3, owing to have electrically-erasable memory (EEPROM) in the single-chip microcomputer that the present invention adopts,, still can preserve count value after the power down so have tally function.Can in time change cutter according to the count value user, guarantee product quality;
4, owing to adopted control program in the single-chip microcomputer of the present invention,, help the user to shorten servicing time so can in time indicate the machine failure point with machine failure diagnostic function.
Embodiment:
Referring to accompanying drawing 1, the present invention is made up of interface card 1, signal processing circuit board 2,3 three parts of display circuit board.
Referring to accompanying drawing 2, interface card 1 is made up of three parts: input photoelectric isolating circuit, output photoelectric isolating circuit, voltage-stabilized power supply circuit.Travel switch signal, push switch signal, be input to the input photoelectric isolating circuit of interface card, always have 12 switch input circuits near switching signal.In addition, resistance 28,26, triode 2 constitute output current sampling amplifying circuit, the current signal of its output also is input to the input photoelectric isolating circuit of interface card, when the current value of output circuit surpasses setting value, single-chip microcomputer will interrupt all control output immediately and provide corresponding failure code prompting.Resistance 27 (BX) is resettable fuse in the circuit, and its effect is to provide open circuit protection to long excess current.The control signal of output photoelectric isolating circuit output solenoid valve, relay, pilot lamp.Voltage-stabilized power supply circuit provides the power supply supply to complete machine.Constitute power sense circuit by resistance 57,58,59, electric capacity 5, triode 1, diode 13,14, when power interruption, produce a trigger pip and give single-chip microcomputer, single-chip microcomputer is with the output of timely interrupt control and in time preserve current cycle time count value and the global cycle count value electrically-erasable memory (EEPROM) to single-chip microcomputer inside, is powered to complete machine by filter capacitor C1, charge stored such as 4 during power interruption; The output photoelectric isolating circuit is isolated by 9 tunnel control signal photoelectricity and is amplified output and form; the signal of photoelectrical coupler output amplifies back output via field effect transistor; each field effect transistor all is connected to fly-wheel diode, provides protection to field effect transistor when load is inductive nature.Do control output because the use field effect transistor adds multiple holding circuit, do control output with relay and compare advantage with electrical endurance length.
Referring to accompanying drawing 3, be the circuit diagram of signal processing circuit board 2.Import by 16 row's pin plug J21 through the input signal that photoelectricity is isolated, have 13 input circuits.Every road input signal all connects a light emitting diode 1~13 and does the input indication, and input signal is handled through delivering to single-chip microcomputer behind the rc filter circuit.After 9 tunnel output control signals are indicated output states via light emitting diode 15~23 altogether, be transferred to interface card from 11 row's pin plug J22.Output photoelectric isolating circuit on the interface card is finished isolation, amplification, the output of output control signal.Single-chip microcomputer also produces digital displaying signal and is transferred to the digital display circuit plate via connection terminal J23.When the lathe operate as normal, 6 current cycle time count signals of single-chip microcomputer transmission or lathe amount to the cycle index count signal.When the lathe operation irregularity, 2 fault code signal of single-chip microcomputer transmission.Potentiometer 1,2,3 is used to produce the analog voltage signal that can regulate, and single-chip microcomputer is according to the length of time delay in the size decision control procedure of this voltage.Have electrically-erasable memory (EEPROM) in the single-chip microcomputer, still can preserve current loop count and global cycle count value after the power down.
Referring to accompanying drawing 4, be the circuit diagram of digital display circuit plate 3.This display board adopts 6 LED charactrons to show cycle index or failure code.In order to reduce the quantity of transmission line, adopt the dynamic scan video data.So this display board adopts 7 sections coding chip CD4543 of a slice and a slice position coding chip 74LS238.In addition, use the duty of 2 diode displaying controllers.