Summary of the invention
The object of the invention is to overcome defects, a kind of Intelligent power failure method of testing and system are provided.
The object of the present invention is achieved like this: a kind of Intelligent power failure test macro, and it comprises power module, control end, light current control module, heavy-current control module, memory storage, display device and network communication module; Described memory storage, display device and network communication module are connected with control end; It is described,
Power module is used for to system power supply;
Control end is used for realizing controlling powering on and removing electricity of light current control module and heavy-current control module within preset time according to the test parameter that arranges, and carries out data and transmit alternately; Described test parameter comprises test duration, interval time, testing time, conduction time and power-off time;
The light current control module is used for being connected with outside weak current equipment to be measured, and simulation light current power down circumstances is tested;
The heavy-current control module is used for being connected with outside heavy current installation to be measured, and simulation forceful electric power power down circumstances is tested.
Memory module, be used for carrying out data interaction with control end, preserve the data message of the Devices to test that pre-sets before test, the test parameter information of setting, and to the test data information in current test process, the test result data when final test is complete is stored;
Display device is used for carrying out data interaction with control end, and the parameter of current setting and real-time test status are shown;
The network communication module is used for carrying out data interaction with control end, test data is sent to carries out remote monitoring on the Internet in real time;
In said structure, described light current control module comprises multichannel light current control module, and described light current control module comprises low pressure on-off switch device, and low pressure on-off switch device comprises relay and/or metal-oxide-semiconductor.
In said structure, described heavy-current control module comprises multichannel heavy-current control unit, and described heavy-current control unit comprises the electronic switching tube, the isolation of band photoelectricity and the function thyratron driver that sets out that are connected successively, bidirectional thyristor and resistance-capacitance absorption loop.
The present invention also provides a kind of method of Intelligent power failure test, and it comprises step,
S1), start test macro, need to judge whether Reparametrization, be to wait for that setup parameter arranges rear continuation step; Otherwise read the parameter setting that prestores;
Described parameter setting in this step comprises test duration, interval time, testing time, conduction time and power-off time;
S2), read the Devices to test data that prestore;
S3), the circuit of the heavy-current control corresponding according to the data selection of Devices to test or light current control;
S4), begin test, judging whether need to be with the real-time testing information output, if export current test data, until the continuation step is completed in test; Otherwise the continuation step of completing to be tested;
Better, after this step, also comprise the step that shows and store the current test data of described output;
Better, export current test data by network in this step and carry out data interaction to long-range;
S5), judge whether according to the parameter setting of step S2 the test of next time cutting off the power supply, be to go back to step S3, otherwise finish test, and test result is preserved.
Beneficial effect of the present invention is to provide a kind of Intelligent power failure test macro and method, drives the orderly power down of light current control module, heavy-current control module, powers on according to parameter setting and the controlled output of Devices to test data by control end.Realize the power down test of full-automatic full intelligence, had advantages of that efficient is high, save human cost, safer, and can realize the testing requirement that the safety coefficient of forceful electric power type is had relatively high expectations.Product can satisfy the testing requirement of plurality of devices, reduces testing cost.More can arrange in pairs or groups and realize remote control, more be convenient to management, Real Time Monitoring is guaranteed testing reliability.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, being realized purpose and effect, below in conjunction with embodiment and coordinate accompanying drawing to be explained in detail.
See also Fig. 1, at first the present invention provides a kind of Intelligent power failure test macro, and it comprises power module, control end, light current control module, heavy-current control module, memory storage, display device and network communication module.Light current control module, heavy-current control module, memory storage, display device and network communication module are connected with control end respectively.Wherein:
Power module is used for to system power supply;
Control end is used for realizing controlling powering on and removing electricity of light current control module and heavy-current control module within preset time according to the test parameter that arranges, and carries out data and transmit alternately;
Described test parameter comprises test duration, interval time, testing time, conduction time and power-off time etc.;
The light current control module is used for being connected with outside weak current equipment to be measured, and simulation light current power down circumstances is tested;
The heavy-current control module is used for being connected with outside heavy current installation to be measured, and simulation forceful electric power power down circumstances is tested.
Memory module, be used for carrying out data interaction with control end, preserve the data message of the Devices to test that pre-sets before test, the test parameter information of setting, and to the test data information in current test process, the test result data when final test is complete is stored;
Display device is used for carrying out data interaction with control end, and the parameter of current setting and real-time test status are shown;
The network communication module is used for carrying out data interaction with control end, test data is sent to carries out remote monitoring on the Internet in real time.
Thus, native system by satellite interface program after burned control end, system can start working.
If test is weak current equipment, Devices to test is accessed wherein one tunnel light current control module, control end sends signal to the light current control module of top, carries out light current outage test, and related data in test is presented at above display device.The data that pilot process produces and last result are kept in memory module.
In like manner, if need carry out heavy current installation outage test, equipment access heavy-current control unit, control end sends to the heavy-current control unit to control signal, cut off the power supply and control test, during data be presented in real time on display device, final data also are kept at the memory module the inside.
Native system is applicable and control light current: 0 ~ 36V, forceful electric power: greater than the test case of 36V.
Best, light current control module in said structure comprises the multichannel light current control module of 1-M, each light current control module has included low pressure on-off switch device, by adopting low pressure on-off switch device, this on-off switch device, as relay, MOS etc., under the effect of the signal that control end is sent, carry out the break-make of electric current or voltage.Thereby realize light current outage test, certainly, this light current outage test also can under the control of software, by the difference of make-and-break time, also can realize being modeled to the function of similar trigger switch.
Best, heavy-current control module in said structure comprises the multichannel heavy-current control unit of 1-N, and described heavy-current control unit is to integrate novel electron switching tube, the isolation of band photoelectricity and the function thyratron driver that sets out that solid-state electronic forms, bidirectional thyristor and resistance-capacitance absorption loop.Thereby replace traditional electromagnetism suction type relay, realize the control to single-phase or three-phase supply, contactless, the attonity noise, switching speed, no-spark is disturbed, the safe reliability advantages of higher.Under the control of microcontroller, realize accurately controlling, to public electric wire net on every side without phase interference.Employing has the functional module of voltage isolation, can realize the signal isolation between low pressure and high pressure, and avoiding getting an electric shock occurs, and realizes the safety in production test.
Be the concrete implementing circuit figure of native system as Fig. 2-5.Shown in Fig. 2, middle power module comprises power supply chip Power1 and USB interface USBPOWER and pin JP7.Control end is a microcontroller STC, and is provided with parameter selection key S2-S5.Figure 3 shows that the heavy-current control module, include 4 tunnel heavy-current control unit.And Fig. 4 is the light current control module, includes equally 4 road light current control modules.Fig. 5 is peripheral devices, comprises the winding displacement P2 that connects display device, temperature sensor P4, the storage chip 24C02 of memory module, control pilot lamp LED1, the LED2 of display device, the alarm LS1 of display device, the master chip MAX232 of communication and program download module, serial ports DB9.
Be the line schematic diagram of one tunnel heavy-current control unit block in above-mentioned specific embodiment circuit diagram referring to Fig. 6,220V civil power input male socket J1 passes into the 220V civil power, the isolation of live wire connecting band photoelectricity and set out function thyratron driver U15 and bidirectional thyristor Q2.
and control end is by the P11 whole heavy-current control of the control unit with Transistor-Transistor Logic level, when control end transmits high level, electronic switching tube Q1 conducting, the isolation of band photoelectricity and the function thyratron driver U15 interior light emitting diodes of setting out emit beam, 4 and 6 pins with photoelectricity isolation and the function thyratron driver U15 that sets out have been triggered, bidirectional thyristor Q2 controls 4 pins of the isolation of utmost point connecting band photoelectricity and the function thyratron driver U15 that sets out, thereupon, bidirectional thyristor Q2, live wire J1 just and be inserted into testing apparatus female seat J2 and be communicated with, the live wire of J2 is with 220V, because the zero line of J2 and the zero line of J1 are communicated with, at this moment, the attaching plug of testing apparatus is inserted J2, starting outfit, equipment is with regard to entry into service.
If in operation process, P11 receives the control of control end, become low level, Q1 cut-off, 1 and 2 pins of U15 stop luminous, trigger circuit stop, in the time of the thyristor voltage zero passage, thyristor quits work, and the road that the J1 live wire leads to the live wire of J2 is cut off, just just lose voltage at Devices to test, quit work.
In order to guarantee thyristor Q2 in work, it is excessive that voltage build-up rate is unlikely to, and damages circuit; the characteristic of utilizing the electric capacity both end voltage not suddenly change; the thyristor Q2 two ends RC resistance-capacitance absorption in parallel circuit of being everlasting limits the voltage build-up rate of thyristor, holding circuit.
Referring to Fig. 7, P10 level under the control of control end is drawn high, at this moment, Q1 and Q2 conducting form 2 grades of amplifying circuits, this time relay U16 the coil adhesive, a normally closed end deflection is often opened an end, and the common port of connection terminal also has normally closed (often opening) often to become to open (normally closed).D3 is connected in parallel on relay coil two ends can effectively prevent surge.
Referring to Fig. 8, the present invention also provides a kind of method of Intelligent power failure test, and it comprises step,
S1), start test macro, need to judge whether Reparametrization, be to wait for that setup parameter arranges rear continuation step; Otherwise read the parameter setting that prestores;
Described parameter setting in this step comprises test duration, interval time, testing time, conduction time and power-off time etc.;
S2), read the Devices to test data that prestore;
S3), the circuit of the heavy-current control corresponding according to the data selection of Devices to test or light current control;
S4), begin test, judging whether need to be with the real-time testing information output, if export current test data, until the continuation step is completed in test; Otherwise the continuation step of completing to be tested;
Better, export current test data by network in this step and carry out data interaction to long-range.
Better, after this step, also comprise the step that shows and store the current test data of described output.
S5), judge whether according to the parameter setting of step S2 the test of next time cutting off the power supply, be to go back to step S3, otherwise finish test, and test result is preserved.
In sum, system provided by the invention and method of testing possess following effect:
1, realize the power down test of full-automatic full intelligence, had advantages of that efficient is high, save human cost, safer, and can realize the testing requirement that the safety coefficient of forceful electric power type is had relatively high expectations;
2, can satisfy the testing requirement of plurality of devices, reduce testing cost;
3, can arrange in pairs or groups and realize remote control, more be convenient to management, Real Time Monitoring is guaranteed testing reliability.
The above is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.