Invention content
In order to solve to pack the problems of product quantity counting pulse signal in the automatic packaging process of existing product, this
Invention provides a kind of packaging counting sensing device, including counts impulse generating unit, burst pulse filter element.
The counting impulse generating unit exports inceptive impulse to burst pulse filter element, burst pulse filter element output meter
Rapid pulse rushes.
The narrow pulse width of the burst pulse filter element filtering is by packaging transmission speed control.
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 and reversed charge-discharge circuit is inceptive impulse;The data selector selects for alternative data
Device;Two data input pins of the data selector be respectively connected to positive charge-discharge circuit, reversed charge-discharge circuit it is defeated
Outlet;The data output end of the data selector is to count pulse ends;The data selector carries out data by counting pulse
Selection control.
The forward direction charge-discharge circuit includes forward current driver, positive anti-interference capacitor, positive anti-interference Schmidt
Circuit;Forward current driver input for positive charge-discharge circuit input terminal, 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 that packaging counts the publicly either positive anti-interference Schmidt circuit of sensing device.
The reversed charge-discharge circuit includes reverse current driver, reversed anti-interference capacitor, reversed anti-interference Schmidt
Circuit;Reverse current driver input is the input terminal of reversed charge-discharge circuit, output be connected to it is reversed 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 that packaging counts the publicly either reversed anti-interference Schmidt circuit of sensing device.
The anti-interference Schmidt circuit output end of forward direction is positive charge-discharge circuit output end, reversed anti-interference Schmidt
Circuit output end is reversed charge-discharge circuit output end.
When the forward current driver input is high level, output end is that electric current drives and flows out driving current;It is described
When the input of forward current driver is low level, output end is that voltage drives and exports low level;The reverse current driver
When input is low level, output end is that electric current drives and flows out driving current;The reverse current driver input is high level
When, output end is that voltage drives and exports low level.
The narrow pulse width of the burst pulse filter element filtering is positive charge and discharge by packaging transmission speed control method
The charging rate of the charging rate of circuit and reversed charge-discharge circuit is by packaging transmission speed control.
The charging rate of the forward direction charge-discharge circuit and the charging rate of reversed charge-discharge circuit are by packaging transmission speed
The method of control is, forward current driver, reverse current driver outflow driving current size by packaging transmission speed control
System;When packing transmission speed increase, the outflow driving current that forward current driver, reverse current driver export increases;
When packing transmission speed reduction, the outflow driving current that forward current driver, reverse current driver export reduces.
It further includes packaging transmission speed converter unit that the packaging, which counts sensing device,;The packaging transmission speed transformation is single
Member input is packaging transmission speed, exports and is respectively connected to forward current driver, the stream that reverse current driver is exported
Go out the control of driving current size.
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 reversed 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-
To being same phase relation between anti-interference Schmidt circuit input signal.
The specific method that the data selector is carried out data selection control by counting 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 reversed anti-dry
Disturb between Schmidt circuit input signal for inverted relationship when, the low level control data selector selection for counting pulse is positive anti-
The output signal of interference Schmidt circuit is sent to the output end of data selector, and it is reversed anti-that high level controls data selector selection
The output signal of interference Schmidt circuit is sent to the output end 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, counts the reversed anti-interference Schmidt circuit of low level control data selector selection of pulse
Output signal be sent to the output end of data selector, high level controls the positive anti-interference Schmidt circuit of data selector selection
Output signal be sent to the output end 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:The packaging, which counts sensing device, allows width in initial count pulse signal to be more than
The positive pulse and undersuing of specified value pass through, during the positive burst pulse and positive broad pulse during the negative broad pulse of automatic fitration
Negative burst pulse;Quick-recovery filter capacity continuous positive burst pulse or negative narrow pulse interference signal can be filtered soon, eliminated initially
Counting the rising edge in pulse, continuously shake and failing edge are continuously shaken;Need the positive burst pulse maximum width filtered that can follow
Pack transmission speed carry out adaptive change, and can by change change forward current driver outflow drive current range and
Positive anti-interference capacitor size is adjusted;Need the negative burst pulse maximum width filtered that packaging transmission speed can be followed to carry out
Adaptive change, and can by change reverse current driver outflow drive current range and reversed anti-interference capacitor size into
Row adjustment;The packaging counts sensing device and can apply to be needed to count packaging quantity in various automatic packing apparatus
Occasion.
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, data selector between data selector T11 outputs and Schmidt circuit F11 input signals
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 end Y (the i.e. pulses of data selector T11
Output end P2) it is connected directly to the selection control terminal A of data selector T11, when counting 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 end Y of data selector;It is high electricity to count pulse P2
Usually, the output signal A4 of control data selector T11 selection Schmidt circuits F21 is sent to the output end Y of data selector.
Fig. 3 is the waveform of burst pulse filter element embodiment, including inceptive impulse P1 and Schmidt circuit F11 outputs A3,
Schmidt circuit F21 outputs A4, the waveform for counting pulse P2.In Fig. 2, when inceptive impulse 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 inceptive impulse P1 is maintained high level for a long time,
A1 points are high level, and A3 is high level.When inceptive impulse 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 inceptive impulse P1 becomes high level from low level
When, A1 current potentials rise due to 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
At 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 for crossing Schmidt circuit F11, does not influence A3 states;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
17, 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 inceptive impulse P1 is maintained low level for a long time, A2 points are high level, and Schmidt circuit F21's is defeated
It is low level to go out A4;When inceptive impulse P1 is maintained high level for a long time, A2 points are low level, and A4 is high level.When initial
When pulse P1 becomes high level from low level, 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 inceptive impulse P1 becomes low level from high level, drive that A2 current potentials are exported by current driver U21
Streaming current rises to capacitance C21 charging, when charging between reach T2, the rising of A2 current potentials reaches the upper limit of Schmidt circuit F21
When 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 be 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 inceptive impulse P1 be low level when keep low level, inceptive impulse 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 inceptive impulse P1
High level is kept when level, time T2 is crossed after inceptive impulse P1 becomes low level from high level 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, data selection
Device T11 selects A3 as output Y and is maintained for low level period in A3.When A3 becomes high level at edge 30 from low level
When, output Y becomes high level, and data selector T11 selects A4 as output Y, and A4 must be high level at this time, maintain output Y
High level state.When A4 is when edge 31 becomes low level 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
For high level when, output Y becomes high level, and data selector T11 select A4 as output Y, and 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
24, burst pulse 25, burst pulse 26 all filter out, and positive broad pulse 14 (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, makes occur corresponding positive broad pulse 28 and negative broad pulse 29 in P2 signals.The same phases of pulse P2 and inceptive impulse P1 are counted, and
Positive broad pulse 14 rising edge lag time T1, failing edge lag time T2 of 28 rising edge of broad pulse of output than 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 low level current potential of driver U11, the upper limit threshold voltage joint effect of capacitance C11 sizes, Schmidt circuit F11.Usually
In the case of, adjust T1 value can by change current driver U11 outflow driving current size and capacitance C11 sizes 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 the outflow driving current size and capacitance of change 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 and output Y of data selector T11.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 and applies
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
Output to the output end of data selector T11, the high level control selections Schmidt circuit F21 of Y is sent to data selector T11
Output end.When being inverted relationship between data selector T11 output Y and Schmidt circuit F11 input signals, data selection
It is same phase relation between device T11 output 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 end of data selector T11, and the output of the high level control selections Schmidt circuit F11 of Y is sent to
The output end of data selector T11.
The anti-interference Schmidt circuit of the forward direction, reversed 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 constituted with phase Schmidt's electricity with schmitt inverter or Schmidt's NAND gate
Road needs to increase level-one phase inverter behind schmitt inverter or Schmidt's NAND gate.
Schmidt circuit is also an option that be constituted using operational amplifier, 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.
Data selector can select the devices such as 74HC151,74HC152,74HC153, CD4512, CD4539 to constitute two choosings
One data selector can also constitute alternative data selector with gate circuit.
Fig. 4 is packaging transmission speed converter unit embodiment, and packaging transmission speed converter unit will pack transmission speed n and turn
It is changed to control voltage UK.In Fig. 4, F71 is packaging transmission speed sensor, and F71 will pack transmission speed n, and to be converted to voltage Un defeated
Go out.Amplifier F72 and resistance R76, resistance R77, resistance R78, resistance R79 form zero adjustment circuit, control voltage UK from amplifier
F72 output ends export.One of the effect of zero adjustment circuit is to adjust voltage VREF by changing the zero of input, and packaging is passed
The corresponding control voltage UK of minimum speed (being usually 0) of defeated speed n is adjusted to non-zero value;Second is that improving the drive of control voltage UK
Kinetic force.The range of the corresponding control voltage UK of input speed range is by adjusting packaging transmission speed sensor F71 parameters, zero
Value adjustment circuit parameter and zero adjust voltage VREF to carry out.In Fig. 4 embodiments, when packing transmission speed n increases, output
Voltage UK is controlled to increase;When packing transmission speed n reductions, 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 packaging transmission speed n increases, output control voltage
UK increases, and outflow driving current increases.
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, packet
When filling 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, it is low that reverse current driver, which exports A2,
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 packaging transmission speed n increases, output control
Voltage UK processed increases, and outflow driving current increases.
Triode V11, triode V12, resistance R12, resistance R13, resistance R14 form forward current driver, and P1 is low
When level, triode V12 cut-offs, triode V11 saturation conductions, it is low level that forward current driver, which exports A1,;P1 is high electricity
Usually, triode V12 saturation conductions, triode V11 cut-offs, by control voltage UK as power supply through resistance R12 outflow driving electricity
Stream.The outflow driving current size of forward current driver is controlled the control of voltage UK, when packaging transmission speed n increases,
Output control voltage UK increases, and outflow driving current increases.The negative circuit of triode V12, resistance R14 compositions 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;It controls voltage UK to increase, then output current I2 increases.When P1 is high level, triode V62 saturation conductions, reversely
It is low level that current driver, which exports A2,;When P1 is low level, 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 form forward current driver, 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
Device flows out the constant current driving current I1 of size-controlled voltage UK controls processed.The reverse phase of triode V53, resistance R57 compositions 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, packaging transmission speed n increases, electricity
The outflow driving current for flowing driver U11 outputs increases, and the charging rate of capacitance C11 is accelerated, and T1 reduces;Conversely, packaging transmission
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 packaging transmission speed.When realizing disturbing pulse filtering in other words, energy
The packaging transmission speed self adaptive control of the positive narrow pulse width T1 of maximum enough filtered, that is, when packing transmission speed n variations, T1 exists
The n variations of packaging transmission speed are followed in one given range.If changing the size either Schmidt circuit of capacitance C11
The upper limit threshold voltage of F11, then T1 follows the given range of packaging transmission speed n variations that can integrally change, for example, increase capacitance
C11, then in similarly packaging transmission speed n variation ranges, T1 follows the upper limit value of constant interval and lower limiting value to increase.
When the upper limit threshold voltage of capacitance C21 and Schmidt circuit F21 remains unchanged, packaging transmission speed n increases, electricity
The outflow driving current for flowing driver U21 outputs increases, and the charging rate of capacitance C21 is accelerated, and T2 reduces;Conversely, packaging transmission
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 packaging transmission speed.In other words, when realizing disturbing pulse filtering, energy
The maximum enough filtered bears the packaging transmission speed self adaptive control of narrow pulse width T2, that is, when packing transmission speed n variations, T2 exists
The n variations of packaging transmission speed are followed in one given range.If changing the size either Schmidt circuit of capacitance C21
The upper limit threshold voltage of F21, then T2 follows the given range of packaging transmission speed n variations that can integrally change, for example, reduction capacitance
C21, then in similarly packaging transmission speed n variation ranges, T2 follows the upper limit value of constant interval and lower limiting value to reduce.