A kind of magnanimity electric energy meter pulse collection device
Technical field:
The invention belongs to the electrical energy meter calibration technical field, relate to a kind of magnanimity electric energy meter metrical pulse harvester, the pulse that is used to measure and gather the magnanimity electric energy meter, and can measure the measuring accuracy of judging electric energy meter automatically.
Background technology:
At present, generally the pulse collection device of Shi Yonging generally is to adopt single-chip microcomputer or other microcontroller acquisition process, because the restriction of resources such as single-chip microcomputer and the IO mouth of other microcontrollers own is difficult to accomplish the collection of magnanimity pulse, and the design cost higher volumes is bigger, electrical energy pulse acquisition testing in the time of can not being used for the electric energy meter batch process basically.Particularly existing traditional pulse collection technical scheme generally is to be core with the single-chip microcomputer, utilize the programmable Timer/counter of single-chip microcomputer, after single-chip microcomputer writes Timer to control word and count value, begin step-by-step counting from electric energy meter, regularly stop to gather and reading; A kind of scheme in addition is sampling eight road pulse signals, eight road pulse signals are connected on certain mouthful of single-chip microcomputer go up (as the p1 mouth), regularly read pulse signal on this mouthful with the twice of the highest frequency of pulse signal then, if the level variation has taken place in a certain position, this road count value just adds one, in like manner tens the tunnel also can handle equally; Though above two kinds of technical schemes can both realize the pulse collection of several roads to tens tunnel, are difficult to accomplish the collection of roads up to a hundred magnanimity pulse; In addition, existing these technique devices do not have the isolating and protecting measure yet, in case the alternating current and the pulse collection short-circuit of terminals, whole harvester just burns and scraps.End is got up, and existing electric energy meter pulse collection and metrological testing technology ubiquity the circuit theory complexity, the preparation cost height; the insulation blocking level is low, poor safety performance, and pulse collection quantity and scope are little; the accuracy of measuring is not high, is difficult to adapt to the shortcomings such as needs of modern electric energy meter development.
Summary of the invention:
The objective of the invention is to overcome the deficiency that existing single-chip microcomputer or other processors exist in magnanimity pulse collection measuring technique, seeking to design provides a kind of brand-new electric energy meter impulsive measurement acquisition technique device, the metrical pulse of measurement electric energy meter that can not only magnanimity, and can be easily and upper machine communication, the pulse data of gathering is carried out automatic gauge and analysis, and demonstrate measurement result accurately.
To achieve these goals, technical scheme of the present invention is to walk at existing electric energy meter that cabinet frame is mid-a magnanimity passive power pulse collection device, collection and data communication that passive power pulse collection device adopts 1-200 sheet programmable logic controller (PLC) (CPLD) to carry out the magnanimity pulse, realization is gathered multiplex pulse simultaneously by CPLD, and the quantity of calculating every road pulse in the time of setting, the data of gathering are passed to upper PC Computer Processing by the serial communication interface of design in the CPLD the inside to be judged, in the Acquisition Circuit of magnanimity pulse, be equipped with rc filter circuit that power supply output and pulse import and exchange isolating transformer, burn out harvester with the short circuit that prevents pulse collection terminal and alternating current terminal; When the electric energy meter passive electrical energy pulse collection of magnanimity was measured, primary processor adopted one or more pieces CPLD in the collecting device; The CPLD logical design of collecting device has 128 tunnel pulse acquisition circuit, and pulse input design has photoelectricity to isolate and active output, the expansion of pulse input magnanimity; The CPLD logical design of collecting device is shaped on the RS485 serial port circuit, and the magnanimity pulse data that collects is uploaded to PC computing machine machine by RS485 communication packing, measures automatically and judges detection; Design has AC-AC to exchange the isolating transformer circuit in the collecting device, with the weak electricity system of protection collecting device and the short circuit of strong power system; Its agent structure comprises single phase alternating current power supply, single-phase electric energy meter, resistance capacity filter, photoelectrical coupler, programmable logic controller (PLC) (CPLD), RS485 serial port circuit, PC computing machine, exchanges power supply output unit, resistance-capacitance type reset circuit unit, active crystal oscillator, LED light and the debugging programming interface of isolating transformer, step-down rectifier formula transformer, LDO linear power supply, passive acquisition pulse; Single phase alternating current power supply one end is exported and is exchanged the isolating transformer electric connection, again with step-down rectifier formula transformer, the power supply output unit of LDO linear power supply and passive acquisition pulse is electrically connected output DC source, back in proper order and is connected power supply with single-phase electric energy meter, the single-phase electric energy meter output terminal is electrically connected with photoelectrical coupler, the stable power-supplying and the telecommunications that are embodied as programmable logic controller (PLC) (CPLD) are communicated with, programmable logic controller (PLC) (CPLD) is the main element of pulse and signal Processing, respectively with the LDO linear power supply, photoelectrical coupler, resistance-capacitance type reset circuit unit, active crystal oscillator, LED light and debugging programming interface are electrically connected, and realize that electrical information is communicated with, handle and the demonstration effect; The other end of photoelectrical coupler is connected the back and docks with the PC computing machine of deal with data and information with the RS485 serial port circuit, realize that computing machine is handled automatically and the output result.
The present invention compared with prior art, can be in the electric energy meter batch production process easily magnanimity gather electrical energy pulse, and analyse and compare automatically and judge whether the electric energy meter metering is accurate, its principle design novelty, complete machine structure is simple, safe and reliable, manipulate nimblely, can effectively improve electric energy meter manufacturing enterprise detection efficiency.
Description of drawings:
Fig. 1 is the structural principle schematic block diagram of apparatus of the present invention, exchanges power supply output unit 12, resistance-capacitance type reset circuit unit 13, active crystal oscillator 14, LED light 15 and the CPLD debugging programming interface 16 of isolating transformer 9, step-down rectifier formula transformer 10, LDO linear power supply 11, passive acquisition pulse comprising resistance capacity filter 3, the photoelectrical coupler 4 of pulse, one or more pieces CPLD 5, RS485 serial ports photoelectrical coupler 6, RS485 serial port circuit 7, PC computing machine 8, the AC-AC of 220V single-phase alternating current 1, single-phase electric energy meter 2, pulse.
Embodiment:
Also in conjunction with the accompanying drawings the present invention is further described below by embodiment.
Embodiment:
The agent structure of present embodiment comprises single phase alternating current power supply 1, single-phase electric energy meter 2, resistance capacity filter 3, photoelectrical coupler 4, programmable logic controller (PLC) (CPLD) 5, photoelectrical coupler 6, RS485 serial port circuit 7, PC computing machine 8, the power supply output unit 12 that exchanges isolating transformer 9, step-down rectifier formula transformer 10, LDO linear power supply 11, passive acquisition pulse, resistance-capacitance type reset circuit unit 13, active crystal oscillator 14, LED light 15 and debugging programming interface 16; Single phase alternating current power supply 1 one ends output with exchange isolating transformer 9 electricity and communicate, again with step-down rectifier formula transformer 10, power supply output unit 12 orders of LDO linear power supply 11 and passive acquisition pulse are electrically connected output DC source, back and are connected power supply with single-phase electric energy meter 2, single-phase electric energy meter 2 output terminals are electrically connected with photoelectrical coupler 4, the stable power-supplying and the telecommunications that are embodied as programmable logic controller (PLC) (CPLD) 5 are communicated with, programmable logic controller (PLC) (CPLD) 5 is the main element of pulse and signal Processing, respectively with LDO linear power supply 11, photoelectrical coupler 6, resistance-capacitance type reset circuit unit 13, active crystal oscillator 14, LED light 15 and debugging programming interface 16 are electrically connected, and realize that electrical information is communicated with, handle and the demonstration effect; The other end of photoelectrical coupler 6 is connected the back and docks with the PC computing machine 8 of deal with data and information with RS485 serial port circuit 7, realize that computing machine is handled automatically and the output result.
The single phase alternating current power supply 1 of present embodiment is the output metrical pulse after single-phase electric energy meter 2 meterings, metrical pulse enters CPLD 5 collection calculating through 3 processing of EMC resistance capacity filter and photoelectrical coupler 4, the CPLD indoor design is shaped on serial port logic, the rs 232 serial interface signal of output image data is to serial ports photoelectrical coupler 6, rs 232 serial interface signal transfers the RS485 differential signal to through the chip I SL3152EIBZ of RS485 serial port circuit 7 again after photoelectricity is isolated, at last with the data of acquisition pulse through the RS485 communication, data upload to PC computing machine 8 is carried out analytical calculation handles and judge; Simultaneously, for the input end design of the step-down rectifier formula transformer 10 of harvester system power supply has AC-AC to exchange isolating transformer 9, strong and weak electricity short circuit with protection system, the 220V alternating current that exchanges isolating transformer 9 output isolation is behind step-down rectifier formula transformer 10 step-down rectifiers, export to the chip L7805CV and the R1131N331D of LDO linear power supply 11, respectively the working power 5V/3.3V of step-down output system; Another road direct current behind step-down rectifier formula transformer 10 step-down rectifiers is exported the needed working power 6.5V/2A direct current of passive pulse through the power supply output unit of passive acquisition pulse or the chip AP1501-K5LA of DC-DC Switching Power Supply 12.
Pulse collection signal in the present embodiment is received on the CPLD chip I pin, and the IO pin TXD of CPLD chip and RXD connect one road RS485 serial port circuit 7 and 8 communications of PC computing machine; The CPLD chip connects the working power R1131N331D of 3.3V, and the active crystal oscillator 14 of the work of 16MHz, the JTAG signal of programming logical program connect debugging programming interface 16 and be interface TMS/TCK/TDO/TDI; The pulse input signal of single-phase electric energy meter 2 links to each other with the IO pulse collection pin of the CPLD chip of CPLD5 behind resistance capacity filter 3 and photoelectrical coupler 4 optocoupler TLP781; The serial communication signal TXD1/RXD1 of CPLD chip output is connected with the conversion chip of RS485 serial port circuit 7 behind TLP781 photoelectrical coupler 6; After AC-AC exchanged isolating transformer 9, power supply output unit 12 rectifications of input step-down rectifier formula transformer 10 step-downs and LDO linear power supply 11 and passive acquisition pulse were the direct supply of the work of system to the alternating current of 20V by single phase alternating current power supply 1; The system reset circuit that resistance-capacitance type reset circuit unit 13 also has button to form by 4.7K resistance and 0.1uF ceramic condenser, the reseting pin RESET of connection CPLD5; Active crystal oscillator 14 is 16M-3.3V crystal oscillators of CPLD work, meets the clock pin CLOCK of CPLD; LED light 15 is 3.3V LEDs of CPLD duty, connects the common IO pin of CPLD.
Single phase alternating current power supply 1 in the present embodiment is resident or the industrial single phase alternating current power supply of 220V/50Hz, as the power supply of this device electric energy meter metering, for system provides working power; Single-phase electric energy meter 2 is single-phase electric energy meter metering electric flux and the pulse of output metering active electrical degree; The rc filter circuit that pulse resistance capacity filter 3 is made up of 1K resistance and 0.1uF ceramic condenser; Pulsed light electric coupler 4 is photoelectrical coupler TLP781; Programmable logic controller (PLC) (CPLD) the 5th, two CPLD processor LCMXO2280C-3T144 of harvester, working alone separately can infinite expanding, to realize the acquisition pulse of magnanimity; RS485 serial ports photoelectrical coupler 6 is photoelectrical coupler TLP781; RS485 serial port circuit 7 adopts RS485 serial port chip ISL3152EIBZ to form; PC computing machine 8 adopts PC computing machine conventional, that have data processing function; Exchanging isolating transformer 9 is that 1: 1 AC-AC of 220V 50Hz no-load voltage ratio exchanges isolating transformer; Step-down rectifier formula transformer 10 is step-down transformers of 220V 50Hz and through rectifier bridge SIZB60 output two-way 12V system direct supply; LDO linear power supply 11 is LDO chip L7805CV and R1131N331D; The power supply output unit 12 of passive acquisition pulse is DC-DC chip AP1501-K5LA; The system reset circuit that resistance-capacitance type reset circuit unit 13 also has button to form by 4.7K resistance and 0.1uF ceramic condenser; Active crystal oscillator 14 is 16M-3.3V crystal oscillators of CPLD work; LED light 15 is light emitting diodes of 3.3V, is used to refer to the duty of system; Debugging programming interface 16 is debugging programming jtag interfaces of CPLD.