Summary of the invention
The object of the invention is to overcome the shortcoming of prior art and deficiency, a kind of temperature controller with three phase mains intelligence Phase sequence detection and arbitration functions is provided.
Object of the present invention is achieved through the following technical solutions:
There is a temperature controller for three phase mains intelligence Phase sequence detection and arbitration functions, be applied in Digit Control Machine Tool, comprise power module, CPU control module, export driving and control module, temperature sensor module,
Wherein, power module, is connected with CPU control module, for providing operating voltage for CPU module;
Temperature sensor module, is connected with CPU control module, for obtaining environment temperature, and the temperature data of acquisition is passed to CPU control module;
CPU control module, for the feedback information for the treatment of and analysis temperature sensor, and sends to output to drive and control module by the control signal of output;
Export and drive and control module, be connected with CPU control module, for the control instruction of drive amplification CPU control module, and control instruction outputted to oil cooling machine equipment with control oil pump machine and compressor operating;
This temperature controller also comprises phase sequence acquisition module, this module is by using high voltage bearing optical coupling isolation circuit, by being converted to the low-voltage direct two-phase phase sequential signal needed for phase demodulation after the three-phase alternating current collection of powering to outside machine tool, be then transferred to CPU control module for differentiating the phase place of three-phase alternating current.
Preferably, described power module can be provided by three-phase alternating-current supply, 9-12V alternating current is obtained after transformer conversion, after rectification, filter circuit and DC decompression, provide 5V operating voltage to single-chip microcomputer in CPU control module, also can connect outside 12V dc source, after rectification, filter circuit and DC decompression, provide 5V direct-current working volts to single-chip microcomputer in CPU control module.
Preferably, described three-phase alternating current is connected to light-coupled isolation device by before high voltage bearing optical coupling isolation circuit collection through series resistance and diode, wherein the resistance value of series resistance can adjust, to adapt to the voltage change of outside three-phase alternating current, wherein the excursion of adaptable three-phase alternating current reaches 200 ~ 415V, 50 ~ 60Hz.
Preferably, described temperature sensor module comprises two temperature sensor probes, be respectively used to obtain ambient temperature and cooler environment temperature, wherein hygrosensor probe uses the temperature sensor that model is DS18B20, monobus signal transmission form is adopted to be connected with CPU control module, need not additional A/D converter.
Preferably, described CPU control module adopts STC90C58RD single-chip microcomputer, has 1K byte RAM, has Flash program storage in sheet, supports that IAP is applying able to programme and ISP in-system programmable components, can realize online software upgrade, without the need to programmable device.
Preferably, this controller also comprises I/O input module, be connected with CPU control module, this module by after the refrigerant pressure detecting signal of external outside, oil pump motor overload detection signals, overload of compressor detection signal, level sensing signal by being transferred to CPU control module after the conversion of light sensation coupling circuit.
Preferably, after described output driving and control module receive the control instruction of CPU control module, amplified by control instruction signal, the closed of relay then by controlling corresponding compressor, different police, oil pump, fan four loop break-makes respectively ensures that oil pump machine and compressor operating are at safe condition.
Preferably, this controller also comprises display apparatus module, is connected with CPU control module, and this module comprises two groups of 3 LED charactrons, be respectively used to temperature data that displays temperature sensor assembly measures or abnormal time additional character.
Preferably, this controller also comprises abnormality alarming indicating module, be connected with CPU control module, this module, according to the control instruction of the CPU control module received, drives the work of corresponding power, refrigeration, fan, oil pump, phase demodulation, exception and warning seven road light emitting diode lamp.
Preferably, this controller also comprises key-press module, be connected with CPU control module, key-press module comprises <set> key, <down> key, <up> key.
The present invention has following advantage and effect relative to prior art:
1, the present invention makees central processing unit with 51 single-chip computer control systems that low cost is practical, and the basis ensureing temperature controller functional realiey can effectively control the cost of temperature controller; Hygrosensor probe uses DS18B20, adopts Single Wire Bus Technology, and need not additional A/D converter; Parasite power works, power-switching circuit need not be built separately, various I/O interface, driving, display and key circuit design and all adopt pull-up resistor design, circuit exports or is input as low level change effectively, above feature all makes circuit simpler, antijamming capability is stronger, more can adapt to work under rugged environment.What temperature control system adopted simultaneously is relative temperature control technology, and to control of dynamically being lowered the temperature by control realization of goal, this control result can ensure to be changed by the relative constant temperature of control objectives, prevents from being occurred condensation condensation by control objectives and producing secondary fault simultaneously.
2, three-phase phase discriminator part uses high voltage bearing optical coupling isolation circuit, the two-way phase sequential signal needed for phase demodulation is supplied under directly the phase sequential signal of AC power being converted to low-voltage dc power supply environment, anti-interference and the insulating capacity of intensifier circuit, phase detecting method is that to gather three-phase power supply phase sequence impulse level status signal be coordinate, by a phase sequence pulse for based on reference signal, determine the angle between another 2 phase sequences and benchmark phase sequence, the vector signal producing 2 different phase sequence directions is principle, computer (single-chip microcomputer) judges " phase shortage " according to the vector signal of these 2 different phase sequences, " anti-phase " and " positive " sequence result, to differentiate with existing collection three-phase signal technology or resistance-capacitance circuit forms the basis that relay voltage difference switches mechanical contact circuit and compares the signal analysis resource saving 1/3rd, react more accurately on year-on-year basis motor-side and power supply supply survey between phase sequence change, more can ensure just performing motor, anti-result, this phase demodulation design principle effectively can prevent the physical damage of the electric motor caused because of motor reversal or secondary fault.When any moment computer (single-chip microcomputer) detects phase sequence exception, all must power-off again no matter whether discharge abnormal failure, then power on and temperature controller could be allowed normally to work, the object of design like this prevents electrification in high voltage from operating, and ensures the life security of operating personnel.
3, first must enter into normal operating conditions after normal to the judgement of three-phase phase discrimination signal after system electrification self-inspection, otherwise temperature control system does not provide any output to control; Control terminal power pack is exported by computer (single-chip microcomputer) and controls auxiliary reclay signal, and the contactor that auxiliary reclay switches high voltage control carries out the disconnected process of switch, realizes forceful electric power control circui; Simultaneous computer (single-chip microcomputer) moment monitoring control circuit motor-side electrothermal relay overload feedback information, once detected abnormal failure cut off computer immediately (single-chip microcomputer) export and control auxiliary reclay signal, and in display window prompting abnormality code information, abnormal failure can continue normal work and use not needing the prerequisite of power-off after getting rid of.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment
One, temperature controller feature
The present invention is instructions for use and actual distribution demand environmentally, also be embody product independent research and development capacity simultaneously, the temperature control precision improving existing equipment and the accuracy that three-phase oil pump motor traffic direction is controlled, the oil cooling machine unit making up existing Digit Control Machine Tool annex judges to power phase the defect that precision is not high, the absolute temperature making up existing temperature control modules controls to produce condensation condensation phenomenon to metal surface during Digit Control Machine Tool main axle unit excessive temperature differentials, cooled object is caused even to play rust, by a kind of relative temperature control type controller collecting intelligent three-phase power supply Phase sequence detection and judgement of the means R & D design of this technological innovation, and design this controller be requirement possess multichannel abnormality detection warning input and output control, in order to make up the deficiency of existing control device, strengthen control of product precision, make it more efficient, more energy-conservation, more humane is applied.
This thermostat circuit simplicity of design, the advantages such as cost is low, and function is strong, various functions control design case is developed again by software, very flexibly and practical; Simultaneously also arrange practical function shielding by inner parameter, as not needing to shield by parameter when carrying out phase demodulation to three phase mains, the scope of application of this temperature controller will become more extensively like this, possess the potentiality of secondary development.
This temperature controller possesses following characteristics:
1. integrate three-phase power supply phase sequence detect and judge, adopt and three phase places are converted to two phase signals and are supplied to CPU as the foundation judging positive phase, antiphase and phase shortage position, CPU provides result of determination to confirm according to the computing formula pre-set, coordinated signals condition can also be done with other temperature control output function simultaneously, realize intelligent AI (Artificial Intelligence) and judge phase sequence.
2. the relative temperature control technology of binary channels display, this temperature techniques controls to control there is absolute predominance to the hot cold events index impacts of target, the particularly field such as intermetallic composite coating and fishery cultivating relative to absolute temperature.Impact on object of reference when being specially adapted to the high temperature difference that high cryogenic temperature or heating power equipment relative ambient temperature produce.
3. provide and can detect peripheral circuit current overload, excess pressure or super water level abnormality input signal, and this series of signals is combined with CPU internal processes and output state indicate.
4. provide multichannel output to control, control to export (Chang Kai or normally closed) contact unrestricted choice, maximum contact capacity 10A.
5. inner parameter high temperature and low temperature detection alarm are warned, and moment monitoring controlled environment temperature, provides abnormal output alarm switching signal.
6. all abnormality warnings are except having warning output switching signal, and also provide visual windows code to indicate, find trouble point fast by this symbol lookup, the personnel of maintaining easily carry out maintain and repair methods.
7. under the prerequisite not changing hardware circuit, the temperature also realizing more areas by Software for Design compiling controls, and can realize the online serial of program simultaneously and be uploaded to CPU and store in ROM, and after no longer needing to be fired by specific programmable device, plug-in unit or paster are produced again.
8. hardware circuit adopts industry standard design, and signal controls to adopt the drop-down control device of upper offset voltage, has stronger electromagnetism antijamming capability.
Two, temperature controller composition
As there is in Fig. 1 three phase mains intelligence Phase sequence detection and arbitration functions temperature controller system composition frame chart shown in, this temperature controller comprises power module, CPU control module, export and drive and control module, temperature sensor module, I/O input module, display apparatus module, abnormality alarming indicating module, key-press module and phase sequence acquisition module.The Refrigeration Technique of this temperature controller combining with digital control lathe oil cooling machine, simple to operate, temperature control is simple, antijamming capability is strong, having operational mode function before memory fault, is the intelligent control system being applicable to various refrigeration plant.
Wherein, CPU control module, according to the feedback information of the algorithm logic relationship analysis designed in advance and temperature sensor, and sends to the control instruction signal of output to export and drives and control module.This CPU control module adopts STC90C58RD single-chip microcomputer, has 1K byte RAM, has Flash program storage in sheet, supports that IAP is applying able to programme and ISP in-system programmable components, can realize software programming and upgrading without the need to programmable device.
Wherein, power module is connected with CPU control module, for providing operating voltage for CPU module.This power module can be provided by three-phase alternating-current supply, 9-12V alternating current is obtained after transformer conversion, after rectification, filter circuit and DC decompression, provide 5V operating voltage to single-chip microcomputer in CPU control module, also can connect outside 12V dc source, after rectification, filter circuit and DC decompression, provide 5V direct-current working volts to single-chip microcomputer in CPU control module.
Wherein, temperature sensor module, is connected with CPU control module, for obtaining environment temperature, and the temperature data of acquisition is passed to CPU control module.Described temperature sensor module comprises two temperature sensor probes, be respectively used to obtain ambient temperature and cooler environment temperature, wherein hygrosensor probe uses the temperature sensor that model is DS18B20, monobus signal transmission form is adopted to be connected with CPU control module, need not additional A/D converter.
Wherein, I/O input module, be connected with CPU control module, this module is transferred to CPU control module after being changed by light sensation coupling circuit after external refrigerant pressure detecting signal, oil pump motor overload detection signals, overload of compressor detection signal, level sensing signal.
Wherein, export and drive and control module, be connected with CPU control module, after this module receives the control instruction of CPU control module, by the amplification of control instruction signal, the relay then by controlling corresponding compressor, different police, oil pump, fan four loops respectively disconnects, closes.
Wherein, display apparatus module, is connected with CPU control module, and this module comprises two groups of 3 LED charactrons, be respectively used to temperature data that displays temperature sensor assembly measures or abnormal time additional character.
Wherein, abnormality alarming indicating module, is connected with CPU control module, and this module, according to the control instruction of the CPU control module received, drives the work of corresponding power, refrigeration, fan, oil pump, phase demodulation, exception and warning seven road light emitting diode lamp.
Wherein, key-press module, is connected with CPU control module, and this key-press module comprises <set> key, <down> key, <up> key.
This temperature controller also comprises phase sequence acquisition module, this module is by using high voltage bearing optical coupling isolation circuit, by being converted to the low-voltage direct two-phase phase sequential signal needed for phase demodulation after the three-phase alternating current collection of powering to oil outer cold equipment, be then transferred to CPU control module for differentiating the phase place of three-phase alternating current.
Described three-phase alternating current is connected to light-coupled isolation device by before high voltage bearing optical coupling isolation circuit collection through series resistance and diode, wherein the resistance value of series resistance can adjust, to adapt to the voltage change of outside three-phase alternating current, wherein the excursion of adaptable three-phase alternating current reaches 200 ~ 415V, 50 ~ 60Hz.
Fig. 3 be in the present invention temperature controller with the use of oil cooling machine distribution figure, in figure four lines in left side from top to bottom first be ground wire, following three R, S, T, the 220V of standard, 50Hz (this is determined according to conditions for equipment use) three phase sine alternating current (its feature is the phase sequence difference 120 of three-phase).T1-1 ~ 3 are three binding posts, are connected to the JB4 interface of Fig. 2 circuit part, the silk-screen number in R, S, T corresponding diagram.1.5cm
2(specifically determining according to oil cooling machine power requirement) refers to R, and S, T are at the sectional area of oil cooling cabinet external application family side line; 0.75cm
2(this requires to determine according to oil cooling machine distribution) in case.KM1 ~ 3 are contactors, and energising produces magnetic field will adhesive; FR current limiting switch (electrothermal relay), current overload is often opened and is become normally closed, and normally closed change often opens switching; M is electro-motor, represents oil pump motor here, is three-phase synchronous motor, and U, V, W are the interface labels on oil pump, T1-6 earthing line, namely oil-feed pump motor or whole equipment ground.Compressor is two-phase synchronous motor, and other in like manner.
The KM1 coil on the right is an assembly with the KM1 contact-making switch contact on the left side, produces the adhesive left side, magnetic field KM1 contact-making switch after the KM1 coil electricity of the right.Thermal element is also crossed in the FR1 normally closed switch contact on the right with left side FR1 be an assembly, the FR1 on the right is normally closed switch (being closed in usual situation), the switch on the right will be made to become out when the FR1 on the left side crosses after thermal element is subject to the impact of overload current.Other in like manner.KA is auxiliary reclay, and by the impact of the oil pump in Fig. 2 circuit and compressor relay, and those 4 pieces of relays are all by single-chip microcomputer Automatic level control.T1-4 in Fig. 3, T1-5 are oil pump liquid level warning signal (inputting contact with numerically-controlled machine tool system PLC to be connected).If connected like this according in Fig. 3, after energising, motor will normal rotation, it turn direction we be decided to be positive, if R, S, T and U, V, the connection of W is not one to one, and that just likely causes motor reversal to damage motor, and don't the reversion that is bound to, must judge according to the actual three-phase phase-sequence connected of motor, to produce the needs of phase demodulation.
As KA2 in Fig. 3 (KA symbol represents auxiliary reclay), KM1 (representing the contactor that forceful electric power switches) and FR01 (expression thermal overload relay) form 1 group of motor power incision circuit, when being worked by KA2 relay coil, KA2 normally opened contact becomes normally closed, and contactor KM1 coil is communicated with KA2 closing contact by FR01 normally closed switch contact and forms forceful electric power power supply connection loop.KM1 contactor coil energising work, load motor or device power work are connected in normally opened contact adhesive; When motor or apparatus overload exception; thermal overload relay FR01 heating escape normally-closed contact; KM1 coil blackout is shut down; guarantee that protection is occurred wider damage or accident by control motor or equipment; the normally opened contact switch triggering of FR01 can also be utilized to become normally closed switch simultaneously; by signal feedback to the IO input module circuit of temperature controller, switching signal is delivered to testing circuit and is detected as abnormal signal and use.As this overload abnormal signal will be delivered to the TB1-6 interface of IO input module circuit in Fig. 2 by oil pump motor part.All abnormal overloads can be detected by corresponding abnormal input point; temperature control system also can be combined together according to the signal fed back and various output control; reach proterctive equipment, point out abnormal information warning and unusual switch amount signal to understand the whether normal equipment use of this temperature control system to other.
Three, phase-demodulating principle
Outstanding contributions of the present invention mainly solve existing phase discrimination hardware circuit complexity, the technical problem of software compilation method complexity, the phase discriminating technology of current China comparative maturity is the realization of pure hardware logic electric circuit, although well can realize phase discrimination function, but accuracy is low, cost is high, maintenance is difficult; In Software for Design part, because want Real-Time Monitoring power phase signal intensity, we also solve the thinking that dependence CPU carries out software Treatment Analysis and can avoid these problems, but its thinking only rests on the timer section expending cpu resource, if just simple phase discriminator can manage it, if but add other function, just need the performance improving CPU to multinuclear process, or very high to timer required precision, be difficult to avoid producing accumulation deviation.And the phase demodulation thinking in the present embodiment only needs the problem that just can be realized discriminating motor positive, anti-phase, phase shortage by wherein two phase signals in three-phase voltage.In addition, also solve that 6 LED charactrons can (the phase demodulation cycle be about 20ms at periodicity phase demodulation, in order to guarantee that the anti-phase rear motor of power supply will cause the maximum permission time of damaging to be 500ms because of reversion) and temperature sensor probe serial ports interrupts obtaining temperature, and (cycle is about 200ms, midway does not allow other to interrupt interference, otherwise obtains the failure of new temperature data) when the problem of not glimmering.
Two-phase differentiates three facies principles: differ 120 ° between every two of three-phase circuit, amplitude is equal again, therefore its polar plot can be interpreted as an equilateral triangle, the position of three-phase is leg-of-mutton three summits, the direction of three-phase is the limit of leg-of-mutton three band arrows, and the head that the arrow on three limits is all a phase points to the tail of next phase, and so phase sequence is just, turn clockwise exactly, motor rotates forward; Be negative, be then rotated counterclockwise, motor reversal.If wonder the direction of arrow on leg-of-mutton limit, only need determine wherein two points, then determine the position of 2.So differentiate that the positive negative-phase sequence of three-phase only can use wherein two-phase.How does that determine the position of wherein two-phase successively? by during to three-phase positive sequence, the sinusoidal signal figure of two phase sequences compares, and the level be not difficult between discovery two-phase is the cyclically-varying of four kinds of states.By the sequencing of arbitrary neighborhood two states, can judge that the phase sequence that single-chip microcomputer is differentiated is positive and negative, release the positive and negative of three-phase phase-sequence.
Problem for LED is dodged: at least about ensureing in the phase demodulation time of 7.4ms that the best approach that 6 LED are not glimmered avoids causing serial ports from acquisition temperature of popping one's head in the time of wait phase discrimination signal to interrupt, will so just require that " maximum displaying time " < " state minimum time " of every is arrived in assurance.
Suppose that the power supply that the compressor of this oil cooling machine adopts is the three-phase alternating current of 50Hz, 220V, as shown in Figure 3: R, S, T three phase mains, phase sequence differs mutually the alternating current 220V voltage of 120 °; Through Fig. 2 processing of circuit, by three 68K Ω, voltage, threshold currents fall in the resistance of power 1W, intercept T-phase by diode again and differ angle phase current signal between R and S-phase, then through circuit that output is made up of 5V voltage and upper offset resistance after being isolated by optic coupling element, reduction amplitude is that different phase difference vector 2 phase signals of 5V voltage are supplied to computer (single-chip microcomputer) P11, P12 pin, the level received is according to judging phase sequence state by computer (single-chip microcomputer).P11 is supposed in the present embodiment, P12 pin is respectively HA, HB phase, and the state often detected mutually is that high and low level uses ' 1 ' respectively, and ' 0 ' represents, so the state of two pins is always divided into four kinds, can find out in the diagram, under 50Hz alternating current, be first stage during opening power at first, state is 00, start note from power on to there being a pin to occur high level, when being 10 (HA phase is defaulted as phase sequence leading phase), the time is about 3.6ms; During second stage, be 10 be 11 to state from state, the time is about 6.7ms; Phase III is 11 from state is 01 to state, and the time is about 0.7ms; Fourth stage, from state 01 to state 00, the time is about 3.6ms.When computer (single-chip microcomputer) detects the Changing Pattern of level signal, according to this order, then phase sequence is just, if state period of change rule is 00->01->11->10->00, so phase sequence is anti-.In reality detects, need not all detect the whole cycle, as long as and the priority of wherein two states of detection just can determine the positive and negative of phase sequence, and from other state, then can see that next state is what is determined at any time.Known power source is the alternating current of 50Hz, as shown in Figure 4, compared by the sine wave of two differences 120 °, and single-chip microcomputer pin is to the distinguishing limit of low and high level state, the approximate time that can obtain in large period that four states occur shared by each state is between 0.7 ~ 6.7ms, therefore the unit delay time of each display is less than 2.5ms, waits after having detected signal and continue again to obtain temperature data display.
Four, temperature controller job control flow process
1, after powering on, System self-test.
2, three phase mains phase place is detected
3, when three phase mains phase demodulation has abnormal, close all refrigeration control systems immediately and output signal and open alarm sound, export remote alarm switch amount signal.
3.1, display window prompting alarm code " E4 " during phase shortage
3.2, display window prompting alarm code " E5 " time anti-phase
4, phase place normally obtains binary channels temperature sensor data afterwards, and ON cycle oil pump motor controls to export, and compressor start protection is waited for.
5, open alarm sound when peripheral distribution test point abnormal state detects (compressor, oil pump, liquid level, pressure), export remote alarm switch amount signal.
5.1, when overload of compressor escape detects abnormal, compressor control is stopped to export, display window prompting alarm code " E0 ".
5.2, when oil pump motor overload trip detects abnormal, compressor and oil pump motor is stopped to control to export, display window prompting alarm code " E1 ".
5.3, when liquid-level switch state-detection is abnormal, compressor and oil pump motor is stopped to control to export, display window prompting alarm code " E2 ".
5.4, when pressure switch state-detection is abnormal, compressor and oil pump motor is stopped to control to export, display window prompting alarm code " E3 ".
6, after reaching the time (factory default arranges 3min) powering on or protect time delay " PE " to set; if time " oil temperature " > (" room temperature "-" user sets the temperature difference "+" return difference temperature "), condenser fan starts output.
7, after condenser fan starts control output 5S, compressor start exports.
Close if 8 " oil temperature " < " room temperature "-" user sets the temperature difference " compressor control exports, the fan control of 5S post-condenser exports closes.
9, weight of compressor starts the same 2.5-2.7.
10, under normal operating condition, system possesses by control environment temperature superelevation or ultralow temperature detection warning output
10.1, time " oil temperature " > " the highest design temperature of system ", the whole series still continue to run, display window prompting alarm code " HH ", export remote alarm switch amount signal.
10.2, during " oil temperature "≤" system lowest set temperature ", oil pump normally runs, and compressor control is closed, and the fan control of 5S post-condenser is closed, display window prompting alarm code " LL ", exports remote alarm switch amount signal.
Five, temperature controller operation setting
As shown in Figure 5, this figure be temperature controller with the use of oil cooling machine guidance panel, carry out optimum configurations for user.
1, user's temperature is arranged:
Press " SET " key, upper screen " OIL " shows user and sets the temperature difference, and lower screen " AIR " shows outdoor temperature, presses " DOWN " key and sets temperature approach with " UP " key change user.
2, system parameter setting:
(1) pinning " SET " becomes Macintosh not loose one's grip by " DOWN " again, and automatically enter Default Value parameter interface after 5S, upper screen " OIL " Presentation Function code, as " HS "; Lower screen " AIR " shows last pre-set parameter, as " 20 "; Press " DOWN " key and " UP " key change setting value.
(2) press " SET " key to exit the setting of current functional parameter for 1 time and enter next function setting, function code shows respectively: HS → LL → HH → PE → C1 → C2 → Cd → S10, press " DOWN " key and " UP " key and changes setting value.
3, automatically preserve after being provided with 20S and use current setting parameter data, and returning start working interface state.
Above-described embodiment is the present invention's preferably embodiment; but embodiments of the present invention are not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.