Summary of the invention
The objective of the invention is for solving the problem of assurance important load power supply continuation in the distribution system of following boats and ships zone; But a kind of ship power supply control method of using the communication of microprocessor is provided; Can find the problem that exists in the supply line in time and send warning, realize real-time monitoring important load and three road supply paths and respective circuit breakers.
Technical scheme of the present invention is to adopt the ship power supply control device; This ship power supply control device comprises microprocessor and power module; The analog quantity input of ship power supply zone distribution panelboard directly links to each other with the integrated A/D converter of microprocessor internal through the analog quantity input of signal conditioner and microprocessor; The switching value input of circuit breaker and important load directly links to each other with the switching value input of microprocessor through first photoisolator, and the switching value of output is exported through second photoisolator by microprocessor; Memory, CAN bus communication module, power module and indicator light link to each other with microprocessor respectively, and CAN bus communication module connects the upper monitoring machine; Power module link to each other with said microprocessor, signal conditioner, A/D converter, first photoisolator, second photoisolator, indicator light and CAN bus communication module respectively and adopt double loop power supply with or mode supply power, the signal of microprocessor sends that pin connects 2 pin of the optocoupler U701 in the CAN bus communication module, 1 pin of optocoupler U701 connects+3.3V through resistance R 703; The 5th pin of optocoupler U701 connects+and the ground of 5V power supply, 1 pin, the 8th pin that the 7th pin connects the CAN bus transceiver connects+5V; The 2nd pin of CAN bus transceiver connects+and the ground of 5V power supply, the 3rd pin connects+5V, the 6th pin connect the CAN+ end of CAN bus, CAN-end, the 8th pin that the 7th pin connects the CAN bus and connect+ground of 5V; CAN+ and CAN-end indirect resistance R704; 4 pin of CAN bus transceiver connect 2 pin of optocoupler U700 through resistance R 702; The 1st, 8,5 pin of optocoupler U700 connect respectively+5V ,+3.3V ,+ground of 3.3V power supply; The end of the 7 pin connecting resistance R701 of optocoupler U700, the other end of resistance R 701 links to each other with the receiving terminal of microprocessor, connects digitally through resistance R 700 simultaneously through the RX of CAN bus communication module end, it is characterized in that adopting following steps:
1) output with second photoisolator links to each other with a circuit breaker deciliter control coil; The main contact of circuit breaker is connected with the three-phase alternating-current supply input of important load; The input of circuit breaker auxiliary contact with first photoisolator is connected; The switching value fault-signal output of important load is connected with the input of first photoisolator, the output of the power state detection of each regional distribution panelboard is connected with signal conditioner; The two-route voltage of surveyed area distribution panelboard power supply, and detect its corresponding circuit-breaker status;
2) when the important load fault; Microprocessor detects its fault message through first photoisolator; Break off the circuit breaker that is in closure state that links to each other with important load through second photoisolator; And other circuit breaker of forbidding closing and linking to each other with important load, microprocessor feeds back to the upper monitoring machine with fault message through CAN bus communication module simultaneously;
3) when the power supply of a certain regional distribution panelboard breaks down; Microprocessor detects its fault-signal and breaks off corresponding this trouble power of circuit breaker cut-out through second photoisolator through signal conditioner and A/D converter; Power supply status through signal conditioner and A/D converter detection adjacent area; Warp first photoisolator detects the state of respective circuit breakers, the respective circuit breakers of normal power supply is closed through second photoisolator according to testing result and realizes the continued power to important load; Microprocessor feeds back to the upper monitoring machine with fault message, circuit breaker control information through CAN bus communication module simultaneously;
4) when the corresponding circuit breaker of the power supply of a certain regional distribution panelboard breaks down; Microprocessor detects this fault-signal through first photoisolator; According to through signal conditioner and detected other power supply state of A/D converter with through the detected corresponding circuit-breaker status of first photoisolator; Through the relevant circuit breaker action of second photoisolator control, microprocessor feeds back to the upper monitoring machine with relevant information through CAN bus communication module simultaneously;
5) microprocessor receives the control signal of upper monitoring machine through CAN bus communication module, realizes the Long-distance Control to important electric power supply according to the state of power supply, circuit breaker and the important load of relevant range distribution panelboard.
The invention has the beneficial effects as follows:
1, adopt the two-way power supply with or mode supply power to control device, as long as there is one road power supply can guarantee that normally the required electric energy of the normal operation of control device supplies with.
2, adopt high speed microprocessor to realize real-time monitoring to important load and three road supply paths and respective circuit breakers; Control or report to the police according to the data that record, in time repaired with the continued power that guarantees important load and the circuit breaker supply path of fault; Support the fieldbus mode to communicate by letter, can realize long-range reliably monitoring.
3, has the input of multichannel analog amount and switching value, output; Input, output channel adopt redundant technique; Can effectively improve the reliability of control device; In time find the problem that exists in the supply line and send warning; And can relevant information be fed back to upper strata intelligence ipc monitor machine through fieldbus according to the automatic or manual switching supply path of supply line's situation.
Embodiment
Like Fig. 1, the analog quantity input of ship power supply zone distribution panelboard directly links to each other with microprocessor 2 inner integrated A/D converters 4 through the analog quantity input of signal conditioner 3 and microprocessor 2.The switching value input of circuit breaker and important load directly links to each other with the switching value input of microprocessor 2 through first photoisolator 5.Wherein, microprocessor 2 can be according to each supply line and corresponding circuit-breaker status, the important load state automatic switchover supply path that detect, send and report to the police or fault-signal.The switching value input is in order to detect the malfunction of on/off state, malfunction and the important load of relative breaker in the supply line.Analog quantity is imported in order to the power supply state that detects each supply path and important load and the power supply state of power module.The switching value of output is exported through second photoisolator 6 by microprocessor 2.Memory 9, CAN bus communication module 8, power module 1 and indicator light 7 link to each other with microprocessor 2 respectively.CAN bus communication module 8 connects upper location supervisory.Power module 1 provides control device required DC power supply by two different paths, respectively with microprocessor 2, signal conditioner 3, A/D converter 4, first photoisolator 5, second photoisolator 6, indicator light 7 links to each other with CAN bus communication module 8 and adopt double loop power supply with or mode supply power.Wherein, the switching value output channel realizes the switching of supply path and the light on and off of correlation behavior indicating device in order to export microprocessor 2 to each controlled device according to the control command of detection signal gained.CAN bus communication module 8 is used for communicating by letter with connected intelligent upper monitoring machine.
External analog amount of the present invention links to each other with the A/D input of microprocessor 2 through signal conditioner 3, and the internal simulation amount directly links to each other with the A/D input of microprocessor 2; The switching value of input links to each other with the general purpose I/O input of microprocessor 2 through the first photoelectricity coupling isolator 5; The switching value of output is exported through second photoisolator 6 by the general purpose I/O output of microprocessor 2.Ipc monitor machine control signal process CAN bus transfer is to microprocessor 2; The result of microprocessor 2 is partitioned to circuit breaker deciliter control end and corresponding indicator light 7 through output port through photoelectricity, simultaneously with relevant information through the CAN bus transfer to upper monitoring equipment.
Microprocessor 2 detects according to the on off state of the signal of importing to power supply and respective circuit breakers, and shows through indicator light 7; Microprocessor 2 is realized message transmission between CAN bus communication module 8 and upper monitoring machine; Circuit breaker deciliter control signal links to each other with deciliter control coil of circuit breaker through second photoisolator 6.
Fig. 2 illustrates in greater detail the signal conditioner 3 in the external analog amount input channel among Fig. 1.One end of the resistance R 601 in power detection signal one end AIN1 and the signal conditioner 3 links to each other; + 3V reference voltage links to each other with an end of resistance R 600; The other end of resistance R 600 with after the other end of resistance R 601 links to each other respectively through capacitor C 600 ground connection, connect 3 pin of integrated transporting discharging U601A through resistance R 603; 3 pin of integrated transporting discharging U601A are simultaneously respectively through capacitor C 601 and resistance R 604 ground connection; 2 pin of integrated transporting discharging U601A link to each other with 1 pin, and 1 pin of integrated transporting discharging U601A meets an A/D input pin AD1 of microprocessor 2 through resistance R 605, simultaneously through capacitor C 602 ground connection.Resistance R 600, R601, R603, R604 carry out dividing potential drop to input signal AIN1, convert input signal the direct current signal of 0~3V into, and capacitor C 600, C601 filter the high-frequency signal in the input signal simultaneously; Integrated transporting discharging U601A constitutes voltage follower, and input signal is isolated; R605, C602 constitute low pass filter to carry out sending the input AD1 that microprocessor A/D changes to after the filtering to amplifier output signal.
Fig. 3 illustrates in greater detail the switching value input of first photoisolator 5 in the digital quantity input channel among Fig. 1.Ground+the 24VGND of one termination of switching value input signal+24V power supply; Simultaneously with first photoisolator 5 in 2 pin of optocoupler U300 link to each other; The other end links to each other with resistance R 300; The other end of resistance R 300 respectively through capacitor C 304 connect+ground+24VGND of 24V power supply, link to each other with 1 pin of optocoupler U300 and link to each other with the negative electrode of diode D302 through resistance R 302, the anode of diode D302 connects+ground of 24V power supply; 3 pin of optocoupler U300 directly link to each other with DGDN digitally, and 4 pin of optocoupler U300 connect+the 3.3V power supply through resistance R 304, link to each other with a universaling I/O port DIN2 of microprocessor 2 respectively and connect digitally through capacitor C 306 through resistance R 314 simultaneously.
Fig. 4 illustrates in greater detail the output of second photoisolator 6 in the digital quantity output channel among Fig. 1.2 pin of optocoupler U400 in a general purpose I of microprocessor 2/O output pin DOUT1 and second photoelectrical coupler 6 link to each other; 1 pin of optocoupler U400 connects+the 3.3V power supply through resistance R 400; 3 pin of optocoupler U400 meet an end SW1 of outside breaker deciliter control coil, and the 4th pin of optocoupler U400 connects+anode+24V of 24V power supply.
Fig. 5 illustrates in greater detail the circuit theory of the CAN bus communication module 8 among Fig. 1.The TX end of CAN bus communication module 8 sends pin TX with the signal of little processing 2 and links to each other, and the signal transmission pin TX of microprocessor 2 connects 2 pin of the optocoupler U701 in the CAN bus communication module 8,1 pin of optocoupler U701 connects+3.3V through resistance R 703; The 5th pin of optocoupler U701 connects+ground of 5V power supply, and the 7th pin of optocoupler U701 connects 1 pin of CAN bus transceiver U702, and the 8th pin of optocoupler U701 connects+5V; The 2nd pin of CAN bus transceiver U702 connects+and the ground of 5V power supply, the 3rd pin connects+5V, the 6th pin connect the CAN+ end of CAN bus, CAN-end, the 8th pin that the 7th pin connects the CAN bus and connect+ground of 5V; Connecting resistance R704 between CAN+, the CAN-; 4 pin of CAN bus transceiver U702 connect 2 pin of optocoupler U700 through resistance R 702; The 1st, 8,5 pin of optocoupler U700 connect respectively+5V ,+3.3V ,+ground of 3.3V power supply; The end of the 7 pin connecting resistance R701 of optocoupler U700, the other end of resistance R 701 is through the CAN bus receiving terminal RX of CAN bus communication module 8 links to each other with the CAN bus receiving terminal RX of microprocessor 2, simultaneously the CAN bus receiving terminal RX of microprocessor 2 connects the 3.3V power supply through resistance R 700 ground.
Fig. 6 illustrates in greater detail the power module 1 among Fig. 1.Wherein, 7,8 pin of alternating current 220V commentaries on classics direct current 5V chip U7 connect the 220V AC power among Fig. 6 (a); 3 pin that alternating current 220V changes direct current 5V chip U7 connect digitally; Anode, while that 1 pin of alternating current 220V commentaries on classics direct current 5V chip U7 meets diode D200 link to each other with an A/D input pin of microprocessor 2 through resistance R 203; Resistance R 204 1 end ground connection, the other end link to each other with corresponding A/D input pin with resistance R 203 simultaneously; 1 pin that 24V changes 5V chip U8 connects the 24V dc power anode; 2 pin that 24V changes 5V chip U8 connect the 24V power cathode; 24V changes the 3 pin ground connection of 5V chip U8; Anode, while that 5 pin of 24V commentaries on classics 5V chip U8 meet diode D201 link to each other with an A/D input pin of microprocessor 2 through resistance R 205; Resistance R 206 1 end ground connection, the other end link to each other with corresponding A/D input pin with resistance R 205 simultaneously; The negative electrode of diode D200 with meet 5V after the negative electrode of diode D201 links to each other and change 2 pin of 3.3V chip U201.5V changes 1, the 3 pin ground connection of 3.3V chip U201 among Fig. 6 (b); 2 pin that 5V changes 3.3V chip U201 connect the negative electrode of diode D200 and the negative electrode of diode D201 simultaneously; 4 pin that 5V changes 3.3V chip U201 connect 3 pin, 4 pin that 3.3V changes 1.9V chip U202; Connect 14 pin, 166 pin, 1 pin, 13 pin, 31 pin, 64 pin, 81 pin, 114 pin, 145 pin, 69 pin of microprocessor 2 simultaneously; Connect simultaneously first photoisolator 5+the 3.3V voltage input end; Connect simultaneously second photoisolator 6+the 3.3V voltage input end, connect 8 pin of optocoupler U700 in the CAN bus communication module 8, an end of resistance R 703 simultaneously; 5V changes 2 pin of 3.3V chip U201 respectively through capacitor C 204, capacitor C 205 ground connection; 5V changes 4 pin of 3.3V chip U201 respectively through capacitor C 206, capacitor C 207 ground connection; 3.3V change 1, the 2 pin ground connection of 1.9V chip U202,3,4 pin that 3.3V changes 1.9V chip U202 connect 4 pin that 5V changes 3.3V chip U201, simultaneously through capacitor C 208, capacitor C 209 ground connection; 3.3 V 5,6 pin that change 1.9V chip U202 connect 23 pin, 37 pin, 56 pin, 75 pin, 100 pin, 112 pin, 128 pin, 143 pin, 154 pin, 162 pin of microprocessor 2, simultaneously through capacitor C 210, capacitor C 211, capacitor C 212, capacitor C 213 ground connection; 3.3V 7 pin that change 1.9V chip U202 connect 5 pin, 6 pin that 3.3V changes 1.9V chip U202 through resistance R 201 simultaneously through resistance R 202 ground connection.
Fig. 7 illustrates in greater detail being connected of data/address bus, address bus, control bus and sheet choosing between microprocessor 2 and the memory 9 among Fig. 1.The present invention is an example with signal processor (being DSP), is numbered DSPA, DSPB, DSPC, DSPD among the figure.Memory 9 corresponding sequence number in the drawings is U100.42 pin of signal processor DSP, 84 pin, 133 pin link to each other with 41 pin, 17 pin, 6 pin of memory U100 respectively; 18 pin of signal processor DSPD, 43 pin, 80 pin, 103 pin, 108 pin, 111 pin, 118 pin, 121 pin, 125 pin, 130 pin, 132 pin, 138 pin, 141 pin, 144 pin, 148 pin, 152 pin, 156 pin, 158 pin are connected with 2 pin, 21 pin, 20 pin, 19 pin, 5 pin, 4 pin, 3 pin, 44 pin, 43 pin, 42 pin, 27 pin, 26 pin, 25 pin, 24 pin, 1 pin, 22 pin, 23 pin, 28 pin of memory U100 respectively; 21 pin of signal processor DSP, 24 pin, 27 pin, 30 pin, 33 pin, 36 pin, 39 pin, 54 pin, 65 pin, 68 pin, 73 pin, 74 pin, 96 pin, 97 pin, 139 pin, 147 pin are connected with 29 pin, 30 pin, 31 pin, 32 pin, 35 pin, 36 pin, 37 pin, 38 pin, 7 pin, 8 pin, 9 pin, 10 pin, 13 pin, 14 pin, 15 pin, 16 pin of memory U100 respectively; 12 pin of memory U100,34 pin, 39 pin, 40 pin ground connection, 11 pin, 33 pin connect+3.3V, and 11 pin, 33 pin are respectively through capacitor C 100, capacitor C 101 ground connection simultaneously.
The microprocessor 2 peripheral ports distribution that Fig. 8 illustrates in greater detail among Fig. 1 is connected situation with power supply.The A/D input port of signal processor is the 2nd pin, the 167th~174 pin of signal processor DSPA among Fig. 8 (a); The switching value input port of signal processor is the 45th pin, 46 pin, 49 pin, 50 pin, 57 pin, 59 pin, 62 pin, 63 pin, 122 pin of signal processor DSPA; The switching value output port of signal processor is the 47th pin, 48 pin, 53 pin, 55 pin, 60 pin, 61 pin, 71 pin, 72 pin, 102 pin, 104 pin, 106 pin, 107 pin, 109 pin, 116 pin, 123 pin of signal processor DSPA, and the 87th pin of signal processor DSPA, 89 pin are respectively transmission, the receiving port of CAN controller; The 1st pin, 13 pin, 14 pin, 166 pin of signal processor DSPA connect+3.3V among Fig. 8 (b); The 23rd pin of signal processor DSPA, 37 pin, 56 pin, 75 pin, 100 pin, 112 pin, 128 pin, 143 pin, 154 pin, 162 pin connect+1.9V; The 31st pin of signal processor DSPA, 54 pin, 81 pin, 114 pin connect+3.3V; The 19th pin of signal processor DSPA, 32 pin, 38 pin, 52 pin, 58 pin, 70 pin, 12 pin, 15 pin, 165 pin, 175 pin, 176 pin connect simulation ground, the 78th pin of signal processor DSPA, 86 pin, 99 pin, 105 pin, 113 pin, 120 pin, 129 pin, 142 pin, 153 pin, 163 pin connect digitally; 16 pin of signal processor DSPA are through resistance R 200 ground connection; The 11st pin of signal processor DSPA is respectively through capacitor C 214, capacitor C 215 ground connection, and the 10th pin of signal processor DSPA is respectively through capacitor C 216, capacitor C 217 ground connection.
Ship Electrical Power System generally with ship vertically come the zoning, so have only two with a certain regional adjacent areas generally speaking, the adjacent area that has only the area dividing of super-huge boats and ships a certain zone just to occur has more than two.Consider versatility; The present invention adopts three zones as shown in Figure 9 to set forth; With three regional distribution panelboards is example; Power supply control apparatus carries out the power supply state-detection to three regional distribution panelboards in zone one, zone two and zone three and the important loads in the zone two, and corresponding circuit breaker is carried out state-detection and control.
The output of second photoelectrical coupler 6 is linked to each other with a circuit breaker deciliter control coil; The main contact of circuit breaker is connected with the three-phase alternating-current supply input of important load; The input of circuit breaker auxiliary contact with first photoisolator 5 is connected; The switching value fault-signal output of important load is connected with the input of first photoisolator 5, the output of each regional power state detection with voltage transformer (or voltage transmitter) is connected with signal conditioner 3.Adopt voltage transformer (or voltage transmitter) that the two-route voltage of each regional distribution panelboard power supply is carried out state-detection; And its corresponding circuit breaker carried out state-detection; Detect important load whether fault and power supply state thereof, circuit breaker is carried out deciliter control according to the information that detects.When the important load fault in the zone two; Microprocessor 2 in the power supply control apparatus detects its fault message through first photoisolator 5; Microprocessor 2 in the power supply control apparatus breaks off the circuit breaker that is in closure state that links to each other with important load through second photoisolator 6; And other the circuit breaker of forbidding closing and linking to each other with important load, the microprocessor 2 in the power supply control apparatus feeds back to connected upper monitoring machine with fault message through CAN bus communication module 8 simultaneously.When originally when the power supply of certain regional distribution panelboard breaks down; Microprocessor 2 in the power supply control apparatus detects its fault-signal and breaks off corresponding this trouble power of circuit breaker cut-out through second photoisolator 6 through signal conditioner 3 and A/D converter 4; And through the power supply status of signal conditioner 3 with A/D converter 4 detection adjacent areas; Warp first photoisolator 5 detects the state of respective circuit breakers, the respective circuit breakers of normal power supply is closed through second photoisolator 6 according to testing result and realizes the continued power to important load; Microprocessor 2 in the power supply control apparatus feeds back to the upper monitoring machine with fault message, circuit breaker control information through CAN bus communication module 8 simultaneously.When the corresponding circuit breaker of the power supply of a certain regional distribution panelboard breaks down; Microprocessor 2 in the power supply control apparatus detects this fault-signal through first photoisolator 5; And according to through signal conditioner 3 with A/D converter 4 detected other power supply states with through first photoisolator, 5 detected corresponding circuit-breaker status; Through the relevant circuit breaker action of second photoisolator, 6 controls; Realization is to the continued power of important load, and the microprocessor 2 in the power supply control apparatus feeds back to the upper monitoring machine with relevant information through CAN bus communication module 8 simultaneously.Microprocessor 2 in the power supply control apparatus can receive the control signal of host computers through CAN bus communication module 8, and realizes the Long-distance Control to important electric power supply according to the state of power supply, circuit breaker and the important load of relevant range distribution panelboard.