A kind of chlorinating machine aperture autocontrol method based on analog quantity feedback
Technical field
The present invention relates to Chlorine industrial automatic control method field, relate in particular to a kind of chlorinating machine aperture autocontrol method based on analog quantity feedback.
Background technology
Chlorinating machine is how suitable chlorine to be added to the necessaries in target water in water robot control system(RCS) field, the principle of work of chlorinating machine is exactly mainly to make chlorine become gaseous chlorine from liquid chlorine, generally need to pass through following process, chlorine in liquid chlorine cylinder is gaseous state by liquid state volatilization, via chlorine bottle angle valve, flexible copper pipe, chlorine filter device, chlorine gas pressure table, reduction valve, vacuum governor, chlorinating machine and water sprayer etc.Chlorinating machine adds the equipment of chlorine process as a control, for water robot control system(RCS), also need relevant other devices in conjunction with robotization control, comprises chlorinating machine aperture gauge tap, programmable logic controller (PLC) PLC and potentiometer etc.Aperture gauge tap being for controlling the unlatching of chlorinating machine chlorin outlet or close, by hardwire by the feedback of status of chlorination switch to programmable logic controller (PLC) PLC, can utilize program the switch situation of chlorinating machine to be carried out to the management of an actual state.
Conventional chlorinating machine has two kinds, and a kind of is to adopt the analog module of programmable logic controller (PLC) PLC directly to control the chlorinating machine with the control of analog quantity aperture.This control mode is the control mode that the control of Chlorine aperture generally adopts, can directly obtain the electric current of 4 ~ 20mA from the analog input module of programmable logic controller (PLC) PLC, then be delivered to the control of host computer computer by programmable logic controller (PLC) PLC, utilize configuration software INTOUCH by the aperture of programming Control chlorinating machine.
On market, also have at present another kind of chlorinating machine, it only opens or closes two kinds of duties, is mainly to utilize digital quantity to follow programmable logic controller (PLC) PLC to carry out communication, does not have the condition of Based Intelligent Control when causing robotization control.The control of chlorinating machine aperture only has unlatching or closes two states, owing to not possessing the condition of analog output, just there is no memory function, how long cause system cannot understand this chlorinating machine has opened or how long has closed, information cannot feed back to computing machine, when causing thus computer control chlorinating machine aperture, be difficult to accurately know specifically open or close what degree.
Chlorinating machine aperture is analog quantity or digital output, is the leading indicator that has formed the manufacture difficulty of chlorinating machine, and the chlorinating machine that on market, the general chlorinating machine ratio that possesses analog output only possesses digital output is expensive many.
Summary of the invention
The invention provides the chlorinating machine aperture autocontrol method based on analog quantity feedback, chlorinating machine without analog output is improved, utilize the electrical resistance chlorinating machine duty in chlorinating machine potentiometer to change the physical characteristics that presents para-curve variation, use the mode of additional power source the physical characteristics of chlorinating machine duty to be imported into the analog module of programmable logic controller (PLC) PLC by the form of electric current, then on computer picture, demonstrate the quantitative values of chlorinating machine aperture by configuration INTOUCH software, chlorinating machine aperture is controlled automatically, aperture locating accuracy is high, simple to operation, save chlorinating machine cost.
Based on the chlorinating machine aperture autocontrol method of analog quantity feedback, comprise the following steps:
1) power supply is connected in series to the potentiometer of chlorinating machine, form circuit loop, then by chlorinating machine aperture from completely closing to completely and open, the curve that obtains the resistance R T increase in time of potentiometer and change, R=aT2+b, T is that chlorinating machine aperture is opened sometime completely from closing to completely, and a, b are coefficient;
2) resistance R that obtains potentiometer by curve R=aT2+b in chlorinating machine aperture from closing to the minimum value Rmin and the maximal value Rmax that open completely completely, determine operating voltage U, control electric current I min=U/Rmax, control electric current I max=U/Rmin, the scope of controlling electric current I min ~ Imax will be in the range of current of the acceptance of the analog module of programmable logic controller (PLC) PLC;
3) will control electric current I min ~ Imax and be configured to programmable logic controller (PLC) PLC analog output by configuration programming software, quantitatively control chlorinating machine aperture by the value of programmable logic controller (PLC) PLC analog quantity.
Configuration software INTOUCH can read in the analog value of corresponding address, on picture, reflect in real time the changing condition of current aperture, then determine whether carrying out again the operation opening or closing of chlorinating machine according to this value, quantitatively control chlorinating machine aperture by configuration software INTOUCH.
As preferably, also comprise step 4), the value of programmable logic controller (PLC) PLC analog quantity shows by the configuration software INTOUCH on computing machine, reads programmable logic controller (PLC) PLC analog quantity by configuration software INTOUCH.
In step 1), potentiometer is to have the resistive element that three exits, resistance can regulate by certain Changing Pattern.Potentiometer conventionally by resistive element and movably brush form, be exactly slide rheostat substantially.According to the physical characteristics of potentiometer, its resistance value is along with the switch working state of chlorinating machine can present the variation tendency of a parabola state, and R can increase with open-interval, reduces with the increase of shut-in time.
As preferably, the duty T1 closing completely in chlorinating machine aperture measures and obtains Rmin, T1 is the time that chlorinating machine aperture is closed completely, the duty T2 opening completely in chlorinating machine aperture measures and obtains Rmax, T2 is the time that chlorinating machine aperture is opened completely, by Rmin and Rmax and corresponding time T 1 and T2, substitution can be tried to achieve coefficient a and b.According to the resistance value of potentiometer, along with the switch working state of chlorinating machine presents the variation tendency of a parabola state, R can increase with open-interval, obtains simply, easily Rmin and Rmax, and corresponding curve R=aT2+b.
As preferably, in described circuit loop, be serially connected with reometer, for detection of chlorinating machine aperture from close to open completely completely, the curent change in this circuit loop, thus obtain the R value under different time T.
Step 2) in, as preferably, the range of current of the acceptance of the analog module of programmable logic controller (PLC) PLC is 4mA ~ 20mA, can meet well the actual requirement using.
In step 3), to control electric current I min ~ Imax and be configured to programmable logic controller (PLC) PLC analog output by programming software, as preferably, described programming software is PLC programming software, the value of described programmable logic controller (PLC) PLC analog quantity is 0 ~ 16000, will control electric current I min ~ Imax correspondence and be configured in programmable logic controller (PLC) PLC analog quantity 0 ~ 16000 scope.
Further preferably, I=U/R=U/ (aT2+b), control the mode that is configured to programmable logic controller (PLC) PLC analog quantity corresponding to electric current I: adopt the mode of integration configuration, can calculate accurately electric current with a direct relation of chlorinating machine time.Wherein, T1 is the time that chlorinating machine aperture is closed completely, and T2 is the time that chlorinating machine aperture is opened completely.
Compared with prior art, tool of the present invention has the following advantages:
The present invention is based on the chlorinating machine aperture autocontrol method of analog quantity feedback, improve for the chlorinating machine without analog output, its aperture can accurately be controlled, utilize chlorinating machine potentiometer to change and be the physical characteristics that para-curve changes with chlorinating machine duty, use power supply and an electric wire that can produce fixed voltage, the physical characteristics of on off state is imported into the analog module of programmable logic controller (PLC) PLC by the form of electric current, can simulate the electric current of 4 ~ 20mA to the analog module of programmable logic controller (PLC) PLC, again in conjunction with programmable logic controller (PLC) PLC and configuration software INTOUCH programming, can quantize the aperture of chlorinating machine, make computing machine only need to pass through to control the digital quantity of chlorinating machine, just can reach the quantized value of the current aperture of comprehensive grasp chlorinating machine.On computer picture, demonstrate the quantitative values of chlorinating machine aperture by configuration INTOUCH software, just can be according to this quantitative values, then determine follow-up action, whether also see and need chlorinating machine to open operation, or be to close operation.The inventive method only need add a fixed voltage, and reliable circuit, coordinate again upper programmable logic controller (PLC) PLC and configuration software INTOUCH programming, just can substitute a chlorinating machine with analog quantity function aperture, aperture locating accuracy is high, simple to operation, save chlorinating machine cost, possess very strong practical application meaning, be conducive to the marketization and promote, have broad application prospects.
Brief description of the drawings
Fig. 1 be potentiometer of the present invention resistance R in time T increase the curve map changing.
Fig. 2 is the schematic flow sheet of a kind of chlorinating machine aperture autocontrol method based on analog quantity feedback of the present invention.
Embodiment
As shown in Figure 2, first Voltage Series fixed power source being produced is to the potentiometer of chlorinating machine, then the analog module of the electric current access programmable logic controller (PLC) PLC this circuit being produced, in conjunction with PLC Programmable Logic Controller Programming software, the electric current conversion values of corresponding ports is shown on computer screen by configuration software INTOUCH again.
Based on a chlorinating machine aperture autocontrol method for analog quantity feedback, comprise the following steps.
1) set up the funtcional relationship of potentiometer resistance R and chlorinating machine duty (completely close to completely and open)
The voltage U 1 that fixed power source is produced is connected in series to the potentiometer of chlorinating machine, form circuit loop, and access the electric current of reometer for detection of this circuit loop at this circuit loop, because the voltage U 1 that fixed power source produces is basicly stable, therefore, at optionally shunt voltage table of the two ends of fixed power source, for detection of the voltage at fixed power source two ends, for simplicity, in computation process, just directly adopt voltage U
1.
Then by chlorinating machine aperture from completely closing to completely and open, the resistance R of potentiometer in time T increase change curve,
R=aT
2+b, (1)
As shown in Figure 1, T is that chlorinating machine aperture is opened sometime completely from closing to completely to curve, and a, b are coefficient, the voltage (voltage U that the R under each time T inscribes during by this
1) electric current inscribed during divided by this obtains, thereby can be in the hope of coefficient a, b.
For simplicity, the duty T closing completely in chlorinating machine aperture
1(T
1=0) voltage (voltage U of inscribing during according to this under
1) electric current inscribed during divided by this obtains R
min, T
1for the time that chlorinating machine aperture is closed completely, the duty T opening completely in chlorinating machine aperture
2lower voltage (voltage U of inscribing during according to this
1) electric current inscribed during divided by this obtains R
max, T
2for the time that chlorinating machine aperture is opened completely, pass through R
minand R
maxand corresponding T substitution, can try to achieve coefficient a, b.
Because the analog module of programmable logic controller (PLC) PLC intrinsic in chlorinating machine can be accepted current value analog quantity in 4 ~ 20mA, therefore, select suitable impressed voltage value.
2) impressed voltage analysis
According to formula: I=U/R (2)
The Rmin and the Rmax that draw in conjunction with formula (1) and formula (2) and test, can draw suitable external working voltage U, and this magnitude of voltage is divided by minimum value Rmin, it is not more than 20mA, divided by maximal value Rmax, it is not less than 4mA, can reach our requirement.
3) electric current of detection PLC analog quantity receiving end
Through after two steps above, ensure that the range of current of analog module receiving end of programmable logic controller (PLC) PLC, at 4 ~ 20mA, further, by detecting, decides actual current scope into I
minto I
maxbetween.And according to the block configuration of PLC programming software, I
min~ I
maxcorresponding programmable logic controller (PLC) PLC analog output is between 0 to 16000, and the value after programmable logic controller (PLC) PLC is quantitative can be lost a part, and programmable logic controller (PLC) PLC analog value should be between arriving.
4), according to the value of programmable logic controller (PLC) PLC analog quantity, utilize INTOUCH configuration software quantitatively to control chlorinating machine aperture
The value of programmable logic controller (PLC) PLC analog quantity shows by the configuration software INTOUCH on computing machine, configuration INTOUCH can read in the analog value of corresponding address, on picture, reflect in real time the changing condition of current aperture, then determine whether carrying out again the operation opening or closing of chlorinating machine according to this value, automatically control chlorinating machine aperture by configuration software INTOUCH.