Summary of the invention
In order to solve to ask present in automatic several steel counting devices of existing production line of bar, especially steel splitting production line
Topic, the present invention provides a kind of production line of bar speed adaptives to count steel device automatically, including counts impulse generating unit, narrow arteries and veins
It rushes filter element, count processing unit.
The input pulse end for counting impulse generating unit output inceptive impulse and being connected to burst pulse filter element, it is narrow
The output pulse ends output of pulse filter unit counts pulse to counting processing unit;The burst pulse filter element is tri-state gate
The burst pulse filter element of control;The narrow pulse width of the burst pulse filter element filtering is controlled by bar transmission speed;Institute
It states counting processing unit and is counted to pulse is counted.
It further includes transmission speed converter unit that the production line of bar speed adaptive counts steel device automatically;The transmission speed
The input signal of degree converter unit is to count the bar transmission speed of impulse generating unit installation place, and output is sent to burst pulse and filtered
The control voltage input end of unit.
The burst pulse filter element includes controllable charging circuit, controllable discharge circuit, capacitor, Schmidt circuit;It is described
One end of capacitor is connected to Schmidt circuit input terminal, and other end is connected to the power supply electricity of publicly either Schmidt circuit
Source;The input of the controllable charging circuit is the input pulse end of burst pulse filter element, and it is defeated that output is connected to Schmidt circuit
Enter end;The input of the 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 end of the Schmidt circuit is output pulse ends.
The controllable charging circuit includes repid discharge diode, charging resistor, repid discharge tri-state gate;It is described quickly to put
Electric diode cathode is connected to repid discharge tri-state gate output terminal, and anode is controllable charging circuit output end;The charging resistor
With repid discharge diodes in parallel;The controllable discharge circuit includes quick charge diode, discharge resistance, quick charge tri-state
Door;The quick charge diode anode is connected to quick charge tri-state gate output terminal, and cathode is controllable discharge circuit output end;
The discharge resistance and quick charge diodes in parallel;The repid discharge tri-state gate input terminal is the input of controllable charging circuit
End;The quick charge tri-state gate input terminal is controllable discharge circuit input terminal;The repid discharge tri-state gate and quick charge
Tri-state gate by place burst pulse filter element output pulse control.
The repid discharge tri-state gate and quick charge tri-state gate by place burst pulse filter element output pulse control
Specific method be, when Schmidt circuit be with phase Schmidt circuit when, export the low level control repid discharge tri-state of pulse
Door is in working condition, quick charge tri-state gate is illegal state, exports the high level control repid discharge tri-state gate of pulse to prohibit
Only state, quick charge tri-state gate are in working condition;When Schmidt circuit is reverse phase Schmidt circuit, the height electricity of pulse is exported
Flat control repid discharge tri-state gate is in working condition, quick charge tri-state gate is illegal state, exports the low level control of pulse
Repid discharge tri-state gate is illegal state, quick charge tri-state gate is in working condition.
The method that the narrow pulse width of the burst pulse filter element filtering is controlled by transmission speed is repid discharge tri-state
The high level current potential that door, quick charge tri-state gate export is controlled by bar transmission speed.
What the high level current potential that the repid discharge tri-state gate, quick charge tri-state gate export was controlled by bar transmission speed
Method is, when bar transmission speed increases, the high level current potential that repid discharge tri-state gate, quick charge tri-state gate export increases
Greatly;When bar transmission speed reduces, the high level current potential that repid discharge tri-state gate, quick charge tri-state gate export reduces.
The output of the transmission speed converter unit is control voltage;The control voltage is as in burst pulse filter element
The power supply of repid discharge tri-state gate and quick charge tri-state gate.
The positive narrow pulse width of maximum that the burst pulse filter element can filter also pass through change charge constant or
The upper limit threshold voltage of person's Schmidt circuit controls, and the negative narrow pulse width of maximum that can be filtered also passes through change electric discharge
The lower limit threshold voltage of time constant or Schmidt circuit is controlled;The charge constant is charging resistor and electricity
The product of appearance;The discharge time constant is the product of discharge resistance and capacitor.
The repid discharge tri-state gate is all same phase tri-state gate, either, the repid discharge with quick charge tri-state gate
Tri-state gate and quick charge tri-state gate are all inverting tri-state door.
The beneficial effects of the invention are as follows:The 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 bear narrow disturbing pulse during positive broad pulse, and can fast quick-recovery filter capacity filtering connect
Continuous positive burst pulse or negative narrow pulse interference signal are eliminated the rising edge in counting pulse signal and are continuously shaken and failing edge company
Continuous shake, avoids or reduces counting error;The burst pulse maximum width for needing to filter can follow bar product transmission speed
Adaptive change is carried out, and can be adjusted by changing circuit parameter.
Specific embodiment
Below in conjunction with attached drawing, the invention will be further described.
Steel Installation practice structural block diagram is counted automatically as shown in Figure 1 for production line of bar speed adaptive.Pulse is counted to produce
Raw unit 101 exports inceptive impulse M1, carries out burst pulse filtering to M1 by burst pulse filter element 201, obtains filtering out interference arteries and veins
Counting pulse N1 after punching.It counts pulse N1 and is sent to counting processing unit 301, count processing unit 301 and N1 is counted
Number.
Counting impulse generating unit is common optoelectronic switch, Hall switch, magnetic reed switch or inductance on production line
The counting and detecting devices such as formula close switch, capacitive approach switch.One is exported when metallurgy bar production line has bar to pass through
Inceptive impulse signal.Inceptive impulse is the counting pulse of non-filtering interference signals.
Counting processing unit can be realized using various methods well-known to those skilled in the art, it is preferred to use MCU is
The circuit of core is realized.
The composition of burst pulse filter element includes controllable discharge circuit, controllable charging circuit, capacitor, Schmidt circuit.
It is illustrated in figure 2 burst pulse filter element embodiment.In embodiment, repid discharge diode, charging resistor, quickly
The tri-state gate that discharges is respectively diode D11, resistance R11, tri-state gate T11, constitutes controllable discharge circuit;Two pole of quick charge
Pipe, discharge resistance, quick charge tri-state gate are respectively diode D12, resistance R12, tri-state gate T12, constitute controllable charging electricity
Road;Capacitor is capacitor C11.Schmidt circuit F11 is therefore, pulse P2 and input to be exported in embodiment with phase Schmidt circuit
The same phase of pulse P1.The input terminal of a termination Schmidt circuit of capacitor C11, i.e. the input terminal A3 of F11, other end are connected to public affairs
Altogether.
In Fig. 2 embodiment, Schmidt circuit F11 is to export pulse P2 (A4 point in Fig. 2) with phase Schmidt circuit and directly connect
It is connected to the enabled control terminal of tri-state gate T11, tri-state gate T12, tri-state gate T11, tri-state gate T12 are respectively that low level, high level make
It can be effective.The high and low level of output pulse P2 controls tri-state gate T12 respectively and is in working condition, is illegal state, exports pulse P2
High and low level control respectively tri-state gate T11 be illegal state, be in working condition.By the control of output pulse P2, tri-state gate
In T11 and tri-state gate T12 always one in state is in working condition, it is illegal state state that another, which is in,.Work as tri-state
When door T11, tri-state gate T12 use the enabled effective or high level of low level to enable effective device simultaneously, one of them
It is controlled by the inversion signal of output pulse P2.
Fig. 3 is the input pulse and 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 normal negative broad pulse, A3 point current potential is consistent with A1 point low level current potential in Fig. 2,
P2 is low level, and tri-state gate T11 is in working condition, and the A1 level point of output is consistent with A0 point;T12 is illegal state, output
For high-impedance state.The high level of positive burst pulse 11 charges to capacitor C11 by charging resistor R11, increase A3 point current potential;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 are maintained low level, and tri-state gate T11 maintenance is in working condition;At the end of burst pulse 11, A1 point becomes again
Low level and capacitor C11 repid discharge is made by repid discharge diode D11, makes A3 point current potential and A1 point low level current potential one
It causes, restores to burst pulse 11 state before arriving, anti-interference ability is restored rapidly, when continuous just narrow followed by having
When pulse interference signal, can equally it filter out.Positive burst pulse 12, positive burst pulse 13 width be respectively less than time T1, therefore, when
At the end of each of burst pulse 12, burst pulse 13, P2 is maintained low level, and A1 point becomes low level and again by quick
Discharge diode D11 makes capacitor C11 repid discharge, keeps A3 point current potential consistent with A1 point low level current potential.
Pulse 14 is normal positive broad pulse, and for P1 when maintaining high level time to reach T1 after rising edge 20, A1 point is high
Being charged by charging resistor R11 to capacitor C11 for level, makes A3 point current potential rise the upper limit threshold for reaching Schmidt circuit F11
Voltage, Schmidt circuit F11 output P2 become high level from low level at rising edge 25, make tri-state gate T11 illegal state,
T12 is in working condition, and the A2 level point of output is consistent with A0 point;The high level of A2 point is made by quick charge diode D12
Capacitor C11 quick charge keeps A3 point current potential consistent with A2 point high level current potential, and P2 is maintained high level.
The low level of negative burst pulse 15 discharges to capacitor C11 by discharge resistance R12, declines A3 point current potential;Due to narrow
The width of pulse 15 is less than time T2, and A3 point current potential is still higher than the lower limit threshold of Schmidt circuit F11 at the end of burst pulse 15
Voltage, therefore, P2 are maintained high level, and tri-state gate T12 maintenance is in working condition;At the end of burst pulse 15, A2 point becomes again
High level and capacitor C11 quick charge is made by quick charge diode D12, makes A3 point current potential and A2 point high level current potential one
Cause, restore to burst pulse 15 state before arriving, anti-interference ability restored rapidly, when followed by have continuously bear it is narrow
When pulse interference signal, can equally it filter out.Width when being respectively less than of negative burst pulse 16, negative burst pulse 17, negative burst pulse 18
Between T2, therefore, at the end of each of burst pulse 16, burst pulse 17, burst pulse 18, P2 is maintained high level, A2 point weight
Newly become high level and capacitor C11 quick charge is made by quick charge diode D12, makes A3 point current potential and A2 point high level electricity
Position is consistent.
P1 indicates that P1 has a normal negative broad pulse, A2 when maintaining low level time to reach T2 after failing edge 21
The low level of point discharges to capacitor C11 by discharge resistance R12, and the decline of A3 point current potential is made to reach the lower limit of Schmidt circuit F11
The output P2 of threshold voltage, Schmidt circuit F11 becomes low level from high level at failing edge 26, makes tri-state gate T11 work
Make state, T12 is illegal state;The low level of A1 point makes capacitor 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.19 width of negative broad pulse of P1 is greater than T2, in negative broad pulse
When maintaining high level time to reach T1 after 19 rising edge 22, P2 becomes high level from low level at rising edge 27.
Burst pulse filter element is by burst pulse 11, burst pulse 12, burst pulse 13, the burst pulse 15, burst pulse in P1 signal
16, burst pulse 17, burst pulse 18 all filter out, and positive broad pulse 14, negative broad pulse 19 can pass through, and make phase occur in P2 signal
The positive broad pulse 23 and negative broad pulse 24 answered.The output same phase of pulse P2 and input pulse P1, and 14 rising edge of broad pulse exported
Than the broad pulse 14 rising edge lag time T1, failing edge lag time T2 of input.
Burst pulse 11, burst pulse 12, burst pulse 13 are positive burst pulse, and wherein burst pulse 11 is single disturbing pulse, narrow arteries and veins
Punching 12, the continuous Vibrating pulse that burst pulse 13 is input pulse edge.Time T1 is that burst pulse filter element can filter most
Big positive narrow pulse width.High level current potential, low level current potential and the Shi Mi that T1 is exported by charge constant, tri-state gate T11
The upper limit threshold voltage joint effect of special circuit F11.Under normal conditions, the high level current potential and low level of tri-state gate T11 output
Current potential is definite value, and therefore, the value for adjusting T1 can be electric by changing the upper limit threshold of charge constant or Schmidt circuit
It presses to carry out.In Fig. 2, charge constant is the product of charging resistor R11 and capacitor C11.The burst pulse filter element is permitted
Perhaps positive pulse signal of the width greater than T1 passes through.
Burst pulse 15, burst pulse 16, burst pulse 17, burst pulse 18 are negative burst pulse, and wherein burst pulse 15 is single interference
Pulse, burst pulse 16, burst pulse 17, the continuous Vibrating pulse that burst pulse 18 is input pulse edge.Time T2 is burst pulse mistake
The negative narrow pulse width of maximum that filter unit can filter.The high level electricity that T2 is exported by discharge time constant, tri-state gate T12
Position, low level current potential and Schmidt circuit F11 lower limit threshold voltage joint effect.Under normal conditions, tri-state gate T12 is exported
High level current potential and low level current potential are definite value, and therefore, the value for adjusting T2 can be by changing discharge time constant or applying close
The lower limit threshold voltage of special circuit carries out.In Fig. 2, discharge time constant is the product of discharge resistance R12 and capacitor C11.Institute
The undersuing that stating burst pulse filter element allows width to be greater than greater than T2 passes through.
In Fig. 2, capacitor C11 connect one end publicly can also with reconfiguration Schmidt circuit F11 power supply end.
In Fig. 2, Schmidt circuit F11 also can choose reverse phase Schmidt circuit, and the high level for exporting pulse P2 at this time is answered
The control repid discharge tri-state gate is in working condition, quick charge tri-state gate is illegal state, exports the low level control of pulse
Repid discharge tri-state gate is illegal state, quick charge tri-state gate is in working condition.For example, when Schmidt circuit F11 choosing in Fig. 2
Reverse phase Schmidt circuit is selected, when will export pulse P2 and being connected directly to the enabled control terminal of tri-state gate T11, tri-state gate T12, three
State door T11 should correspondingly be changed to high level and enable effectively, and it is enabled effective that tri-state gate T12 is correspondingly changed to low level.Selection is anti-
The working principle of circuit is identical as Fig. 2 when phase Schmidt circuit, only output pulse at this time and input pulse reverse phase.
Repid discharge tri-state gate and quick charge tri-state gate can have the inverting tri-state door of inverter functionality with simultaneous selection.
When repid discharge tri-state gate and quick charge tri-state gate simultaneous selection inverting tri-state door, it is equivalent to and increases by one at input pulse end
A phase inverter first will carry out again anti-narrow pulse interference after input pulse reverse phase, working principle is identical as Fig. 2.
The input signal of the Schmidt circuit is the voltage on capacitor, it is therefore desirable to which Schmidt circuit has high input
Impedance operator.Schmidt circuit can choose cmos schmitt phase inverter CD40106 with high input impedance charcteristic,
74HC14, or selection have the devices such as cmos schmitt NAND gate CD4093,74HC24 of high input impedance charcteristic.CMOS
Schmitt inverter or the upper limit threshold voltage of cmos schmitt NAND gate, lower limit threshold voltage are relevant to device solid
Definite value, therefore, positive narrow pulse width, the negative narrow pulse width needs for adjusting the input that can be filtered are normal by changing the charging time
Number, discharge time constant carry out.It is constituted with schmitt inverter or Schmidt's NAND gate with phase Schmidt circuit, is needed
Increase level-one phase inverter behind schmitt inverter or Schmidt's NAND gate.
Schmidt circuit is also an option that using operational amplifier and constitutes, and Schmidt's electricity is constituted using operational amplifier
Road can neatly change upper limit threshold voltage, lower limit threshold voltage.Similarly, Schmidt's electricity is constituted using operational amplifier
Lu Shi is needed using structure and circuit with high input impedance charcteristic.
As shown in Figure 1, it further includes transmission speed converter unit 401 that production line of bar speed adaptive counts steel device automatically,
Fig. 4 is transmission speed converter unit embodiment, is inputted to count the bar transmission speed n of impulse generating unit installation place, output
To send to the control voltage UK of the transmission speed input terminal of burst pulse filter element.
The width of the continuous shake burst pulse of the output porch of impulse generating unit is counted by bar transmission speed n's
It influences to change.When bar transmission speed n increases, the continuous Vibrating pulse of the output porch of impulse generating unit is counted
Width reduces;When bar transmission speed n reduces, the continuous Vibrating pulse of the output porch of impulse generating unit is counted
Width increases.
In Fig. 4, F71 is transmission speed sensor, and transmission speed n is converted to voltage Un and exported by F71.Amplifier F72 and electricity
It hinders R76, resistance R77, resistance R78, resistance R79 and forms zero adjustment circuit, control voltage UK is exported from amplifier F72 output end.
The effect of zero adjustment circuit first is that by change input zero adjust voltage VREF, by the minimum speed of transmission speed n
(usually 0) corresponding control voltage UK is adjusted to non-zero value;Second is that improving the driving capability of control voltage UK.Input speed model
The range of corresponding control voltage UK is enclosed by adjusting transmission speed sensor F71 parameter, zero adjustment circuit parameter and zero
Voltage VREF is adjusted to carry out.In Fig. 4 embodiment, when transmission speed n increases, output control voltage UK increases;Transmission speed n
When reduction, output control voltage UK reduces.
Control voltage UK is sent to burst pulse filter element, to repid discharge tri-state gate in burst pulse filter element, quickly
The high level current potential of charging tri-state gate output is controlled, when transmission speed n increases, repid discharge tri-state gate, quick charge
The high level current potential of tri-state gate output increases;When transmission speed n reduces, repid discharge tri-state gate, quick charge tri-state gate are defeated
High level current potential out reduces.
Repid discharge tri-state gate, quick charge tri-state gate using CMOS tri-state gate circuit, high-speed cmos tri-state gate circuit come
It constitutes, using control voltage UK as repid discharge tri-state gate, the power supply of quick charge tri-state gate.In embodiment, it will control
Power supply of the voltage UK as tri-state gate T11 and tri-state gate T12.At this point, the height electricity of tri-state gate T11 and tri-state gate T12 output
Put down the high level electricity exported for (close) power supply potential, i.e. control voltage UK directly as tri-state gate T11 and tri-state gate T12
Position, when control voltage UK increases, the high level current potential of tri-state gate T11 output and the high level current potential of tri-state gate T12 output increase
Greatly.It in the corresponding control voltage UK range of adjustment transmission speed n range, filter the range for controlling voltage UK satisfaction can
The positive narrow pulse width T1 of maximum, maximum negative narrow pulse width T2 adjusting range requirement, while controlling the range of voltage UK also
Need to meet the power supply area requirement of tri-state gate T11 and tri-state gate T12.
When the upper limit threshold voltage of constant and Schmidt circuit remains unchanged between when charging, transmission speed n increases, tri-state
The high level current potential of door T11 output increases, and is accelerated by speed of the charging resistor to capacitor charging, reduces T1;Transmission speed
It spends n to reduce, the high level current potential of tri-state gate T11 output reduces, and slows down by speed of the charging resistor to capacitor charging, makes T1
Increase;The charging rate for realizing controllable charging circuit is controlled by transmission speed n.When realizing disturbing pulse filtering in other words,
The transmission speed n self adaptive control of the positive narrow pulse width T1 of the maximum that can be filtered, i.e. when transmission speed n changes, T1 is at one
Transmission speed n is followed to change in given range.If changing the upper limit threshold of charge constant either Schmidt circuit
Voltage, then the given range that T1 follows transmission speed n to change can integrally change, for example, increasing charge constant, then same
Transmission speed n variation range in, T1 follow constant interval upper limit value and lower limit value increase.
When the lower limit threshold voltage of constant and Schmidt circuit remains unchanged between upon discharging, transmission speed n increases, tri-state
The high level current potential of door T12 output increases, and is accelerated by discharge resistance to the speed that capacitor discharges, reduces T2;Transmission speed
It spends n to reduce, the high level current potential of tri-state gate T12 output reduces, and slows down by the speed that discharge resistance discharges to capacitor, makes T2
Increase;The charging rate for realizing controllable charging circuit is controlled by transmission speed n.When realizing disturbing pulse filtering in other words,
The transmission speed n self adaptive control for the negative narrow pulse width T2 of maximum that can be filtered, i.e. when transmission speed n changes, T2 is at one
Transmission speed n is followed to change in given range.If changing the lower limit threshold of discharge time constant either Schmidt circuit
Voltage, then the given range that T2 follows transmission speed n to change can integrally change, for example, reducing discharge time constant, then same
Transmission speed n variation range in, T2 follow constant interval upper limit value and lower limit value reduce.