Content of the invention
In order to solve existing production line of bar, particularly divide asking existing for the steel counting device of number automatically of steel production line
Topic, the invention provides a kind of production line of bar speed adaptive and automatically counts steel device, including count pulse generation unit, narrow arteries and veins
Rush filter element, counting processing unit.
Described count pulse generation unit output inceptive impulse and the input pulse end being connected to burst pulse filter element, narrow
The output pulse ends output count pulse of pulse filter unit is to counting processing unit;Described burst pulse filter element is triple gate
The burst pulse filter element of control;The narrow pulse width that described burst pulse filter element filters is controlled by bar transmission speed;Institute
State counting processing unit to count count pulse.
Described production line of bar speed adaptive automatically counts steel device and also includes transmission speed converter unit;Described transmission speed
The input signal of degree converter unit is the bar transmission speed of count pulse generation unit installation place, and output is delivered to burst pulse and filtered
The control voltage input end of unit.
Described burst pulse filter element includes controlled charging circuit, controllable discharge circuit, electric capacity, Schmidt circuit;Described
One end of electric capacity is connected to Schmidt circuit input, other end be connected to publicly or Schmidt circuit power supply electricity
Source;The input pulse end that the input of described controlled charging circuit is burst pulse filter element, it is defeated that output is connected to Schmidt circuit
Enter end;The input of described controllable discharge circuit is connected to the input pulse end of burst pulse filter element, and output is connected to Schmidt
Circuit input end;The output of described Schmidt circuit is output pulse ends.
Described controlled charging circuit includes repid discharge diode, charging resistor, repid discharge triple gate;Described quickly put
Electric diode negative electrode is connected to repid discharge triple gate output, and anode is controlled charging circuit output end;Described charging resistor
With repid discharge diodes in parallel;Described controllable discharge circuit includes quick charge diode, discharge resistance, quick charge tri-state
Door;Described quick charge diode anode is connected to quick charge triple gate output, and negative electrode is controllable discharge circuit output;
Described discharge resistance and quick charge diodes in parallel;Described repid discharge triple gate input is the input of controlled charging circuit
End;Described quick charge triple gate input is controllable discharge circuit input;Described repid discharge triple gate and quick charge
Triple gate is by the output Pulse Width Control of place burst pulse filter element.
Described repid discharge triple gate and quick charge triple gate are by the output Pulse Width Control of place burst pulse filter element
Concrete grammar be, when Schmidt circuit is homophase Schmidt circuit, output pulse low level control repid discharge tri-state
Door is duty, quick charge triple gate is illegal state, and the high level control repid discharge triple gate of output pulse is for prohibiting
Only state, quick charge triple gate are duty;When Schmidt circuit is anti-phase Schmidt circuit, the high electricity of output pulse
Flat control repid discharge triple gate be duty, quick charge triple gate be illegal state, the low level control of output pulse
Repid discharge triple gate be illegal state, quick charge triple gate be duty.
The narrow pulse width that described burst pulse filter element filters by the method that transmission speed controls is, repid discharge tri-state
Door, the high level current potential of quick charge triple gate output are controlled by bar transmission speed.
Described repid discharge triple gate, the high level current potential of quick charge triple gate output are controlled by bar transmission speed
Method is, when bar transmission speed increases, repid discharge triple gate, the high level current potential of quick charge triple gate output increase
Greatly;When bar transmission speed reduces, repid discharge triple gate, the high level current potential of quick charge triple gate output reduce.
Described transmission speed converter unit is output as controlling voltage;Described control voltage is as in burst pulse filter element
Repid discharge triple gate and the power supply of quick charge triple gate.
The maximum positive narrow pulse width that described burst pulse filter element can filter also by change charge constant or
The upper limit threshold voltage of person's Schmidt circuit is controlled, and the maximum that can filter is born narrow pulse width and discharged also by changing
The lower limit threshold voltage of time constant or Schmidt circuit is controlled;Described charge constant is charging resistor and electricity
The product holding;Described discharge time constant is the product of discharge resistance and electric capacity.
Described repid discharge triple gate and quick charge triple gate are all homophase triple gate, or, described repid discharge
Triple gate and quick charge triple gate are all inverting tri-state door.
The invention has the beneficial effects as follows: described production line of bar speed adaptive counts the negative wide arteries and veins of steel device automatic fitration automatically
Just narrow disturbing pulse during punching and the negative narrow disturbing pulse during positive broad pulse, and can quick-recovery filter capacity filter even soon
Continuous positive burst pulse or negative narrow pulse interference signal, eliminate the rising edge in counting pulse signal and shake continuously with trailing edge even
Continuous shake, it is to avoid or reduce counting error;Need the burst pulse Breadth Maximum filtering can follow bar product transmission speed
Carry out adaptive change, and can be adjusted by changing circuit parameter.
Detailed description of the invention
Below in conjunction with accompanying drawing, the invention will be further described.
It is illustrated in figure 1 production line of bar speed adaptive and automatically count steel device example structure block diagram.Count pulse produces
Raw unit 101 exports inceptive impulse M1, is carried out burst pulse filtration by burst pulse filter element 201 to M1, obtains filtering interfering arteries and veins
Count pulse N1 after punching.Count pulse N1 is sent to count processing unit 301, and N1 is counted by counting processing unit 301
Number.
Count pulse generation unit is optoelectronic switch conventional on production line, Hall switch, magnetic reed switch, or inductance
The counting and detecting devices such as formula proximity switch, capacitive approach switch.When metallurgy bar production line has bar through out-of-date output one
Inceptive impulse signal.Inceptive impulse is the count pulse of non-filtering interference signals.
Counting processing unit can use various methods well-known to those skilled in the art to realize, it is preferred to use MCU is
The circuit of core realizes.
The composition of burst pulse filter element includes controllable discharge circuit, controlled charging circuit, electric capacity, Schmidt circuit.
It is illustrated in figure 2 burst pulse filter element embodiment.In embodiment, repid discharge diode, charging resistor, quick
Electric discharge triple gate is respectively diode D11, resistance R11, triple gate T11, constitutes controllable discharge circuit;Quick charge two pole
Pipe, discharge resistance, quick charge triple gate are respectively diode D12, resistance R12, triple gate T12, constitute controlled charged electrical
Road;Electric capacity is electric capacity C11.Schmidt circuit F11 is homophase Schmidt circuit, therefore, exports pulse P2 and input in embodiment
Pulse P1 homophase.The input of the one termination Schmidt circuit of electric capacity C11, i.e. the input A3 of F11, other end is connected to public affairs
Altogether.
In Fig. 2 embodiment, Schmidt circuit F11 is homophase Schmidt circuit, and output pulse P2 (A4 point in Fig. 2) directly connects
Being connected to the enable control end of triple gate T11, triple gate T12, triple gate T11, triple gate T12 are respectively low level, high level makes
Can be effective.The high and low level of output pulse P2 controls triple gate T12 respectively and is duty, is illegal state, exports pulse P2
High and low level control respectively triple gate T11 be illegal state, be duty.Controlled by exporting pulse P2, triple gate
In T11 and triple gate T12 always one be in as duty state, another one is in as illegal state state.Work as tri-state
Door T11, triple gate T12 use low level to enable effectively or when high level enables effective device simultaneously, one of them
By the inversion signal control of output pulse P2.
Fig. 3 is input pulse and the output pulse waveform of burst pulse filter element embodiment.In Fig. 3, P1 is input pulse,
P2 is output pulse, and when P1 low level is for normal negative broad pulse, in Fig. 2, A3 point current potential is consistent with A1 point low level current potential,
P2 is low level, and triple gate T11 is duty, and the A1 level point of its output is consistent with A0 point;T12 is illegal state, output
For high-impedance state.Electric capacity C11 is charged by the high level of positive burst pulse 11 by charging resistor R11, makes A3 point current potential increase;Due to narrow
The width of pulse 11 is less than time T1, and A3 point current potential is still below the upper limit threshold of Schmidt circuit F11 at the end of burst pulse 11
Voltage, therefore, P2 is maintained low level, and triple gate T11 is maintained duty;At the end of burst pulse 11, A1 point becomes again
Low level and make electric capacity C11 repid discharge by repid discharge diode D11, makes A3 point current potential and A1 point low level current potential one
Causing, recovering the state before arriving to burst pulse 11, its antijamming capability is recovered rapidly, when just narrow followed by there being continuous print
During pulse interference signal, can filter out equally.The width of positive burst pulse the 12nd, positive burst pulse 13 is respectively less than time T1, therefore, when
At the end of each in burst pulse the 12nd, burst pulse 13, P2 is maintained low level, and A1 point becomes low level and again by quickly
Discharge diode D11 makes electric capacity C11 repid discharge, makes A3 point current potential consistent with A1 point low level current potential.
Pulse 14 is normal positive broad pulse, and when P1 maintains high level time to reach T1 after rising edge 20, A1 point is high
Being charged electric capacity C11 by charging resistor R11 of level, makes A3 point current potential rise the upper limit threshold reaching Schmidt circuit F11
Voltage, Schmidt circuit F11 output P2 at rising edge 25s, become high level from low level, make triple gate T11 be illegal state,
T12 is duty, and the A2 level point of its output is consistent with A0 point;The high level of A2 point is made by quick charge diode D12
Electric capacity C11 quick charge, makes A3 point current potential consistent with A2 point high level current potential, and P2 is maintained high level.
Electric capacity C11 is discharged by the low level of negative burst pulse 15 by discharge resistance R12, makes A3 point current potential decline;Due to narrow
The width of pulse 15 is less than time T2, and A3 point current potential remains above the lower limit threshold of Schmidt circuit F11 at the end of burst pulse 15
Voltage, therefore, P2 is maintained high level, and triple gate T12 is maintained duty;At the end of burst pulse 15, A2 point becomes again
High level and make electric capacity C11 quick charge by quick charge diode D12, makes A3 point current potential and A2 point high level current potential one
Causing, recovering the state before arriving to burst pulse 15, its antijamming capability is recovered rapidly, when narrow followed by there being continuous print to bear
During pulse interference signal, can filter out equally.When the width of negative burst pulse the 16th, negative burst pulse the 17th, negative burst pulse 18 is respectively less than
Between T2, therefore, at the end of each in burst pulse the 16th, burst pulse the 17th, burst pulse 18, P2 is maintained high level, A2 point weight
Newly become high level and make electric capacity C11 quick charge by quick charge diode D12, making A3 point current potential and A2 point high level electricity
Position is consistent.
When P1 maintains low level time to reach T2 after trailing edge 21, represent that P1 has a negative normally broad pulse, A2
Electric capacity C11 is discharged by the low level of point by discharge resistance R12, makes A3 point current potential decline the lower limit reaching Schmidt circuit F11
Threshold voltage, the output P2 of Schmidt circuit F11 becomes low level from high level at trailing edge 26s, makes triple gate T11 be work
Make state, T12 is illegal state;The low level of A1 point makes electric capacity C11 repid discharge by repid discharge diode D11, makes A3
Point current potential is consistent with A1 point low level current potential, and P2 is maintained low level.Negative broad pulse 19 width of P1 is more than T2, in negative broad pulse
When maintaining high level time to reach T1 after the rising edge 22 of 19, P2 becomes high level from low level at rising edge 27s.
Burst pulse filter element is by the 11st, the burst pulse of the burst pulse in P1 signal the 12nd, burst pulse the 13rd, burst pulse the 15th, burst pulse
16th, burst pulse the 17th, burst pulse 18 all filters out, and the 14th, positive broad pulse is born broad pulse 19 and can be passed through, and makes phase occur in P2 signal
The positive broad pulse 23 answered and negative broad pulse 24.Output pulse P2 and input pulse P1 homophase, and broad pulse 14 rising edge exporting
Broad pulse 14 rising edge T1 lag time, trailing edge T2 lag time than input.
Burst pulse the 11st, burst pulse the 12nd, burst pulse 13 is positive burst pulse, and wherein burst pulse 11 is single disturbing pulse, narrow arteries and veins
The punching continuous Vibrating pulse that the 12nd, burst pulse 13 is input pulse edge.Time T1 is that burst pulse filter element can filter
Big positive narrow pulse width.High level current potential, low level current potential and the Shi Mi that T1 is exported by charge constant, triple gate T11
The upper limit threshold voltage joint effect of special circuit F11.Under normal circumstances, triple gate T11 output high level current potential and low level
Current potential is definite value, and therefore, the value adjusting T1 can be by changing the upper limit threshold electricity of charge constant or Schmidt circuit
Pressure is carried out.In Fig. 2, charge constant is the product of charging resistor R11 and electric capacity C11.Described burst pulse filter element is permitted
Permitted the positive pulse signal more than T1 for the width to pass through.
Burst pulse the 15th, burst pulse the 16th, burst pulse the 17th, burst pulse 18 is negative burst pulse, and wherein burst pulse 15 is single interference
Pulse, burst pulse the 16th, the burst pulse continuous Vibrating pulse that the 17th, burst pulse 18 is input pulse edge.Time T2 is burst pulse mistake
The maximum that filter unit can filter bears narrow pulse width.The high level electricity that T2 is exported by discharge time constant, triple gate T12
The lower limit threshold voltage joint effect of position, low level current potential and Schmidt circuit F11.Under normal circumstances, triple gate T12 exports
High level current potential and low level current potential are definite value, and therefore, the value adjusting T2 by changing discharge time constant or can be executed close
The lower limit threshold voltage of special circuit is carried out.In Fig. 2, discharge time constant is the product of discharge resistance R12 and electric capacity C11.Institute
Stating burst pulse filter element allows width to pass through more than the undersuing more than T2.
In Fig. 2, electric capacity C11 connects one end publicly also can be with reconfiguration at the power supply end of Schmidt circuit F11.
In Fig. 2, Schmidt circuit F11 also can select anti-phase Schmidt circuit, and the high level now exporting pulse P2 should
This control repid discharge triple gate be duty, quick charge triple gate be illegal state, the low level control of output pulse
Repid discharge triple gate be illegal state, quick charge triple gate be duty.For example, when Schmidt circuit F11 choosing in Fig. 2
Select anti-phase Schmidt circuit, when will export the enable control end that pulse P2 is connected directly to triple gate T11, triple gate T12, three
State door T11 should correspondingly change high level into and enable effectively, and triple gate T12 correspondingly changes low level into and enables effectively.Select anti-
During phase Schmidt circuit, the operation principle of circuit is identical with Fig. 2, simply now exports pulse anti-phase with input pulse.
Repid discharge triple gate and quick charge triple gate can also select the inverting tri-state door with inverter functionality simultaneously.
When repid discharge triple gate selects inverting tri-state door with quick charge triple gate simultaneously, be equivalent to increase by one at input pulse end
Individual phase inverter, i.e. first carries out anti-narrow pulse interference after anti-phase for input pulse again, and operation principle is identical with Fig. 2.
The input signal of described Schmidt circuit is the voltage on electric capacity, it is therefore desirable to Schmidt circuit has high input
Impedance operator.Schmidt circuit can select to have high input impedance charcteristic cmos schmitt phase inverter CD40106,
74HC14, or select the device such as cmos schmitt NAND gate CD4093,74HC24 with high input impedance charcteristic.CMOS
The upper limit threshold voltage of schmitt inverter or cmos schmitt NAND gate, lower limit threshold voltage are consolidate related to device
Definite value, therefore, the positive narrow pulse width, the negative narrow pulse width needs that adjust the input that can filter are normal by changing the charging interval
Number, discharge time constant are carried out.Constitute homophase Schmidt circuit by schmitt inverter or Schmidt's NAND gate, need
Increase one-level phase inverter after schmitt inverter or Schmidt's NAND gate.
Schmidt circuit can also select to use operational amplifier to constitute, and uses operational amplifier to constitute Schmidt's electricity
Road can change upper limit threshold voltage, lower limit threshold voltage neatly.Similarly, operational amplifier is used to constitute Schmidt's electricity
Lu Shi, needs to use structure and the circuit with high input impedance charcteristic.
As it is shown in figure 1, production line of bar speed adaptive counts steel device automatically also includes transmission speed converter unit 401,
Fig. 4 is transmission speed converter unit embodiment, inputs bar transmission speed n for count pulse generation unit installation place, output
For delivering to the control voltage UK of the transmission speed input of burst pulse filter element.
The width of the burst pulse of shake continuously of the output porch of count pulse generation unit is by bar transmission speed n
Impact changes.When bar transmission speed n increases, the continuous Vibrating pulse of the output porch of count pulse generation unit
Width reduces;When bar transmission speed n reduces, the continuous Vibrating pulse of the output porch of count pulse generation unit
Width increases.
In Fig. 4, F71 is transmission speed sensor, and transmission speed n is converted to voltage Un output by F71.Amplifier F72 and electricity
Resistance R76, resistance R77, resistance R78, resistance R79 composition null value adjust circuit, and control voltage UK exports from amplifier F72 output.
It is to adjust voltage VREF by changing the null value inputting, by the minimum speed of transmission speed n that null value adjusts one of effect of circuit
(usually 0) corresponding control voltage UK is adjusted to non-zero value;Two is the driving force improving control voltage UK.Input speed model
Enclose the scope of corresponding control voltage UK by adjusting transmission speed sensor F71 parameter, null value adjustment circuit parameter and null value
Adjust voltage VREF to carry out.In Fig. 4 embodiment, when transmission speed n increases, output control voltage UK increases;Transmission speed n
During reduction, output control voltage UK reduces.
Control voltage UK is sent to burst pulse filter element, to repid discharge triple gate in burst pulse filter element, quick
The high level current potential of charging triple gate output is controlled, when transmission speed n increases, and repid discharge triple gate, quick charge
The high level current potential of triple gate output increases;When transmission speed n reduces, repid discharge triple gate, quick charge triple gate are defeated
The high level current potential going out reduces.
Repid discharge triple gate, quick charge triple gate use CMOS tri-state gate circuit, high-speed cmos tri-state gate circuit
Constitute, the power supply as repid discharge triple gate, quick charge triple gate for the voltage UK will be controlled.In embodiment, will control
Voltage UK is as the power supply of triple gate T11 and triple gate T12.Now, the high electricity of triple gate T11 and triple gate T12 output
Put down the high level electricity exporting for (close) power supply potential, i.e. control voltage UK directly as triple gate T11 and triple gate T12
Position, when control voltage UK increases, the high level current potential of triple gate T11 output and the high level current potential of triple gate T12 output all increase
Greatly.When adjusting transmission speed n scope corresponding control voltage UK scope, the scope of control voltage UK to be made meets and can filter
Maximum positive narrow pulse width T1, the adjusting range of maximum negative narrow pulse width T2 require, control the scope of voltage UK also simultaneously
Need to meet the power supply area requirement of triple gate T11 and triple gate T12.
When between when charging, constant keeps constant with the upper limit threshold voltage of Schmidt circuit, transmission speed n increases, tri-state
The high level current potential of door T11 output increases, and it is accelerated by the speed that electric capacity is charged by charging resistor, makes T1 reduce;Transmission speed
Degree n reduces, and the high level current potential of triple gate T11 output reduces, and its speed charged electric capacity by charging resistor is slowed down, and makes T1
Increase;The charging rate achieving controlled charging circuit is controlled by transmission speed n.When achieving disturbing pulse filtration in other words,
The transmission speed n Self Adaptive Control of the maximum positive narrow pulse width T1 that can filter, i.e. during the change of transmission speed n, T1 is at one
The change of transmission speed n is followed in given scope.If changing the upper limit threshold of charge constant or Schmidt circuit
Voltage, then T1 follow transmission speed n change given range integrally can change, for example, increase charge constant, then equally
Transmission speed n excursion in, T1 follows the higher limit of constant interval and lower limit increases.
When between upon discharging, constant keeps constant with the lower limit threshold voltage of Schmidt circuit, transmission speed n increases, tri-state
The high level current potential of door T12 output increases, and it is accelerated by the speed that electric capacity is discharged by discharge resistance, makes T2 reduce;Transmission speed
Degree n reduces, and the high level current potential of triple gate T12 output reduces, and its speed discharged electric capacity by discharge resistance is slowed down, and makes T2
Increase;The charging rate achieving controlled charging circuit is controlled by transmission speed n.When achieving disturbing pulse filtration in other words,
The maximum that can filter bears the transmission speed n Self Adaptive Control of narrow pulse width T2, and i.e. during the change of transmission speed n, T2 is at one
The change of transmission speed n is followed in given scope.If changing the lower limit threshold of discharge time constant or Schmidt circuit
Voltage, then T2 follow transmission speed n change given range integrally can change, for example, reduce discharge time constant, then equally
Transmission speed n excursion in, T2 follows the higher limit of constant interval and lower limit reduces.