Invention content
In order to solve the problems of existing metallurgy bar counts automatically, particularly screw-thread steel production line counts automatically,
The present invention provides a kind of adaptive robot scaler of screw-thread steel line speed, including counting 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 positive electricity
Flow driver and the burst pulse filter element of reverse current driver control;The burst pulse of the burst pulse filter element filtering is wide
Degree is controlled by bar transmission speed;The counting processing unit is counted to counting pulse.
The adaptive robot scaler of screw-thread steel line speed further includes transmission speed converter unit;The transmission
The input signal of speed change unit is to count the bar transmission speed of impulse generating unit installation place, and output is sent to burst pulse mistake
Filter the control voltage input end of unit.
The burst pulse filter element includes positive charge-discharge circuit, reversed charge-discharge circuit, data selector;It is described just
Input to charge-discharge circuit is the input pulse end of burst pulse filter element;The input of the reversed charge-discharge circuit is connected to
The input pulse end of burst pulse filter element;The data selector is alternative data selector;The data selector
Two data input pins are respectively connected to the output terminal of positive charge-discharge circuit, reversed charge-discharge circuit;The data selector
Data output end for output pulse ends;The data selector carries out data selection control by output pulse.
The forward direction charge-discharge circuit includes forward current driver, positive anti-interference capacitor, positive anti-interference Schmidt
Circuit;Input terminal of the forward current driver input for positive charge-discharge circuit, output be connected to it is positive it is anti-interference apply it is close
Special circuit input end;One end of the forward direction anti-interference capacitor is connected to positive anti-interference Schmidt circuit input terminal, and in addition one
End is connected to the power supply of publicly either positive anti-interference Schmidt circuit.
The reversed charge-discharge circuit includes reverse current driver, reversely reversed anti-interference capacitor, anti-interference Schmidt
Circuit;Input terminal of the reverse current driver input for reversed charge-discharge circuit, output be connected to reversely it is anti-interference apply it is close
Special circuit input end;One end of the reversed anti-interference capacitor is connected to reversed anti-interference Schmidt circuit input terminal, and in addition one
End is connected to the power supply of publicly either reversed anti-interference Schmidt circuit.
The anti-interference Schmidt circuit output terminal of forward direction is positive charge-discharge circuit output terminal, reversely anti-interference Schmidt
Circuit output end is reversed charge-discharge circuit output terminal.
When the forward current driver input is high level, output terminal drives for electric current and flows out driving current;It is described
When the input of forward current driver is low level, output terminal drives for voltage and exports low level;The reverse current driver
When inputting as low level, output terminal drives for electric current and flows out driving current;The reverse current driver input is high level
When, output terminal drives for voltage and exports low level.
The narrow pulse width of the burst pulse filter element filtering is positive charge and discharge by bar transmission speed control method
The charging rate of the charging rate of circuit and reversed charge-discharge circuit is controlled by bar transmission speed.
The charging rate of the forward direction charge-discharge circuit and the charging rate of reversed charge-discharge circuit are by bar transmission speed
The method of control is, forward current driver, reverse current driver outflow driving current size by bar transmission speed control
System;When bar transmission speed increases, the outflow driving current that forward current driver, reverse current driver export increases;
When bar transmission speed reduces, the outflow driving current that forward current driver, reverse current driver export reduces.
When being same phase relation between the data selector output signal and positive anti-interference Schmidt circuit input signal,
It is inverted relationship between data selector output signal and reversely anti-interference Schmidt circuit input signal;The data selector
When being inverted relationship between output signal and positive anti-interference Schmidt circuit input signal, data selector output signal with it is anti-
It is same phase relation between anti-interference Schmidt circuit input signal.
The specific method that the data selector is carried out data selection control by output pulse is, when data selector exports
Be between signal and positive anti-interference Schmidt circuit input signal same phase relation, data selector output signal with it is reversely anti-dry
When disturbing between Schmidt circuit input signal as inverted relationship, the low level control data selector selection for exporting pulse is positive anti-
The output signal of interference Schmidt circuit is sent to the output terminal of data selector, and high level control data selector selection is reversely anti-
The output signal of interference Schmidt circuit is sent to the output terminal of data selector;When data selector output signal is anti-dry with forward direction
It disturbs defeated for inverted relationship, data selector output signal and reversely anti-interference Schmidt circuit between Schmidt circuit input signal
Enter between signal when being same phase relation, export the low level control data selector selection of pulse reversely anti-interference Schmidt circuit
Output signal be sent to the output terminal of data selector, the positive anti-interference Schmidt circuit of high level control data selector selection
Output signal be sent to the output terminal of data selector.
Stream of the positive narrow pulse width that the burst pulse filter element can filter also by changing forward current driver
Go out drive current range and positive anti-interference capacitor size to be controlled, the negative narrow pulse width that can be filtered also passes through change
The outflow drive current range of reverse current driver and reversed anti-interference capacitor size are controlled.
The beneficial effects of the invention are as follows:Width is born in the adaptive robot scaler automatic fitration of screw-thread steel line speed
Narrow disturbing pulse is born, and quick-recovery filter capacity can filter soon during just narrow disturbing pulse and positive broad pulse during pulse
Continuous positive burst pulse or negative narrow pulse interference signal eliminate the continuous shake of rising edge and failing edge in counting pulse signal
Continuous shake, avoids or reduces counting error;Need the burst pulse filtered maximum width can follow bar transmission speed into
Row adaptive change, and can be adjusted by changing circuit parameter.
In embodiment, data selector T11 is alternative data selector, two data input signals and output signal it
Between be all same phase relation, Schmidt circuit F11, Schmidt circuit F21 are respectively then with phase Schmidt circuit and reverse phase Schmidt
Therefore circuit, is same phase relation between data selector T11 outputs and Schmidt circuit F11 input signals, data selector
It is inverted relationship that T11, which is exported between Schmidt circuit F21 input signals,.The function of data selector T11 is:When selection controls
When holding A=0, Y=D1 is exported;When selecting control terminal A=1, Y=D2 is exported.Output terminal Y (the i.e. pulses of data selector T11
Output terminal P2) the selection control terminal A of data selector T11 is connected directly to, when output pulse P2 is low level, control data choosing
The output signal A3 for selecting device T11 selection Schmidt circuits F11 is sent to the output terminal Y of data selector;Pulse P2 is exported as high electricity
Usually, the output signal A4 of control data selector T11 selection Schmidt circuits F21 is sent to the output terminal Y of data selector.
Fig. 3 be burst pulse filter element embodiment waveform, including input pulse P1 and Schmidt circuit F11 output A3,
The waveform of Schmidt circuit F21 outputs A4, output pulse P2.In Fig. 2, when input pulse P1 is maintained low level for a long time,
A1 points are low level, and the output A3 of Schmidt circuit F11 is low level;When input pulse P1 is maintained high level for a long time,
A1 points are high level, and A3 is high level.When input pulse P1 becomes low level from high level, the output of current driver U11
A1 is immediately turned into low level current potential, and A3 becomes low level from high level immediately.When input pulse P1 becomes high level from low level
When, A1 current potentials rise when the driving current that current driver U11 is exported charges to capacitance C11, when charging between reach T1, A1
When current potential rising meets and exceeds the upper limit threshold voltage of Schmidt circuit F11, A3 becomes high level from low level;When P1 just
Pulse width is less than T1, and the charging time is less than T1, and P1 becomes when A1 current potentials are not up to the upper limit threshold voltage of Schmidt circuit F11
Into low level, A1 current potentials are immediately turned into low level current potential, and A3 maintains low level state.In Fig. 3, the original state of P1 and A3 are low
Level.Positive burst pulse 11, positive burst pulse 12, positive burst pulse 13 width be respectively less than T1, A1 current potentials can not be charged to or surpass
The upper limit threshold voltage of Schmidt circuit F11 is crossed, A3 states are not influenced;The width of the positive pulse 14 of P1 is more than T1, therefore,
After the rising edge of the positive pulse 14 of P1 crosses time T1, A3 becomes high level from low level.The failing edge of the positive pulse 14 of P1 makes
A3 becomes low level from high level, and the width of the positive pulse 15 of P1 is more than T1, after 15 rising edge of positive pulse crosses time T1, A3 from
Low level becomes high level.The failing edge of P1 positive pulses 15 makes A3 become low level, positive pulse 16, the positive pulse of P1 from high level
17th, the width of positive pulse 18 is respectively less than T1, and therefore, positive pulse 16, positive pulse 17, positive pulse 18 do not influence A3, and A3 is maintained
Low level state.The width of the positive pulse 19 of P1 is more than T1, and after 19 rising edge of positive pulse crosses time T1, A3 becomes from low level
High level.
In Fig. 2, when input pulse P1 is maintained low level for a long time, A2 points are high level, and Schmidt circuit F21's is defeated
Go out A4 for low level;When input pulse P1 is maintained high level for a long time, A2 points are low level, and A4 is high level.Work as input
Pulse P1 from low level become high level when, the output A2 of current driver U21 is immediately turned into low level current potential, and A4 is immediately from low
Level becomes high level.When input pulse P1 becomes low level from high level, drive that A2 current potentials are exported by current driver U21
Streaming current charges to capacitance C21 and rises, when charging between reach T2, the rising of A2 current potentials reaches the upper limit of Schmidt circuit F21
During threshold voltage, A4 becomes low level from high level;When the negative pulse width of P1 is less than T2, the charging time is less than T2, A2 current potentials
When not rising the upper limit threshold voltage for reaching Schmidt circuit F21, P1 becomes high level, and A2 is immediately turned into low level current potential,
A4 maintains high level state.In Fig. 3, the original state of P1 and A4 are low level.The rising edge of the positive pulse 11 of P1 makes A4 from low
Level becomes high level, and the width of the negative pulse 20 of P1 is more than T2, and after 20 failing edge of negative pulse crosses time T2, A4 is from high level
Become low level.The rising edge of the positive pulse 12 of P1 makes A4 become high level from low level, the negative pulse 20 of P1, negative pulse 21
Width is respectively less than T2, and therefore, negative pulse 20, negative pulse 21 do not influence A4, and A4 maintains low level state.Negative pulse 23 is born
Pulse 24, negative pulse 25, negative pulse 26 width be respectively less than T2, A2 current potentials can not be charged to or higher than Schmidt circuit
The upper limit threshold voltage of F21, does not influence A4 states;The width of the negative pulse 27 of P1 is more than T2, therefore, in the negative pulse of P1
After 27 failing edge crosses time T2, A4 becomes low level from high level.In the rising edge of the negative pulse 27 of P1, A4 becomes from low level
For high level.
The output A3 of Schmidt circuit F11 input pulse P1 be low level when keep low level, input pulse P1 by
Time T1 excessively just becomes high level after low level becomes high level.The output A4 of Schmidt circuit F21 is height in input pulse P1
High level is kept during level, time T2 is crossed after input pulse P1 becomes low level from high level and just becomes low level.In other words,
When A3 is high level, A4 must be high level;When A4 is low level, A3 must be low level.
In Fig. 3, the original state of A3, A4 are low level, and the output Y of data selector T11 is low level, and data select
Device T11 selects A3 as output Y and is maintained in A3 for low level period.When A3 becomes high level at edge 30 from low level
When, output Y becomes high level, and data selector T11 selects A4, and as output Y, A4 must be high level at this time, maintain output Y
High level state.When A4 becomes low level at edge 31 from high level, output Y becomes low level, data selector T11 choosings
A3 is selected as output Y, A3 must be low level at this time, maintain the low level state of output Y.When A3 becomes at edge 32 from low level
During for high level, output Y becomes high level, and data selector T11 selects A4, and as output Y, A4 must be high level at this time, tie up
Hold the high level state of output Y.
Burst pulse filter element is by burst pulse 11, burst pulse 12, burst pulse 13, burst pulse 23, the burst pulse in P1 signals
24th, burst pulse 25, burst pulse 26 all filter out, and positive broad pulse 14 is (including positive pulse 14, positive pulse 15, positive pulse 16, Zheng Mai
Punching 17 and positive pulse 18, negative pulse 23, negative pulse 24, negative pulse 25, negative pulse 26 are disturbing pulse), negative broad pulse 27 can
Pass through, make occur corresponding positive broad pulse 28 and negative broad pulse 29 in P2 signals.The same phases of pulse P2 and input pulse P1 are exported, and
28 rising edge of broad pulse of output is than positive the broad pulse 14 rising edge lag time T1, failing edge lag time T2 of input.
Positive pulse 11, positive pulse 12, positive pulse 13 are positive burst pulse, and time T1 is what burst pulse filter element can filter
Maximum positive narrow pulse width.T1 is the positive charge time.The outflow driving current size of the current driven device U11 of T1, electricity
Flow the upper limit threshold voltage joint effect of the low level current potential of driver U11, capacitance C11 sizes, Schmidt circuit F11.Usually
In the case of, adjust T1 value can by change outflow driving current size and the capacitance C11 sizes of current driver U11 come into
Row.
Negative pulse 23, negative pulse 24, negative pulse 25, negative pulse 26 are negative burst pulse, and time T2 is burst pulse filter element
The maximum that can be filtered bears narrow pulse width.T2 is the reverse charging time.The outflow driving electricity of the current driven device U21 of T2
It is common to flow size, the low level current potential of current driver U21, capacitance C21 sizes, the upper limit threshold voltage of Schmidt circuit F21
It influences.Under normal conditions, the value for adjusting T2 can be by changing the outflow driving current size and capacitance of current driver U21
C21 sizes carry out.
In Fig. 2, capacitance C11 connects one end publicly can be with reconfiguration in Schmidt circuit F11, Schmidt circuit F21
Power supply end;Similarly, capacitance C21 connect one end publicly can also individually or together with capacitance C11 reconfiguration apply it is close
The power supply end of special circuit F11, Schmidt circuit F21.
In Fig. 2, Schmidt circuit F11, Schmidt circuit F21 can also simultaneously or separately select reverse phase Schmidt electric
Road can also be simultaneously or separately inverted relationship between input D1, D2 of data selector T11 and output Y.When Schmidt's electricity
Road F11, Schmidt circuit F21 simultaneously or separately select reverse phase Schmidt circuit, input D1, D2 of data selector T11 with
When being simultaneously or separately inverted relationship between output Y, need to meet following condition, i.e.,:When data selector T11 exports Y
When being same phase relation between Schmidt circuit F11 forward direction charge-discharge circuit input signals, data selector T11 exports Y with applying
It is inverted relationship between close spy's circuit F21 input signals;The output of the low level control selection Schmidt circuit F11 of Y is sent at this time
To the output terminal of data selector T11, the output of the high level control selections Schmidt circuit F21 of Y is sent to data selector T11
Output terminal.When it is inverted relationship that data selector T11, which is exported between Y and Schmidt circuit F11 input signals, data selection
It is same phase relation that device T11, which is exported between Y and Schmidt circuit F21 input signals,;Low level control selection Schmidt's electricity of Y at this time
The output of road F21 is sent to the output terminal of data selector T11, and the output of the high level control selections Schmidt circuit F11 of Y is sent to
The output terminal of data selector T11.
The anti-interference Schmidt circuit of the forward direction, reversely anti-interference Schmidt circuit are Schmidt circuit, input signal
For the voltage on capacitance, it is therefore desirable to which Schmidt circuit has high input impedance charcteristic.Schmidt circuit can select have height
Cmos schmitt phase inverter CD40106,74HC14 of input impedance characteristic or selection have high input impedance charcteristic
The devices such as cmos schmitt NAND gate CD4093,74HC24.Cmos schmitt phase inverter or cmos schmitt NAND gate it is upper
Limiting threshold voltage is and the relevant fixed value of device.It is formed with schmitt inverter or Schmidt's NAND gate with phase Schmidt electricity
Road needs to increase level-one phase inverter behind schmitt inverter or Schmidt's NAND gate.
Schmidt circuit is also an option that be formed using operational amplifier, and Schmidt's electricity is formed using operational amplifier
Road can neatly change upper limit threshold voltage, lower limit threshold voltage.Similarly, Schmidt's electricity is formed using operational amplifier
Lu Shi needs to use structure and circuit with high input impedance charcteristic.
Data selector can select the devices such as 74HC151,74HC152,74HC153, CD4512, CD4539 to form two choosings
One data selector can also form alternative data selector with gate circuit.
As shown in Figure 1, the adaptive robot scaler embodiment of screw-thread steel line speed further includes transmission speed transformation
Unit 401.Fig. 4 is transmission speed converter unit embodiment, and input is transmitted to count the bar of impulse generating unit installation place
Speed n is exported to send to the control voltage UK of the transmission speed input terminal of burst pulse filter element.
The width of 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 bar transmission speed sensor, and bar transmission speed n is converted to voltage Un and exported by F71.Amplifier
F72 and resistance R76, resistance R77, resistance R78, resistance R79 composition zero adjustment circuits, control voltage UK are exported from amplifier F72
End output.One of effect of zero adjustment circuit is to adjust voltage VREF by changing the zero of input, by bar transmission speed n
The corresponding control voltage UK of minimum speed (be usually 0) be adjusted to non-zero value;Second is that improve the driving force of control voltage UK.
The range of the corresponding control voltage UK of input speed range adjusts by adjusting bar transmission speed sensor F71 parameters, zero
Circuit parameter and zero adjust voltage VREF to carry out.In Fig. 4 embodiments, when bar transmission speed n increases, output control electricity
Press UK increases;When bar transmission speed n reduces, output control voltage UK reduces.
Fig. 5 is 1 circuit of forward current driver and reverse current driver embodiment.Open-drain output driven in phase device F12,
Resistance R11 forms forward current driver.When P1 is low level, driven in phase device F12 outputs A1 is low level;P1 is high level
When, driven in phase device F12 is open-drain output, flows out driving current through resistance R11 as power supply by control voltage UK.Forward current
The outflow driving current size of driver is controlled the control of voltage UK, when bar transmission speed n increases, output control voltage
UK increases, outflow driving current increase.
Open-drain output rp-drive F22, resistance R21 form reverse current driver.When P1 is high level, reverse phase driving
Device F22 outputs A2 is low level;When P1 is low level, rp-drive F22 is open-drain output, by control voltage UK as power supply
Driving current is flowed out through resistance R21.The outflow driving current size of reverse current driver is controlled the control of voltage UK, stick
When material transmission speed n increases, output control voltage UK increases, outflow driving current increase.
Driven in phase device F12, rp-drive F22 can select various open collectors, open-drain integrated circuit.
Fig. 6 is 2 circuit of forward current driver and reverse current driver embodiment.Triode V21, resistance R22, resistance
R23 forms reverse current driver, and when P1 is high level, triode V21 saturation conductions, reverse current driver output A2 is low
Level;When P1 is low level, triode V21 cut-offs flow out driving current as power supply by control voltage UK through resistance R22.Instead
The control of voltage UK is controlled to the outflow driving current size of current driver, when bar transmission speed n increases, output control
Voltage UK increases processed, outflow driving current increase.
Triode V11, triode V12, resistance R12, resistance R13, resistance R14 composition forward current drivers, P1 is low
During level, triode V12 cut-offs, triode V11 saturation conductions, forward current driver output A1 is low level;P1 is high electricity
Usually, triode V12 saturation conductions, triode V11 cut-offs flow out driving electricity as power supply by control voltage UK through resistance R12
Stream.The outflow driving current size of forward current driver is controlled the control of voltage UK, when bar transmission speed n increases,
Output control voltage UK increases, outflow driving current increase.The negative circuit of triode V12, resistance R14 composition in Fig. 5
It can be substituted with other phase inverters.
In Fig. 5 and Fig. 6, when it is definite value to control voltage UK, what forward current driver and reverse current driver provided
Outflow driving current is not the driving current of constant size, can be changed within limits;It is positive when controlling voltage UK changes
The outflow driving current magnitude range that current driver and reverse current driver provide on the whole can model- following control voltage UK
Variation and change.
Fig. 7 is 3 circuit of forward current driver and reverse current driver embodiment.Amplifier F61, amplifier F62, triode
V61, triode V62, resistance R61, resistance R62, resistance R63, resistance R64, resistance R65, resistance R66 composition reverse current drivings
Device, wherein, amplifier F61, amplifier F62, triode V61, resistance R61, resistance R62, resistance R63, resistance R64, resistance R65 compositions
Reversed constant-current circuit, output current I2 sizes are controlled by input control voltage UK, and control voltage UK is constant, then exports electricity
It is constant to flow I2;Voltage UK increases are controlled, then output current I2 increases.When P1 is high level, triode V62 saturation conductions, reversely
Current driver output A2 is low level;P1 be low level when, triode V62 cut-off, reverse current driver flow out size by
Control the constant current driving current I2 of voltage UK controls.
Amplifier F51, amplifier F52, triode V51, triode V52, triode V53, resistance R51, resistance R52, resistance
R53, resistance R54, resistance R55, resistance R56, resistance R57 composition forward current drivers, wherein, amplifier amplifier F51, amplifier
F52, triode V51, resistance R51, resistance R52, resistance R53, resistance R54, the positive constant-current circuit of resistance R55 compositions, output
Electric current I1 sizes are controlled by input control voltage UK, and control voltage UK is constant, then output current I1 is constant;Control voltage UK
Increase, then output current I1 increases.When P1 is low level, triode V53 cut-offs, triode V52 saturation conductions, forward current drive
Dynamic device output A1 is low level;When P1 is high level, triode V53 saturation conductions, triode V52 cut-offs, forward current driving
The constant current driving current I1 of the size-controlled voltage UK controls processed of device outflow.The reverse phase of triode V53, resistance R57 composition in Fig. 7
Circuit can also be substituted with other phase inverters.
When the upper limit threshold voltage of capacitance C11 and Schmidt circuit F11 remains unchanged, bar transmission speed n increases, electricity
The outflow driving current increase of driver U11 outputs is flowed, the charging rate of capacitance C11 is accelerated, and T1 reduces;Conversely, bar transmits
Speed n reduces, and the outflow driving current of current driver U11 outputs reduces, and the charging rate of capacitance C11 is slack-off, and T1 increases;It is real
The charging rate for having showed positive charge-discharge circuit is controlled by bar transmission speed.When realizing disturbing pulse filtering in other words, energy
The bar transmission speed self adaptive control of the positive narrow pulse width T1 of maximum enough filtered, i.e. when bar transmission speed n changes, T1 exists
Bar transmission speed n is followed to change in one given range.If change the size either Schmidt circuit of capacitance C11
The upper limit threshold voltage of F11, the then given range that T1 follows bar transmission speed n to change can integrally change, for example, increase capacitance
C11, then in same bar transmission speed n variation ranges, T1 follows the upper limit value of constant interval and lower limiting value increase.
When the upper limit threshold voltage of capacitance C21 and Schmidt circuit F21 remains unchanged, bar transmission speed n increases, electricity
The outflow driving current increase of driver U21 outputs is flowed, the charging rate of capacitance C21 is accelerated, and T2 reduces;Conversely, bar transmits
Speed n reduces, and the outflow driving current of current driver U21 outputs reduces, and the charging rate of capacitance C21 is slack-off, and T2 increases;It is real
The charging rate for having showed reversed charge-discharge circuit is controlled by bar transmission speed.In other words, when realizing disturbing pulse filtering, energy
The maximum enough filtered bears the bar transmission speed self adaptive control of narrow pulse width T2, i.e. when bar transmission speed n changes, T2 exists
Bar transmission speed n is followed to change in one given range.If change the size either Schmidt circuit of capacitance C21
The upper limit threshold voltage of F21, then the given range that T2 follows bar transmission speed n to change can integrally change, for example, reducing capacitance
C21, then in same bar transmission speed n variation ranges, T2 follows the upper limit value of constant interval and lower limiting value to reduce.