An automatic testing platform and testing method for electromagnetic flowmeter circuit board
By designing an automated test platform, the current signal is converted into RS485 signals and transmitted to the industrial control machine using an analog signal generator and a signal acquisition module, the rapid detection of multiple electromagnetic flowmeter circuit boards is achieved, and the manual detection efficiency in the existing technology is solved The problem of low and multi-point detection difficulty reduces labor costs and improves product quality.
Patent Information
- Application Number
- CN201810063426.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-01-23
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2038-01-23
AI Technical Summary
The aging test of existing electromagnetic flowmeter circuit boards requires a lot of manual investment, and multiple flow points cannot be detected at the same time, and the manual recording differences are large, making it difficult to ensure product quality.
Design an electromagnetic flowmeter circuit board automation test platform, including an analog signal generator, signal acquisition module and industrial control machine, converting the constant current excitation signal into a differential mode signal with adjustable amplitude through the analog signal generator, and the signal acquisition module will convert the current The signal is converted into RS485 signals and is transmitted to the industrial control machine. The industrial control machine performs data processing and analysis, realizing multi-point simultaneous detection and data recording.
It realizes rapid detection of multiple electromagnetic flowmeter circuit boards, reduces labor costs, improves product factory quality, and can simulate and detect multiple flow points simultaneously. Through data curve analysis, it determines whether the instantaneous flow fluctuation exceeds the set range. Quickly troubleshoot circuit boards that work abnormally.
Smart Images

