CN106444552A - Multi-path quantitative weighing control instrument circuit and control method thereof - Google Patents
Multi-path quantitative weighing control instrument circuit and control method thereof Download PDFInfo
- Publication number
- CN106444552A CN106444552A CN201611074767.4A CN201611074767A CN106444552A CN 106444552 A CN106444552 A CN 106444552A CN 201611074767 A CN201611074767 A CN 201611074767A CN 106444552 A CN106444552 A CN 106444552A
- Authority
- CN
- China
- Prior art keywords
- pin
- module
- arm processor
- channel
- conversion
- 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.)
- Pending
Links
- 238000005303 weighing Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 10
- 238000006243 chemical reaction Methods 0.000 claims abstract description 48
- 238000002955 isolation Methods 0.000 claims abstract description 42
- 238000005070 sampling Methods 0.000 claims abstract description 35
- 238000004891 communication Methods 0.000 claims abstract description 32
- 239000011159 matrix material Substances 0.000 claims description 10
- 239000004973 liquid crystal related substance Substances 0.000 claims description 6
- 230000008878 coupling Effects 0.000 claims description 3
- 238000010168 coupling process Methods 0.000 claims description 3
- 238000005859 coupling reaction Methods 0.000 claims description 3
- 101000823106 Equus caballus Alpha-1-antiproteinase 2 Proteins 0.000 claims description 2
- 101000823108 Equus caballus Alpha-1-antiproteinase 3 Proteins 0.000 claims description 2
- 101000972637 Homo sapiens Protein kintoun Proteins 0.000 claims description 2
- 101100136062 Mycobacterium tuberculosis (strain ATCC 25618 / H37Rv) PE10 gene Proteins 0.000 claims description 2
- 101100136063 Mycobacterium tuberculosis (strain ATCC 25618 / H37Rv) PE11 gene Proteins 0.000 claims description 2
- 101100136064 Mycobacterium tuberculosis (strain ATCC 25618 / H37Rv) PE13 gene Proteins 0.000 claims description 2
- 101150044039 PF12 gene Proteins 0.000 claims description 2
- 102100022660 Protein kintoun Human genes 0.000 claims description 2
- 238000003491 array Methods 0.000 claims description 2
- 239000013078 crystal Substances 0.000 claims description 2
- 210000004027 cell Anatomy 0.000 claims 3
- 238000007599 discharging Methods 0.000 claims 2
- 238000004458 analytical method Methods 0.000 claims 1
- 238000009790 rate-determining step (RDS) Methods 0.000 claims 1
- 230000010354 integration Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 8
- 238000001514 detection method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 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/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
本发明公开了一种多路定量称重控制仪表电路,包括多路输出隔离型DC/DC变换模块、ARM嵌入式系统、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块、RS232/RS485通信模块,所述的ARM嵌入式系统分别连接多路输出隔离型DC/DC变换模块、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块和RS232/RS485通信模块,多路输出隔离型DC/DC变换模块还连接多路AD采样模块和RS232/RS485通信模块,本发明的一种多路定量称重控制仪表电路能够提高称重控制仪表的集成度、稳定性和系统一致性,同时降低了系统组成的成本。本发明还公开了该控制仪表电路的控制方法。
The invention discloses a multi-channel quantitative weighing control instrument circuit, including a multi-channel output isolation type DC/DC conversion module, an ARM embedded system, a multi-channel AD sampling module, an 8-channel digital isolation input module, and a 20-channel digital isolation output module. Module, RS232/RS485 communication module, the ARM embedded system is respectively connected with multi-channel output isolated DC/DC conversion module, multi-channel AD sampling module, 8-way digital isolation input module, 20-way digital isolation output module and RS232/ RS485 communication module, multi-channel output isolation type DC/DC conversion module is also connected with multi-channel AD sampling module and RS232/RS485 communication module, a kind of multi-channel quantitative weighing control instrument circuit of the present invention can improve the integration of weighing control instrument , stability and system consistency, while reducing the cost of system composition. The invention also discloses a control method for the control instrument circuit.
Description
技术领域technical field
本发明涉及一种称重控制仪表,更具体地说,尤其涉及一种多路定量称重控制仪表电路;本发明还涉及该控制仪表电路的控制方法。The invention relates to a weighing control instrument, more specifically, to a multi-channel quantitative weighing control instrument circuit; the invention also relates to a control method of the control instrument circuit.
背景技术Background technique
目前,市场上单路/双路称重控制仪表控制速度与精度都很好,并且已经非常普及。但是在一些包装任务重、时间比较紧迫的情况下,需要多台仪表与多台机器同时工作才能完成。这时,每台仪表的参数不统一,组网复杂,存在稳定性差、操作繁琐、系统集成度低等缺点,尤其是在厂房空间有限时更是难以实现多台机器的存放,并且运营成本较高。因此,亟待发明一种能够同时控制多台仪表的控制装置。At present, the control speed and precision of single-channel/dual-channel weighing control instruments on the market are very good, and they have become very popular. However, in some cases where the packaging tasks are heavy and the time is tight, multiple instruments and multiple machines need to work at the same time to complete. At this time, the parameters of each instrument are not uniform, the networking is complicated, there are disadvantages such as poor stability, cumbersome operation, and low system integration. high. Therefore, it is urgent to invent a control device capable of simultaneously controlling multiple instruments.
发明内容Contents of the invention
本发明的目的在于提供一种多路定量称重控制仪表电路,该称重控制仪表电路能够提高称重控制仪表的集成度、稳定性和系统一致性,同时降低了系统组成的成本。The purpose of the present invention is to provide a multi-channel quantitative weighing control instrument circuit, the weighing control instrument circuit can improve the integration, stability and system consistency of the weighing control instrument, while reducing the cost of system composition.
本发明的另一目的在于提供一种多路定量称重控制仪表电路的控制方法,利用该控制方法能够实现传统的称重控制仪表的功能。Another object of the present invention is to provide a control method for a circuit of a multi-channel quantitative weighing control instrument, which can realize the functions of a traditional weighing control instrument.
本发明采用的前一技术方案如下:The preceding technical scheme that the present invention adopts is as follows:
一种多路定量称重控制仪表电路,其中,包括多路输出隔离型DC/DC变换模块、ARM嵌入式系统、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块、RS232/RS485通信模块,所述的ARM嵌入式系统分别连接多路输出隔离型DC/DC变换模块、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块和RS232/RS485通信模块,所述的多路输出隔离型DC/DC变换模块还连接多路AD采样模块和RS232/RS485通信模块,所述多路AD采样模块的信号输入端连接多个外部称重传感器的信号输出端。A multi-channel quantitative weighing control instrument circuit, which includes a multi-channel output isolated DC/DC conversion module, an ARM embedded system, a multi-channel AD sampling module, an 8-channel digital isolation input module, a 20-channel digital isolation output module, RS232/RS485 communication module, the ARM embedded system is respectively connected with multi-channel output isolated DC/DC conversion module, multi-channel AD sampling module, 8-channel digital isolation input module, 20-channel digital isolation output module and RS232/RS485 communication module, the multi-channel output isolated DC/DC conversion module is also connected to a multi-channel AD sampling module and an RS232/RS485 communication module, and the signal input terminal of the multi-channel AD sampling module is connected to the signal output of a plurality of external load cells end.
本发明采用的后一技术方案如下:The latter technical scheme that the present invention adopts is as follows:
一种多路定量称重控制仪表电路的控制方法,包括以下控制步骤:A control method for a multi-channel quantitative weighing control instrument circuit, comprising the following control steps:
(1)所述的多路输出隔离型DC/DC变换模块转换输入电压到各个模块,所述ARM嵌入式系统的ARM处理器得电复位;(1) The multi-channel output isolation type DC/DC conversion module converts the input voltage to each module, and the ARM processor of the ARM embedded system is powered on and resets;
(2)所述的ARM处理器初始化芯片端口,然后从掉电存储器模块读取保存的参数后配置多路AD采样模块,再配置ARM处理器的外中断侦测ADC转换完成;(2) described ARM processor initializes the chip port, then configures the multi-channel AD sampling module after reading the saved parameters from the power-down memory module, and then configures the external interrupt detection ADC conversion of the ARM processor to complete;
(3)将所述ARM处理器的ADC数据读取中断置于最高优先级,将所述ARM处理器的串口接收中断位于次优先级,等待接收ADC数据或者串口数据;(3) the ADC data reading interrupt of the ARM processor is placed in the highest priority, and the serial port reception interrupt of the ARM processor is placed in the secondary priority, waiting to receive ADC data or serial port data;
(4)当所述的ARM处理器接收到ADC中断时,所述的ARM处理器按顺序读取完多路AD采样模块中6片CS5532的AD数据,将8路数字隔离输入模块和20路数字隔离输出模块数据更新;ARM处理器对重量信号分析判断传感器是否处于稳定状态,当外部称重传感器称重重量等于皮重重量并且稳定时改变为开始出料输出标志位,当外部称重传感器称重重量大于等于设定重量时改变为停止出料输出标志位,中断返回;(4) When the ARM processor received the ADC interrupt, the ARM processor read the AD data of 6 slices of CS5532 in the multi-channel AD sampling module in order, and separated the 8-way digital isolation input module and the 20-way The data of the digital isolation output module is updated; the ARM processor analyzes the weight signal to determine whether the sensor is in a stable state. When the weighing weight of the external load cell is equal to the tare weight and is stable, it is changed to the start output output flag. When the external load cell When the weighed weight is greater than or equal to the set weight, it will be changed to stop the discharge output flag, and the interrupt will return;
(5)当所述的ARM处理器接收到串口数据中断时,所述的RS232/RS485通信模块将RS232或RS485总线上的电平转换成ARM处理器接收的电平,所述的ARM处理器根据接收的电平变换接收数据,通过RS232/RS485通信模块(8)转换到对应电平到对应数据线上,中断返回;(5) When the ARM processor received the serial port data interrupt, the RS232/RS485 communication module converted the level on the RS232 or RS485 bus into the level received by the ARM processor, and the ARM processor Transform the received data according to the received level, switch to the corresponding level through the RS232/RS485 communication module (8) to the corresponding data line, and interrupt the return;
(6)扫描所述的矩阵键盘模块,更新LCD显示模块,跳转至步骤(3)。(6) Scan the matrix keyboard module, update the LCD display module, and jump to step (3).
与现有技术相比,本发明具有的有益效果为:Compared with prior art, the beneficial effect that the present invention has is:
1.本发明的一种多路定量称重控制仪表电路,包括多路输出隔离型DC/DC变换模块、ARM嵌入式系统、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块、RS232/RS485通信模块,所述的ARM嵌入式系统分别连接多路输出隔离型DC/DC变换模块、多路AD采样模块、8路数字隔离输入模块、20路数字隔离输出模块和RS232/RS485通信模块,多路输出隔离型DC/DC变换模块还连接多路AD采样模块和RS232/RS485通信模块,多路AD采样模块的信号输入端连接多个外部称重传感器的信号输出端。通过模块化程序设计实现相当于1个称重控制仪表代替市面上使用6个称重控制仪表实现的功能,该称重控制仪表电路能够提高称重控制仪表的集成度、稳定性和系统一致性,同时降低了系统组成的成本。1. A multi-channel quantitative weighing control instrument circuit of the present invention includes a multi-channel output isolation type DC/DC conversion module, an ARM embedded system, a multi-channel AD sampling module, an 8-channel digital isolation input module, and a 20-channel digital isolation Output module, RS232/RS485 communication module, the ARM embedded system is respectively connected with multi-channel output isolated DC/DC conversion module, multi-channel AD sampling module, 8-channel digital isolation input module, 20-channel digital isolation output module and RS232 /RS485 communication module, the multi-channel output isolated DC/DC conversion module is also connected to the multi-channel AD sampling module and RS232/RS485 communication module, and the signal input terminal of the multi-channel AD sampling module is connected to the signal output terminals of multiple external weighing sensors. Through modular program design, it is equivalent to one weighing control instrument instead of six weighing control instruments on the market. The weighing control instrument circuit can improve the integration, stability and system consistency of the weighing control instrument. , while reducing the cost of system composition.
2.本发明的一种多路定量称重控制仪表电路的控制方法,多路输出隔离型DC/DC变换模块转换输入电压到各个模块,所述ARM嵌入式系统的ARM处理器得电复位;所述的ARM处理器初始化芯片端口,然后从掉电存储器模块读取保存的参数后配置多路AD采样模块,再配置ARM处理器的外中断侦测ADC转换完成;将所述ARM处理器的ADC数据读取中断置于最高优先级,将所述ARM处理器的串口接收中断位于次优先级,等待接收ADC数据或者串口数据,再根据获得的ADC数据或者串口数据执行相应的操作,扫描所述的矩阵键盘模块,更新LCD显示模块后跳转等待中断信号循环。利用该控制方法能够实现市面上6个称重控制仪表实现的功能。2. The control method of a kind of multi-channel quantitative weighing control instrument circuit of the present invention, multi-channel output isolation type DC/DC conversion module converts input voltage to each module, and the ARM processor of described ARM embedded system is powered on and resets; The ARM processor initializes the chip port, then configures the multi-channel AD sampling module after reading the saved parameters from the power-down memory module, and then configures the external interrupt detection ADC conversion of the ARM processor to complete; the ARM processor's ADC data reading interrupt is placed in the highest priority, the serial port receiving interrupt of the ARM processor is placed in the secondary priority, waiting to receive ADC data or serial port data, and then perform corresponding operations according to the obtained ADC data or serial port data, and scan all The matrix keyboard module described above jumps to wait for the interrupt signal cycle after updating the LCD display module. Using this control method, the functions realized by six weighing control instruments on the market can be realized.
附图说明Description of drawings
图1是本发明的原理图;Fig. 1 is a schematic diagram of the present invention;
图2是本发明多路输出隔离型DC/DC变换模块的电路原理图;Fig. 2 is a schematic circuit diagram of a multi-channel output isolated DC/DC conversion module of the present invention;
图3是本发明ARM嵌入式系统的电路原理图;Fig. 3 is the circuit schematic diagram of ARM embedded system of the present invention;
图4是本发明8路数字隔离输入模块和RS232/RS485通信模块的电路原理图;Fig. 4 is the circuit schematic diagram of 8-way digital isolation input module and RS232/RS485 communication module of the present invention;
图5是本发明多路AD采样模块的电路原理图;Fig. 5 is the circuit schematic diagram of multi-channel AD sampling module of the present invention;
图6是本发明单个AD采样模块的电路原理图;Fig. 6 is the circuit principle diagram of single AD sampling module of the present invention;
图7是本发明20路数字隔离输出模块的电路原理图;Fig. 7 is the schematic circuit diagram of the 20-way digital isolation output module of the present invention;
图8是本发明ARM嵌入式系统的连接图;Fig. 8 is the connection diagram of ARM embedded system of the present invention;
图9是本发明控制仪表电路的控制流程图。Fig. 9 is a control flowchart of the control instrument circuit of the present invention.
具体实施方式detailed description
下面结合具体实施方式,对本发明的技术方案作进一步的详细说明,但不构成对本发明的任何限制。The technical solutions of the present invention will be further described in detail below in conjunction with specific embodiments, but this does not constitute any limitation to the present invention.
如图1至8所示,本发明的一种多路定量称重控制仪表电路,其中,包括多路输出隔离型DC/DC变换模块1、ARM嵌入式系统2、多路AD采样模块3、8路数字隔离输入模块4、20路数字隔离输出模块5、RS232/RS485通信模块8,所述的ARM嵌入式系统2分别连接多路输出隔离型DC/DC变换模块1、多路AD采样模块3、8路数字隔离输入模块4、20路数字隔离输出模块5和RS232/RS485通信模块8,所述的多路输出隔离型DC/DC变换模块1还连接多路AD采样模块3和RS232/RS485通信模块8,所述多路AD采样模块3的信号输入端连接多个外部称重传感器的信号输出端。通过模块化程序设计实现相当于1个本发明的一种多路定量称重控制仪表电路代替市面上使用6个称重控制仪表实现的功能,该称重控制仪表电路能够提高称重控制仪表的集成度、稳定性和系统一致性,同时降低了系统组成的成本。As shown in Figures 1 to 8, a multi-channel quantitative weighing control instrument circuit of the present invention includes a multi-channel output isolated DC/DC conversion module 1, an ARM embedded system 2, a multi-channel AD sampling module 3, 8-way digital isolation input module 4, 20-way digital isolation output module 5, RS232/RS485 communication module 8, the ARM embedded system 2 is respectively connected to the multi-channel output isolated DC/DC conversion module 1, and the multi-channel AD sampling module 3. 8-way digital isolation input module 4, 20-way digital isolation output module 5 and RS232/RS485 communication module 8. The multi-channel output isolation type DC/DC conversion module 1 is also connected to multi-channel AD sampling module 3 and RS232/RS485 communication module 8. RS485 communication module 8, the signal input end of the multi-channel AD sampling module 3 is connected to the signal output ends of a plurality of external weighing sensors. Realize equivalent to a kind of multi-channel quantitative weighing control instrument circuit of the present invention to replace the function realized by using 6 weighing control instruments on the market through modularized program design, this weighing control instrument circuit can improve the weighing control instrument Integration, stability and system consistency, while reducing the cost of system composition.
所述多路输出隔离型DC/DC变换模块1的输入端与一输入电压连接,所述多路输出隔离型DC/DC变换模块1的输出端分别连接ARM嵌入式系统2、多路AD采样模块3和RS232/RS485通信模块8,所述多路输出隔离型DC/DC变换模块1的输出端还与多个外部称重传感器连接。其中,多路输出隔离型DC/DC变换模块1的输入端与24V直流输入电压连接,多路输出隔离型DC/DC变换模块1同时向ARM嵌入式系统2、多路AD采样模块3和RS232/RS485通信模块8以及多个外部称重传感器供电。The input end of the multi-channel output isolation type DC/DC conversion module 1 is connected to an input voltage, and the output end of the multi-channel output isolation type DC/DC conversion module 1 is respectively connected to the ARM embedded system 2, the multi-channel AD sampling Module 3 and RS232/RS485 communication module 8, the output end of the multi-output isolated DC/DC conversion module 1 is also connected to a plurality of external load cells. Among them, the input terminal of the multi-channel output isolated DC/DC conversion module 1 is connected to the 24V DC input voltage, and the multi-channel output isolated DC/DC conversion module 1 simultaneously supplies the ARM embedded system 2, the multi-channel AD sampling module 3 and the RS232 /RS485 communication module 8 and multiple external load cells are powered.
所述的ARM嵌入式系统2包括ARM处理器6、矩阵键盘模块7、掉电存储器模块9和LCD显示模块10,所述的ARM处理器6分别连接矩阵键盘模块7、掉电存储器模块9、LCD显示模块10。Described ARM embedded system 2 comprises ARM processor 6, matrix keyboard module 7, power down memory module 9 and LCD display module 10, and described ARM processor 6 connects matrix keyboard module 7, power down memory module 9, LCD display module 10.
所述的多路AD采样模块3包括6片CS5532模数转换芯片,每片所述CS5532模数转换芯片的SCLK引脚并联连接,每片所述CS5532模数转换芯片的SDI引脚并联连接,每片所述CS5532模数转换芯片的SDO引脚并联连接,每片所述CS5532模数转换芯片的OCS2引脚并联连接且与一4.9152MHz的有源晶体振荡器连接,每片并联连接的所述CS5532模数转换芯片的SCLK引脚、SDI引脚、SDO引脚通过一磁耦合隔离器与ARM处理器6的SPI3的引脚连接,每片所述CS5532模数转换芯片的CS引脚分别与ARM处理器6的PG10引脚至PG15引脚连接。通过集成6片CS5532模数转换器实现多个通道同步采样,各通道的采样精度与速度与单通道称重仪表无差别。Described multi-channel AD sampling module 3 comprises 6 CS5532 analog-to-digital conversion chips, the SCLK pins of each CS5532 analog-to-digital conversion chip are connected in parallel, and the SDI pins of each CS5532 analog-to-digital conversion chip are connected in parallel, The SDO pins of each CS5532 analog-to-digital conversion chip are connected in parallel, and the OCS2 pins of each CS5532 analog-to-digital conversion chip are connected in parallel and connected with a 4.9152MHz active crystal oscillator. The SCLK pin, SDI pin, and SDO pin of the CS5532 analog-to-digital conversion chip are connected to the pin of the SPI3 of the ARM processor 6 through a magnetic coupling isolator, and the CS pins of each CS5532 analog-to-digital conversion chip are respectively Connect with PG10 pin to PG15 pin of ARM processor 6. Synchronous sampling of multiple channels is realized by integrating 6 pieces of CS5532 analog-to-digital converters, and the sampling accuracy and speed of each channel are the same as those of single-channel weighing instruments.
所述的8路数字隔离输入模块4包括2片TLP281-4光耦,2片所述TLP281-4光耦的集电极输出引脚分别与ARM处理器6的PA7引脚、PB0引脚、PB1引脚、PB2引脚、PC4引脚、PC5引脚、PF11引脚、PF12引脚连接。2片所述的TLP281-4光耦把ARM处理器6的信号与外部输入信号隔离。Described 8-way digital isolation input module 4 comprises 2 slices of TLP281-4 optocouplers, and the collector output pins of 2 slices of TLP281-4 optocouplers are connected with PA7 pins, PB0 pins, PB1 pins of ARM processor 6 respectively. Pin, PB2 pin, PC4 pin, PC5 pin, PF11 pin, PF12 pin connection. Two TLP281-4 optocouplers described above isolate the signal of the ARM processor 6 from the external input signal.
所述的20路数字隔离输出模块5包括由5片TLP281-4光耦和3片ULN2803达林顿管阵列组成的隔离型外部线圈驱动电路,5片所述TLP281-4光耦的阴极输入引脚分别与ARM处理器6的PD8引脚、PD9引脚、PD10引脚、PD11引脚、PD12引脚、PD13引脚、PD14引脚、PD15引脚、PE7引脚、PE8引脚、PE9引脚、PE10引脚、PE11引脚、PE12引脚、PE13引脚、PF13引脚、PF14引脚、PF15引脚、PG0引脚、PG1引脚连接。The 20-way digital isolation output module 5 includes an isolated external coil drive circuit composed of 5 TLP281-4 optocouplers and 3 ULN2803 Darlington tube arrays, and the cathode input leads of the 5 TLP281-4 optocouplers The pins are respectively connected with the PD8 pins, PD9 pins, PD10 pins, PD11 pins, PD12 pins, PD13 pins, PD14 pins, PD15 pins, PE7 pins, PE8 pins, and PE9 pins of the ARM processor 6. Pin, PE10 pin, PE11 pin, PE12 pin, PE13 pin, PF13 pin, PF14 pin, PF15 pin, PG0 pin, PG1 pin connection.
所述的RS232/RS485通信模块8包括RS232通信电路和RS485通信电路,所述RS232通信电路通过一磁耦ADuM1402与ARM处理器6的USART1引脚相连,所述RS485通信电路通过一磁耦ADuM1402与ARM处理器6的USART2引脚连接。Described RS232/RS485 communication module 8 comprises RS232 communication circuit and RS485 communication circuit, and described RS232 communication circuit is connected with USART1 pin of ARM processor 6 by a magnetic coupler ADuM1402, and described RS485 communication circuit is connected with by a magnetic coupler ADuM1402 USART2 pin connection of ARM processor 6.
所述的ARM处理器6包括STM32F103ZET6芯片;所述的矩阵键盘模块7分别与ARM处理器6的PC10引脚、PC11引脚、的PC12引脚、PD0引脚、PD1引脚、的PD2引脚、PD3引脚、PD4引脚、PD5引脚连接。Described ARM processor 6 comprises STM32F103ZET6 chip; Described matrix keyboard module 7 is connected with PC10 pin, PC11 pin, PC12 pin, PD0 pin, PD1 pin, PD2 pin of ARM processor 6 respectively , PD3 pin, PD4 pin, PD5 pin connection.
所述的掉电存储器模块9包括FM25CL64芯片,所述的FM25CL64芯片与ARM处理器6的SPI2引脚连接。The power-down memory module 9 includes an FM25CL64 chip, and the FM25CL64 chip is connected to the SPI2 pin of the ARM processor 6 .
所述的LCD显示模块10包括采用ST7290驱动的LCD12864液晶显示器,所述LCD12864液晶显示器的SID引脚与ARM处理器6的USART3的TX引脚连接,所述LCD12864液晶显示器的SCK引脚与ARM处理器6的USART3的CK引脚相连。Described LCD display module 10 comprises the LCD12864 liquid crystal display that adopts ST7290 drive, and the SID pin of described LCD12864 liquid crystal display is connected with the TX pin of USART3 of ARM processor 6, and the SCK pin of described LCD12864 liquid crystal display is connected with ARM processing connected to the CK pin of USART3 of device 6.
如图9所示,本发明所述的一种多路定量称重控制仪表电路的控制方法,包括以下控制步骤:As shown in Figure 9, a control method for a multi-channel quantitative weighing control instrument circuit according to the present invention includes the following control steps:
(1)所述的多路输出隔离型DC/DC变换模块1转换输入电压到各个模块,所述ARM嵌入式系统2的ARM处理器6得电复位。(1) The multiple output isolated DC/DC conversion module 1 converts the input voltage to each module, and the ARM processor 6 of the ARM embedded system 2 is powered on and reset.
(2)所述的ARM处理器6初始化芯片端口,然后从掉电存储器模块9读取保存的参数后配置多路AD采样模块3,再配置ARM处理器6的外中断侦测ADC转换完成。(2) The ARM processor 6 initializes the chip port, then configures the multi-channel AD sampling module 3 after reading the saved parameters from the power-down memory module 9, and then configures the external interrupt detection ADC conversion of the ARM processor 6 to complete.
(3)将所述ARM处理器6的ADC数据读取中断置于最高优先级,将所述ARM处理器6的串口接收中断位于次优先级,等待接收ADC数据或者串口数据。(3) Place the ADC data reading interrupt of the ARM processor 6 at the highest priority, place the serial port receiving interrupt of the ARM processor 6 at the secondary priority, and wait for receiving ADC data or serial port data.
(4)当所述的ARM处理器6接收到ADC中断时,所述的ARM处理器6按顺序读取完多路AD采样模块3中6片CS5532的AD数据,将8路数字隔离输入模块4和20路数字隔离输出模块5数据更新,保证8路数字隔离输入模块4和20路数字隔离输出模块5的端口更新时间间隔一致不受其他中断影响。因为读取AD数据时没有条件跳转语句,所以从中断到读取数据完成的时间是固定的。对AD数据进行滑动平均数字滤波,然后进行工程单位转换,ARM处理器6对重量信号分析判断传感器是否处于稳定状态,为后续称重流程控制提高控制信号。当外部称重传感器称重重量等于皮重重量并且稳定时改变为开始出料输出标志位,当外部称重传感器称重重量大于等于设定重量时改变为停止出料输出标志位,为下一次端口更新做准备,之后中断返回。(4) When the ARM processor 6 received the ADC interrupt, the ARM processor 6 had read the AD data of 6 slices of CS5532 in the multi-channel AD sampling module 3 in order, and the 8-way digital isolation input module 4 and 20-channel digital isolation output module 5 data update, to ensure that the port update time intervals of 8-channel digital isolation input module 4 and 20-channel digital isolation output module 5 are consistent and not affected by other interruptions. Because there is no conditional jump statement when reading AD data, the time from interrupt to completion of reading data is fixed. Carry out sliding average digital filtering on the AD data, and then perform engineering unit conversion. The ARM processor 6 analyzes the weight signal to determine whether the sensor is in a stable state, and improves the control signal for subsequent weighing process control. When the weighing weight of the external load cell is equal to the tare weight and is stable, it will be changed to start the output output flag, and when the external load cell is greater than or equal to the set weight, it will be changed to the stop output output flag, which is the next time Prepare for port update, after which interrupt returns.
(5)当所述的ARM处理器6接收到串口数据中断时,所述的RS232/RS485通信模块8将RS232或RS485总线上的电平转换成ARM处理器6接收的电平,所述的ARM处理器6根据接收的电平变换接收数据,通过RS232/RS485通信模块8转换到对应电平到对应数据线上,之后中断返回。(5) When the ARM processor 6 received the serial port data interrupt, the RS232/RS485 communication module 8 converted the level on the RS232 or RS485 bus into the level received by the ARM processor 6, and the The ARM processor 6 transforms the received data according to the received level, and switches to the corresponding level through the RS232/RS485 communication module 8 to the corresponding data line, and then interrupts and returns.
(6)扫描所述的矩阵键盘模块7,更新LCD显示模块10,跳转至步骤3。(6) Scan the matrix keyboard module 7, update the LCD display module 10, and jump to step 3.
以上所述仅为本发明的较佳实施例,凡在本发明的精神和原则范围内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and any modifications, equivalent replacements and improvements made within the spirit and scope of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611074767.4A CN106444552A (en) | 2016-11-29 | 2016-11-29 | Multi-path quantitative weighing control instrument circuit and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611074767.4A CN106444552A (en) | 2016-11-29 | 2016-11-29 | Multi-path quantitative weighing control instrument circuit and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106444552A true CN106444552A (en) | 2017-02-22 |
Family
ID=58222305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611074767.4A Pending CN106444552A (en) | 2016-11-29 | 2016-11-29 | Multi-path quantitative weighing control instrument circuit and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106444552A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1139205A (en) * | 1995-04-06 | 1997-01-01 | 大和制衡株式会社 | Quantitative charging apparatus |
CN200993597Y (en) * | 2006-12-06 | 2007-12-19 | 蒋德云 | Weighing controller |
CN104153778A (en) * | 2014-08-14 | 2014-11-19 | 天地科技股份有限公司 | Plate-type rapid quantitative loading system and method |
CN104291064A (en) * | 2014-08-14 | 2015-01-21 | 天地科技股份有限公司 | Weighing method and device of rapid quantitative plate conveyer |
CN104441569A (en) * | 2013-09-23 | 2015-03-25 | 上海松耐机械制造有限公司 | Extruder batching and flow control system and control method thereof |
CN206249053U (en) * | 2016-11-29 | 2017-06-13 | 梧州学院 | A kind of Multi-path proportional Weighing control appliance circuit |
-
2016
- 2016-11-29 CN CN201611074767.4A patent/CN106444552A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1139205A (en) * | 1995-04-06 | 1997-01-01 | 大和制衡株式会社 | Quantitative charging apparatus |
CN200993597Y (en) * | 2006-12-06 | 2007-12-19 | 蒋德云 | Weighing controller |
CN104441569A (en) * | 2013-09-23 | 2015-03-25 | 上海松耐机械制造有限公司 | Extruder batching and flow control system and control method thereof |
CN104153778A (en) * | 2014-08-14 | 2014-11-19 | 天地科技股份有限公司 | Plate-type rapid quantitative loading system and method |
CN104291064A (en) * | 2014-08-14 | 2015-01-21 | 天地科技股份有限公司 | Weighing method and device of rapid quantitative plate conveyer |
CN206249053U (en) * | 2016-11-29 | 2017-06-13 | 梧州学院 | A kind of Multi-path proportional Weighing control appliance circuit |
Non-Patent Citations (1)
Title |
---|
许忠扬: "微机控制的多路皮带秤调速定量投料系统", 《电子测量与仪器学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102445664B (en) | Comprehensive testing device for battery pack | |
CN102353830A (en) | Peak voltage digital display meter | |
CN103412183A (en) | Multi-channel current type radiation detecting real-time comparison measuring device | |
CN206249053U (en) | A kind of Multi-path proportional Weighing control appliance circuit | |
CN202075334U (en) | Peak voltage digital display meter | |
CN102096001A (en) | Overcurrent and short circuit tester for battery pack protective board | |
CN101738210B (en) | Device and method for measuring resistance bridge sensor simultaneously supporting voltage excitation and current excitation | |
CN111077454A (en) | Multichannel charging and discharging power supply equipment correction system and method | |
CN107203177A (en) | A kind of multi-shaft motion control system based on FPGA | |
CN209230638U (en) | A kind of navigation control system based on multi-core processor | |
CN106444552A (en) | Multi-path quantitative weighing control instrument circuit and control method thereof | |
CN110702194B (en) | High-speed weighing controller with automatic compensation function and control method | |
CN104950773B (en) | Mixed type intelligent data acquisition processing unit | |
CN201514392U (en) | Intelligent temperature-humidity sensor | |
CN206945960U (en) | A kind of phased array weather radar signal processor mid frequency acquisition equipment | |
CN211785980U (en) | Multichannel charging and discharging power supply equipment correction system | |
CN202255647U (en) | Multifunctional digital temperature instrument | |
CN102692553A (en) | Multichannel voltage measurement recorder | |
CN101414187B (en) | Console online detection device | |
CN217982172U (en) | High-integration comprehensive control module | |
CN202404207U (en) | Testing device for plasma display panel | |
CN217008014U (en) | An analog monitoring unit and its chip | |
CN201917833U (en) | Batching controller | |
CN104483876B (en) | Array control device applicable to scanning switch internal relay | |
CN209215559U (en) | A kind of low cost battery pack string detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination |