CN106054860B - A kind of water pump controller test system and the autonomous setting method of IP address - Google Patents

A kind of water pump controller test system and the autonomous setting method of IP address Download PDF

Info

Publication number
CN106054860B
CN106054860B CN201610389515.4A CN201610389515A CN106054860B CN 106054860 B CN106054860 B CN 106054860B CN 201610389515 A CN201610389515 A CN 201610389515A CN 106054860 B CN106054860 B CN 106054860B
Authority
CN
China
Prior art keywords
water pump
pump controller
measured
address
data
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
Application number
CN201610389515.4A
Other languages
Chinese (zh)
Other versions
CN106054860A (en
Inventor
彭志辉
周晨
瞿建武
刘书华
朱德华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianfeng Pump Co.,Ltd.
Original Assignee
Wenzhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wenzhou University filed Critical Wenzhou University
Priority to CN201610389515.4A priority Critical patent/CN106054860B/en
Publication of CN106054860A publication Critical patent/CN106054860A/en
Application granted granted Critical
Publication of CN106054860B publication Critical patent/CN106054860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/021Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system adopting a different treatment of each operating region or a different mode of the monitored system, e.g. transient modes; different operating configurations of monitored system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Positive-Displacement Pumps (AREA)

Abstract

The present invention relates to a kind of water pump controller test system and the autonomous setting method of IP address, method and step are as follows:One, water pump controller to be measured is packed into test cabinet, and connected the line;Two, pass through the row number of the current water pump controller to be measured of test cabinet row number identification circuit identification, three, the position number of the affiliated water pump controller to be measured arranged is identified by test cabinet position identification circuit, four, the IP address of all water pump controllers to be measured is provided with, and starts host computer;Five, host computer, which is sent, obtains IP address broadcasting command;Six, IP=i+j is sent to host computer by water pump controller to be measured;Seven, after host computer obtains IP address, the test database of water pump controller to be measured is established, carrying out IP address setting method to the equipment for testing system using the method for the invention has the features such as simple in structure, reliability is high, highly practical;Can have it is quick, effective solve the problems, such as that IP address and Position Number are inconsistent, for equipment network address distribute field provide a kind of new scheme.

Description

A kind of water pump controller test system and the autonomous setting method of IP address
Technical field
The present invention relates to a kind of water pump controllers to test the autonomous setting method of system ip address, for setting water pump controller The IP address of each water pump controller to be measured in test system, be suitable for each class of electronic devices (such as Switching Power Supply, frequency converter and LED controller etc.) test system IP address setting.
Background technology
Water pump controller test system is to carry out integration test for water pump controller various functions to be measured and performance parameter Platform, stability and performance be directly related to the detection of water pump controller product defects to be measured, before being Devices to test manufacture Last one of gate of the quality monitoring, importance is self-evident.Test system is mainly set including host computer (PC machine), all kinds of simulation tests Standby (for example, programmable power supply, electronic load, electrostatic generator, lightning stroke and surge simulator, failure simulation device etc.), IP The compositions such as address recognition unit and water pump controller to be measured.On the one hand, host computer is adjusted by controlling all kinds of simulation test equipments The gamut scopes such as input voltage parameter, output load current parameter, safety parameter and the simulated failure parameter of controller are adjusted, The input voltage performance test for surveying controller, output current test, the test of load dynamic response performance, safety are treated to realize The test etc. of Perfomance of protective relaying under performance test and various fault conditions, it is ensured that there will be the controllers of problem to come into the market Between found out, avoiding substandard product from flowing into user market leads to the generations of various safety accidents.On the other hand, water to be measured Pump controller needs to obtain the test information for being currently at which kind of function during the test, and corresponding test data is passed through Bus mode is uploaded to host computer;Finally, host computer will receive what the water pump controller to be measured with unique ip address uploaded Data are analyzed with anticipatory data, and obtain the corresponding test report of every Devices to test, consequently facilitating technical staff carries out Data analysis and technological improvement determine the IP address harmony photoelectric alarm of the faulty equipment IP address Position Number (Devices to test IP address it is consistent with the Position Number that the equipment is placed), realize the automation and intelligence of test system, improve test Efficiency and testing reliability.The realization of above-mentioned test function is related to testing the setting method of system ip address.
The prior art mainly has static ip address setting side to the IP address setting method of controller to be measured in test system Method and dynamic IP addressing setting method.Static ip address setting method, mainly there is following methods:1. dial-up setting side Formula;The IP address of controller is set by way of dial-up;2. Digiplex is set:Pass through a dedicated wireless remote Control the IP address of device set device;3. burning program mode:The initialization system IP address i.e. in source code, and it is cured to chip In;Above-mentioned several dominant static IP address set its main common ground as according to needing to be manually set, and once set, as long as not It resets, which is maintained for constant.Unique SN sequence numbers setting in dynamic IP addressing setting method Main Basiss chip, It mainly by obtaining the sequence number of online equipment master controller chip, is ranked up or other IP address generates algorithm and obtain To unique IP address.Once there is other equipment to be inserted into test system, then the equipment can send out request distribution address challenges.Test After cabinet controller receives the requirement, the IP address of equipment is redistributed according to the IP address generation method of front.Above two IP address setting method has the following problems in a test system:How to ensure to be placed in test cabinet at particular number to be measured sets Standby IP address is consistent with number is placed.If this is mainly due to IP address and the placement number in test cabinet to differ It causes, then how host computer quickly navigates to the equipment based on the data that IP address is testedOnly by the position of Devices to test Number information is consistent with IP address information, then operating personnel can avoid according to IP address quick and precisely pin numbers Accident defect product flows out.To realize above-mentioned target, existing above-mentioned static ip address setting method and dynamic IP addressing setting side There is limitation in method.For static ip address setting method, needs are found out numbers identical IP address with placement location Devices to test, and place in the position.Working strength is on the one hand increased in this way;On the other hand, reliability is too low, once control Device IP address processed and placement location number are inconsistent, it is likely that the product that there is no problem is mistakenly considered faulty by appearance, and has The product of defect comes into the market instead.For above-mentioned dynamic IP addressing setting method, it is ensured that IP address is compiled with placement location It is number consistent, then it is difficult to realize.
Invention content
It is an object of the present invention to overcome the above deficiencies, proposes that a kind of water pump controller tests system and IP address certainly Main setting method.
The technical scheme is that:A kind of water pump controller tests system comprising host computer is connect with host computer Simulation test equipment and several test cabinets, the test cabinet is interior to install several water pump controllers to be measured, is set in the test cabinet There are test cabinet position identification circuit, the I/O of water pump controller to be measured1Mouth is connect with test cabinet position identification circuit successively, described Test cabinet is externally provided with test cabinet row number identification circuit, the I/O of water pump controller to be measured0Mouth successively with test cabinet arrange in numerical order identification circuit Connection, test cabinet position identification circuit include that inverted T shaped DA conversion circuits and relay are opened with test cabinet row number identification circuit Powered-down road, the I/O of coil one end and water pump controller to be measured of the relay switch1Mouth or I/O0Mouth connection, the test cabinet The output end of position identification circuit and each water pump controller AD to be measured1Mouthful connection, test cabinet row number identification circuit it is defeated Outlet and each water pump controller AD to be measured0Mouth connection.
A kind of autonomous setting method of IP address for testing system based on above-mentioned water pump controller, its step are as follows:
One, water pump controller to be measured is packed into test cabinet, and connected the line;
Two, the row number of current water pump controller to be measured is identified by test cabinet row number identification circuit,
Its step are as follows:Water pump controller passes through I/O0Mouth control relay TiIt switches on and off, and passes through AD0Thief hatch The output voltage Vo for obtaining inverted T shaped DA conversion circuits respectively obtains two sampled data Data0[0] and Data0[1],
To Data0[0] and Data0[1] xor operation is carried out, i.e.,
Determine xor operation result temp0Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is the row number for the test cabinet that the water pump controller is placed;
Three, the position number of the affiliated water pump controller to be measured arranged is identified by test cabinet position identification circuit,
Its step are as follows:Water pump controller passes through I/O1Mouth control relay SjIt switches on and off, and passes through AD1Thief hatch The output voltage Vo for obtaining inverted T shaped DA conversion circuits respectively obtains two sampled data deposit array Data1[0] and Data1[1] In, to Data1[0] and Data1[1] xor operation is carried out, i.e.,
Determine xor operation result temp1Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is Position Number that the water pump controller is placed in test cabinet, by the The position combination detected in row number and the third step detected in two steps is set as the IP address of current water pump controller, i.e. IP =i+j;
Four, the IP address of all water pump controllers to be measured is provided with, and starts host computer;
Five, host computer, which is sent, obtains IP address broadcasting command acquisition water pump controller IP address to be measured;
Six, after water pump controller to be measured receives the acquisition water pump controller IP address command to be measured of host computer, this is waited for The IP=i+j for surveying water pump controller is sent to host computer, and wherein i is row number, and j is position number;
Seven, after host computer obtains the IP address back of water pump controller to be measured, the test number of water pump controller to be measured is established According to library.
In step 3, water pump controller obtains the corresponding sampling digital quantities of inverted T shaped DA conversion circuits output voltage Vo in real time
Wherein:J is the position number that water pump controller to be measured is placed,
K is water pump controller position to be measured maximum value and the digit that AD is sampled, by judging K bit binary datas Data1In 1 Digit, so that it is determined that the position number in the test cabinet that water pump controller is put into.
The detailed process of step 2 and step 3 is as follows:
A, initialization sample port AD1And AD0, control I/O0=0 and I/O1=0, i.e. closing relay Ti and Sj, be delayed T Time samples AD0And AD1, data are stored in Data respectively0[0] and Data1[0];
B, I/O is controlled0=1 and I/O1=1, that is, disconnect relay TiAnd Sj, be delayed T time, samples AD0And AD1, by data It is stored in Data respectively0[1] and Data1[1];
C, respectively to Data1[0] and Data1[1] or Data0[0] and Data0[1] xor operation is carried out,
ObtainWithValue;
D, temp is determined by the result in c0==0 | | temp1==0 is invalid, then obtains temp0That middle position is 1 Number N0And temp1The number N that middle position is 11
E, judge N0==1&&N1Temp is taken out in==10The row number i and take out temp that middle position is 11The position number that middle position is 1 j;
F, by the i obtained in e and j, the IP address for being arranged to water pump controller to be measured is IP=i+j.
A kind of water pump controller test autonomous setting method of system ip address of the present invention and existing static ip address Setting scheme is compared, and is had the advantage that:
1. the IP address setting of controller does not need operating personnel's setting, there is test system to set automatically completely;
2. can guarantee that set IP address is strictly consistent with controller placement location number;
After 3. test terminates, which removes automatically, is not take up memory and influences other functions;
4. the IP address setting method is accurate, quickly, be simply easily achieved;
5. the address ip setting method need not separately add other controllers;
6. the address ip setting method has very strong versatility, thus the invention has very high cost performance and is applicable in mutual It is transsexual;
A kind of water pump controller test autonomous setting method of system ip address of the present invention and existing dynamic IP addressing Setting scheme is compared, and is had the advantage that:
1. any information without obtaining controller main control chip, so as to realize the control based on different main control chip platforms Device processed is carried out at the same time test;
2. can accurately realize that IP address is consistent with controller placement location number;
3. the IP address setting method is accurate, quickly, be simply easily achieved;
4. the address ip setting method need not separately add other controllers;
Meanwhile carrying out IP address setting method to the equipment for testing system using the method for the invention has structure simple It is single, reliability is high, it is highly practical the features such as;Can have it is quick, effective solve the problems, such as that IP address and Position Number are inconsistent, to set Standby networking address distribution field provides a kind of new scheme, is especially applied to water pump controller, electric machine controller, frequency converter It is set with test system ip address such as power supplys.
Description of the drawings
Fig. 1 is water pump controller test system structure figure.
Fig. 2 is host computer address acquisition algorithm flow chart.
Fig. 3 is the autonomous set algorithm flow chart in water pump controller address to be measured.
Fig. 4 is that water pump controller address to be measured uploads algorithm flow chart.
Specific implementation mode
The embodiment of the present invention is described further below for attached drawing:
As shown in Figure 1, a kind of water pump controller tests system comprising host computer, the simulation test being connect with host computer Equipment and several test cabinets, the interior several water pump controllers to be measured of installing of the test cabinet, the test cabinet is interior to be equipped with test cabinet Position identification circuit, the I/O of water pump controller to be measured1Mouth is connect with test cabinet position identification circuit successively, outside the test cabinet Equipped with test cabinet row number identification circuit, the I/O of water pump controller to be measured0Mouth is connect with test cabinet row number identification circuit successively, institute It includes inverted T shaped DA conversion circuits and relay switching circuit to state test cabinet position identification circuit and test cabinet row number identification circuit, The I/O of coil one end and water pump controller to be measured of the relay switch1Mouth or I/O0Mouth connection, the test cabinet position number are known The output end of other circuit and each water pump controller AD to be measured1Mouthful connection, the output end of test cabinet row number identification circuit with Each water pump controller AD to be measured0Mouth connection.
Wherein simulation test equipment includes programmable power supply, and electronic load, electrostatic generator, be struck by lightning simulator and surge Simulator, failure simulation device etc., host computer by controlling bus control all kinds of simulation test equipments (for example, programmable power supply, Electronic load, electrostatic generator, lightning stroke and surge simulator, failure simulation device etc.), realize the input voltage of controller The gamut adjusting of parameter, output current parameter, load parameter, safety parameter and other fault parameters;Host computer and water to be measured Pump controller forms LAN by communication bus and carries out data exchange;All kinds of simulation test equipments are (for example, programmable power supply, electricity Son load, electrostatic generator, lightning stroke and surge simulator, failure simulation device etc.) by power supply and loading bus with wait for Controller connection is surveyed, realizes input voltage parameter, output current parameter, load parameter, safety parameter and other surveys of controller Try the access of parameter.
One, host computer mainly realizes the IP address for obtaining water pump controller to be measured and establishes corresponding test database, control Simulation test equipment processed, which changes testing process and adjusts test parameter and receive, uploads the test report that data generate Devices to test And associated databases;
Two, water pump controller to be measured mainly realizes that identification self-position is numbered and set IP address, uploads IP address and survey Try the corresponding status data of flow.
Three, the test cabinet position identification circuit of relay and inverted T shaped DA compositions:One, which opens one, closes relay SjIt is (1≤j≤K) and inverted T shaped DA conversion circuits are put into the Position Number number of ascending the throne of the controller of test cabinet for identification, and realization principle is as follows:1. water pump controller Pass through I/O1Mouth control relay SjIt switches on and off, and passes through AD1Thief hatch obtains the output voltage Vo of inverted T shaped DA conversion circuits, Respectively obtain two sampled data deposit array Data1[0] and Data1[1] in;2. to Data1[0] and Data1[1] exclusive or behaviour is carried out Make, i.e.,Determine xor operation result temp1Whether satisfaction have and only one be 1, other positions It is 0If it is, the position for being determined as 1 is the Position Number that the water pump controller is placed in test cabinet.Its recognition principle is such as It is lower described:Water pump controller obtains inverted T shaped DA conversion circuits output voltage V in real time0Corresponding sampling digital quantity (wherein:J is the Position Number for representing water pump controller placement,K is water to be measured Pump controller Position Number maximum value and the digit of AD samplings);By whom judging in K bit binary datas Data for 1, to Determine which numbered positions water pump controller has been put into.This is because being put into water pump control to be measured when numbering the position for being j A closed form relay S is opened in device, then water pump controller control one to be measuredjContacting, so that inverted T shaped DA conversion circuits is defeated Go out voltage V0Size change, meet
Water pump controller is to V0Sampling obtained digital quantity is:It is waited for realize Survey the identification that water pump controller places number.
Four, the test cabinet row number identification circuit of relay and inverted T shaped DA compositions:One, which opens one, closes relay Ti(1≤i≤N) The test cabinet number being put into for identification with inverted T shaped DA conversion circuits, realization principle are as follows:1. water pump controller passes through IO0 Mouth control relay Ti is switched on and off, and passes through AD0Thief hatch obtains the output voltage Vo of inverted T shaped DA conversion circuits, respectively Obtain two sampled data deposit array Data0[0] and Data0[1] in;2. to Data0[0] and Data0[1] exclusive or behaviour is carried out Make, i.e.,Determine xor operation result temp0Whether satisfaction have and only one be 1, other Position is 0If it is, the position for being determined as 1 is the row number for the test cabinet that the water pump controller is placed.
A kind of autonomous setting method of IP address for testing system based on above-mentioned water pump controller, its step are as follows:
One, water pump controller to be measured is packed into test cabinet, and connected the line;
Two, the row number of current water pump controller to be measured is identified by test cabinet row number identification circuit,
Its step are as follows:Water pump controller passes through I/O0Mouth control relay Ti is switched on and off, and passes through AD0Thief hatch The output voltage Vo for obtaining inverted T shaped DA conversion circuits respectively obtains two sampled data Data0[0] and Data0[1],
To Data0[0] and Data0[1] xor operation is carried out, i.e.,
Determine xor operation result temp0Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is the row number for the test cabinet that the water pump controller is placed;
Three, the position number of the affiliated water pump controller to be measured arranged is identified by test cabinet position identification circuit,
Its step are as follows:Water pump controller passes through I/O1Mouth control relay Sj is switched on and off, and passes through AD1Thief hatch The output voltage Vo for obtaining inverted T shaped DA conversion circuits respectively obtains two sampled data deposit array Data1[0] and Data1[1] In, to Data1[0] and Data1[1] xor operation is carried out, i.e.,
Determine xor operation result temp1Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is Position Number that the water pump controller is placed in test cabinet, by the The position combination detected in row number and the third step detected in two steps is set as the IP address of current water pump controller, i.e. IP =i+j;
Four, the IP address of all water pump controllers to be measured is provided with, and starts host computer;
Five, host computer, which is sent, obtains IP address broadcasting command acquisition water pump controller IP address to be measured;
Six, after water pump controller to be measured receives the acquisition water pump controller IP address command to be measured of host computer, this is waited for The IP=i+j for surveying water pump controller is sent to host computer, and wherein i is row number, and j is position number;
Seven, after host computer obtains the IP address back of water pump controller to be measured, the test number of water pump controller to be measured is established According to library.
In step 3, water pump controller obtains the corresponding sampling digital quantities of inverted T shaped DA conversion circuits output voltage Vo in real time
Wherein:J is the position number that water pump controller to be measured is placed,
K is water pump controller position to be measured maximum value and the digit that AD is sampled, by judging K bit binary datas Data1In 1 Digit, so that it is determined that the position number in the test cabinet that water pump controller is put into.
The detailed process of step 2 and step 3 is as follows:
A, initialization sample port AD1And AD0, control I/O0=0 and I/O1=0, i.e. closing relay Ti and Sj, be delayed T Time samples AD0And AD1, data are stored in Data respectively0[0] and Data1[0];
B, I/O is controlled0=1 and I/O1=1, that is, disconnect relay TiAnd Sj, be delayed T time, samples AD0And AD1, by data It is stored in Data respectively0[1] and Data1[1];
C, respectively to Data1[0] and Data1[1] or Data0[0] and Data0[1] xor operation is carried out,
ObtainWithValue;
D, temp is determined by the result in c0==0 | | temp1==0 is invalid, then obtains temp0That middle position is 1 Number N0And temp1The number N that middle position is 11
E, judge N0==1&&N1Temp is taken out in==10The row number i and take out temp that middle position is 11The position number that middle position is 1 j;
F, by the i obtained in e and j, the IP address for being arranged to water pump controller to be measured is IP=i+j.
It mainly includes IP address acquisition methods, the autonomous setting method of water pump controller IP address and the water pump of host computer Controller IP address method for uploading
The IP address acquisition methods flow of host computer is as shown in Fig. 2, main realize receives water pump controller IP address and build Corresponding database is found, address setting process is described as follows:
(1) all water pumps to be measured are put into after test cabinet powers on, host computer test software are run, subsequently into step Suddenly (2);
(2) host computer, which is sent, obtains IP address command water supply pump controller, (3) subsequently into step;
(3) the IP address of all water pump controllers to be measured is received, (4) subsequently into step;
(4) the corresponding test result data library of all water pump controller IP address is established, (5) subsequently into step;
(5) dependence test program is executed according to testing process, (6) subsequently into step;
(6) test whether to terminateIf so, into (7);Otherwise, into (5);
(7) send test program and terminate order, (8) subsequently into step;
(8) test program terminates.
The autonomous setting method flow of water pump controller IP address is as shown in figure 3, mainly realize the IP address of water pump controller Setting, address setting process are described as follows:
(1) it is powered and runs after water pump controller is connected by regulation, subroutine entry is set into IP address, subsequently into Step (2);
(2) I/O is initialized0、I/O1For open-drain output and initialize AD0And AD1, subsequently into step (3);
(3) judge counter C>Nmax(wherein, NmaxTo set maximum times)If so, entering step (17);Otherwise, It enters step (4);
(4) counter C++, subsequently into step (5);
(5) I/O is controlled0=0 and I/O1=0, i.e. closing relay TiAnd Sj, subsequently into step (6);
(6) (T time size can be determined the T time that is delayed by two place values after controller SN, avoid more to greatest extent in this way Controller operational relay the problem of bringing simultaneously), subsequently into step (7);
(7) AD is sampled0And AD1, data are stored in Data respectively0[0] and Data1[0], subsequently into step (8);
(8) I/O is controlled0=1 and I/O1=1, that is, disconnect relay TiAnd Sj, subsequently into step (9);
(9) be delayed T time, subsequently into step (10);
(10) AD is sampled0And AD1, data are stored in Data respectively0[1] and Data1[1], subsequently into step (11);
(11) it finds outWithSubsequently into step (12);
(12) judge temp0==0 | | temp1==0;If so, entering step (3);Otherwise, it enters step (13);
(13) temp is sought0The number N that middle position is 10And temp1The number N that middle position is 11, subsequently into step (14);
(14) judge N0==1&&N1==1If it is, entering step (15);Otherwise, it enters step (3);
(15) temp is taken out0The row number i and take out temp that middle position is 11The position j that middle position is 1, subsequently into step (16);
(16) IP=i (high bytes being arranged:Row number)+j (low bytes:Position number), subsequently into step (17);
(17) IP address setting subprogram exits.
Water pump controller IP address uploads algorithm flow and receives host computer with obtaining IP as shown in figure 4, being primarily implemented in The IP address of this equipment is uploaded after the order of location, it is as follows that address uploads algorithmic descriptions:
(1) enter IP address and upload subroutine entry, subsequently into step (2);
(2) judge whether to receive IP address upload commandIf it is, entering step (3);Otherwise, it enters step (9);
(3) set receives IP address upload command, subsequently into step (4);
(4) this IP address of equipment is uploaded, subsequently into step (5);
(5) judge whether that receiving host computer confirms replyIf it is, entering step (8);Otherwise, it enters step (6);
(6) timer Timer++, subsequently into step (7);
(7) judge whether timing arrivesIf it is, entering step (9);Otherwise, it enters step (4);
(8) it resets and receives IP address upload command, subsequently into step (9);
(9) IP address uploads subprogram and exits.
The structure of the test cabinet of this example is 10 × 10, i.e. test cabinet has 10 rows, and often row carries out for having 10 test positions It illustrates, test case basic procedure is:
(a) Devices to test is put into test cabinet by operator;
(b) water pump controller to be measured of test cabinet is put by the autonomous setting program of IP address to being put into the row number of test cabinet And the Position Number belonging to row is identified and is set with IP address;
(c) after all devices are placed, host computer test program is run;
(d) host computer obtains the IP address that IP address broadcasting command obtains all water pump controllers to be measured by transmission, and Establish corresponding test database;
(e) after test cabinet water pump controller receives the acquisition IP address of equipment order of host computer, by the water pump control to be measured IP=i (the high bytes of device processed:Row number)+j (low bytes:Location number) it is sent to host computer;
(f) host computer obtain thus IP address back establish the test database of equipment under test, address setting process knot Beam.
Embodiment is not construed as the limitation to invention, but any spiritual improvements introduced based on the present invention, all Ying Ben Within the protection domain of invention.

Claims (4)

1. a kind of water pump controller tests system comprising host computer, the simulation test equipment being connect with host computer and several Test cabinet, it is characterised in that:Several water pump controllers to be measured of installing in the test cabinet, the test cabinet is interior to be equipped with test cabinet position Number identification circuit, the I/O of water pump controller to be measured1Mouth is connect with test cabinet position identification circuit successively, the test cabinet peripheral hardware There are test cabinet row number identification circuit, the I/O of water pump controller to be measured0Mouth is connect with test cabinet row number identification circuit successively, described Test cabinet position identification circuit and test cabinet row number identification circuit include inverted T shaped DA conversion circuits and relay switching circuit, The I/O of coil one end and water pump controller to be measured of the relay switch1Mouth or I/O0Mouth connection, the test cabinet position number are known The output end of other circuit and each water pump controller AD to be measured1Thief hatch connects, the output of the test cabinet row number identification circuit End and each water pump controller AD to be measured0Thief hatch connects.
2. a kind of water pump controller based on described in the claims 1 tests the autonomous setting method of IP address of system, special Sign is:Its step are as follows:
One, water pump controller to be measured is packed into test cabinet, and connected the line;
Two, the row number of current water pump controller to be measured is identified by test cabinet row number identification circuit,
Its step are as follows:Water pump controller passes through I/O0Mouth control relay TiIt switches on and off, and passes through AD0Thief hatch obtains The output voltage Vo of inverted T shaped DA conversion circuits respectively obtains two sampled data Data0[0] and Data0[1],
To Data0[0] and Data0[1] xor operation is carried out, i.e.,
Determine xor operation result temp0Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is the row number for the test cabinet that the water pump controller is placed;
Three, the position number of the affiliated water pump controller to be measured arranged is identified by test cabinet position identification circuit,
Its step are as follows:Water pump controller passes through I/O1Mouth control relay SjIt switches on and off, and passes through AD1Thief hatch obtains The output voltage Vo of inverted T shaped DA conversion circuits respectively obtains two sampled data deposit array Data1[0] and Data1[1] in, To Data1[0] and Data1[1] xor operation is carried out, i.e.,
Determine xor operation result temp1Whether satisfaction have and only one be 1, other positions be 0,
As a result it is yes, it is determined that the position for 1 is the Position Number that the water pump controller is placed in test cabinet, by second step In the row number that detects and the position combination detected in third step be set as the IP address of current water pump controller, i.e. IP=i+ j;
Four, the IP address of all water pump controllers to be measured is provided with, and starts host computer;
Five, host computer, which is sent, obtains IP address broadcasting command acquisition water pump controller IP address to be measured;
Six, after water pump controller to be measured receives the acquisition water pump controller IP address command to be measured of host computer, by the water to be measured The IP=i+j of pump controller is sent to host computer, and wherein i is row number, and j is position number;
Seven, after host computer obtains the IP address back of water pump controller to be measured, the test database of water pump controller to be measured is established.
3. a kind of autonomous setting method of IP address of water pump controller test system according to claim 2, feature exist In:In step 3, water pump controller obtains the corresponding sampling digital quantities of inverted T shaped DA conversion circuits output voltage Vo in real time
Wherein:J is the position number that water pump controller to be measured is placed,
K is water pump controller position to be measured maximum value and the digit that AD is sampled, by judging K bit binary datas Data1In 1 Digit, so that it is determined that the position number in the test cabinet that water pump controller is put into.
4. a kind of autonomous setting method of IP address of water pump controller test system according to claim 2, feature exist In:The detailed process of step 2 and step 3 is as follows:
A, initialization thief hatch AD1And AD0, control I/O0=0 and I/O1=0, i.e. closing relay TiAnd Sj, be delayed T time, adopts Sample AD0And AD1, data are stored in Data respectively0[0] and Data1[0];
B, I/O is controlled0=1 and I/O1=1, that is, disconnect relay TiAnd Sj, be delayed T time, samples AD0And AD1, data are distinguished It is stored in Data0[1] and Data1[1];
C, respectively to Data1[0] and Data1[1] or Data0[0] and Data0[1] xor operation is carried out,
ObtainWithValue;
D, temp is determined by the result in c0==0 | | temp1==0 is invalid, then obtains temp0The number N that middle position is 10 And temp1The number N that middle position is 11
E, judge N0==1&&N1Temp is taken out in==10The row number i and take out temp that middle position is 11The position j that middle position is 1;
F, by the i obtained in e and j, the IP address for being arranged to water pump controller to be measured is IP=i+j.
CN201610389515.4A 2016-06-03 2016-06-03 A kind of water pump controller test system and the autonomous setting method of IP address Active CN106054860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610389515.4A CN106054860B (en) 2016-06-03 2016-06-03 A kind of water pump controller test system and the autonomous setting method of IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610389515.4A CN106054860B (en) 2016-06-03 2016-06-03 A kind of water pump controller test system and the autonomous setting method of IP address

Publications (2)

Publication Number Publication Date
CN106054860A CN106054860A (en) 2016-10-26
CN106054860B true CN106054860B (en) 2018-08-24

Family

ID=57170094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610389515.4A Active CN106054860B (en) 2016-06-03 2016-06-03 A kind of water pump controller test system and the autonomous setting method of IP address

Country Status (1)

Country Link
CN (1) CN106054860B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201171877Y (en) * 2008-02-04 2008-12-31 李吉玉 Automatic polling testing water monitoring device of fire pump
CN203084549U (en) * 2013-01-08 2013-07-24 台州神能电器有限公司 Programmable logic controller (PLC) and touch screen type water pump controller testing system
EP2645195A2 (en) * 2012-03-27 2013-10-02 General Electric Company Systems and methods for improved reliability operations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201171877Y (en) * 2008-02-04 2008-12-31 李吉玉 Automatic polling testing water monitoring device of fire pump
EP2645195A2 (en) * 2012-03-27 2013-10-02 General Electric Company Systems and methods for improved reliability operations
CN203084549U (en) * 2013-01-08 2013-07-24 台州神能电器有限公司 Programmable logic controller (PLC) and touch screen type water pump controller testing system

Also Published As

Publication number Publication date
CN106054860A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106093631B (en) A kind of IP setting methods for the Testing System for Electronic Equipment having position identification
CN106124888B (en) A kind of full-automatic adjustment method and system of microcomputer protective relay device
CN106093633B (en) A kind of electronic equipment tests system and IP address setting method
CN105978152B (en) A kind of intelligent substation telemechanical apparatus and the method for regulating and controlling main website automated closed-loop joint debugging
CN204631214U (en) General overcurrent and ground(preference) relay proving installation
CN104849580A (en) System and method for testing function of protecting card
CN204631149U (en) Protection fastener function test system
CN104849582A (en) System and method for overcurrent protection and voltage monitoring device burn-in test
CN103925853A (en) Carrier rocket ground test system device
CN103616560A (en) Automatic power consumption parameter testing device and method applied to avionics device
CN108089083A (en) Alternating-current charging pile detecting system
CN110084158A (en) A kind of electrical equipment recognition methods based on intelligent algorithm
US9188632B1 (en) Self learning radio frequency monitoring system for identifying and locating faults in electrical distribution systems
CN205941032U (en) Air conditioner divides internal quick -witted commodity inspection system
CN106687872A (en) Method for data collection for the configuration of a building automation system and method for configuring a building automation system
KR20120135761A (en) Integrated monitoring and control system using cabinet panel
CN106093632A (en) Based on the IP addressing method and the system that scan tested electronic equipment position
CN106054860B (en) A kind of water pump controller test system and the autonomous setting method of IP address
CN106249628B (en) A kind of smart machine installation site automatic recognition system and method
CN105867356B (en) A kind of water pump controller test system and IP address setting method
CN105703479B (en) Main website, the method for substation automation equipment linkage from top to bottom are realized in passage extension
Dobrescu Domotic embedded system
JP7117500B2 (en) Wiring confirmation system, wiring confirmation method, slave unit, and master unit
US20190278346A1 (en) Controlling and/or monitoring cathodic protection rectifiers
CN103135468A (en) Digital subcamp measurement and control extension and measurement and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210804

Address after: Shaan village, Daxi Town, Wenling City, Taizhou City, Zhejiang Province

Patentee after: Qianfeng Pump Co.,Ltd.

Address before: 325000 Wenzhou City National University Science Park incubator, No. 38 Dongfang South Road, Ouhai District, Wenzhou, Zhejiang

Patentee before: Wenzhou University

TR01 Transfer of patent right