Figure CN108152716B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to an automatic testing platform and a testing method for an electromagnetic flowmeter circuit board. Background Art
[0002] At present, electromagnetic flowmeters are widely used in the petroleum, chemical, steel, food, electricity, papermaking, metallurgy, water supply and drainage, petrochemical, pharmaceutical and other industries for flow measurement and control in the production process. Because flowmeters are mainly used for industrial flow measurement, long-term working stability must be guaranteed, and the circuit boards used must undergo long-term aging tests before leaving the factory to ensure stable operation. Conventional aging is to power on the circuit board, connect a fixed flow signal source, and record it manually. This approach requires a lot of manpower when conducting large-scale batch aging tests, and can only detect a single flow point. The manually recorded data has large differences and cannot detect hidden problems well, and the factory quality of the product cannot be guaranteed. In order to solve the above problems, the present invention provides an electromagnetic flowmeter circuit board automatic testing platform and testing method, which can quickly detect abnormal circuit boards to be tested. Summary of the invention
[0003] In view of the deficiencies and defects in the prior art, the present invention provides an electromagnetic flowmeter circuit board automatic testing platform and testing method, which can quickly identify the circuit board to be tested that is working abnormally.
[0004] To achieve the above object, the technical solution adopted by the present invention is:
[0005] An electromagnetic flowmeter circuit board automatic test platform comprises an analog signal generator, a signal acquisition module and an industrial computer; one end of the analog signal generator is connected to a circuit board to be tested, and the other end of the circuit board to be tested is connected to the signal acquisition module; the analog signal generator comprises an excitation signal input port, a signal conversion circuit and a differential signal output port; the circuit board to be tested comprises an excitation signal output port, a differential signal input port, a signal processing and conversion module and a current signal output port; the signal acquisition module comprises a current signal input port, a data acquisition and conversion unit and an RS485 bus interface; the signal acquisition module is connected to the industrial computer via an RS485 bus; the industrial computer comprises an RS485 bus interface, a storage and processing module and a display screen.
[0006] Furthermore, the analog signal generator is used to convert the constant current excitation signal into a differential mode signal with adjustable amplitude, and send the differential mode signal to the circuit board to be tested;
[0007] The circuit board to be tested is used to convert the differential mode signal sent by the analog signal generator into a current signal corresponding to the instantaneous flow value;
[0008] The signal acquisition module is used to collect the current signal of the circuit board to be tested, convert it into RS485 signal, and transmit it to the industrial computer through the RS485 bus;
[0009] The industrial computer is used to receive the RS485 signal from the signal acquisition module, and store, analyze or display the signal after processing.
[0010] Furthermore, the excitation signal input port and the excitation signal output port both include EXT+ and EXT- ports; and the differential mode signal output port and the differential mode signal input port both include SGND, SING+ and SING- ports.
[0011] Further, the excitation signal input port is connected to a signal conversion circuit, the signal conversion circuit includes a primary voltage divider circuit, a secondary voltage divider circuit and a differential signal conversion circuit, the primary voltage divider circuit includes resistors R2, R4, and R7, and the resistors R2, R4, and R7 are connected in series in sequence; the secondary voltage divider circuit includes adjustable resistors R1 and R6, and the differential signal conversion circuit includes resistors R3 and R5;
[0012] The EXT+ port of the excitation signal input port is connected to one end of the resistor R2, and the EXT- is connected to one end of the resistor R7; the other end of the resistor R2 is connected to the adjustable resistor R1, and the other end of the resistor R7 is connected to the adjustable resistor R6; the other end of the adjustable resistor R1 is respectively connected to the resistor R3 and the SING+ port of the differential signal output port; the other end of the adjustable resistor R6 is respectively connected to the resistor R5 and the SING- port of the differential signal output port; the resistor R3 and the resistor R5 are connected in series, and the SGND port of the differential signal output port is connected between the resistor R3 and the resistor R5.
[0013] Furthermore, the current signal collected by the signal collection module ranges from 4 to 20 mA.
[0014] An electromagnetic flowmeter circuit board automatic testing method based on an electromagnetic flowmeter circuit board automatic testing platform includes the following steps:
[0015] Step 1: The circuit board to be tested sends a constant current excitation signal to the analog signal generator. The signal conversion circuit in the analog signal generator converts the constant current excitation signal into a differential mode signal with adjustable amplitude, and sends the differential mode signal to the circuit board to be tested;
[0016] Step 2: After the circuit board under test receives the differential mode signal, it is converted into a 4-20mA current signal corresponding to the instantaneous flow value through the signal processing and conversion module;
[0017] Step 3: The signal acquisition module collects the current signal of the circuit board to be tested, converts it into an RS485 signal, and transmits it to the industrial computer through the RS485 bus;
[0018] Step 4: The industrial computer receives the RS485 signal from the signal acquisition module and processes it for storage, analysis or display.
[0019] Furthermore, before step 1, the method further includes: setting the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module on the industrial computer.
[0020] Furthermore, after setting the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module on the industrial computer, it also includes: connecting one end of the circuit board to be tested to the analog signal generator, and the EXT+ and EXT- ports of the excitation signal input port and the excitation signal output port respectively have corresponding connections; the SGND, SING+ and SING- ports in the differential signal output port and the differential signal input port are respectively connected correspondingly; the current signal output port of the circuit board to be tested is connected to the current signal input port of the signal acquisition module.
[0021] Furthermore, the step 4 specifically includes:
[0022] The industrial computer processes and analyzes the RS485 signal received from the signal acquisition module;
[0023] Detect the circuit board under test whose instantaneous flow fluctuation range exceeds the set fluctuation range, and generate an aging test printout for the qualified circuit board under test by the industrial computer;
[0024] The industrial computer stores, analyzes or displays the test results, sends the results to the designated mailbox, and gives sound and light prompts.
[0025] The beneficial effects of the present invention are:
[0026] The invention discloses an automatic testing platform and testing method for an electromagnetic flowmeter circuit board. By arranging a plurality of analog signal generators, the platform can perform analog detection of a plurality of flow points at the same time, and is used to solve the problem of aging test of a large number of electromagnetic flowmeter circuit boards. By adjusting the resistance value of an adjustable resistor in a signal conversion circuit, different flow values can be simulated, and the operation is convenient and simple. The data during the aging test is recorded by an industrial computer, and analyzed by a data curve, which can greatly reduce labor costs and ensure the quality of products before leaving the factory. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The present invention is a schematic structural diagram of an automatic testing platform for an electromagnetic flowmeter circuit board.
[0028] Figure 2 The invention discloses a circuit diagram of a signal conversion circuit of an automatic testing platform for an electromagnetic flowmeter circuit board.
[0029] Figure 3 The present invention is a schematic flow chart of an automatic testing method for an electromagnetic flowmeter circuit board.
[0030] The numbers in the figure are: 1 is an analog signal generator, 2 is a circuit board to be tested, 3 is a signal acquisition module, 4 is an industrial computer, 101 is an excitation signal input port, 102 is a signal conversion circuit, 103 is a differential signal output port, 201 is an excitation signal output port, 202 is a differential signal input port, 203 is a signal processing and conversion module, 204 is a current signal output port, 301 is a current signal input port, 302 is a data acquisition and conversion unit, 303 is an RS485 bus interface, 401 is a storage and processing module, and 402 is a display screen. DETAILED DESCRIPTION
[0031] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments:
[0032] Example 1: Figure 1~Figure 2 As shown, the present invention provides an electromagnetic flowmeter circuit board automatic test platform, including: an analog signal generator 1, a signal acquisition module 3 and an industrial computer 4;
[0033] One end of the analog signal generator 1 is connected to the circuit board 2 to be tested, and the other end of the circuit board 2 to be tested is connected to the signal acquisition module 3; the analog signal generator 1 includes an excitation signal input port 101, a signal conversion circuit 102 and a differential signal output port 103; the circuit board 2 to be tested includes an excitation signal output port 201, a differential signal input port 202, a signal processing and conversion module 203 and a current signal output port 204; the signal acquisition module 3 includes a current signal input port 301, a data acquisition and conversion unit 302 and an RS485 bus interface 303; the signal acquisition module 3 is connected to the industrial computer 4 via the RS485 bus; the industrial computer 4 includes an RS485 bus interface 303, a storage and processing module 401 and a display screen 402.
[0034] The analog signal generator 1 is used to convert the constant current excitation signal into a differential signal with adjustable amplitude, and send the differential signal to the circuit board 2 to be tested; the circuit board 2 to be tested is used to convert the differential signal sent by the analog signal generator 1 into a current signal corresponding to the instantaneous flow value; the signal acquisition module 3 is used to collect the current signal of the circuit board 2 to be tested, convert it into an RS485 signal, and transmit it to the industrial computer 4 through the RS485 bus; the industrial computer 4 is used to receive the RS485 signal of the signal acquisition module 3, and store, analyze or display the signal after processing.
[0035] The excitation signal input port 101 and the excitation signal output port 201 both include EXT+ and EXT- ports; the differential signal output port 103 and the differential signal input port 202 both include SGND, SING+ and SING- ports.
[0036] The excitation signal input port 101 is connected to the signal conversion circuit 102, and the signal conversion circuit 102 includes a primary voltage divider circuit, a secondary voltage divider circuit and a differential signal conversion circuit. The primary voltage divider circuit includes resistors R2, R4, and R7, and the resistors R2, R4, and R7 are connected in series in sequence; the secondary voltage divider circuit includes adjustable resistors R1 and R6, and the differential signal conversion circuit includes resistors R3 and R5; the EXT+ port of the excitation signal input port 101 is connected to one end of the resistor R2, and the EXT- port is connected to one end of the resistor R7; the resistor R 2 is connected to an adjustable resistor R1, and the other end of the resistor R7 is connected to an adjustable resistor R6; the other end of the adjustable resistor R1 is respectively connected to the resistor R3 and the SING+ port of the differential signal output port 103; the other end of the adjustable resistor R6 is respectively connected to the resistor R5 and the SING- port of the differential signal output port 103; the resistor R3 and the resistor R5 are connected in series, and the SGND port of the differential signal output port 103 is connected between the resistor R3 and the resistor R5; the range of the current signal collected by the signal acquisition module 3 is 4-20mA.
[0037] An electromagnetic flowmeter circuit board automatic testing method based on an electromagnetic flowmeter circuit board automatic testing platform includes the following steps:
[0038] Step 1: The circuit board 2 to be tested sends a constant current excitation signal to the analog signal generator 1, and the signal conversion circuit 102 in the analog signal generator 1 converts the constant current excitation signal into a differential mode signal with adjustable amplitude, and sends the differential mode signal to the circuit board 2 to be tested;
[0039] Step 2: After the circuit board 2 receives the differential mode signal, it is converted into a 4-20mA current signal by the signal processing and conversion module 203;
[0040] Step 3: The signal acquisition module 3 acquires the current signal of the circuit board to be tested, converts it into an RS485 signal, and transmits it to the industrial computer 4 through the RS485 bus;
[0041] Step 4: The industrial computer 4 receives the RS485 signal from the signal acquisition module 3, and processes it for storage, analysis or display.
[0042] Example 2: Please refer to Figure 3 , Figure 3 A schematic diagram of a flow chart of an automatic testing method for an electromagnetic flowmeter circuit board provided by an embodiment of the present invention; this embodiment provides an automatic testing method for an electromagnetic flowmeter circuit board, which specifically includes the following steps:
[0043] Step S201 : setting the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module 3 on the industrial computer 4 .
[0044] Step S202: Connect one end of the circuit board 2 to be tested to the analog signal generator 1, and the EXT+ and EXT- ports of the excitation signal input port 101 and the excitation signal output port 201 are respectively connected correspondingly; the SGND, SING+ and SING- ports in the differential signal output port 103 and the differential signal input port 202 are respectively connected correspondingly; the current signal output port 204 of the circuit board 2 to be tested is connected to the current signal input port 301 of the signal acquisition module 3.
[0045] Step S203: the circuit board 2 to be tested sends a constant current excitation signal to the analog signal generator 1, and the signal conversion circuit 102 in the analog signal generator 1 converts the constant current excitation signal into a differential mode signal, and sends the differential mode signal to the circuit board 2 to be tested;
[0046] By adjusting the resistance values of the adjustable resistors R1 and R6, the amplitude of the output differential mode signal can be changed, so that the amplitude of the output differential mode signal can be adjusted; thus, the analog signal generator 1 can simulate multiple different flow values, and the circuit board 2 to be tested can simulate multiple flow points to achieve an aging test on the circuit board 2 to be tested.
[0047] Step S204: After the circuit board 2 to be tested receives the differential mode signal, the signal processing and conversion module 203 converts it into a 4-20 mA current signal corresponding to the instantaneous flow value.
[0048] Step S205: the signal acquisition module 3 acquires the current signal of the circuit board 2 to be tested, converts it into an RS485 signal, and transmits it to the industrial computer 4 via the RS485 bus.
[0049] Step S206: the industrial computer 4 processes and analyzes the RS485 signal received from the signal acquisition module 3 .
[0050] Step S207: Detect the circuit board 2 to be tested whose instantaneous flow fluctuation range exceeds the set fluctuation range, and the industrial computer 4 generates an aging test printout for the qualified circuit board 2 to be tested.
[0051] Step S208: The industrial computer 4 stores, analyzes or displays the detection results, sends the results to a designated mailbox, and issues an audio and visual prompt.
[0052] The invention discloses an automatic testing platform and method for an electromagnetic flowmeter circuit board, comprising an industrial computer 4, a signal acquisition unit 3, an analog signal generator 1 and a circuit board to be tested 2. The industrial computer 4 can simultaneously acquire flow signals of flow detection points simulated by multiple analog signal generators 1 according to a set sampling time, that is, a constant current excitation signal provided by an instrument circuit of the electromagnetic flowmeter itself is used to realize an analog flow signal through an adjustable resistor voltage divider; the instantaneous flow information detected by the circuit board 2 to be tested by the electromagnetic flowmeter is recorded in a database; after a long-term aging test, the database data is analyzed to determine whether the instantaneous flow fluctuation exceeds a set fluctuation range, so as to determine the circuit board 2 to be tested that is working abnormally, and an adjustable analog signal source is used to perform analog detection of multiple flow points, so as to facilitate troubleshooting; after completion, the result data is sent to a set mailbox, and an audible and visual alarm prompt is performed.
[0053] The present invention can test a large number of electromagnetic flowmeter circuit boards, quickly and conveniently identify circuit boards with abnormal operation, reduce labor costs, and ensure product quality before delivery.
[0054] It should be noted that the embodiments described above are only preferred embodiments of the present invention and do not limit the scope of implementation of the present invention. Therefore, any equivalent changes or modifications made according to the structure, characteristics and principles described in the patent scope of the present invention should be included in the scope of the patent application of the present invention.
Claims
1. An electromagnetic flowmeter circuit board automatic testing platform, characterized in that: The invention comprises an analog signal generator (1), a signal acquisition module (3) and an industrial computer (4); one end of the analog signal generator (1) is connected to a circuit board to be tested (2), and the other end of the circuit board to be tested (2) is connected to the signal acquisition module (3); the analog signal generator (1) comprises an excitation signal input port (101), a signal conversion circuit (102) and a differential signal output port (103); the circuit board to be tested (2) comprises an excitation signal output port (201), a differential signal input port (202), a signal processing and conversion module (203) and a current signal output port (204); the signal acquisition module (3) comprises a current signal input port (301), a data acquisition and conversion unit (302) and an RS485 bus interface (303); the signal acquisition module (3) is connected to the industrial computer (4) via an RS485 bus; the industrial computer (4) comprises an RS485 bus interface (303), a storage and processing module (401) and a display screen (402); The excitation signal input port (101) and the excitation signal output port (201) both include EXT+ and EXT- ports; the differential mode signal output port (103) and the differential mode signal input port (202) both include SGND, SING+ and SING- ports; The excitation signal input port (101) is connected to a signal conversion circuit (102), the signal conversion circuit (102) comprising a primary voltage divider circuit, a secondary voltage divider circuit and a differential signal conversion circuit, the primary voltage divider circuit comprising resistors R2, R4 and R7, the resistors R2, R4 and R7 being connected in series in sequence; the secondary voltage divider circuit comprising adjustable resistors R1 and R6, and the differential signal conversion circuit comprising resistors R3 and R5; The EXT+ port of the excitation signal input port (101) is connected to one end of the resistor R2, and the EXT- port is connected to one end of the resistor R7; the other end of the resistor R2 is connected to the adjustable resistor R1, and the other end of the resistor R7 is connected to the adjustable resistor R6; the other end of the adjustable resistor R1 is respectively connected to the resistor R3 and the SING+ port of the differential mode signal output port (103); the other end of the adjustable resistor R6 is respectively connected to the resistor R5 and the SING- port of the differential mode signal output port (103); the resistor R3 and the resistor R5 are connected in series, and the SGND port of the differential mode signal output port (103) is connected between the resistor R3 and the resistor R5; The industrial control computer (4) can be used to set the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module (3).
2. The electromagnetic flowmeter circuit board automatic testing platform according to claim 1 is characterized in that: The analog signal generator (1) is used to convert the constant current excitation signal into a differential mode signal with adjustable amplitude, and send the differential mode signal to the circuit board to be tested (2); The circuit board to be tested (2) is used to convert the differential mode signal sent by the analog signal generator (1) into a current signal corresponding to the instantaneous flow value; The signal acquisition module (3) is used to collect the current signal of the circuit board (2) to be tested, convert it into an RS485 signal, and transmit it to the industrial control computer (4) via the RS485 bus; The industrial computer (4) is used to receive the RS485 signal from the signal acquisition module (3), and process the signal for storage, analysis or display.
3. The electromagnetic flowmeter circuit board automatic testing platform according to claim 1 is characterized in that: The current signal collected by the signal collection module (3) is in the range of 4-20 mA.
4. An electromagnetic flowmeter circuit board automatic testing method based on any electromagnetic flowmeter circuit board automatic testing platform according to any one of claims 1 to 3, characterized in that: The following steps are involved: Step 1: The circuit board to be tested (2) sends a constant current excitation signal to the analog signal generator (1), and the signal conversion circuit (102) in the analog signal generator (1) converts the constant current excitation signal into a differential mode signal with adjustable amplitude, and sends the differential mode signal to the circuit board to be tested (2); Step 2: After the circuit board to be tested (2) receives the differential mode signal, the signal processing and conversion module (203) converts it into a 4-20 mA current signal corresponding to the instantaneous flow value; Step 3: The signal acquisition module (3) acquires the current signal of the circuit board to be tested (2), converts it into an RS485 signal, and transmits it to the industrial computer (4) via the RS485 bus; Step 4: The industrial computer (4) receives the RS485 signal from the signal acquisition module (3), processes it, and then stores, analyzes, or displays it.
5. The electromagnetic flowmeter circuit board automatic testing method according to claim 4, characterized in that: Before step 1, the method further includes: setting the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module (3) on the industrial control computer (4).
6. The electromagnetic flowmeter circuit board automatic testing method according to claim 5, characterized in that: After setting the aging test time, the fluctuation determination range and the data sampling frequency of the current signal of the signal acquisition module (3) on the industrial control computer (4), the method further includes: connecting one end of the circuit board (2) to be tested to the analog signal generator (1), and the EXT+ and EXT- ports of the excitation signal input port (101) and the excitation signal output port (201) are respectively connected correspondingly; the SGND, SING+ and SING- ports in the differential mode signal output port (103) and the differential mode signal input port (202) are respectively connected correspondingly; and the current signal output port (204) of the circuit board (2) to be tested is connected to the current signal input port (301) of the signal acquisition module (3).
7. The electromagnetic flowmeter circuit board automatic testing method according to claim 4, characterized in that: The step 4 specifically includes: The industrial computer (4) processes and analyzes the RS485 signal received from the signal acquisition module (3); Detecting a circuit board (2) to be tested whose instantaneous flow fluctuation range exceeds a set fluctuation range, and for a qualified circuit board (2) to be tested, the industrial control computer (4) generates an aging test printout; The industrial computer (4) stores, analyzes or displays the test results, sends the results to a designated mailbox, and issues an audio and visual prompt.
