CN107741727B - Book Automatic Sorting Control System - Google Patents
Book Automatic Sorting Control System Download PDFInfo
- Publication number
- CN107741727B CN107741727B CN201711134018.0A CN201711134018A CN107741727B CN 107741727 B CN107741727 B CN 107741727B CN 201711134018 A CN201711134018 A CN 201711134018A CN 107741727 B CN107741727 B CN 107741727B
- Authority
- CN
- China
- Prior art keywords
- book
- output
- pulse
- sorting
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 94
- 238000006243 chemical reaction Methods 0.000 claims abstract description 14
- 238000005070 sampling Methods 0.000 claims description 120
- 238000001914 filtration Methods 0.000 claims description 14
- 238000000034 method Methods 0.000 abstract description 23
- 238000007689 inspection Methods 0.000 abstract description 6
- 241001125929 Trisopterus luscus Species 0.000 description 55
- 230000000694 effects Effects 0.000 description 9
- 239000003990 capacitor Substances 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000007423 decrease Effects 0.000 description 6
- 238000013461 design Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000033228 biological regulation Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010355 oscillation Effects 0.000 description 2
- 238000005452 bending Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/11—Plc I-O input output
- G05B2219/1103—Special, intelligent I-O processor, also plc can only access via processor
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Manipulation Of Pulses (AREA)
- Electronic Switches (AREA)
Abstract
Description
技术领域technical field
本发明涉及自动化分拣领域,尤其是一种图书自动分检控制系统。The invention relates to the field of automatic sorting, in particular to an automatic sorting control system for books.
背景技术Background technique
在图书管理工作中,图书馆工作人员需要对还回零乱的图书分类并上架,此时,通常需要手工一本本的归类分开,工作难度非常大,费时费力。现有的图书分拣设备通常使用电子标签识别技术(RFID),其原理是当图书运行到某个分拣口时通过安装在这个分拣口上的读写器来读取图书里的信息判断图书是否分拣到这个分拣口,如果不是图书流向下一个分拣口再用同样的方法判断。这种方法的缺点是,每个分拣口都要安装读写器,一条分拣线有多少个分拣口时,就要安装多少个读写器,其硬件成本较高、同时由于多个读写器与中心控制单元的通讯在数量较多时会使得扩展较难、维护困难等缺陷。In the work of book management, library staff need to classify and put the returned scattered books on the shelves. At this time, it is usually necessary to manually classify and separate the books, which is very difficult and time-consuming. Existing book sorting equipment usually uses electronic tag identification technology (RFID). The principle is that when the book runs to a sorting port, the reader installed on the sorting port reads the information in the book to judge the book. Whether it is sorted to this sorting port, if it is not the book flowing to the next sorting port, use the same method to judge. The disadvantage of this method is that each sorting port must be installed with a reader-writer. When there are as many sorting ports in a sorting line, as many readers will be installed. The hardware cost is high, and at the same time due to multiple The communication between the reader and the central control unit will make expansion and maintenance difficult when the number is large.
需要分类的图书由读者还回,其形状不一,且有折角、变形等情况。图书通过光电开关时,可能在计数脉冲的前沿、后沿产生抖动干扰窄脉冲,此类计数脉冲输入至PLC,或者是单片机直接进行计数及其他处理时,会产生计数误差,或者是进行误处理操作。Books that need to be sorted are returned by readers, and their shapes are different, and there are corners, deformations, etc. When the book passes through the photoelectric switch, it may generate jitter interference narrow pulses at the leading and trailing edges of the counting pulse. When such counting pulses are input to the PLC, or when the single-chip microcomputer directly performs counting and other processing, counting errors will occur, or mishandling will occur. operate.
发明内容Contents of the invention
为了解决现有的图书分拣设备所存在的问题,本发明提供了一种图书自动分检控制系统,包括控制器单元、图书类别信息识别单元、图书传输驱动单元、图书传输速度变换单元、M个计数脉冲获取单元、M个分检驱动单元,M个计数脉冲获取单元和M个分检驱动单元一一对应。所述M为大于等于2的整数。In order to solve the problems existing in the existing book sorting equipment, the present invention provides a book automatic sorting control system, including a controller unit, a book category information identification unit, a book transmission drive unit, a book transmission speed conversion unit, an M There are a number of counting pulse acquisition units and M sorting inspection drive units, and there is a one-to-one correspondence between the M count pulse acquisition units and the M sorting inspection drive units. The M is an integer greater than or equal to 2.
所述图书类别信息识别单元输出图书类别信息至控制器单元,M个计数脉冲获取单元分别输出图书计数脉冲至控制器单元;控制器单元输出传输控制信息至图书传输驱动单元,对图书传输电机进行控制;控制器单元根据图书类别信息输出M个分检驱动控制信号,分别驱动M个分检驱动单元进行图书分检;图书传输速度变换单元将图书传输电机速度转换为频率控制电压,频率控制电压被送至M个计数脉冲获取单元。The book category information identification unit outputs the book category information to the controller unit, and the M count pulse acquisition units output book count pulses to the controller unit respectively; the controller unit outputs transmission control information to the book transmission drive unit, and the book transmission motor is Control; the controller unit outputs M sorting drive control signals according to the book category information, respectively drives M sorting drive units to perform book sorting; the book transmission speed conversion unit converts the book transmission motor speed into a frequency control voltage, and the frequency control voltage It is sent to M counting pulse acquisition units.
所述M个分检驱动单元均由图书挡板驱动器和图书分检推送驱动器组成;所述M个分检驱动控制信号均由图书挡板控制信号和图书分检推送气缸控制信号组成。所述控制器单元为可编程序控制器,或者是单片机,或者是ARM控制器。所述图书类别信息识别单元为电子标签读写器,或者是条形码扫描器,或者是二维码扫描器。The M sorting drive units are all composed of a book baffle driver and a book sorting push driver; the M sorting drive control signals are all composed of a book baffle control signal and a book sorting push cylinder control signal. The controller unit is a programmable controller, or a single-chip microcomputer, or an ARM controller. The book category information identification unit is an electronic tag reader, or a barcode scanner, or a two-dimensional code scanner.
所述M个计数脉冲获取单元均由计数脉冲产生电路和干扰脉冲过滤电路组成。同一计数脉冲获取单元中,计数脉冲产生电路的输出连接至相应干扰脉冲过滤电路的抗干扰输入脉冲端,干扰脉冲过滤电路输出的抗干扰输出脉冲为该计数脉冲产生电路的图书计数脉冲。The M counting pulse acquisition units are all composed of a counting pulse generating circuit and an interference pulse filtering circuit. In the same counting pulse acquisition unit, the output of the counting pulse generating circuit is connected to the anti-interference input pulse terminal of the corresponding interference pulse filtering circuit, and the anti-interference output pulse output by the interference pulse filtering circuit is the book counting pulse of the counting pulse generating circuit.
所述干扰脉冲过滤电路包括移位寄存器、采样值1个数统计器、采样值0个数统计器、比较阈值设定器、第一数值比较器、第二数值比较器、RS触发器、压控振荡器。The interference pulse filtering circuit includes a shift register, a sample value 1 counter, a sample value 0 counter, a comparison threshold setter, a first numerical comparator, a second numerical comparator, an RS flip-flop, controlled oscillator.
所述移位寄存器的输入为抗干扰输入脉冲和采样时钟脉冲,输出为N位序列数据;移位寄存器在采样时钟脉冲边沿对抗干扰输入脉冲采样得到N位序列数据;采样值1个数统计器的输入为N位序列数据,输出为采样值1个数统计值;采样值0个数统计器的输入为N位序列数据,输出为采样值0个数统计值;比较阈值设定器的输出为比较阈值;第一数值比较器的输入为采样值1个数统计值和比较阈值,输出为第一置位信号;第二数值比较器的输入为采样值0个数统计值和比较阈值,输出为第二置位信号;RS触发器的输入信号为第一置位信号和第二置位信号,输出为抗干扰输出脉冲;压控振荡器的输入为频率控制电压,输出为采样时钟脉冲。所述N为大于等于2的整数,所述N位序列数据为抗干扰输入脉冲的最近N次采样值;所述采样值为二进制数据数据0或者1;所述比较阈值为大于N/2(N除以2)且小于等于N的整数。The input of the shift register is an anti-jamming input pulse and a sampling clock pulse, and the output is N-bit sequence data; the shift register obtains N-bit sequence data by sampling the anti-jamming input pulse at the edge of the sampling clock pulse; the sampled value is a counting device The input is N-bit sequence data, and the output is the statistical value of 1 sampling value; the input of the sampling value 0 counting device is N-bit sequence data, and the output is the statistical value of 0 sampling value; the output of the comparison threshold setter For comparing the threshold; the input of the first numerical comparator is the statistical value of sampling value 1 and the comparison threshold, and the output is the first setting signal; the input of the second numerical comparator is the statistical value of sampling value 0 and the comparison threshold, The output is the second set signal; the input signal of the RS flip-flop is the first set signal and the second set signal, and the output is the anti-jamming output pulse; the input of the voltage-controlled oscillator is the frequency control voltage, and the output is the sampling clock pulse . The N is an integer greater than or equal to 2, and the N-bit sequence data is the latest N sampling values of the anti-jamming input pulse; the sampling value is binary data 0 or 1; the comparison threshold is greater than N/2( N divided by 2) and an integer less than or equal to N.
所述采样值1个数统计器的功能是,输出的采样值1个数统计值为输入的N位序列数据中“1”的个数;所述采样值0个数统计器的功能是,输出的采样值0个数统计值为输入的N位序列数据中“0”的个数。The function of the 1 number statistic device of the sampled value is that the 1 number statistic value of the output sampled value is the number of "1" in the input N-bit sequence data; the function of the 0 number statistic device of the sampled value is, The statistical value of the output sampling value 0 count is the number of "0" in the input N-bit sequence data.
所述第一数值比较器的功能是,当采样值1个数统计值大于等于比较阈值时,输出的第一置位信号有效,否则无效;所述第二数值比较器的功能是,当采样值0个数统计值大于等于比较阈值时,输出的第二置位信号有效,否则无效。The function of the first numerical comparator is that when the statistic value of one sampled value is greater than or equal to the comparison threshold, the first set signal output is valid, otherwise it is invalid; the function of the second numerical comparator is that when the sampling value When the statistical value of the value 0 is greater than or equal to the comparison threshold, the output second set signal is valid, otherwise it is invalid.
第一置位信号为RS触发器的置位信号,第二置位信号为RS触发器的复位信号;抗干扰输出脉冲从RS触发器的同相输出端输出,抗干扰输出脉冲或者从RS触发器的反相输出端输出。The first set signal is the set signal of the RS flip-flop, and the second set signal is the reset signal of the RS flip-flop; the anti-jamming output pulse is output from the non-inverting output terminal of the RS flip-flop, and the anti-jamming output pulse or from the RS flip-flop The inverting output of the output.
当图书传输电机速度增大时,图书传输速度变换单元输出的频率控制电压控制压控振荡器输出的采样时钟脉冲的频率增大;当图书传输电机速度减小时,图书传输速度变换单元输出的频率控制电压控制压控振荡器输出的采样时钟脉冲的频率减小。When the speed of the book transmission motor increases, the frequency control voltage output by the book transmission speed conversion unit controls the frequency of the sampling clock pulse output by the voltage-controlled oscillator to increase; when the speed of the book transmission motor decreases, the frequency of the output of the book transmission speed conversion unit The frequency of the sampling clock pulses output by the control voltage control voltage controlled oscillator is reduced.
所述计数脉冲产生电路为对射式光电开关。The counting pulse generating circuit is a through-beam photoelectric switch.
本发明的有益效果是:只使用一个电子标签读写器、条形码扫描器、二维码扫描器等图书类别信息识别器就可以完成多个分拣口的图书分拣,且图书的分拣速度可以变化;采用定期巡检的方法进行图书分类与分检,利用计数值的变化判断是否有图书进入或者是通过相关的分检分部;能够自动滤除计数脉冲中的窄干扰脉冲,滤除的窄干扰脉冲的宽度能够跟随分检图书传输速度的变化而变化,保证了计数值判断的准确性,易于控制器的编程实现。The beneficial effects of the present invention are: only one electronic label reader, barcode scanner, two-dimensional code scanner and other book category information identifiers can complete the sorting of books at multiple sorting ports, and the sorting speed of books It can be changed; the method of regular inspection is used to classify and sort books, and the change of count value is used to judge whether there are books entering or passing through the relevant sorting branch; it can automatically filter out the narrow interference pulse in the counting pulse, filter out The width of the narrow interference pulse can change with the change of the transmission speed of sorting books, which ensures the accuracy of counting value judgment and is easy to realize the programming of the controller.
附图说明Description of drawings
图1为图书分检装置示意例;Fig. 1 is a schematic example of a book sorting device;
图2为图书自动分检控制系统实施例框图;Fig. 2 is the embodiment block diagram of book automatic sorting control system;
图3为第一分检驱动单元实施例;Fig. 3 is an embodiment of the first sorting drive unit;
图4为第一计数脉冲获取单元实施例;Fig. 4 is the embodiment of the first counting pulse acquisition unit;
图5为第一计数脉冲产生电路实施例;Fig. 5 is the embodiment of the first counting pulse generation circuit;
图6为干扰脉冲过滤电路实施例;Fig. 6 is the embodiment of interference pulse filter circuit;
图7为N=5时移位寄存器实施例;Fig. 7 is the shift register embodiment when N=5;
图8为N=5时采样值1个数统计器实施例;When Fig. 8 is N=5, sampling value 1 number statistic device embodiment;
图9为N=5时采样值0个数统计器实施例;When Fig. 9 is N=5, sampled value 0 number counter embodiment;
图10为N=5时比较阈值设定器和第一数值比较器的实施例;Fig. 10 compares the embodiment of threshold value setter and first numerical value comparator when N=5;
图11为RS触发器实施例;Fig. 11 is the embodiment of RS flip-flop;
图12为压控振荡器实施例;Fig. 12 is the embodiment of voltage controlled oscillator;
图13为图书传输电机速度变换单元实施例;Fig. 13 is the embodiment of the speed conversion unit of the book transmission motor;
图14为N=5时干扰脉冲过滤电路抗干扰效果示意图;Figure 14 is a schematic diagram of the anti-interference effect of the interference pulse filter circuit when N=5;
图15为图书自动分检控制系统实施例的自动分检流程。Fig. 15 is the automatic sorting process of the embodiment of the book automatic sorting control system.
具体实施方式Detailed ways
以下结合附图,以M等于3的实施例为例,对本发明作进一步说明。Hereinafter, the present invention will be further described by taking the embodiment in which M is equal to 3 in conjunction with the accompanying drawings.
图1为图书分检装置示意例。图1的图书分检装置包括传输分部1、图书分类分部2、第一分检分部3、第二分检分部4和第三分检分部5。图书分类分部2用于收集图书,对收集的图书进行分类信息识别,并将图书通过传输分部1分别传输至第一分检分部3,或者是第二分检分部4,或者是第三分检分部5。传输分部1为图书传输带及其相关的传输输送装置。Figure 1 is a schematic example of a book sorting device. The book sorting device in FIG. 1 includes a transmission subsection 1 , a book classification subsection 2 , a first sorting subsection 3 , a second sorting subsection 4 and a third sorting subsection 5 . The book classification branch 2 is used to collect books, identify the classification information of the collected books, and transmit the books to the first sorting branch 3 through the transmission branch 1, or the second sorting branch 4, or The third inspection division 5. The transmission section 1 is the book transmission belt and its related transmission and conveying devices.
图2为图书自动分检控制系统实施例框图,包括控制器单元10、图书类别信息识别单元11、图书传输驱动单元18和图书传输速度变换单元19;以及一一对应的第一计数脉冲获取单元12与第一分检驱动单元15、第二计数脉冲获取单元13与第二分检驱动单元16、第三计数脉冲获取单元14与第三分检驱动单元17;第一计数脉冲获取单元12、第二计数脉冲获取单元13、第三计数脉冲获取单元14分别安装在第一、第二、第三分检分部中。图书类别信息识别单元11输出图书类别信息J1至控制器单元10,3个计数脉冲获取单元分别输出图书计数脉冲P11、P21、P31至控制器单元10;控制器单元10输出传输控制信息K0至图书传输驱动单元18,对图书传输驱动单元18中的图书传输电机进行控制;控制器单元10根据图书类别信息J1输出3个分检驱动控制信号K1、K2、K3,分别驱动3个分检驱动单元进行图书分检;图书传输速度变换单元19将图书传输电机速度n转换为频率控制电压UK,频率控制电压UK被送至3个计数脉冲获取单元。Fig. 2 is a block diagram of an embodiment of the book automatic sorting control system, including a controller unit 10, a book category information identification unit 11, a book transmission drive unit 18 and a book transmission speed conversion unit 19; and a one-to-one corresponding first counting pulse acquisition unit 12 and the first sorting driving unit 15, the second counting pulse acquiring unit 13 and the second sorting driving unit 16, the third counting pulse acquiring unit 14 and the third sorting driving unit 17; the first counting pulse acquiring unit 12, The second counting pulse acquisition unit 13 and the third counting pulse acquisition unit 14 are respectively installed in the first, second and third sorting divisions. The book category information identification unit 11 outputs the book category information J1 to the controller unit 10, and the three counting pulse acquisition units respectively output the book counting pulses P11, P21, P31 to the controller unit 10; the controller unit 10 outputs the transmission control information K0 to the book The transmission drive unit 18 controls the book transmission motor in the book transmission drive unit 18; the controller unit 10 outputs three sorting drive control signals K1, K2, and K3 according to the book category information J1, and drives the three sorting drive units respectively Carry out book sorting; the book transmission speed conversion unit 19 converts the book transmission motor speed n into the frequency control voltage UK, and the frequency control voltage UK is sent to the three counting pulse acquisition units.
每个分检分部中都包括有由分检驱动单元驱动的图书挡板和图书分检推送气缸,以及收集本分部图书的收集车或者收集蓝,图3为第一分检分部的第一分检驱动单元实施例。图3中,YA1为驱动图书挡板的电磁铁线圈,K11为图书挡板控制信号;YV1为驱动图书分检推送气缸的电磁阀,K12为图书分检推送气缸控制信号;K11、K12共同组成第一分检驱动单元的分检驱动控制信号K1。图3中,K11、K12从控制器单元10输出的形式为NPN三极管集电极开路输出。K11、K12从控制器单元10输出的形式也可以是继电器输出的一端,此时继电器输出的另外一端接地。控制器单元也可以采用其他的输出形式进行上述驱动。第二分检分部的第二分检驱动单元、第三分检分部的第三分检驱动单元的电路和结构与第一分检分部的第一分检驱动单元相同。Each sorting branch includes a book baffle driven by the sorting drive unit and a book sorting push cylinder, as well as a collection vehicle or collection basket that collects books in this branch. Figure 3 shows the layout of the first sorting branch. Embodiment of the first sorting drive unit. In Fig. 3, YA1 is the electromagnet coil driving the book baffle, K11 is the control signal of the book baffle; YV1 is the solenoid valve driving the book sorting and pushing cylinder, and K12 is the control signal of the book sorting and pushing cylinder; K11 and K12 are jointly composed The sorting drive control signal K1 of the first sorting drive unit. In FIG. 3 , the output form of K11 and K12 from the controller unit 10 is an open-collector output of an NPN triode. The output form of K11 and K12 from the controller unit 10 may also be one end of the relay output, and at this time, the other end of the relay output is grounded. The controller unit can also use other output forms to perform the above-mentioned driving. The circuit and structure of the second sorting driving unit of the second sorting subsection and the third sorting driving unit of the third sorting subsection are the same as the first sorting driving unit of the first sorting subsection.
实施例中,图书类别信息识别单元11采用RFID电子标签读写器。图书类别信息识别单元11安装在图书分类分部2中,当图书传输从图书类别信息识别单元11处经过时,RFID电子标签读写器读取图书上RFID电子标签所记载的相关图书类别信息,并采用RS485通信接口将获取的相关图书的图书类别信息J1送至控制器单元10。图书类别信息识别单元采用RFID电子标签读写器时,读取图书的相关图书类别信息较为方便,图书经过RFID电子标签读写器时,对图书的摆放状态没有太多要求。图书类别信息识别单元也可以采用条形码扫描器或者是二维码扫描器,图书经过条形码扫描器或者是二维码扫描器时,为保证能够正确地读取图书上的条形码或者是二维码信息,对条形码或者是二维码粘贴在图书上的位置,以及图书经过条形码扫描器或者是二维码扫描器时的摆放状态均有要求。In the embodiment, the book category information identification unit 11 adopts an RFID electronic tag reader. The book category information identification unit 11 is installed in the book classification branch 2, when the book transmission passes through the book category information identification unit 11, the RFID electronic tag reader/writer reads the relevant book category information recorded in the RFID electronic tag on the book, And use the RS485 communication interface to send the acquired book category information J1 of the relevant books to the controller unit 10 . When the book category information identification unit adopts the RFID electronic tag reader-writer, it is more convenient to read the relevant book category information of the book. When the book passes through the RFID electronic tag reader-writer, there are not many requirements for the placement state of the book. The book category information identification unit can also use a barcode scanner or a two-dimensional code scanner. , there are requirements for the position where the barcode or two-dimensional code is pasted on the book, and the placement state of the book when it passes through the barcode scanner or two-dimensional code scanner.
图书传输带的运行速度在0.1m/s至0.5m/s之间变化。实施例中,图书传输驱动单元18采用变频器驱动图书传输电机调速来控制图书传输带的运行速度,控制器单元10采用RS485通信接口将传输控制信息K0送至图书传输驱动单元18,传输控制信息K0中包括控制图书传输电机启动、停止和调速的信息。图书传输驱动单元18也可以采用端子控制的方式实行对变频器的控制。The running speed of the book conveyor belt varies between 0.1m/s and 0.5m/s. In the embodiment, the book transmission drive unit 18 uses a frequency converter to drive the book transmission motor to adjust the speed to control the operating speed of the book transmission belt. The controller unit 10 uses the RS485 communication interface to send the transmission control information K0 to the book transmission drive unit 18, and the transmission control Information K0 includes information for controlling the start, stop and speed regulation of the book transport motor. The book transmission drive unit 18 can also control the frequency converter by means of terminal control.
图4为第一计数脉冲获取单元实施例。图4中,Pin为第一干扰脉冲过滤电路32的抗干扰输入脉冲的输入端、Pout为第一干扰脉冲过滤电路32的抗干扰输出脉冲的输出端,第一计数脉冲产生电路31输出的计数初始脉冲P10连接至第一干扰脉冲过滤电路32的Pin,经由第一干扰脉冲过滤电路32滤波后,从第一干扰脉冲过滤电路32的Pout输出图书计数脉冲P11。Fig. 4 is an embodiment of the first counting pulse acquisition unit. Among Fig. 4, Pin is the input end of the anti-interference input pulse of the first interference pulse filter circuit 32, Pout is the output end of the anti-interference output pulse of the first interference pulse filter circuit 32, and the count output by the first count pulse generation circuit 31 The initial pulse P10 is connected to Pin of the first disturbance pulse filter circuit 32 , and after being filtered by the first disturbance pulse filter circuit 32 , the book counting pulse P11 is output from Pout of the first disturbance pulse filter circuit 32 .
图5为第一计数脉冲产生电路实施例,采用欧姆龙对射式光电开关,投光器201的型号为E3ZG-T61-S;受光器202的型号为E3ZG-T61-S,其输出端OUT1采用NPN三极管集电极开路输出,电阻R201为其集电极电阻,第一计数脉冲产生电路31的计数初始脉冲P10从受光器202的OUT1端输出。图5中,+VCC为光电开关的供电电源,GND为公共地。第一计数脉冲产生电路也可以采用其他对射式光电开关、反射式光电开关,光电开关的脉冲输出形式也可以是其他形式的输出类型。第一计数脉冲产生电路安装在第一分检分部处。第二计数脉冲产生电路、第三计数脉冲产生电路的电路和结构与第一计数脉冲产生电路相同,且分别安装在第二分检分部、第三分检分部所在之处。Figure 5 is an embodiment of the first counting pulse generating circuit, which adopts the Omron through-beam photoelectric switch, the model of the light projector 201 is E3ZG-T61-S; the model of the light receiver 202 is E3ZG-T61-S, and its output terminal OUT1 adopts an NPN transistor Open-collector output, the resistor R201 is its collector resistance, and the counting initial pulse P10 of the first counting pulse generating circuit 31 is output from the OUT1 terminal of the light receiver 202 . In Figure 5, +VCC is the power supply of the photoelectric switch, and GND is the common ground. The first counting pulse generation circuit can also use other through-beam photoelectric switches and reflective photoelectric switches, and the pulse output form of the photoelectric switch can also be other output types. The first count pulse generating circuit is installed at the first sorting subsection. The circuit and structure of the second counting pulse generating circuit and the third counting pulse generating circuit are the same as the first counting pulse generating circuit, and they are respectively installed in the places where the second sorting branch and the third sorting branch are located.
实施例中,第二计数脉冲获取单元13、第三计数脉冲获取单元14中均有与第一计数脉冲获取单元12中的第一干扰脉冲过滤电路32相同的干扰脉冲过滤电路。如图6所示为干扰脉冲过滤电路实施例。图6中,移位寄存器101包括串行输入端、N位并行输出端、采样时钟脉冲输入端,抗干扰输入脉冲Pin从移位寄存器101的串行输入端输入,采样时钟脉冲CLK从移位寄存器101的采样时钟脉冲输入端输入,移位寄存器101的N位并行输出端输出N位序列数据X1;采样值1个数统计器102的输入为N位序列数据X1,输出为采样值1个数统计值Y1;采样值0个数统计器103的输入为N位序列数据X2,输出为采样值0个数统计值Y2;比较阈值设定器104的输出为比较阈值Y0;第一数值比较器105的输入为采样值1个数统计值Y1和比较阈值Y0,输出为第一置位信号SE1;第二数值比较器106的输入为采样值0个数统计值Y2和比较阈值Y0,输出为第二置位信号RE1;RS触发器107的输入为第一置位信号SE1和第二置位信号RE1,输出为干扰脉冲过滤电路的抗干扰输出脉冲Pout;压控振荡器108的输入为频率控制电压UK,输出为采样时钟脉冲CPK。干扰脉冲过滤电路的实施例中,N=5。In the embodiment, both the second count pulse acquisition unit 13 and the third count pulse acquisition unit 14 have the same interference pulse filter circuit as the first interference pulse filter circuit 32 in the first count pulse acquisition unit 12 . Figure 6 shows an embodiment of the interference pulse filtering circuit. In Fig. 6, the shift register 101 includes a serial input end, an N-bit parallel output end, and a sampling clock pulse input end, the anti-interference input pulse Pin is input from the serial input end of the shift register 101, and the sampling clock pulse CLK is input from the shift register 101. The sampling clock pulse input terminal of the register 101 is input, and the N-bit parallel output terminal of the shift register 101 outputs N-bit sequence data X1; the input of the sampled value 1 number counter 102 is the N-bit sequence data X1, and the output is 1 sampled value Number statistical value Y1; The input of sampling value 0 number counter 103 is N-bit sequence data X2, and the output is sampling value 0 Number statistical value Y2; The output of comparison threshold value setter 104 is comparison threshold Y0; The first numerical value comparison The input of the device 105 is the statistical value Y1 of sampled value 1 and the comparison threshold Y0, and the output is the first set signal SE1; the input of the second numerical comparator 106 is the statistical value Y2 of the sampled value 0 and the comparison threshold Y0, and the output It is the second setting signal RE1; the input of the RS flip-flop 107 is the first setting signal SE1 and the second setting signal RE1, and the output is the anti-interference output pulse Pout of the interference pulse filter circuit; the input of the voltage-controlled oscillator 108 is The frequency control voltage UK is output as the sampling clock pulse CPK. In the embodiment of the interference pulse filtering circuit, N=5.
图7为N=5时移位寄存器的实施例。图7中,5个D触发器FF1、FF2、FF3、FF4、FF5组成5位串行移位寄存器,FF1的输入端D为移位寄存器的串行输入端,连接至抗干扰输入脉冲Pin;FF1、FF2、FF3、FF4、FF5的时钟输入端CLK并联后,组成移位寄存器的移位脉冲输入端,即移位寄存器的采样时钟脉冲输入端,并连接至采样时钟脉冲CPK;FF1、FF2、FF3、FF4、FF5的输出端Q分别为x11、x12、x13、x14、x15,图7中,N位序列数据X1由x11、x12、x13、x14、x15组成。N位序列数据X1为移位寄存器在采样时钟脉冲CPK边沿中的上升沿对抗干扰输入脉冲Pin的最近N次采样值。FIG. 7 is an embodiment of a shift register when N=5. In Figure 7, five D flip-flops FF1, FF2, FF3, FF4, and FF5 form a 5-bit serial shift register, and the input terminal D of FF1 is the serial input terminal of the shift register, which is connected to the anti-interference input pulse Pin; After the clock input terminals CLK of FF1, FF2, FF3, FF4, and FF5 are connected in parallel, they form the shift pulse input terminal of the shift register, that is, the sampling clock pulse input terminal of the shift register, and are connected to the sampling clock pulse CPK; FF1, FF2 , FF3, FF4, and FF5 output Q are respectively x11, x12, x13, x14, x15. In FIG. 7, the N-bit sequence data X1 is composed of x11, x12, x13, x14, x15. The N-bit sequence data X1 is the latest N sampling values of the anti-interference input pulse Pin of the shift register at the rising edge of the sampling clock pulse CPK.
N为其他数值时,可以增减图7中D触发器的数量来实现N位的移位寄存器的功能。图7中D触发器可以用其他触发器来代替,例如,采用N个JK触发器来实现N位的移位寄存器的功能。N位的移位寄存器也可以采用单个或者多个专用的多位移位寄存器来实现,例如,采用1片74HC164或者是1片74HC595,可以实现不多于8位的移位寄存器的功能,采用多片74HC164或者是多片74HC595,可以实现多于8位的移位寄存器的功能。When N is other values, the number of D flip-flops in FIG. 7 can be increased or decreased to realize the function of an N-bit shift register. The D flip-flops in FIG. 7 can be replaced by other flip-flops, for example, N JK flip-flops are used to realize the function of an N-bit shift register. The N-bit shift register can also be realized by single or multiple dedicated multi-bit shift registers. For example, a 74HC164 or a 74HC595 can realize the function of no more than 8-bit shift register. Multi-chip 74HC164 or multi-chip 74HC595 can realize the function of shift register with more than 8 bits.
图8为N=5时采样值1个数统计器的实施例。采样值1个数统计器的功能是,输出的采样值1个数统计值Y1为输入的N位序列数据X1中“1”的个数的数量值。图8中,采样值1个数统计器由1位全加器FA1、FA2、FA3组成,图8中的1位全加器均包括有1位加数输入端A、1位加数输入端B、进位输入端Ci,以及1位结果输出端S、1位进位输出端Co。1位全加器FA1实现x11、x12、x13中“1”的个数的统计,n2、n1为FA1的2位二进制统计结果输出。2个1位全加器FA2、FA3组成2位二进制加法器,FA2、FA3将n2、n1作为一个加数,将x14作为另外一个加数,将x15作为低位进位进行相加,得到3位二进制输出y13、y12、y11,y13、y12、y11即为采样值1个数统计值Y1;将x14作为另外一个加数时,另外一个加数从FA3的B端输入的高位为0。连接至采样值1个数统计器的输入端时,x11、x12、x13、x14、x15的连接位置可以相互任意互换。N位序列数据X1为N位二进制数据,采样值1个数统计器实际上是一个统计N位二进制数据中“1”的个数的统计加法器。Fig. 8 is an embodiment of a statistic device for one sampling value when N=5. The function of the 1-sample count counter is that the output 1-sample count statistic value Y1 is the quantity value of the number of "1"s in the input N-bit sequence data X1. In Fig. 8, 1 count counter of sampled value is made up of 1 full adder FA1, FA2, FA3, and 1 full adder in Fig. 8 all includes 1 addend input end A, 1 addend input end B. Carry input terminal Ci, 1-bit result output terminal S, and 1-bit carry output terminal Co. The 1-bit full adder FA1 realizes the statistics of the number of "1" in x11, x12, and x13, and n2, n1 are the 2-bit binary statistics output of FA1. Two 1-bit full adders FA2 and FA3 form a 2-bit binary adder. FA2 and FA3 use n2 and n1 as an addend, x14 as another addend, and x15 as a low-order carry to obtain a 3-bit binary Output y13, y12, y11, y13, y12, y11 is the statistical value Y1 of sampling value 1; when x14 is used as another addend, the high bit of another addend input from terminal B of FA3 is 0. When connected to the input terminal of the sampling value 1 counter, the connection positions of x11, x12, x13, x14, and x15 can be interchanged arbitrarily. The N-bit sequence data X1 is N-bit binary data, and the number counter of sampled value 1 is actually a statistical adder for counting the number of "1" in the N-bit binary data.
采样值0个数统计器由与采样值1个数统计器的结构与组成相同的统计加法器和N位反相器组成;N位反相器的输入是N位序列数据X1,输出为N位反相序列数据。图9为N=5时采样值0个数统计器的实施例。采样值0个数统计器的功能是,输出的采样值0个数统计值Y2为输入的N位序列数据X1中“0”的个数的数量值。图9中,采样值0个数统计器包括由5个反相器FN1、FN2、FN3、FN4、FN5组成的5位反相器和3个1位全加器FA4、FA5、FA6组成的统计加法器,5位反相器的功能是将5位序列数据X1的x11、x12、x13、x14、x15一一反相,把对“0”的个数进行统计转换为对“1”的个数进行统计。图9中的1位全加器也包括有1位加数输入端A、1位加数输入端B、进位输入端Ci,以及1位结果输出端S、1位进位输出端Co。1位全加器FA4实现x11、x12、x13中“0”的个数的统计,m2、m1为FA4的2位二进制统计结果输出。2个1位全加器FA5、FA6组成2位二进制加法器,FA5、FA6将m2、m1作为一个加数,将x14作为另外一个加数,将作为低位进位进行相加,得到3位二进制输出y23、y22、y21,y23、y22、y21即为采样值0个数统计值Y2;将作为另外一个加数时,另外一个加数从FA6的B端输入的高位为0。连接至采样值0个数统计器的输入端时,x11、x12、x13、x14、x15的连接位置可以相互任意互换。The sampling value 0 counting device is composed of a statistical adder and an N-bit inverter having the same structure and composition as the sampling value 1 counting device; the input of the N-bit inverter is N-bit sequence data X1, and the output is N Bit reverse sequence data. FIG. 9 is an embodiment of a statistic device for sampling value 0 when N=5. The function of the sample value 0 count counter is that the output sample value 0 count value Y2 is the quantity value of the number of "0"s in the input N-bit sequence data X1. In Fig. 9, the statistic device for sampling value 0 includes a 5-bit inverter composed of 5 inverters FN1, FN2, FN3, FN4, FN5 and three 1-bit full adders FA4, FA5, FA6. The function of the adder and the 5-bit inverter is to invert x11, x12, x13, x14, and x15 of the 5-bit sequence data X1 one by one, and convert the statistics of the number of "0" into the number of "1". number for statistics. The 1-bit full adder in FIG. 9 also includes a 1-bit addend input terminal A, a 1-bit addend input terminal B, a carry input terminal Ci, a 1-bit result output terminal S, and a 1-bit carry output terminal Co. The 1-bit full adder FA4 realizes the statistics of the number of "0" in x11, x12, and x13, and m2 and m1 are the 2-bit binary statistics output of FA4. Two 1-bit full adders FA5 and FA6 form a 2-bit binary adder. FA5 and FA6 use m2 and m1 as an addend, and x14 as another addend. As a low-order carry, it is added to obtain 3-bit binary output y23, y22, y21, y23, y22, y21 are the statistical value Y2 of the sampling value 0; As another addend, the high bit of another addend input from the B terminal of FA6 is 0. When connected to the input terminal of the sampling value 0 counter, the connection positions of x11, x12, x13, x14, and x15 can be interchanged arbitrarily.
还可以采用其他的电路形式来实现采样值1个数统计器和的采样值0个数统计器功能中的1位加法器功能,例如,采用超前进位集成4位加法器74HC283,或者是4位二进制并行进位全加器CD4008,或者是3位串行加法器CD4032,或者是门电路组成的组合逻辑电路替换图8、图9中的全部或者部分1位加法器。Other circuit forms can also be used to realize the 1-bit adder function in the sampled value 1 count counter and the sampled value 0 count counter function, for example, use the look-ahead carry integrated 4-bit adder 74HC283, or 4 Bit binary parallel carry full adder CD4008, or 3-bit serial adder CD4032, or a combinational logic circuit composed of gate circuits replaces all or part of the 1-bit adder in Fig. 8 and Fig. 9 .
图10为N=5时比较阈值设定器和第一数值比较器的实施例,图10中,比较阈值设定器由3位二进制拨码开关SW1组成,+VCC为供电电源,GND为公共地,其3位二进制输出y03、y02、y01组成比较阈值Y0。由于N=5,Y0只能在3、4、5中取值,本实施例中,比较阈值Y0取值为4,即y03、y02、y01的取值为1、0、0。比较阈值设定器可以由多位二进制拨码开关,或者是BCD拨码开关,或者是多个普通开关加上拉电阻,或者是控制0、1输出的多个上拉电阻及电路短接点,以及其他能够输出多位二进制设定值的电路组成。Figure 10 is an embodiment of the comparison threshold setter and the first numerical comparator when N=5. In Figure 10, the comparison threshold setter is made up of 3 binary dial switches SW1, +VCC is the power supply, and GND is the common Specifically, its 3-bit binary output y03, y02, y01 constitutes the comparison threshold Y0. Since N=5, Y0 can only take values among 3, 4, and 5. In this embodiment, the comparison threshold Y0 takes a value of 4, that is, the values of y03, y02, and y01 are 1, 0, and 0. The comparison threshold setter can be composed of multi-digit binary dial switches, or BCD dial switches, or multiple ordinary switches plus pull-up resistors, or multiple pull-up resistors and circuit short contacts for controlling 0 and 1 outputs. And other circuits capable of outputting multi-bit binary set values.
图10中由四位二进制数值比较器FC1和或门FO1组成第一数值比较器,FC1的型号为74HC85。采样值1个数统计值Y1的3位二进制输出y13、y12、y11分别连接至FC1的A2、A1、A0输入端,比较阈值Y0的3位二进制输出y03、y02、y01分别连接至FC1的B2、B1、B0输入端,输入端A3、B3均接0。FC1的输入端A>B IN和A<B IN均接0,输入端A=B IN接1。FC1的输出端A>BOUT、A=B OUT分别连接至或门FO1的输入端,或门FO1的输出端为第一置位信号SE1。图10中第一数值比较器实现的功能是,当采样值1个数统计值Y1大于等于比较阈值Y0时,输出SE1为高电平,否则SE1为低电平。图10中SE1为高电平有效;将或门FO1改为或非门,则SE1为低电平有效。In Fig. 10, the first numerical comparator is composed of a four-bit binary numerical comparator FC1 and an OR gate FO1, and the model of FC1 is 74HC85. The 3-bit binary output y13, y12, y11 of the statistical value Y1 of the sampling value 1 is respectively connected to the A2, A1, A0 input terminals of FC1, and the 3-bit binary output y03, y02, y01 of the comparison threshold Y0 are respectively connected to the B2 of FC1 , B1, B0 input terminals, input terminals A3, B3 are all connected to 0. The input terminals A>B IN and A<B IN of FC1 are both connected to 0, and the input terminal A=B IN is connected to 1. The output terminals A>BOUT and A=B OUT of FC1 are respectively connected to the input terminals of the OR gate FO1, and the output terminal of the OR gate FO1 is the first set signal SE1. The function realized by the first numerical comparator in FIG. 10 is that when the statistical value Y1 of the sampling value 1 is greater than or equal to the comparison threshold Y0, the output SE1 is high level, otherwise SE1 is low level. In Figure 10, SE1 is active at high level; if the OR gate FO1 is changed to a NOR gate, SE1 is active at low level.
当N值较大时,可以选择2片或者多片74HC85组成多位二进制数值比较器实现第一数值比较器的功能;也可以采用1片或者多片四位二进制数值比较器CD4063实现第一数值比较器的功能,或者是采用其他组合逻辑电路来实现第一数值比较器的功能。第二数值比较器的实现原理与第一数值比较器相同,其功能是,当采样值0个数统计值Y2大于等于比较阈值Y0时,输出RE1为高电平,否则RE1为低电平;RE1为高电平有效。RE1也可以选择低电平有效。When the value of N is large, you can choose two or more pieces of 74HC85 to form a multi-bit binary value comparator to realize the function of the first value comparator; you can also use one or more pieces of four-bit binary value comparator CD4063 to realize the first value The function of the comparator, or use other combinational logic circuits to realize the function of the first numerical comparator. The implementation principle of the second numerical comparator is the same as that of the first numerical comparator, and its function is that when the statistical value Y2 of the sampling value 0 is greater than or equal to the comparison threshold Y0, the output RE1 is high level, otherwise RE1 is low level; RE1 is active high. RE1 can also be selected to be active low.
图11为RS触发器实施例。图11中,或非门FO2、FO3组成RS触发器,第一置位信号SE1和第二置位信号RE1均高电平有效。当SE1有效、RE1无效时,将从同相输出端FO3输出的抗干扰输出脉冲Pout置为1;SE1无效、RE1有效时,将抗干扰输出脉冲Pout置为0;当SE1和RE1均无效时,抗干扰输出脉冲Pout的状态不变。RS触发器也可以采用其他形式的RS触发器。Figure 11 is an embodiment of the RS flip-flop. In FIG. 11 , the NOR gates FO2 and FO3 form an RS flip-flop, and both the first set signal SE1 and the second set signal RE1 are active high. When SE1 is valid and RE1 is invalid, set the anti-jamming output pulse Pout output from the non-inverting output terminal FO3 to 1; when SE1 is invalid and RE1 is valid, set the anti-jamming output pulse Pout to 0; when both SE1 and RE1 are invalid, The state of the anti-jamming output pulse Pout remains unchanged. The RS flip-flop can also adopt other forms of RS flip-flops.
图11中,抗干扰输出脉冲Pout与抗干扰输入脉冲Pin之间为同相关系。如果抗干扰输出脉冲Pout改为从或非门反相输出端FO2输出,则功能改变为,当SE1有效、RE1无效时,将抗干扰输出脉冲Pout置为0;当SE1无效、RE1有效时,将抗干扰输出脉冲Pout置为1;当SE1和RE1均无效时,抗干扰输出脉冲Pout的状态不变;此时抗干扰输出脉冲Pout与抗干扰输入脉冲Pin之间为反相关系。In FIG. 11 , the anti-jamming output pulse Pout and the anti-jamming input pulse Pin are in-phase. If the anti-jamming output pulse Pout is changed to be output from the inverting output terminal FO2 of the NOR gate, the function is changed to, when SE1 is valid and RE1 is invalid, the anti-jamming output pulse Pout is set to 0; when SE1 is invalid and RE1 is valid, Set the anti-jamming output pulse Pout to 1; when both SE1 and RE1 are invalid, the state of the anti-jamming output pulse Pout remains unchanged; at this time, the relationship between the anti-jamming output pulse Pout and the anti-jamming input pulse Pin is inverse.
图12为压控振荡器实施例。图12中,CMOS非门FN6和FN7、电阻R91、电阻R92、电容C91、电容C92组成压控多谐振荡器;非门FN8起输出脉冲整形作用,采样时钟脉冲CPK从FN8的输出端输出。CPK的基础频率可以通过电阻R91、电阻R92、电容C91、电容C92的值来改变,同时,CPK的振荡频率会根据输入的频率控制电压UK大小自适应调节,当UK增大时,其通过电阻R91、电阻R92对电容C91、电容C92的充放电速度加快,CPK频率增大;当UK减小时,其通过电阻R91、电阻R92对电容C91、电容C92的充放电速度变慢,CPK频率减小。压控振荡器还可以采用其他类型的多谐压控振荡器来实现。Fig. 12 is an embodiment of a voltage controlled oscillator. In Figure 12, CMOS NOT gates FN6 and FN7, resistors R91, resistors R92, capacitor C91, and capacitor C92 form a voltage-controlled multivibrator; the NOT gate FN8 plays the role of output pulse shaping, and the sampling clock pulse CPK is output from the output terminal of FN8. The basic frequency of CPK can be changed by the value of resistor R91, resistor R92, capacitor C91, and capacitor C92. At the same time, the oscillation frequency of CPK will be adjusted adaptively according to the input frequency control voltage UK. When UK increases, it passes through the resistor R91 and resistor R92 charge and discharge capacitor C91 and capacitor C92 faster, and CPK frequency increases; when UK decreases, the resistor R91 and resistor R92 charge and discharge capacitor C91 and capacitor C92 slower, and CPK frequency decreases . The voltage-controlled oscillator can also be realized by using other types of multivibrator voltage-controlled oscillators.
图13为图书传输电机速度变换单元实施例,图书传输电机速度变换单元将图书传输电机速度n转换为频率控制电压UK。图13中,F71为传输速度传感器,F71将图书传输电机速度n转换为电压Un输出。运放F72及电阻R76、电阻R77、电阻R78、电阻R79组成零值调整电路,频率控制电压UK从运放F72输出端输出。零值调整电路的作用之一是通过改变输入的零值调整电压VREF,将图书传输电机速度n的最小速度(通常为0)对应的频率控制电压UK调整为非0值,当UK用于图12电路进行振荡频率控制时,UK的最小电压值必须大于非门FN6和FN7的输入阈值电压;二是提高频率控制电压UK的驱动能力。图书传输电机速度n范围对应的频率控制电压UK范围通过调整传输速度传感器F71参数、零值调整电路参数和零值调整电压VREF来进行。图13实施例中,当图书传输电机速度n增大时,输出的频率控制电压UK增大,控制图12中输出的CPK频率增大;图书传输电机速度n减小时,输出的频率控制电压UK减小,控制图12中输出的CPK频率减小。图书传输电机速度n正比于图书传输带的运行速度。传输速度传感器可以选择直流测速电机,或者是选择其他能够输出直流电压的转速检测方法,例如,采用F-V方法,利用霍尔元件将速度转换为与速度成比例的频率信号,再将脉冲频率转换为直流电压输出。Fig. 13 is an embodiment of the speed conversion unit of the book transmission motor. The speed conversion unit of the book transmission motor converts the speed n of the book transmission motor into the frequency control voltage UK. In Fig. 13, F71 is a transmission speed sensor, and F71 converts the speed n of the book transmission motor into a voltage Un for output. The operational amplifier F72 and the resistors R76, R77, R78 and R79 form a zero value adjustment circuit, and the frequency control voltage UK is output from the output terminal of the operational amplifier F72. One of the functions of the zero value adjustment circuit is to adjust the frequency control voltage UK corresponding to the minimum speed (usually 0) of the book transmission motor speed n to a non-zero value by changing the input zero value adjustment voltage VREF. 12. When the circuit controls the oscillation frequency, the minimum voltage value of UK must be greater than the input threshold voltage of the NOT gates FN6 and FN7; the second is to improve the driving ability of the frequency control voltage UK. The frequency control voltage UK range corresponding to the speed n range of the book transmission motor is adjusted by adjusting the parameters of the transmission speed sensor F71, the zero value adjustment circuit parameters and the zero value adjustment voltage VREF. In the embodiment of Figure 13, when the book transmission motor speed n increases, the output frequency control voltage UK increases, and the output CPK frequency in Figure 12 is controlled to increase; when the book transmission motor speed n decreases, the output frequency control voltage UK Decrease, control the output CPK frequency in Figure 12 to decrease. The speed n of the book transmission motor is proportional to the running speed of the book transmission belt. The transmission speed sensor can choose a DC speed measuring motor, or choose other speed detection methods that can output DC voltage, for example, using the F-V method, using the Hall element to convert the speed into a frequency signal proportional to the speed, and then convert the pulse frequency into DC voltage output.
上述N=5的干扰脉冲过滤电路实施例中,比较阈值Y0取值为4。当采样值1个数统计值Y1大于等于4时,输出SE1为高电平,将抗干扰输出脉冲Pout置为1,其实质是,当5位序列数据X1中“1”的个数大于等于4时,输出SE1为高电平,将抗干扰输出脉冲Pout置为1;当采样值0个数统计值Y2大于等于4时,输出RE1为高电平,将抗干扰输出脉冲Pout置为0,其实质是,当5位序列数据X1中“0”的个数大于等于4时,输出RE1为高电平,将抗干扰输出脉冲Pout置为0。由于比较阈值Y0为大于N/2且小于等于N的整数,第一置位信号SE1和第二置位信号RE1不可能同时有效,因此,RS触发器的输出不会出现逻辑状态不确定的情况。In the above embodiment of the interference pulse filtering circuit with N=5, the comparison threshold Y0 takes a value of 4. When the statistical value Y1 of the sampling value 1 is greater than or equal to 4, the output SE1 is high level, and the anti-interference output pulse Pout is set to 1. The essence is that when the number of "1" in the 5-bit sequence data X1 is greater than or equal to 4, the output SE1 is high level, and the anti-interference output pulse Pout is set to 1; when the sampling value is 0 and the statistical value Y2 is greater than or equal to 4, the output RE1 is high level, and the anti-interference output pulse Pout is set to 0 , its essence is that when the number of "0" in the 5-bit sequence data X1 is greater than or equal to 4, the output RE1 is high level, and the anti-jamming output pulse Pout is set to 0. Since the comparison threshold Y0 is an integer greater than N/2 and less than or equal to N, the first set signal SE1 and the second set signal RE1 cannot be valid at the same time, therefore, the output of the RS flip-flop will not have an uncertain logic state .
图14为N=5时干扰脉冲过滤电路抗干扰效果示意图。图14中给出了15个采样时钟脉冲CPK对抗干扰输入脉冲Pin的采样结果,以及得到的抗干扰输出脉冲Pout。设在图14中CPK的采样点1之前得到的5个序列数据X1采样值均为0,抗干扰输出脉冲Pout为0。图14中,抗干扰输入脉冲Pin在CPK的采样点3前至采样点4后出现了正脉冲干扰,导致X1在采样点3、采样点4采样得到干扰采样值1;抗干扰输入脉冲Pin在CPK的采样点5至采样点6之间出现了正窄脉冲干扰,但该正窄脉冲宽度小于采样周期且处于2个采样点之间,未影响序列数据X1的采样结果,即采样过程自动滤除了该正窄脉冲干扰。抗干扰输入脉冲Pin在CPK的采样点8之后开始从0变1,从0变1过程中出现了2次边沿抖动,其中的第2个正窄脉冲抖动干扰被采样过程自动滤除,采样点9、采样点10的值分别为1、0。图14中,序列数据X1在时钟脉冲CPK的采样点1至采样点15得到的采样值是0 0 1 1 0 0 0 0 1 0 1 1 1 1 1。设Y0取值为4,观察几个采样点的情况,在采样点3,Y1等于1,Y2等于4,RE1有效,Pout为0;在采样点4,Y1等于2,Y2等于3,SE1、RE1均无效,Pout维持为0;在采样点5,Y1等于2,Y2等于3,SE1、RE1均无效,Pout维持为0;在采样点6,Y1等于2,Y2等于3,SE1、RE1均无效,Pout维持为0;在采样点7,Y1等于2,Y2等于3,SE1、RE1均无效,Pout维持为0;在采样点8,Y1等于1,Y2等于4,RE1有效,Pout为0;在采样点12,Y1等于3,Y2等于2,SE1、RE1均无效,Pout维持为0;在采样点13,Y1等于4,Y2等于1,SE1有效,Pout为1;显然,在连续的5个序列数据X1值中,直到图14的采样点13,才满足5位序列数据X1中“1”的个数大于等于4的条件,第一置位信号SE1有效,抗干扰输出脉冲Pout由0变1。在采样点14至采样点15,均满足X1中“1”的个数大于等于4的条件,第一置位信号SE1维持有效。FIG. 14 is a schematic diagram of the anti-interference effect of the interference pulse filter circuit when N=5. Fig. 14 shows the sampling results of 15 sampling clock pulses CPK anti-jamming input pulse Pin and the obtained anti-jamming output pulse Pout. Assume that the sampling values of the five sequence data X1 obtained before the sampling point 1 of CPK in Fig. 14 are all 0, and the anti-jamming output pulse Pout is 0. In Figure 14, the anti-jamming input pulse Pin has a positive pulse interference before sampling point 3 of CPK and after sampling point 4, resulting in X1 sampling at sampling point 3 and sampling point 4 to obtain the interference sampling value 1; the anti-jamming input pulse Pin is at Positive narrow pulse interference appears between sampling point 5 and sampling point 6 of CPK, but the positive narrow pulse width is less than the sampling period and is between two sampling points, which does not affect the sampling result of sequence data X1, that is, the sampling process automatically filters Except for this positive narrow pulse interference. The anti-interference input pulse Pin starts to change from 0 to 1 after sampling point 8 of CPK, and there are 2 edge jitters in the process of changing from 0 to 1, and the second positive narrow pulse jitter interference is automatically filtered out by the sampling process, and the sampling point 9. The values of sampling point 10 are 1 and 0 respectively. In FIG. 14 , the sampled values obtained by the sequence data X1 at the sampling point 1 to the sampling point 15 of the clock pulse CPK are 0 0 1 1 0 0 0 0 1 0 1 1 1 1 1. Set the value of Y0 to 4, and observe the situation of several sampling points. At sampling point 3, Y1 is equal to 1, Y2 is equal to 4, RE1 is valid, and Pout is 0; at sampling point 4, Y1 is equal to 2, Y2 is equal to 3, SE1, RE1 is invalid, and Pout remains at 0; at sampling point 5, Y1 is equal to 2, Y2 is equal to 3, SE1 and RE1 are both invalid, and Pout remains at 0; at sampling point 6, Y1 is equal to 2, Y2 is equal to 3, and SE1 and RE1 are both Invalid, Pout remains at 0; at sampling point 7, Y1 is equal to 2, Y2 is equal to 3, SE1 and RE1 are invalid, and Pout remains at 0; at sampling point 8, Y1 is equal to 1, Y2 is equal to 4, RE1 is valid, and Pout is 0 ; At sampling point 12, Y1 is equal to 3, Y2 is equal to 2, SE1 and RE1 are invalid, and Pout remains 0; at sampling point 13, Y1 is equal to 4, Y2 is equal to 1, SE1 is valid, and Pout is 1; obviously, in continuous Among the 5 sequence data X1 values, until the sampling point 13 in Figure 14, the condition that the number of "1" in the 5-bit sequence data X1 is greater than or equal to 4 is satisfied, the first set signal SE1 is valid, and the anti-jamming output pulse Pout is set by 0 becomes 1. From sampling point 14 to sampling point 15, the condition that the number of “1” in X1 is greater than or equal to 4 is satisfied, and the first set signal SE1 remains valid.
图14给出的是干扰脉冲过滤电路在抗干扰输入脉冲Pin为0时的抗正脉冲干扰效果,以及抗干扰输入脉冲Pin由0变为1的条件与过程。由于电路的对称性,干扰脉冲过滤电路在抗干扰输入脉冲Pin为1时的抗负脉冲干扰效果,以及抗干扰输入脉冲Pin由1变为0的条件与过程,与抗干扰输入脉冲Pin为0时的抗正脉冲干扰效果,以及抗干扰输入脉冲Pin由0变为1的条件与过程相同。设在采样时钟脉冲CPK的采样点31之前CPK对抗干扰输入脉冲Pin的5个采样值均为1,抗干扰输出脉冲Pout为1;采样点31至采样点45采样得到的N位序列数据X1、采样值1个数统计值Y1和抗干扰输出脉冲Pout见表1,采样值0个数统计值Y2等于5-Y1(5减去Y1)。Figure 14 shows the anti-positive pulse interference effect of the interference pulse filter circuit when the anti-interference input pulse Pin is 0, and the conditions and process for the anti-interference input pulse Pin to change from 0 to 1. Due to the symmetry of the circuit, the anti-negative pulse interference effect of the interference pulse filter circuit when the anti-interference input pulse Pin is 1, and the conditions and process of the anti-interference input pulse Pin changing from 1 to 0 are the same as the anti-interference input pulse Pin is 0 The anti-positive pulse interference effect, and the conditions for the anti-interference input pulse Pin to change from 0 to 1 are the same as the process. Assuming that the five sampling values of the CPK anti-jamming input pulse Pin before the sampling point 31 of the sampling clock pulse CPK are all 1, the anti-jamming output pulse Pout is 1; the N-bit sequence data X1 obtained by sampling from the sampling point 31 to the sampling point 45, The statistical value Y1 of sampling value 1 and the anti-jamming output pulse Pout are shown in Table 1, and the statistical value Y2 of sampling value 0 is equal to 5-Y1 (5 minus Y1).
表1采样点31-45的N位序列数据X1、采样值1个数统计值Y1和抗干扰输出脉冲PoutTable 1 N-bit sequence data X1 of sampling points 31-45, statistical value Y1 of sampling value 1 and anti-interference output pulse Pout
观察表1中采样点的情况,在采样点31-32,Y1大于等于Y0,SE1有效,RE1无效,抗干扰输出脉冲Pout被置为1;在采样点33-41,Y1小于Y0且Y2小于Y0,SE1、RE1均无效,抗干扰输出脉冲Pout维持为1;在采样点42-45,Y2大于等于Y0,RE1有效,SE1无效,抗干扰输出脉冲Pout被置为0。Observe the sampling points in Table 1. At sampling points 31-32, Y1 is greater than or equal to Y0, SE1 is valid, RE1 is invalid, and the anti-interference output pulse Pout is set to 1; at sampling points 33-41, Y1 is less than Y0 and Y2 is less than Y0, SE1, and RE1 are all invalid, and the anti-jamming output pulse Pout remains 1; at sampling points 42-45, Y2 is greater than or equal to Y0, RE1 is valid, SE1 is invalid, and the anti-jamming output pulse Pout is set to 0.
以抗干扰输出脉冲Pout与抗干扰输入脉冲Pin之间为同相关系为例做进一步的说明。干扰脉冲过滤电路的工作过程是,当Y1≥Y0,即N位序列数据X1中“1”的个数大于等于Y0时,将抗干扰输出脉冲Pout置为1;当Y2≥Y0,即N位序列数据X1中“0”的个数大于等于Y0时,将抗干扰输出脉冲Pout置为0。由于比较阈值Y0为大于N/2且小于等于N的整数,因此,N位序列数据X1中“1”的个数大于等于Y0和N位序列数据X1中“0”的个数大于等于Y0这2个条件不会同时得到满足。抗干扰输入脉冲Pin、抗干扰输出脉冲Pout均为0时,在连续N次采样中,只要单个或者多个正脉冲干扰形成的采样结果未造成N位序列数据X1中“1”的个数大于等于Y0,则抗干扰输出脉冲Pout不会变为1;抗干扰输入脉冲Pin、抗干扰输出脉冲Pout均为1时,在连续N次采样中,只要单个或者多个负脉冲干扰形成的采样结果未造成N位序列数据X1中“0”的个数大于等于Y0,则抗干扰输出脉冲Pout不会变为0。当Pin、Pout都为低电平时,只要在Pin中出现的正脉冲使连续N个Pin采样值中有大于等于Y0个为1时,能够从Pout输出与该Pin中正脉冲相对应的正脉冲;当Pin、Pout都为高电平时,只要在Pin中出现的负脉冲使连续N个Pin采样值中有大于等于Y0个为0时,能够从Pout输出与该Pin中负脉冲相对应的负脉冲。当抗干扰输入脉冲Pin已经由0变为1,或者是由1变为0之后,抗干扰输出脉冲Pout需要在N位序列数据X1中“1”的个数大于等于Y0,或者是N位序列数据X1中“0”的个数大于等于Y0条件满足之后,才将抗干扰输出脉冲Pout从0变1,或者是将抗干扰输出脉冲Pout从1变0,有几个采样脉冲周期的延迟。当Y0在取值范围内取值变大时,干扰脉冲过滤电路将抗干扰输出脉冲Pout从0变1,以及从1变0的条件更加苛刻,抗干扰效果更好,但抗干扰输出脉冲Pout相对于抗干扰输入脉冲Pin的延迟时间越大;当Y0在取值范围内取值变小时,干扰脉冲过滤电路将抗干扰输出脉冲Pout从0变1,以及从1变0的条件变宽,抗干扰效果变小,但抗干扰输出脉冲Pout相对于抗干扰输入脉冲Pin的延迟时间变小。当N的取值变大时,干扰脉冲过滤电路将抗干扰输出脉冲Pout从0变1,以及从1变0的条件变严格,抗干扰效果变好,但抗干扰输出脉冲Pout相对于抗干扰输入脉冲Pin的延迟时间变大;当N的取值变小时,干扰脉冲过滤电路将抗干扰输出脉冲Pout从0变1,以及从1变0的条件变宽,抗干扰效果变小,但抗干扰输出脉冲Pout相对于抗干扰输入脉冲Pin的延迟时间变小。Taking the anti-jamming output pulse Pout and the anti-jamming input pulse Pin as an example as an example for further description. The working process of the interference pulse filter circuit is that when Y1≥Y0, that is, when the number of "1" in the N-bit sequence data X1 is greater than or equal to Y0, the anti-interference output pulse Pout is set to 1; when Y2≥Y0, that is, the N-bit When the number of "0" in the sequence data X1 is greater than or equal to Y0, the anti-jamming output pulse Pout is set to 0. Since the comparison threshold Y0 is an integer greater than N/2 and less than or equal to N, the number of "1"s in the N-bit sequence data X1 is greater than or equal to Y0 and the number of "0"s in the N-bit sequence data X1 is greater than or equal to Y0 The 2 conditions will not be met at the same time. When the anti-jamming input pulse Pin and the anti-jamming output pulse Pout are both 0, in consecutive N times of sampling, as long as the sampling result formed by single or multiple positive pulse interference does not cause the number of "1" in the N-bit sequence data X1 to be greater than Equal to Y0, the anti-jamming output pulse Pout will not become 1; when the anti-jamming input pulse Pin and anti-jamming output pulse Pout are both 1, in N consecutive sampling, as long as the sampling result formed by single or multiple negative pulse interference If the number of "0"s in the N-bit sequence data X1 is not greater than or equal to Y0, the anti-jamming output pulse Pout will not become 0. When both Pin and Pout are at low level, as long as the positive pulse appearing in the Pin makes Y0 out of the N continuous Pin sampling values be 1, the positive pulse corresponding to the positive pulse in the Pin can be output from Pout; When both Pin and Pout are at high level, as long as the negative pulse that appears in the Pin makes Y0 out of the consecutive N pin sampling values be 0, the negative pulse corresponding to the negative pulse in the Pin can be output from Pout . When the anti-jamming input pulse Pin has changed from 0 to 1, or from 1 to 0, the anti-jamming output pulse Pout needs to have the number of "1" in the N-bit sequence data X1 greater than or equal to Y0, or an N-bit sequence After the number of "0" in the data X1 is greater than or equal to the Y0 condition, the anti-jamming output pulse Pout is changed from 0 to 1, or the anti-jamming output pulse Pout is changed from 1 to 0, and there is a delay of several sampling pulse periods. When the value of Y0 becomes larger within the value range, the interference pulse filter circuit changes the anti-interference output pulse Pout from 0 to 1, and the conditions for changing from 1 to 0 are more stringent, and the anti-interference effect is better, but the anti-interference output pulse Pout The greater the delay time relative to the anti-interference input pulse Pin; when the value of Y0 becomes smaller within the value range, the interference pulse filtering circuit will change the anti-interference output pulse Pout from 0 to 1, and the conditions from 1 to 0 will be widened, The anti-jamming effect becomes smaller, but the delay time of the anti-jamming output pulse Pout relative to the anti-jamming input pulse Pin becomes smaller. When the value of N becomes larger, the interference pulse filter circuit will change the anti-interference output pulse Pout from 0 to 1, and the condition from 1 to 0 will become stricter, and the anti-interference effect will become better, but the anti-interference output pulse Pout is relatively weaker than the anti-interference The delay time of the input pulse Pin becomes longer; when the value of N becomes smaller, the interference pulse filter circuit will change the anti-interference output pulse Pout from 0 to 1, and the condition from 1 to 0 will be wider, and the anti-interference effect will become smaller, but the anti-interference The delay time of the disturbance output pulse Pout relative to the anti-disturbance input pulse Pin becomes smaller.
采样时钟脉冲的周期要根据抗干扰输入脉冲Pin的脉冲宽度、变化速度和干扰脉冲的宽度确定。由于还回来的图书形状不一,且有折角、变形等情况,通过光电开关时,可能在计数脉冲的前沿、后沿产生抖动干扰窄脉冲;图书传输带的运行速度在0.2m/s至1.2m/s之间变化,形成的有效计数脉冲宽度在10ms至100ms,而产生的窄干扰脉冲小于相应有效计数脉冲宽度的十分之一。因此,压控振荡器选择采样时钟脉冲的周期在1ms至10ms之间变化,N在3至7范围内取值。The period of the sampling clock pulse shall be determined according to the pulse width of the anti-interference input pulse Pin, the change speed and the width of the interference pulse. Due to the different shapes of the returned books, and there are bending angles and deformations, when passing through the photoelectric switch, a narrow pulse of jitter interference may be generated at the leading edge and trailing edge of the counting pulse; the running speed of the book conveyor belt is between 0.2m/s and 1.2 The m/s varies, and the effective counting pulse width formed is from 10ms to 100ms, while the narrow interference pulse generated is less than one-tenth of the corresponding effective counting pulse width. Therefore, the period of the sampling clock pulse selected by the voltage-controlled oscillator varies between 1 ms and 10 ms, and N takes a value in the range of 3 to 7.
M个计数脉冲获取单元中均有干扰脉冲过滤电路,所有干扰脉冲过滤电路中的移位寄存器、采样值1个数统计器、采样值0个数统计器、比较阈值设定器、第一数值比较器、第二数值比较器、RS触发器、压控振荡器中的全部,或者是部分功能可以采用PAL、GAL、CPLD、FPGA,或者是其他可编程逻辑器件、逻辑单元来实现。There are interference pulse filtering circuits in the M counting pulse acquisition units, and all the shift registers in the interference pulse filtering circuits, the counting device for sampling value 1, the counting device for sampling value 0, the comparison threshold value setter, and the first numerical value All or some of the functions of the comparator, the second numerical comparator, the RS flip-flop, and the voltage-controlled oscillator can be realized by PAL, GAL, CPLD, FPGA, or other programmable logic devices and logic units.
图15为图书自动分检控制系统实施例的自动分检流程,由控制器单元10中的程序来实现。实施例的控制器单元10为可编程序控制器。实施例图书自动分检方法的步骤是:FIG. 15 is the automatic sorting process of the embodiment of the automatic book sorting control system, which is realized by the program in the controller unit 10 . The controller unit 10 of the embodiment is a programmable controller. The steps of embodiment book automatic sorting method are:
步骤1、初始化;包括控制器单元10相关功能部件的初始化,发出传输控制信息K0送至图书传输驱动单元18,控制图书传输带以指定的速度的运行等;Step 1, initialization; including the initialization of the relevant functional parts of the controller unit 10, sending the transmission control information K0 to the book transmission drive unit 18, controlling the operation of the book transmission belt at a specified speed, etc.;
步骤2、读取且根据图书类别信息识别单元11发送的信息,判断图书分类分部2是否有图书经过;没有图书经过,转至步骤4;有图书经过,转至步骤3;Step 2, read and according to the information sent by the book category information identification unit 11, judge whether the book classification branch 2 has passed the book; if there is no book passed, go to step 4; if there is a book passed, go to step 3;
步骤3、记录当前通过的图书的图书类别信息,记录该图书的传输计时起始时刻;Step 3. Record the book category information of the currently passed book, and record the transmission timing start time of the book;
步骤4、判断第一分检分部是否进行了图书计数;第一分检分部没有进行图书计数,转至步骤7;进行了图书计数,转至步骤5;Step 4. Determine whether the first sorting branch has counted books; if the first sorting branch has not counted books, go to step 7; if counting books, go to step 5;
步骤5、根据图书分类分部2中记录的所有图书的传输计时起始时刻以及相关的图书类别信息,判断当前在第一分检分部的图书是否属于第一分检分部;不是第一分检分部的图书,转至步骤7;是第一分检分部的图书,转至步骤6;Step 5. According to the transmission timing start time of all books recorded in the book classification division 2 and the relevant book category information, it is judged whether the books currently in the first sorting division belong to the first sorting division; For books in the sorting division, go to step 7; for books in the first sorting division, go to step 6;
步骤6、首先令第一分检分部的图书挡板控制信号有效,升起第一分检分部的图书挡板;短时延时后,令第一分检分部的图书分检推送气缸控制信号有效,将图书推送至第一分检分部的收集车或者收集蓝;然后恢复第一分检分部的图书挡板控制信号和图书分检推送气缸控制信号为无效;Step 6. First, make the book baffle control signal of the first sorting branch effective, and raise the book baffle of the first sorting branch; after a short time delay, make the book sorting of the first sorting branch push When the cylinder control signal is valid, the book is pushed to the collection vehicle or collection basket of the first sorting branch; then the book baffle control signal and the book sorting push cylinder control signal of the first sorting branch are restored to be invalid;
步骤7、判断第二分检分部是否进行了图书计数;第二分检分部没有进行图书计数,转至步骤10;进行了图书计数,转至步骤8;Step 7, judging whether the second sorting branch has counted books; if the second sorting branch has not counted books, go to step 10; if counting books, go to step 8;
步骤8、根据图书分类分部2中记录的所有图书的传输计时起始时刻以及相关的图书类别信息,判断当前在第二分检分部的图书是否属于第二分检分部;不是第二分检分部的图书,转至步骤10;是第二分检分部的图书,转至步骤9;Step 8, according to the transmission timing start time of all books recorded in the book classification division 2 and the relevant book category information, judge whether the books currently in the second sorting division belong to the second sorting division; For books in the sorting division, go to step 10; for books in the second sorting division, go to step 9;
步骤9、首先令第二分检分部的图书挡板控制信号有效,升起第二分检分部的图书挡板;短时延时后,令第二分检分部的图书分检推送气缸控制信号有效,将图书推送至第二分检分部的收集车或者收集蓝;然后恢复第二分检分部的图书挡板控制信号和图书分检推送气缸控制信号为无效;Step 9. First, make the book baffle control signal of the second sorting branch effective, and raise the book baffle of the second sorting branch; after a short time delay, make the book sorting of the second sorting branch push The cylinder control signal is valid, and the book is pushed to the collection vehicle or collection basket of the second sorting branch; then the book baffle control signal and the book sorting push cylinder control signal of the second sorting branch are restored to be invalid;
步骤10、判断第三分检分部是否进行了图书计数;第三分检分部没有进行图书计数,转至步骤13;进行了图书计数,转至步骤11;Step 10, judging whether the third sorting branch has counted books; if the third sorting branch has not counted books, go to step 13; if counting books, go to step 11;
步骤11、根据图书分类分部2中记录的所有图书的传输计时起始时刻以及相关的图书类别信息,判断当前在第三分检分部的图书是否属于第三分检分部;不是第三分检分部的图书,转至步骤13;是第三分检分部的图书,转至步骤12;Step 11, according to the transmission timing start time of all books recorded in the book classification division 2 and related book category information, determine whether the books currently in the third sorting division belong to the third sorting division; not the third For books in the sorting division, go to step 13; for books in the third sorting division, go to step 12;
步骤12、首先令第三分检分部的图书挡板控制信号有效,升起第三分检分部的图书挡板;短时延时后,令第三分检分部的图书分检推送气缸控制信号有效,将图书推送至第三分检分部的收集车或者收集蓝;然后恢复第三分检分部的图书挡板控制信号和图书分检推送气缸控制信号为无效;Step 12. First, make the book baffle control signal of the third sorting branch effective, and raise the book baffle of the third sorting branch; after a short time delay, make the book sorting of the third sorting branch push When the cylinder control signal is valid, the book is pushed to the collection vehicle or collection basket of the third sorting branch; then the book baffle control signal and the book sorting pushing cylinder control signal of the third sorting branch are restored to be invalid;
步骤13、定时延时固定的时间后,转至步骤2。Step 13. After a fixed time delay, go to step 2.
当图书自动分检控制系统有M个分检分部时,其图书自动分检方法的步骤是:When the book automatic sorting control system has M sorting divisions, the steps of its book automatic sorting method are:
步骤一、初始化;包括控制器单元相关功能部件的初始化,发出传输控制信息送至图书传输驱动单元,控制图书传输带以指定的速度的运行等;Step 1, initialization; including the initialization of the relevant functional parts of the controller unit, sending transmission control information to the book transmission drive unit, controlling the operation of the book transmission belt at a specified speed, etc.;
步骤二、读取且根据图书类别信息识别单元发送的信息,判断图书分类分部是否有图书经过;没有图书经过,转至步骤四;有图书经过,转至步骤三;Step 2. Read and judge whether there are books in the book classification branch according to the information sent by the book category information identification unit; if there are no books, go to step 4; if there are books, go to step 3;
步骤三、记录当前通过的图书的图书类别信息,记录该图书的传输计时起始时刻;Step 3: Record the book category information of the currently passed book, and record the start time of the book's transmission timing;
步骤四、判断第一分检分部是否进行了图书计数;第一分检分部没有进行图书计数,转至步骤七;进行了图书计数,转至步骤五;Step 4. Determine whether the first sorting branch has counted books; if the first sorting branch has not counted books, go to step 7; if counting books, go to step 5;
步骤五、根据图书分类分部中记录的所有图书的传输计时起始时刻以及相关的图书类别信息,判断当前在第一分检分部的图书是否属于第一分检分部;不是第一分检分部的图书,转至步骤七;是第一分检分部的图书,转至步骤六;Step 5. According to the start time of transmission timing of all books recorded in the book classification branch and the relevant book category information, determine whether the books currently in the first sorting branch belong to the first sorting branch; If the book is checked by the branch, go to step seven; if it is the book of the first sorting branch, go to step six;
步骤六、首先令第一分检分部的图书挡板控制信号有效,升起第一分检分部的图书挡板;短时延时后,令第一分检分部的图书分检推送气缸控制信号有效,将图书推送至第一分检分部的收集车或者收集蓝;然后恢复第一分检分部的图书挡板控制信号和图书分检推送气缸控制信号为无效;Step 6. First, make the book baffle control signal of the first sorting branch effective, and raise the book baffle of the first sorting branch; after a short time delay, make the book sorting of the first sorting branch push When the cylinder control signal is valid, the book is pushed to the collection vehicle or collection basket of the first sorting branch; then the book baffle control signal and the book sorting push cylinder control signal of the first sorting branch are restored to be invalid;
步骤七、按照步骤四至步骤六所述的方法,依次对图书在第二分检分部至第M分检分部是否进行了图书计数,以及是否为相应分检分部的图书进行判断与处理;Step 7. According to the method described in step 4 to step 6, whether the books have been counted in the second sorting branch to the Mth sorting branch in turn, and whether they are books in the corresponding sorting branch are judged and processed ;
步骤八、定时延时固定的时间后,转至步骤二。Step 8: After a fixed time delay, go to step 2.
控制器单元除实施例中选择的可编程序控制器外,也可以单片机或者是ARM控制器。根据图书自动分检控制系统的相关控制要求与控制方法,选择可编程序控制器,或者是单片机,或者是ARM控制器。In addition to the programmable controller selected in the embodiment, the controller unit can also be a single-chip microcomputer or an ARM controller. According to the relevant control requirements and control methods of the book automatic sorting control system, choose a programmable logic controller, or a single-chip microcomputer, or an ARM controller.
上述相关分检分部对图书的计数,只用于判断是否有图书进入或者是通过相关的分检分部,不是相关分部图书数量的统计值。自动分检控制系统采用定期巡检的方法进行图书分类与分检,利用计数值的变化判断是否有图书进入或者是通过相关的分检分部,控制器的实时响应需求降低,编程难度下降;能够自动滤除计数脉冲中的窄干扰脉冲,保证了计数值判断的准确性,易于PLC等控制器的编程实现。对各分检分部发出图书分检推送气缸控制信号有效的次数进行计数,可以得到进入该分检分部出口的图书计数值。The counting of books by the above-mentioned relevant sorting divisions is only used to judge whether there are books entering or passing through the relevant sorting divisions, not the statistical value of the number of books in the relevant divisions. The automatic sorting control system adopts the method of regular inspection to classify and sort books, and uses the change of the count value to judge whether there are books entering or passing through the relevant sorting branch, the real-time response requirements of the controller are reduced, and the difficulty of programming is reduced; It can automatically filter out the narrow interference pulses in the counting pulses, which ensures the accuracy of the counting value judgment, and is easy to realize the programming of controllers such as PLC. By counting the number of times that the book sorting push cylinder control signal is valid from each sorting branch, the count value of the books entering the exit of the sorting branch can be obtained.
上述步骤13中或者是步骤八中,定时延时固定的时间,其数值要求小于图书在图书传输带上通过分检分部的脉冲计数处(即计数脉冲产生电路安装处)至同一分检分部的图书挡板处的传输时间,该时间与脉冲计数处(即计数脉冲产生电路安装处)至同一分检分部的图书挡板处的距离,以及当前图书传输带的运行速度有关。图书传输带的当前运行速度由控制器在上述步骤1,或者是步骤一中设定与控制。In the above-mentioned step 13 or in the step eight, the fixed time of timing delay, its numerical value requires less than the pulse counting place (that is, the place where the counting pulse generation circuit is installed) of the book passing through the sorting branch on the book conveyor belt to the same sorting point. The transmission time at the book baffle of the department is related to the distance from the pulse counting place (that is, where the counting pulse generation circuit is installed) to the book baffle of the same sorting branch, and the current running speed of the book conveyor belt. The current running speed of the book transport belt is set and controlled by the controller in the above-mentioned step 1, or step 1.
在上述的步骤5、步骤8、步骤11,以及步骤五中,包括步骤七中隐含的步骤五的方法中,各分检分部根据记录的所有图书的传输计时起始时刻以及相关的图书类别信息,判断当前在该分检分部的图书是否属于该分检分部,其判断方法是,依据图书在图书传输带上从图书分类分部至该分检分部所需要的实际传输时间,推算当前在该分检分部图书传输计时起始时刻;将推算的传输计时起始时刻与记录的、目前在图书传输带上所有图书的传输计时起始时刻进行比较,根据推算时刻与记录时刻相符合图书的图书类别信息判断当前在该分检分部的图书是否属于该分检分部。推算时刻与记录时刻相符合,指的是推算的传输计时起始时刻与记录的、目前在图书传输带上之一图书的传输计时起始时刻之间的误差在容许范围之内的,该误差容许范围根据图书传输及检测的情况进行确定。In the above-mentioned step 5, step 8, step 11, and step 5, including the method of step 5 implied in step 7, each sorting branch counts the starting time of transmission timing and related books according to the recorded transmission time of all books Category information, to judge whether the book currently in the sorting branch belongs to the sorting branch, the judgment method is based on the actual transmission time required for the book from the book classification branch to the sorting branch on the book conveyor belt , to calculate the current starting time of transmission timing of books in the sorting branch; compare the calculated starting time of transmission timing with the recorded starting time of transmission timing of all books currently on the book transmission belt, according to the estimated time and the recorded It is judged whether the book currently in the sorting branch belongs to the sorting branch according to the book category information of the book matching the time. The estimated time coincides with the recorded time, which means that the error between the estimated transmission timing start time and the recorded transmission timing start time of one of the books currently on the book transmission belt is within the allowable range. The allowable range is determined according to the conditions of book transmission and detection.
推算图书的传输计时起始时刻,跟图书从图书分类分部传输至当前分检分部的实际传输时间相关;当前时刻减去实际传输时间,则为推算的传输计时起始时刻。图书从图书分类分部传输至当前分检分部的实际传输时间,与图书经过图书分类分部中的图书类别信息识别单元之处至当前分检分部脉冲计数处(即计数脉冲产生电路安装处)的距离,以及当前图书传输带的运行速度有关,不同分检分部的实际传输时间由控制器单元根据相关距离以及当前图书传输带的运行速度进行计算。The estimated start time of transmission timing for books is related to the actual transmission time of books from the book classification branch to the current sorting branch; the current time minus the actual transmission time is the estimated transmission timing start time. The actual transmission time of the book from the book classification branch to the current sorting branch is the same as the time when the book passes through the book category information identification unit in the book classification branch to the pulse counting place of the current sorting branch (that is, the counting pulse generation circuit is installed The actual transmission time of different sorting branches is calculated by the controller unit according to the relevant distance and the current running speed of the book conveyor.
在上述的步骤6、步骤9、步骤12,以及步骤六中,包括步骤七中隐含的步骤六的方法中,短时延时的具体延时时间值,为分检分部的图书挡板升起后,图书到达该图书挡板的时间值,该值需要根据现场的实际情况进行确定。In the above-mentioned step 6, step 9, step 12, and step 6, including the method of step 6 implied in step 7, the specific delay time value of the short-time delay is the book baffle of the sorting branch After being lifted, the time value for the book to reach the book baffle, this value needs to be determined according to the actual situation on site.
由于信息识别错误、传输阻碍或者是其他原因,图书在各分检分部均未被分类检出时,自动进入图书传输带尾部的收集车或者收集蓝,由工作人员进行相应的处理。Due to incorrect information identification, transmission obstruction or other reasons, when the books are not sorted out in each sorting branch, they will automatically enter the collection cart or collection basket at the end of the book transmission belt, and the staff will handle them accordingly.
除说明书所述的技术特征外,均为本领域技术人员所掌握的常规技术。例如,选择控制器单元的控制器,设计相关的外围控制电路和编制程序实现其功能;设计分检驱动单元相应的驱动电路;选择合适的RFID电子标签读写器,或者是条形码扫描器,或者是二维码扫描器,满足相关图书类别信息读取的要求;根据需要选择合适的变频器和图书传输电机,设计相关驱动电路,满足相关图书图书传输驱动及调速的要求;以及根据实际系统的需求,图书自动分检控制系统可能需要增加电源单元、通信单元、人机界面单元,如何根据需求选择或者设计电源单元,满足图书自动分检控制系统的供电要求,如何根据需求选择或者设计通信单元、人机界面单元,将通信单元、人机界面单元与控制器单元相连接,实现相应的功能;等等,均是本领域技术人员所掌握的常规技术。Except for the technical features described in the description, all are conventional techniques mastered by those skilled in the art. For example, select the controller of the controller unit, design the relevant peripheral control circuit and program to realize its function; design the corresponding drive circuit of the sorting drive unit; select the appropriate RFID electronic tag reader, or barcode scanner, or It is a two-dimensional code scanner, which meets the requirements for reading the relevant book category information; selects the appropriate frequency converter and book transmission motor according to the needs, and designs the relevant drive circuit to meet the requirements of the relevant book transmission drive and speed regulation; and according to the actual system The book automatic sorting control system may need to add a power supply unit, communication unit, and man-machine interface unit. How to select or design a power supply unit according to the demand to meet the power supply requirements of the book automatic sorting control system, and how to select or design the communication unit according to the demand. Unit, man-machine interface unit, connecting communication unit, man-machine interface unit and controller unit to realize corresponding functions; etc., are conventional technologies mastered by those skilled in the art.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711134018.0A CN107741727B (en) | 2017-11-16 | 2017-11-16 | Book Automatic Sorting Control System |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711134018.0A CN107741727B (en) | 2017-11-16 | 2017-11-16 | Book Automatic Sorting Control System |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107741727A CN107741727A (en) | 2018-02-27 |
CN107741727B true CN107741727B (en) | 2019-12-06 |
Family
ID=61233333
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711134018.0A Active CN107741727B (en) | 2017-11-16 | 2017-11-16 | Book Automatic Sorting Control System |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107741727B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108460449A (en) * | 2018-04-28 | 2018-08-28 | 深圳市银河风云网络系统股份有限公司 | Counting device |
CN110090803B (en) * | 2019-05-06 | 2024-07-09 | 深圳市海恒智能科技有限公司 | Book sorting equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102357467A (en) * | 2011-09-16 | 2012-02-22 | 深圳市远望谷信息技术股份有限公司 | Method for sorting book on book sorting line, and apparatus thereof |
CN204842244U (en) * | 2015-06-30 | 2015-12-09 | 广州速昇信息技术有限公司 | Automatic sorting device based on RFID |
CN207787083U (en) * | 2017-11-16 | 2018-08-31 | 湖南工业大学 | A kind of books automatic sorting control system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1249924C (en) * | 2001-09-30 | 2006-04-05 | 中兴通讯股份有限公司 | Shake-removing circuit based on digital lock phase loop |
CN102118103A (en) * | 2011-01-12 | 2011-07-06 | 中电电气集团有限公司 | Smooth narrow pulse compensating method of FPGA in frequency converter |
CN104408835B (en) * | 2014-10-21 | 2018-01-12 | 深圳市易联技术有限公司 | A kind of means for anti-jamming in the communication applied to POS terminal wireline audio |
CN105141286B (en) * | 2015-10-16 | 2018-08-03 | 成都默一科技有限公司 | Filter out the digital filter of one clock period pulse and burr |
CN106656114B (en) * | 2016-10-18 | 2020-04-28 | 上海华虹计通智能系统股份有限公司 | Pulse width measurement method and system for continuous narrow pulses |
-
2017
- 2017-11-16 CN CN201711134018.0A patent/CN107741727B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102357467A (en) * | 2011-09-16 | 2012-02-22 | 深圳市远望谷信息技术股份有限公司 | Method for sorting book on book sorting line, and apparatus thereof |
CN204842244U (en) * | 2015-06-30 | 2015-12-09 | 广州速昇信息技术有限公司 | Automatic sorting device based on RFID |
CN207787083U (en) * | 2017-11-16 | 2018-08-31 | 湖南工业大学 | A kind of books automatic sorting control system |
Also Published As
Publication number | Publication date |
---|---|
CN107741727A (en) | 2018-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102200541B (en) | Method and device for measuring motor speed | |
CN207787083U (en) | A kind of books automatic sorting control system | |
CN107741727B (en) | Book Automatic Sorting Control System | |
CN107976626B (en) | Relay life detection device | |
CN108683368A (en) | A kind of brshless DC motor device | |
CN105043238A (en) | Automobile steering wheel angle sensor and processing method for angle signal | |
CN109283354A (en) | A kind of change M/T speed-measuring method based on incremental optical-electricity encoder | |
CN108181482A (en) | Real-time low-speed detection device based on virtual sine wave | |
CN103368496A (en) | Frequency converter M/T velocity-measuring system and method based on DSP (Digital Signal Processor) | |
CN104482885A (en) | Four-reading-head incremental circular grating coupler | |
CN107966926B (en) | Automatic book sorting control device | |
CN105245203A (en) | High-precision low-speed clock duty cycle detection system and method | |
CN107971238B (en) | Automatic sorting method of books | |
CN106441479A (en) | Counting device for automatically controlling sampling detection of two magnetic sensors with low power consumption | |
CN109765828A (en) | A kind of reluctance type sensors chip sequential control circuit and control method | |
CN207799439U (en) | A kind of books automatic sorting control device | |
CN204392210U (en) | A kind of code signal change-over circuit | |
CN112910337B (en) | Direct current motor angle control circuit based on FPGA (field programmable Gate array) under condition of realizing low-line-number grating | |
CN200972494Y (en) | High precision frequency-measurement phase-measurement circuit | |
CN1776373A (en) | The Phase Detection Circuit of Incremental Rotary Encoder | |
CN111136022B (en) | Multi-stage and multi-directional material sorting control method and computer program product thereof | |
CN209233806U (en) | Filter, processing circuit and chip based on pwm signal | |
CN2859607Y (en) | Grating encoder feedback signal counting device | |
CN114070162A (en) | Low-speed high-precision encoder and control method thereof | |
CN110672175B (en) | High-reliability three-Hall bidirectional metering device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200717 Address after: 221300 Tiefu Street, Tiefu Town, Pizhou City, Jiangsu Province (Cultural Center) Patentee after: PIZHOU TIEFU JIULONG PUBLIC SERVICE Co.,Ltd. Address before: 232200 Democratic constituency of Shiji street, Anfeng Town, Shouxian County, Huainan City, Anhui Province Patentee before: Wang Jingjing Effective date of registration: 20200717 Address after: 232200 Democratic constituency of Shiji street, Anfeng Town, Shouxian County, Huainan City, Anhui Province Patentee after: Wang Jingjing Address before: 412007 science and Technology Department, Hunan University of Technology, 88 West Taishan Road, Zhuzhou, Hunan Patentee before: HUNAN University OF TECHNOLOGY |