CN104113444B - A kind of current ring communication control and detection circuit - Google Patents

A kind of current ring communication control and detection circuit Download PDF

Info

Publication number
CN104113444B
CN104113444B CN201410039126.XA CN201410039126A CN104113444B CN 104113444 B CN104113444 B CN 104113444B CN 201410039126 A CN201410039126 A CN 201410039126A CN 104113444 B CN104113444 B CN 104113444B
Authority
CN
China
Prior art keywords
resistance
communication
circuit
optocoupler
slave
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
CN201410039126.XA
Other languages
Chinese (zh)
Other versions
CN104113444A (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.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Guangdong Midea Refrigeration Equipment Co Ltd
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 Guangdong Midea Refrigeration Equipment Co Ltd filed Critical Guangdong Midea Refrigeration Equipment Co Ltd
Priority to CN201410039126.XA priority Critical patent/CN104113444B/en
Publication of CN104113444A publication Critical patent/CN104113444A/en
Application granted granted Critical
Publication of CN104113444B publication Critical patent/CN104113444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention belongs to current ring communication technical field, there is provided a kind of current ring communication control and detection circuit.The present invention, which uses, includes host communication circuit, the current ring communication control of slave telecommunication circuit and communication data detection circuit and detection circuit, its circuit structure is simple, cost is low, and current ring communication is carried out to realize that communication data is received and dispatched mutually according to the control of host-processor and slave processor by host communication circuit and slave telecommunication circuit, and circuit is detected by communication data communication data detected by the first signal wire and secondary signal line being parallel between host communication circuit and slave telecommunication circuit, to realize the monitoring to communication data, whole policer operation process is simple and is easy to apply, so as to solve the policer operation complexity present in prior art, the problem of using difficulty height and high cost.

Description

A kind of current ring communication control and detection circuit
Technical field
The invention belongs to current ring communication technical field, more particularly to a kind of control of current ring communication and detection circuit.
Background technology
At present, current loop communication circuit is widely used in electronic product or industrial products, be mainly used in main frame with from Communication of the machine between a segment distance, but taken because current ring communication data are difficult to monitor to product design, debugging and after sale Business etc. brings many puzzlements.Existing current ring communication monitoring method is by the way that monitor is connected on into current ring communication loop In, current ring communication data are detected and had enough to meet the need by monitor.Although above-mentioned monitoring method can be led to monitor current ring Letter data, but because needing to carry out Data Detection and turnover by monitor, thus can cause policer operation is complicated, be not easy to apply and Cost increase.Therefore, there is the problem of policer operation is complicated, high using difficulty and cost is high in prior art.
The content of the invention
It is an object of the invention to provide a kind of control of current ring communication and detection circuit, it is intended to solves prior art and is deposited Policer operation it is complicated, high using difficulty and cost is high the problem of.
The present invention is achieved in that a kind of current ring communication control with detecting at circuit, with host-processor and slave Device connection is managed, the host-processor and the slave processor are built in main frame and slave respectively;The current ring communication Control includes host communication circuit, slave telecommunication circuit and communication data detection circuit with detection circuit;
The signal receiving end and signal sending end of the host communication circuit connect the signal of the host-processor respectively Transmitting terminal and signal receiving end, the data input pin and data output end of the host communication circuit pass through the first signal wire and Binary signal line connects the data output end and data input pin of the slave telecommunication circuit, the electricity of the host communication circuit respectively Source anode and data output end are also respectively connected with the live wire and zero line of the power supply of the main frame, the slave telecommunication circuit Signal receiving end and signal sending end connect the signal sending end and signal receiving end of the slave processor, the communication respectively Data detection circuit is connected with first signal wire and the secondary signal line;
The host communication circuit is with the slave telecommunication circuit according to the host-processor and the slave processor Control carry out current ring communication to realize that communication data is received and dispatched mutually, communication data detection circuit is described by being parallel to First signal wire and the secondary signal line detect to the communication data.
The present invention is using the current ring communication for including host communication circuit, slave telecommunication circuit and communication data detection circuit Control and detection circuit, its circuit structure is simple, and cost is low, and by host communication circuit and slave telecommunication circuit according to main frame The control of reason device and slave processor carries out current ring communication to realize that communication data is received and dispatched mutually, and is detected by communication data Circuit is by the first signal wire for being parallel between host communication circuit and slave telecommunication circuit and secondary signal line to the number that communicates According to being detected, to realize the monitoring to communication data, whole policer operation process is simple and is easy to apply, existing so as to solve There is the problem of policer operation present in technology is complicated, high using difficulty and cost is high.
Brief description of the drawings
Fig. 1 is current ring communication control provided in an embodiment of the present invention and the structure chart of detection circuit;
Fig. 2 is the current ring communication control and the exemplary circuit structure chart of detection circuit that first embodiment of the invention provides;
Fig. 3 is the current ring communication control and the exemplary circuit structure chart of detection circuit that second embodiment of the invention provides;
Fig. 4 is the current ring communication control and the exemplary circuit structure chart of detection circuit that third embodiment of the invention provides;
Fig. 5 is the current ring communication control and the exemplary circuit structure chart of detection circuit that fourth embodiment of the invention provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows current ring communication control provided in an embodiment of the present invention and the structure of detection circuit, for the ease of saying It is bright, the part related to the embodiment of the present invention is illustrate only, details are as follows:
Current ring communication control provided in an embodiment of the present invention is with detecting at circuit 100 and host-processor 200 and slave Reason device 300 is connected, and host-processor 200 and slave processor 200 are built in main frame and slave respectively, host-processor 200 With slave processor 200 can be conventional single-chip microcomputer, arm processor or other possess compiling for mathematical logic disposal ability Range controller;Current ring communication, which controls, to be included host communication circuit 101, slave telecommunication circuit 102 with detection circuit 100 and communicates Data detection circuit 103.
The signal receiving end and signal sending end of host communication circuit 101 connect the signal hair of host-processor 200 respectively Sending end TXD and signal receiving end RXD, the data input pin and data output end of host communication circuit 101 pass through the first signal wire L1 and secondary signal line L2 connects the data output end and data input pin of slave telecommunication circuit 102, host communication circuit respectively 101 power positive end and data output end are also respectively connected with the live wire L and zero line N of the power supply of main frame, slave telecommunication circuit 102 signal receiving end and signal sending end connects the signal sending end TXD and signal receiving end of slave processor 200 respectively RXD, communication data detection circuit 103 are connected with the first signal wire L1 and secondary signal line L2.
Control of the host communication circuit 101 with slave telecommunication circuit 102 according to host-processor 200 and slave processor 300 System carries out current ring communication to realize that communication data is received and dispatched mutually, and communication data detects circuit 103 by being parallel to the first signal Line L1 and secondary signal line L2 detect to above-mentioned communication data.
In addition, the power circuit in slave is to be connected by the live wire L and zero line N of the power supply with main frame to obtain confession Electricity, the power circuit of slave provides power supply supply for slave telecommunication circuit 102.
Above-mentioned current ring communication control is described in detail with detection circuit below in conjunction with specific embodiment:
Embodiment one:
Fig. 2 shows that the current ring communication that first embodiment of the invention provides controls the exemplary circuit knot with detection circuit Structure, for convenience of description, the part related to the embodiment of the present invention is illustrate only, details are as follows:
Host communication circuit 101 includes:
First resistor R1, second resistance R2, the first electric capacity C1, the first optocoupler U1,3rd resistor R3, the second electric capacity C2, Three electric capacity C3, the first diode D1, the 4th resistance R4, the second diode D2, the 5th resistance R5, the first NPN type triode Q1, Six resistance R6, the 7th resistance R7, the second optocoupler U2, the first voltage-regulator diode DZ1, the 8th resistance R8, the 4th electric capacity C4, the first electricity Solve electric capacity E1, the 9th resistance R9, the tenth resistance R10 and the 3rd diode D3;
First resistor R1 first end be host communication circuit 101 signal sending end, first resistor R1 the second end with Second resistance R2 first end and the first electric capacity C1 first end are connected to the emitter stage of the first optocoupler U1 phototriode altogether, the Two resistance R2 the second end and the first electric capacity C1 the second end are connected to ground altogether, and the colelctor electrode of the first optocoupler U1 phototriode connects First dc source VCC, 3rd resistor R3 and the second electric capacity C2 are connected in parallel in the anode of the first optocoupler U1 light emitting diode Between negative electrode, the 3rd electric capacity C3 first end is connected to altogether with the first diode D1 negative electrode and the 4th resistance R4 first end The anode of first optocoupler U1 light emitting diode, the 4th resistance R4 the second diode D2 of the second end connection negative electrode, the two or two Pole pipe D2 anode is the data input pin of host communication circuit 101, and the 5th resistance R5 first end is host communication circuit 101 Signal receiving end, the 5th resistance R5 the second end connects the first NPN type triode Q1 base stage, and the 6th resistance R6 is connected to the Between one dc source VCC and the first NPN type triode Q1 colelctor electrode, the first NPN type triode Q1 emitter stage and the 7th Resistance R7 first end is connected to the anode of the second optocoupler U2 light emitting diode, the 7th resistance R7 the second end and the second optocoupler altogether The negative electrode of U2 light emitting diode is connected to ground altogether, and the colelctor electrode of the second optocoupler U2 phototriode connects the first optocoupler U1 hair The negative electrode of optical diode, the emitter stage of the second optocoupler U2 phototriode and the 3rd electric capacity C3 the second end, the first diode D1 anode, the 8th resistance R8 first end, the 4th electric capacity C4 first end, the first electrochemical capacitor E1 negative pole and the 9th electricity Resistance R9 first end is connected to the first voltage-regulator diode DZ1 anode, the first voltage-regulator diode DZ1 negative electrode and the 8th resistance R8 altogether The second end, the 4th electric capacity C4 the second end and the first electrochemical capacitor E1 positive pole connect the common contact to be formed altogether and lead to for main frame Believe the data output end of circuit 101, the tenth resistance R10 is connected to the 9th resistance R9 the second end and the 3rd diode D3 anode Between, the 3rd diode D3 negative electrode is the power positive end of host communication circuit 101.
Slave telecommunication circuit 102 includes:
4th diode D4, the 11st resistance R11, the 5th diode D5, the 5th electric capacity C5, the 3rd optocoupler U3, the 12nd Resistance R12, the 13rd resistance R13, the second NPN type triode Q2, the 14th resistance R14, the 15th resistance R15, the 6th electric capacity C6, the 16th resistance R16, the 4th optocoupler U4, the 7th electric capacity C7, the 17th resistance R17 and the 18th resistance R18;
4th diode D4 negative electrode is the data output end of slave telecommunication circuit 102, and the 4th diode D4 negative electrode connects Connect the 11st resistance R11 first end, the 11st resistance R11 the second end and the 5th diode D5 negative electrode and the 5th electric capacity C5 first end is connected to the emitter stage of the 3rd optocoupler U3 phototriode altogether, the negative electrode of the 3rd optocoupler U3 light emitting diode with 12nd resistance R12 first end is connected to the second NPN type triode Q2 colelctor electrode altogether, the 3rd optocoupler U3 light emitting diode Anode and the 12nd resistance R12 the second end are connected to the 13rd resistance R13 first end, the 13rd resistance R13 the second end altogether The second dc source VDD is met, the 14th resistance R14 first end is connected to the second NPN type altogether with the 15th resistance R15 first end Triode Q2 base stage, the 14th resistance R14 the second end and the second NPN type triode Q2 emitter stage are connected to ground altogether, and the tenth Five resistance R15 the second end be slave telecommunication circuit 102 signal receiving end, the 5th diode D5 anode and the 5th electric capacity C5 The second end, the 6th electric capacity C6 first end, the 16th resistance R16 first end and the 4th optocoupler U4 light emitting diode Anode connects the data input pin that the common contact to be formed is slave telecommunication circuit 102 altogether, the 3rd optocoupler U3 phototriode Second end at colelctor electrode and the 6th electric capacity C6 the second end and the 16th resistance R16 is connected to the 4th optocoupler U4 light emitting diode altogether Negative electrode, the colelctor electrode of the 4th optocoupler U4 phototriode connects the second dc source VDD, the 4th optocoupler U4 phototriode Emitter stage and the 7th electric capacity C7 first end and the 17th resistance R17 first end be connected to the first of the 18th resistance R18 altogether End, the 7th electric capacity C7 the second end are connected to ground altogether with the 17th resistance R17 the second end, and the 18th resistance R18 the second end is The signal sending end of slave telecommunication circuit 102.
Communication data detection circuit 103 includes the first communication check circuit 1031 and monitoring processor 1032;First communication Detect the data input pin of circuit 1031 and data output end connects the first signal wire L1 and secondary signal line L2 respectively, first is logical Letter detection circuit 1031 signal receiving end and signal sending end connect respectively monitoring processor 1032 signal sending end TXD and Signal receiving end RXD, the power positive end and data output end of the first communication check circuit 1031 are also connected with the power supply of main frame Live wire L and zero line N.Electric current loop is carried out by host communication circuit 101 and slave telecommunication circuit 102 between main frame and slave During communication, the first communication check circuit 1031 is read out to the first signal wire L1 communication datas transmitted and is sent to monitoring Processor 1032.
In other embodiments of the present invention, the power positive end of the first communication check circuit 1031 and data output end can be with It is connected respectively with the live wire and zero line of external power source to be powered.
Wherein, the first communication check circuit 1031 includes:
19th resistance R19, the 20th resistance R20, the 8th electric capacity C8, the 5th optocoupler U5, the 21st resistance R21, Nine electric capacity C9, the tenth electric capacity C10, the 6th diode D6, the 22nd resistance R22, the 7th diode D7, the 23rd resistance R23, the 3rd NPN type triode Q3, the 24th resistance R24, the 25th resistance R25, the 6th optocoupler U6, the pole of the second voltage stabilizing two Pipe DZ2, the 26th resistance R26, the 11st electric capacity C11, the second electrochemical capacitor E2, the 27th resistance R27, the 28th electricity Hinder R28 and the 8th diode D8;
19th resistance R19 first end be the first communication check circuit 1031 signal sending end, the 19th resistance R19 The second end and the 20th resistance R20 first end and the 8th electric capacity C8 first end be connected to the 5th optocoupler U5 photosensitive three pole altogether The emitter stage of pipe, the 20th resistance R20 the second end are connected to ground altogether with the 8th electric capacity C8 the second end, and the 5th optocoupler U5's is photosensitive The colelctor electrode of triode meets the 3rd dc source V1, and the 21st resistance R21 and the 9th electric capacity C9 are connected in parallel in the 5th optocoupler Between the anode and negative electrode of U5 light emitting diode, the tenth electric capacity C10 first end and the 6th diode D6 negative electrode and the 22 resistance R22 first end is connected to the anode of the 5th optocoupler U5 light emitting diode altogether, and the second of the 22nd resistance R22 The 7th diode D7 of end connection negative electrode, the 7th diode D7 anode are the data input of the first communication check circuit 1031 End, the 23rd resistance R23 first end are the signal receiving end of the first communication check circuit 1031, the 23rd resistance R23 The second end connect the 3rd NPN type triode Q3 base stage, the 24th resistance R24 is connected to the 3rd dc source V1 and the 3rd Between NPN type triode Q3 colelctor electrode, the 3rd NPN type triode Q3 emitter stage and the 25th resistance R25 first end The anode of the 6th optocoupler U6 light emitting diode, the 25th resistance R25 the second end and lighting for the 6th optocoupler U6 are connected to altogether The negative electrode of diode is connected to ground altogether, and the colelctor electrode of the 6th optocoupler U6 phototriode connects the 5th optocoupler U5 light emitting diode Negative electrode, the emitter stage of the 6th optocoupler U6 phototriode and the tenth electric capacity C10 the second end, the 6th diode D6 sun Pole, the 26th resistance R26 first end, the 11st electric capacity C11 first end, the second electrochemical capacitor E2 negative pole and second 17 resistance R27 first end is connected to the second voltage-regulator diode DZ2 anode, the second voltage-regulator diode DZ2 negative electrode and altogether The positive pole at 26 resistance R26 the second end, the 11st electric capacity C11 the second end and the second electrochemical capacitor E2 connects to be formed altogether Common contact be the first communication check circuit 1031 data output end, the 28th resistance R28 is connected to the 27th resistance Between R27 the second end and the 8th diode D8 anode, the 8th diode D8 negative electrode is the first communication check circuit 1031 Power positive end.
Monitoring processor 1032 can be conventional single-chip microcomputer, arm processor or other possess mathematical logic processing energy The programmable controller of power.
The current ring communication control shown in Fig. 2 is described further with detection circuit below in conjunction with operation principle:
(1)When main frame sends data, and slave receives data, the high electricity of signal sending end TXD outputs of slave processor 300 It is flat by the 15th resistance R15 to control the second NPN type triode Q2 to turn on so that the 3rd optocoupler U3 works, now host-processor 200 signal sending end TXD sends communication data to the first NPN type triode Q1, the first NPN type triode Q1 by communication data Output is transmitted to the second optocoupler U2, then by the second optocoupler U2 to communication data, and communication data passes through the first voltage-regulator diode DZ1, the 8th resistance R8, the 4th electric capacity C4 and the first electrochemical capacitor E1 are exported to secondary signal line L2, and the 4th optocoupler U4 is by The communication data that binary signal line L2 is transmitted is transmitted, then communication data by the 7th electric capacity C7, the 17th resistance R17 and Enter the signal receiving end RXD of slave processor 300 after 18th resistance R18.
(2)When slave transmission data, host receiving data, the high electricity of signal sending end TXD outputs of host-processor 200 It is flat by the 5th resistance R5 to control the first NPN type triode Q1 to turn on so that the second optocoupler U2 works, now slave processor 300 Signal sending end TXD send communication data it is to the second NPN type triode Q2, the second NPN type triode Q2 that communication data is defeated Go out to the 3rd optocoupler U3, then communication data is transmitted by the 3rd optocoupler U3, communication data passes through the 11st resistance R11 and Four diode D4 are exported to the first signal wire L1, communication data passes through the second diode D2 and the 4th resistance from the first signal wire L1 R4 enters the first optocoupler U1, by the first optocoupler U1 output communication datas by the first electric capacity C1, second resistance R2 and the first electricity Hinder the signal receiving end RXD that R1 enters host-processor 200.
While slave transmission data, host receiving data, the signal sending end TXD outputs of monitoring processor 1032 are high The NPN type triode Q3 of Automatic level control the 3rd is turned on so that the 6th optocoupler U6 works, and communication data passes through the from the first signal wire L1 Seven diode D7 and the 22nd resistance R22 enter the 5th optocoupler U5, and communication data is passed through into the 8th electric capacity by the 5th optocoupler U5 C8, the 20th resistance R20 and the 19th resistance R19 are exported to the signal receiving end RXD of monitoring processor 1032, to monitor place Reason device 1032 is monitored to communication data.Wherein, the current direction of electric current loop is as shown in Fig. 2 I2=I1+I3.
In addition, when main frame actively disconnects with slave or main frame is not at working condition, the first communication check circuit 1031 and the alternative host communication circuit 101 of monitoring processor 1032 and host-processor 200, i.e. monitoring processor 1032 pass through First communication check circuit 1031 and slave telecommunication circuit 102 carry out current ring communication with slave processor 300.
Embodiment two:
Fig. 3 shows that the current ring communication that second embodiment of the invention provides controls the exemplary circuit knot with detection circuit Structure, wherein, the internal structure of host communication circuit 101 and slave telecommunication circuit 102 is same as shown in Figure 2, therefore no longer superfluous State, for convenience of description, illustrate only the part related to the embodiment of the present invention, details are as follows:
Communication data detection circuit 103 includes the second communication check circuit 1033 and monitoring processor 1032;Second communication Detect the data input pin of circuit 1033 and data output end connects secondary signal line L2 and the first signal wire L1 respectively, second is logical Letter detection circuit 1033 signal receiving end and signal sending end connect respectively monitoring processor 1032 signal sending end TXD and Signal receiving end RXD.Electric current loop is carried out by host communication circuit 101 and slave telecommunication circuit 102 between main frame and slave During communication, the second communication check circuit 1033 is read out to the secondary signal line L2 communication datas transmitted and is sent to monitoring Processor 1032.
In addition, the power circuit for the power supply of the second communication check circuit 1033 both can be with the live wire of the power supply of main frame L connects with zero line N, can also be connected with the live wire and zero line of external power source, i other words, supplied for the second communication check circuit 1033 The power circuit of electricity both can obtain power supply from the power supply of main frame, can also obtain and power from external power source.
Wherein, the second communication check circuit 1033 includes:
9th diode D9, the 29th resistance R29, the tenth diode D10, the 12nd electric capacity C12, the 7th optocoupler U7, 30th resistance R30, the 31st resistance R31, the 4th NPN type triode Q4, the 32nd resistance R32, the 33rd resistance R33, the 13rd electric capacity C13, the 34th resistance R34, the 8th optocoupler U8, the 14th electric capacity C14, the 35th resistance R35 with And the 36th resistance R36;
9th diode D9 negative electrode be the second communication check circuit 1033 data output end, the 9th diode D9 the moon Pole connects the 29th resistance R29 first end, the 29th resistance R29 the second end and the tenth diode D10 negative electrode with And the 12nd electric capacity C12 first end be connected to altogether the 7th optocoupler U7 phototriode emitter stage, the 7th optocoupler U7's is luminous The negative electrode of diode and the 30th resistance R30 first end are connected to the 4th NPN type triode Q4 colelctor electrode, the 7th optocoupler U7 altogether The anode of light emitting diode and the 30th resistance R30 the second end be connected to the 31st resistance R31 first end altogether, the 30th One resistance R31 the second termination the 3rd dc source V1, the 32nd resistance R32 first end is with the 33rd resistance R33's First end is connected to the 4th NPN type triode Q4 base stage, the 32nd resistance R32 the second end and the 4th NPN type triode altogether Q4 emitter stage is connected to ground altogether, and the 33rd resistance R33 the second end is the signal receiving end of the second communication check circuit 1033, Tenth diode D10 anode and the 12nd electric capacity C12 the second end, the 13rd electric capacity C13 first end, the 34th resistance The anode of R34 first end and the 8th optocoupler U8 light emitting diode connects the common contact to be formed as the second communication check electricity altogether The data input pin on road 1033, the colelctor electrode of the 7th optocoupler U7 phototriode and the 13rd electric capacity C13 the second end and Second end of 34 resistance R34s is connected to the negative electrode of the 8th optocoupler U8 light emitting diode, the 8th optocoupler U8 photosensitive three pole altogether The colelctor electrode of pipe meets the 3rd dc source V1, and the of the emitter stage of the 8th optocoupler U8 phototriode and the 14th electric capacity C14 One end and the 35th resistance R35 first end are connected to the 36th resistance R36 first end altogether, and the of the 14th electric capacity C14 Two ends and the 35th resistance R35 the second end are connected to ground altogether, and the 36th resistance R36 the second end is the second communication check electricity The signal sending end on road 1033.
Monitoring processor 1032 is same as shown in Figure 2, will not be repeated here.
The current ring communication control shown in Fig. 3 is described further with detection circuit below in conjunction with operation principle:
(1)When main frame sends data, and slave receives data, the high electricity of signal sending end TXD outputs of slave processor 300 It is flat by the 15th resistance R15 to control the second NPN type triode Q2 to turn on so that the 3rd optocoupler U3 works, now host-processor 200 signal sending end TXD sends communication data to the first NPN type triode Q1, the first NPN type triode Q1 by communication data Output is transmitted to the second optocoupler U2, then by the second optocoupler U2 to communication data, and communication data passes through the first voltage-regulator diode DZ1, the 8th resistance R8, the 4th electric capacity C4 and the first electrochemical capacitor E1 are exported to secondary signal line L2, and the 4th optocoupler U4 is by The communication data that binary signal line L2 is transmitted is transmitted, then communication data by the 7th electric capacity C7, the 17th resistance R17 and Enter the signal receiving end RXD of slave processor 300 after 18th resistance R18.
Data are sent in main frame, while slave receives data, the signal sending end TXD outputs of monitoring processor 1032 are high The NPN type triode Q4 of Automatic level control the 4th is turned on so that the 7th optocoupler U7 works, and communication data enters the from secondary signal line L2 Eight optocoupler U8, communication data is passed through into the 14th electric capacity C14, the 35th resistance R35 and the 36th electricity by the 8th optocoupler U8 Resistance R36 is exported to the signal receiving end RXD of monitoring processor 1032, so that monitoring processor 1032 is supervised to communication data Control.Wherein, the current direction of electric current loop is as shown in figure 3, I1=I2+I3.
(2)When slave transmission data, host receiving data, the high electricity of signal sending end TXD outputs of host-processor 200 It is flat by the 5th resistance R5 to control the first NPN type triode Q1 to turn on so that the second optocoupler U2 works, now slave processor 300 Signal sending end TXD send communication data it is to the second NPN type triode Q2, the second NPN type triode Q2 that communication data is defeated Go out to the 3rd optocoupler U3, then communication data is transmitted by the 3rd optocoupler U3, communication data passes through the 11st resistance R11 and Four diode D4 are exported to the first signal wire L1, communication data passes through the second diode D2 and the 4th resistance from the first signal wire L1 R4 enters the first optocoupler U1, and exporting communication data by the first optocoupler U1 passes through the first electric capacity C1, second resistance R2 and the first electricity Hinder the signal receiving end RXD that R1 enters host-processor 200.
In addition, when slave actively disconnects with main frame or slave is not at working condition, the second communication check circuit 1033 and the alternative slave telecommunication circuit 102 of monitoring processor 1032 and slave processor 300, i.e. monitoring processor 1032 pass through Second communication check circuit 1033 and host communication circuit 101 carry out current ring communication with host-processor 200.
Embodiment three:
Fig. 4 shows that the current ring communication that third embodiment of the invention provides controls the exemplary circuit knot with detection circuit Structure, wherein, the internal structure of host communication circuit 101 and slave telecommunication circuit 102 is identical with shown in Fig. 2 and Fig. 3, therefore not Repeat again, for convenience of description, illustrate only the part related to the embodiment of the present invention, details are as follows:
Communication data detection circuit 103 includes the first communication check circuit 1031, the second communication check circuit 1033 and prison Control processor 1032;The data output of the data input pin of first communication check circuit 1031 and the second communication check circuit 1033 End is connected to the first signal wire L1 altogether, the data output end of the first communication check circuit 1031 and the second communication check circuit 1033 Data input pin is connected to secondary signal line L2, signal receiving end and the signal sending end difference of the first communication check circuit 1031 altogether Connect the first signal sending end TXD1 and secondary signal receiving terminal RXD2 of monitoring processor 1032, the first communication check circuit 1031 power positive end and data output end are also connected with the live wire L and zero line N of the power supply of main frame, the second communication check circuit 1033 signal receiving end and signal sending end connects the secondary signal transmitting terminal TXD2 and second of monitoring processor 1032 respectively Signal receiving end RXD2.Electric current loop is carried out by host communication circuit 101 and slave telecommunication circuit 102 between main frame and slave During communication, the first communication check circuit 1031 and the second communication check circuit 1033 are respectively to the first signal wire L1 and secondary signal The communication data that line L2 is transmitted is read out and is sent to monitoring processor 1032.
In addition, in other embodiments of the present invention, the power positive end and data output end of the first communication check circuit 1031 It can also be connected respectively with the live wire and zero line of external power source to be powered;For the electricity of the second communication check circuit 1033 power supply Source circuit can be both connected with the live wire L and zero line N of the power supply of main frame, can also be connected with the live wire and zero line of external power source Connect, i other words, both power supply can be obtained from the power supply of main frame for the power circuit of the second communication check circuit 1033 power supply, It can also obtain and power from external power source.
Wherein, the internal structure of the first communication check circuit 1031 is same as shown in Figure 2, the second communication check circuit 1033 internal structure is same as shown in Figure 3, and monitoring processor 1032 is identical with shown in Fig. 2 and Fig. 3, therefore no longer Repeat.
The current ring communication control shown in Fig. 4 is described further with detection circuit below in conjunction with operation principle:
(1)When main frame sends data, and slave receives data, the high electricity of signal sending end TXD outputs of slave processor 300 It is flat by the 15th resistance R15 to control the second NPN type triode Q2 to turn on so that the 3rd optocoupler U3 works, now host-processor 200 signal sending end TXD sends communication data to the first NPN type triode Q1, the first NPN type triode Q1 by communication data Output is transmitted to the second optocoupler U2, then by the second optocoupler U2 to communication data, and communication data passes through the first voltage-regulator diode DZ1, the 8th resistance R8, the 4th electric capacity C4 and the first electrochemical capacitor E1 are exported to secondary signal line L2, and the 4th optocoupler U4 is by The communication data of binary signal line L2 transmission is transmitted, then communication data is by the 7th electric capacity C7, the 17th resistance R17 and the Enter the signal receiving end RXD of slave processor 300 after 18 resistance R18.
Data are sent in main frame, while slave receives data, the first signal sending end TXD1 of monitoring processor 1032 Low level control the 3rd NPN type triode Q3 is exported to end so that the 6th optocoupler U6 is stopped, and monitoring processor 1032 Secondary signal transmitting terminal TXD2 output high level controls the 4th NPN type triode Q4 to turn on so that the 7th optocoupler U7 work, communication Data enter the 8th optocoupler U8 from secondary signal line L2, and communication data is passed through into the 14th electric capacity C14, the 3rd by the 8th optocoupler U8 15 resistance R35 and the 36th resistance R36 are exported to the secondary signal receiving terminal RXD2 of monitoring processor 1032, to monitor Processor 1032 is monitored to communication data.
(2)When slave transmission data, host receiving data, the high electricity of signal sending end TXD outputs of host-processor 200 It is flat by the 5th resistance R5 to control the first NPN type triode Q1 to turn on so that the second optocoupler U2 works, now slave processor 300 Signal sending end TXD send communication data it is to the second NPN type triode Q2, the second NPN type triode Q2 that communication data is defeated Go out to the 3rd optocoupler U3, then communication data is transmitted by the 3rd optocoupler U3, communication data passes through the 11st resistance R11 and Four diode D4 are exported to the first signal wire L1, communication data passes through the second diode D2 and the 4th resistance from the first signal wire L1 R4 enters the first optocoupler U1, by the first optocoupler U1 output communication datas by the first electric capacity C1, second resistance R2 and the first electricity Resistance R1 is exported to the signal receiving end RXD of host-processor 200.
While slave transmission data, host receiving data, the secondary signal transmitting terminal TXD2 of monitoring processor 1032 Low level control the 4th NPN type triode Q4 is exported to end so that the 7th optocoupler U7 is stopped, and monitoring processor 1032 First signal sending end TXD1 output high level controls the 3rd NPN type triode Q3 to turn on so that the 6th optocoupler U6 work, communication Data enter the 5th optocoupler U5 from the first signal wire L1 by the 7th diode D7 and the 22nd resistance R22, by the 5th optocoupler U5 exports communication data to monitoring processor 1032 by the 8th electric capacity C8, the 20th resistance R20 and the 19th resistance R19 First signal receiving end RXD1, so that monitoring processor 1032 is monitored to communication data.
In addition, when main frame actively disconnects with slave or main frame is not at working condition, the first communication check circuit 1031 and the alternative host communication circuit 101 of monitoring processor 1032 and host-processor 200, i.e. monitoring processor 1032 pass through First communication check circuit 1031 and slave telecommunication circuit 102 carry out current ring communication with slave processor 300.
When slave actively disconnects with main frame or slave is not at working condition, the second communication check circuit 1033 and prison The alternative slave telecommunication circuit 102 of processor 1032 and slave processor 300 are controlled, i.e. monitoring processor 1032 passes through the second communication Detect circuit 1033 and host communication circuit 101 and carry out current ring communication with host-processor 200.
When main frame and slave normal work and when carrying out current ring communication, host-processor 200 and host communication circuit 101 Do not send communication data, and by monitoring processor 1032 by the first communication check circuit 1031 and slave telecommunication circuit 102 with Slave processor 300 carries out current ring communication, and specific work process is as follows:
The first signal sending end TXD1 output low level control the 3rd NPN type triode Q3 cut-offs of monitoring processor 1032 So that the 6th optocoupler U6 is stopped, the secondary signal transmitting terminal TXD2 of monitoring processor 1032 sends data reporting, this report Data are sent to the first signal wire L1 by the 4th NPN type triode Q4 and the 7th optocoupler U7, and pass through from the first signal wire L1 Two diode D2 and the 4th resistance R4 enter the first optocoupler U1, and the first optocoupler U1 is transmitted data reporting, and data reporting is led to Cross the signal receiving end RXD that the first electric capacity C1, second resistance R2 and first resistor R1 enter host-processor 200, host process Device 200 stops output communication data according to data reporting or sends preset data(I.e. different from the other kinds of of communication data Data), the secondary signal transmitting terminal TXD2 of monitoring processor 1032 exports the NPN type triode Q4 of low level control the 4th again to be ended So that the 7th optocoupler U7 is stopped, meanwhile, the first signal sending end TXD1 of monitoring processor 1032 sends communication data extremely 3rd NPN type triode Q3, the 3rd NPN type triode Q3 export communication data to the 6th optocoupler U6, then by the 6th optocoupler U6 Communication data is transmitted, communication data passes through the second voltage-regulator diode DZ2, the 26th resistance R26, the 11st electric capacity C11 and the second electrochemical capacitor E2 is exported to secondary signal line L2, the communication number that the 4th optocoupler U4 transmits secondary signal line L2 According to being transmitted, then communication data enters slave after the 7th electric capacity C7, the 17th resistance R17 and the 18th resistance R18 The signal receiving end RXD of processor 300, it is achieved thereby that by the first communication check circuit 1031 and the phase knot of monitoring processor 1032 Close and carry out current ring communication with slave.
When main frame and slave normal work and when carrying out current ring communication, slave processor 300 and slave telecommunication circuit 102 Do not send communication data, and by monitoring processor 1032 by the second communication check circuit 1033 and host communication circuit 101 with Host-processor 200 carries out current ring communication, and specific work process is as follows:
Secondary signal transmitting terminal TXD2 output low level control the 4th NPN type triode Q4 cut-offs of monitoring processor 1032 So that the 7th optocoupler U7 is stopped, the first signal sending end TXD1 of monitoring processor 1032 sends data reporting, this report Data are sent to secondary signal line L2 by the 3rd NPN type triode Q3 and the 6th optocoupler U6, and enter the from secondary signal line L2 Four optocoupler U4, the 4th optocoupler U4 are transmitted data reporting, data reporting by the 7th electric capacity C7, the 17th resistance R17 and 18th resistance R18 enters the signal receiving end RXD of slave processor 300, and slave processor 300 stops defeated according to data reporting Go out communication data or send preset data(It is different from the other kinds of data of communication data), the of monitoring processor 1032 One signal sending end TXD1 exports the NPN type triode Q3 of low level control the 3rd again to be ended so that the 6th optocoupler U6 is stopped, Meanwhile the secondary signal transmitting terminal TXD2 of monitoring processor 1032 sends communication data to the 4th NPN type triode Q4, the 4th NPN type triode Q4 exports communication data to the 7th optocoupler U7, the 7th optocoupler U7 passes through the 29th resistance by communication data R29 and the 9th diode D9 is exported to the first signal wire L1, communication data from the first signal wire L1 by the second diode D2 and 4th resistance R4 enters the first optocoupler U1, and the first optocoupler U1 is transmitted communication data, communication data by the first electric capacity C1, Second resistance R2 and first resistor R1 enters the signal receiving end RXD of host-processor 200, it is achieved thereby that being examined by the second communication Slowdown monitoring circuit 1033 and monitoring processor 1032 combine carries out current ring communication with main frame.
Example IV:
Fig. 5 shows that the current ring communication that fourth embodiment of the invention provides controls the exemplary circuit knot with detection circuit Structure, wherein, the internal structure of host communication circuit 101 and slave telecommunication circuit 102 is identical with shown in Fig. 2, Fig. 3 and Fig. 4, because This is repeated no more, and for convenience of description, illustrate only the part related to the embodiment of the present invention, details are as follows:
Communication data detection circuit 103 includes the first communication check circuit 1031, the second communication check circuit 1033, first The monitoring processor 1035 of monitoring processor 1034 and second;The data input pin of first communication check circuit 1031 communicates with second The data output end of detection circuit 1033 is connected to the first signal wire L1 altogether, the data output end of the first communication check circuit 1031 with The data input pin of second communication check circuit 1033 is connected to secondary signal line L2, the signal of the first communication check circuit 1031 altogether Receiving terminal and signal sending end connect the signal sending end TXD and signal receiving end RXD of the first monitoring processor 1034 respectively, the The power positive end and data output end of one communication check circuit 1031 are also connected with the live wire L and zero line N of the power supply of main frame, the The signal receiving end and signal sending end of two communication check circuits 1033 connect the signal hair of the second monitoring processor 1035 respectively Sending end TXD and signal receiving end RXD.Entered between main frame and slave by host communication circuit 101 and slave telecommunication circuit 102 During row current ring communication, the first communication check circuit 1031 and the second communication check circuit 1033 respectively to the first signal wire L1 and The communication data that secondary signal line L2 is transmitted is read out and is respectively sent to the first monitoring processor 1034 and the second monitoring Processor 1035.
In addition, in other embodiments of the present invention, the power positive end and data output end of the first communication check circuit 1031 It can also be connected respectively with the live wire and zero line of external power source to be powered;For the electricity of the second communication check circuit 1033 power supply Source circuit can be both connected with the live wire L and zero line N of the power supply of main frame, can also be connected with the live wire and zero line of external power source Connect, i other words, both power supply can be obtained from the power supply of main frame for the power circuit of the second communication check circuit 1033 power supply, It can also obtain and power from external power source.
Wherein, the internal structure of the first communication check circuit 1031 is identical with shown in Fig. 2 and Fig. 4, the second communication check The internal structure of circuit 1033 is identical with shown in Fig. 3 and Fig. 4, therefore repeats no more;For the first monitoring processor 1034 With the second monitoring processor 1035, its can be conventional single-chip microcomputer, arm processor or other possess mathematical logic processing energy The programmable controller of power.
The current ring communication control shown in Fig. 5 is described further with detection circuit below in conjunction with operation principle:
(1)When main frame sends data, and slave receives data, the high electricity of signal sending end TXD outputs of slave processor 300 It is flat by the 15th resistance R15 to control the second NPN type triode Q2 to turn on so that the 3rd optocoupler U3 works, now host-processor 200 signal sending end TXD sends communication data to the first NPN type triode Q1, the first NPN type triode Q1 by communication data Output is transmitted to the second optocoupler U2, then by the second optocoupler U2 to communication data, and communication data passes through the first voltage-regulator diode DZ1, the 8th resistance R8, the 4th electric capacity C4 and the first electrochemical capacitor E1 are exported to secondary signal line L2, and the 4th optocoupler U4 is by The communication data of binary signal line L2 transmission is transmitted, then communication data is by the 7th electric capacity C7, the 17th resistance R17 and the Enter the signal receiving end RXD of slave processor 300 after 18 resistance R18.
Data are sent in main frame, while slave receives data, the signal sending end TXD of the first monitoring processor 1034 is defeated Go out the NPN type triode Q3 of low level control the 3rd to end so that the 6th optocoupler U6 is stopped, and the second monitoring processor 1035 Signal sending end TXD output high level control the 4th NPN type triode Q4 turn on so that the 7th optocoupler U7 work, communication data Enter the 8th optocoupler U8 from secondary signal line L2, communication data is passed through into the 14th electric capacity C14, the 35th by the 8th optocoupler U8 Resistance R35 and the 36th resistance R36 is exported to the signal receiving end RXD of the second monitoring processor 1035, so as to the second monitoring Processor 1035 is monitored to communication data.
(2)When slave transmission data, host receiving data, the high electricity of signal sending end TXD outputs of host-processor 200 It is flat by the 5th resistance R5 to control the first NPN type triode Q1 to turn on so that the second optocoupler U2 works, now slave processor 300 Signal sending end TXD send communication data it is to the second NPN type triode Q2, the second NPN type triode Q2 that communication data is defeated Go out to the 3rd optocoupler U3, then communication data is transmitted by the 3rd optocoupler U3, communication data passes through the 11st resistance R11 and Four diode D4 are exported to the first signal wire L1, communication data passes through the second diode D2, the 4th resistance from the first signal wire L1 R4 enters the first optocoupler U1, by the first optocoupler U1 output communication datas by the first electric capacity C1, second resistance R2 and the first electricity Resistance R1 is exported to the signal receiving end RXD of host-processor 200.
While slave transmission data, host receiving data, the signal sending end TXD of the second monitoring processor 1035 is defeated Go out the NPN type triode Q4 of low level control the 4th to end so that the 7th optocoupler U7 is stopped, and the first monitoring processor 1034 Signal sending end TXD output high level control the 3rd NPN type triode Q3 turn on so that the 6th optocoupler U6 work, communication data Enter the 5th optocoupler U5 from the first signal wire L1 by the 7th diode D7 and the 22nd resistance R22, will by the 5th optocoupler U5 Communication data is exported to the first monitoring processor 1034 by the 8th electric capacity C8, the 20th resistance R20 and the 19th resistance R19 Signal receiving end RXD, so that the first monitoring processor 1034 is monitored to communication data.
In addition, when main frame actively disconnects with slave or main frame is not at working condition, the first communication check circuit 1031 and 1034 alternative host communication circuit 101 of the first monitoring processor and host-processor 200, i.e. the first monitoring processor 1034 carry out current ring communication by the first communication check circuit 1031 and slave telecommunication circuit 102 with slave processor 300.
When slave actively disconnects with main frame or slave is not at working condition, the second communication check circuit 1033 and the Two monitoring processors, 1035 alternative slave telecommunication circuit 102 and slave processor 300, i.e. the second monitoring processor 1035 pass through Second communication check circuit 1033 and host communication circuit 101 carry out current ring communication with host-processor 200.
When main frame and slave normal work and when carrying out current ring communication, host-processor 200 and host communication circuit 101 Communication data is not sent, and the first communication check circuit 1031 and slave telecommunication circuit are passed through by the first monitoring processor 1034 102 carry out current ring communication with slave processor 300, and specific work process is as follows:
Signal sending end TXD output low level control the 3rd NPN type triode Q3 cut-offs of first monitoring processor 1034 So that the 6th optocoupler U6 is stopped, the signal sending end TXD of the second monitoring processor 1035 sends data reporting, this report number The first signal wire L1 is sent to according to by the 4th NPN type triode Q4 and the 7th optocoupler U7, and passes through second from the first signal wire L1 Diode D2 and the 4th resistance R4 enters the first optocoupler U1, and the first optocoupler U1 is transmitted data reporting, and data reporting passes through First electric capacity C1, second resistance R2 and first resistor R1 enter the signal receiving end RXD of host-processor 200, host-processor 200 stop output communication data according to data reporting or send preset data(It is different from the other kinds of number of communication data According to), the signal sending end TXD of the second monitoring processor 1035 export again the NPN type triode Q4 of low level control the 4th cut-offs with The 7th optocoupler U7 is set to be stopped, meanwhile, the signal sending end TXD of the first monitoring processor 1032 sends communication data to the 3rd NPN type triode Q3, the 3rd NPN type triode Q3 export communication data to the 3rd optocoupler U3, then by the 3rd optocoupler U3 to logical Letter data is transmitted, communication data by the second voltage-regulator diode DZ2, the 26th resistance R26, the 11st electric capacity C11 with And second electrochemical capacitor E2 export to secondary signal line L2, the communication data that the 4th optocoupler U4 transmits secondary signal line L2 is carried out Transmit, then communication data enters slave processor after the 7th electric capacity C7, the 17th resistance R17 and the 18th resistance R18 300 signal receiving end RXD, it is achieved thereby that by the first communication check circuit 1031 and monitoring processor 1032 combines and slave Carry out current ring communication.
When main frame and slave normal work and when carrying out current ring communication, slave processor 300 and slave telecommunication circuit 102 Communication data is not sent, and the second communication check circuit 1033 and host communication circuit are passed through by the second monitoring processor 1035 101 carry out current ring communication with host-processor 200, and specific work process is as follows:
Signal sending end TXD output low level control the 4th NPN type triode Q4 cut-offs of second monitoring processor 1035 So that the 7th optocoupler U7 is stopped, the signal sending end TXD of the first monitoring processor 1034 sends data reporting, this report number Secondary signal line L2 is sent to according to by the 3rd NPN type triode Q3 and the 6th optocoupler U6, and enters the 4th from secondary signal line L2 Optocoupler U4, the 4th optocoupler U4 are transmitted data reporting, and data reporting passes through the 7th electric capacity C7, the 17th resistance R17 and 18 resistance R18 enter the signal receiving end RXD of slave processor 300, and slave processor 300 stops exporting according to data reporting Communication data sends preset data(It is different from the other kinds of data of communication data), the first monitoring processor 1034 Signal sending end TXD exports the NPN type triode Q3 of low level control the 3rd cut-offs so that the 6th optocoupler U6 is stopped, together again When, the signal sending end TXD of the second monitoring processor 1035 sends communication data to the 4th NPN type triode Q4, the 4th NPN type Triode Q4 exports communication data to the 7th optocoupler U7, the 7th optocoupler U7 by communication data by the 29th resistance R29 and 9th diode D9 is exported to the first signal wire L1, communication data passes through the electricity of the second diode D2 and the 4th from the first signal wire L1 Hinder R4 and enter the first optocoupler U1, the first optocoupler U1 is transmitted communication data, and communication data passes through the first electric capacity C1, the second electricity The signal receiving end RXD that R2 and first resistor R1 enters host-processor 200 is hindered, it is achieved thereby that by the second communication check circuit 1033 and monitoring processor 1032 combine and main frame carry out current ring communication.
In summary, the embodiments of the invention provide examined including host communication circuit, slave telecommunication circuit and communication data The current ring communication control of slowdown monitoring circuit and detection circuit, its circuit structure is simple, and cost is low, and by host communication circuit and slave Telecommunication circuit carries out current ring communication to realize that communication data is received and dispatched mutually according to the control of host-processor and slave processor, And by communication data detect circuit by the first signal wire for being parallel between host communication circuit and slave telecommunication circuit and Secondary signal line detects to communication data, and to realize monitoring to communication data, whole policer operation process is simply and just In application, so as to solve the problems, such as that policer operation present in prior art is complicated, high using difficulty and cost is high.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (8)

1. a kind of current ring communication control and detection circuit, are connected, the host process with host-processor and slave processor Device and the slave processor are built in main frame and slave respectively;Characterized in that, the current ring communication control and detection Circuit includes host communication circuit, slave telecommunication circuit and communication data detection circuit;
The signal that the signal receiving end and signal sending end of the host communication circuit connect the host-processor respectively is sent End and signal receiving end, the data input pin and data output end of the host communication circuit are believed by the first signal wire and second Number line connects the data output end and data input pin of the slave telecommunication circuit respectively, and the power supply of the host communication circuit is just End and data output end are also respectively connected with the live wire and zero line of the power supply of the main frame, the signal of the slave telecommunication circuit Receiving terminal and signal sending end connect the signal sending end and signal receiving end of the slave processor, the communication data respectively Detection circuit is connected with first signal wire and the secondary signal line;
Control of the host communication circuit with the slave telecommunication circuit according to the host-processor and the slave processor System carries out current ring communication to realize that communication data is received and dispatched mutually, and the communication data detects circuit by being parallel to described first Signal wire and the secondary signal line detect to the communication data;
Wherein, the communication data detection circuit includes the first communication check circuit and monitoring processor;The first communication inspection The data input pin and data output end of slowdown monitoring circuit connect first signal wire and the secondary signal line respectively, and described first The signal receiving end and signal sending end of communication check circuit connect the signal sending end and signal of the monitoring processor respectively Receiving terminal, the power positive end and data output end of the first communication check circuit are also respectively connected with the power supply of the main frame Live wire and zero line;
Electric current loop is carried out by the host communication circuit and the slave telecommunication circuit between the main frame and the slave During communication, the communication data that the first communication check circuit is transmitted to first signal wire is read out and is sent to institute State monitoring processor;
When the main frame actively disconnects with the slave or the main frame is not at working condition, the monitoring processor leads to Cross the first communication check circuit and the slave telecommunication circuit and carry out current ring communication with the slave processor.
2. current ring communication control as claimed in claim 1 and detection circuit, it is characterised in that the host communication circuit bag Include:
First resistor, second resistance, the first electric capacity, the first optocoupler, 3rd resistor, the second electric capacity, the 3rd electric capacity, the one or two pole Pipe, the 4th resistance, the second diode, the 5th resistance, the first NPN type triode, the 6th resistance, the 7th resistance, the second optocoupler, One voltage-regulator diode, the 8th resistance, the 4th electric capacity, the first electrochemical capacitor, the 9th resistance, the tenth resistance and the 3rd diode;
The first end of the first resistor be the host communication circuit signal sending end, the second end of the first resistor with The first end of the second resistance and the first end of the first electric capacity C1 are connected to the phototriode of first optocoupler altogether Emitter stage, the second end of the second end of the second resistance and first electric capacity are connected to ground altogether, first optocoupler it is photosensitive The colelctor electrode of triode connects the first dc source, and the 3rd resistor is connected in parallel in first optocoupler with second electric capacity Light emitting diode anode and negative electrode between, the first end of the 3rd electric capacity and the negative electrode of first diode and institute State the 4th resistance first end be connected to altogether first optocoupler light emitting diode anode, the second end of the 4th resistance connects Connect the negative electrode of second diode, the anode of second diode is the data input pin of the host communication circuit, institute State the 5th resistance first end be the host communication circuit signal receiving end, the 5th resistance the second end connection described in The base stage of first NPN type triode, the 6th resistance are connected to the collection of the first dc source and first NPN type triode Between electrode, the first end of the emitter stage of first NPN type triode and the 7th resistance is connected to second optocoupler altogether Light emitting diode anode, the second end of the 7th resistance and the negative electrode of the light emitting diode of second optocoupler are connected to altogether Ground, the colelctor electrode of the phototriode of second optocoupler connect the negative electrode of the light emitting diode of first optocoupler, and described the Second end of the emitter stage of the phototriode of two optocouplers and the 3rd electric capacity, the anode of first diode, described the The first end of eight resistance, the first end of the 4th electric capacity, the negative pole of first electrochemical capacitor and the 9th resistance First end is connected to the anode of first voltage-regulator diode, the negative electrode of first voltage-regulator diode and the 8th resistance altogether It is described that the positive pole at the second end, the second end of the 4th electric capacity and first electrochemical capacitor connects the common contact to be formed altogether The data output end of host communication circuit, the tenth resistance are connected to the second end of the 9th resistance and the three or two pole Between the anode of pipe, the negative electrode of the 3rd diode is the power positive end of the host communication circuit.
3. current ring communication control as claimed in claim 1 and detection circuit, it is characterised in that the slave telecommunication circuit bag Include:
4th diode, the 11st resistance, the 5th diode, the 5th electric capacity, the 3rd optocoupler, the 12nd resistance, the 13rd resistance, Second NPN type triode, the 14th resistance, the 15th resistance, the 6th electric capacity, the 16th resistance, the 4th optocoupler, the 7th electric capacity, 17th resistance and the 18th resistance;
The negative electrode of 4th diode is the data output end of the slave telecommunication circuit, and the negative electrode of the 4th diode connects Connect the first end of the 11st resistance, the second end of the 11st resistance and the negative electrode of the 5th diode and described The first end of 5th electric capacity is connected to the emitter stage of the phototriode of the 3rd optocoupler, the light-emitting diodes of the 3rd optocoupler altogether The first end of the negative electrode of pipe and the 12nd resistance is connected to the colelctor electrode of second NPN type triode, the 3rd light altogether Second end of the anode of the light emitting diode of coupling and the 12nd resistance is connected to the first end of the 13rd resistance altogether, described Second the second dc source of termination of the 13rd resistance, the first end of the 14th resistance and the first of the 15th resistance End is connected to the base stage of second NPN type triode, the second end and second NPN type triode of the 14th resistance altogether Emitter stage be connected to ground altogether, the second end of the 15th resistance is the signal receiving end of the slave telecommunication circuit, described the The anode of five diodes and the second end of the 5th electric capacity, the first end of the 6th electric capacity, the of the 16th resistance The anode of the light emitting diode of one end and the 4th optocoupler connects the common contact to be formed as the slave telecommunication circuit altogether Data input pin, the colelctor electrode of the phototriode of the 3rd optocoupler and the second end and the described 16th of the 6th electric capacity Second end of resistance is connected to the negative electrode of the light emitting diode of the 4th optocoupler, the collection of the phototriode of the 4th optocoupler altogether Electrode meets the second dc source, the emitter stage of the phototriode of the 4th optocoupler and the first end of the 7th electric capacity and institute The first end for stating the 17th resistance is connected to the first end of the 18th resistance altogether, the second end of the 7th electric capacity and described the Second end of 17 resistance is connected to ground altogether, and the second end of the 18th resistance sends for the signal of the slave telecommunication circuit End.
4. current ring communication control as claimed in claim 1 and detection circuit, it is characterised in that or communication data inspection Slowdown monitoring circuit includes the second communication check circuit and monitoring processor;The data input pin and data of the second communication check circuit Output end connects the secondary signal line and first signal wire, the signal receiving end of the second communication check circuit respectively Connect the signal sending end and signal receiving end of the monitoring processor respectively with signal sending end;
Electric current loop is carried out by the host communication circuit and the slave telecommunication circuit between the main frame and the slave During communication, the communication data that the second communication check circuit is transmitted to the secondary signal line is read out and is sent to institute State monitoring processor;
When the slave actively disconnects with the main frame or the slave is not at working condition, the monitoring processor leads to Cross the second communication check circuit and the host communication circuit and carry out current ring communication with the host-processor.
5. current ring communication control as claimed in claim 1 and detection circuit, it is characterised in that or communication data inspection Slowdown monitoring circuit includes the first communication check circuit, the second communication check circuit and monitoring processor;The first communication check circuit The data output end of data input pin and the second communication check circuit be connected to first signal wire altogether, described first is logical The data input pin of the data output end and the second communication check circuit of letter detection circuit is connected to the secondary signal line altogether, The signal receiving end and signal sending end of the first communication check circuit connect the first signal of the monitoring processor respectively Transmitting terminal and the first signal receiving end, the power positive end and data output end of the first communication check circuit are also respectively connected with institute State the live wire and zero line of the power supply of main frame, signal receiving end and the signal sending end difference of the second communication check circuit Connect the secondary signal transmitting terminal and secondary signal receiving terminal of the monitoring processor;
Electric current loop is carried out by the host communication circuit and the slave telecommunication circuit between the main frame and the slave During communication, the first communication check circuit and the second communication check circuit are respectively to first signal wire and described The communication data that binary signal line is transmitted is read out and is sent to the monitoring processor;
When the main frame actively disconnects with the slave or the main frame is not at working condition, the monitoring processor leads to Cross the first communication check circuit and the slave telecommunication circuit and carry out current ring communication with the slave processor;
When the slave actively disconnects with the main frame or the slave is not at working condition, the monitoring processor leads to Cross the second communication check circuit and the host communication circuit and carry out current ring communication with the host-processor;
When the main frame and the slave normal work and when carrying out current ring communication, host-processor and the main-machine communication electricity Road does not send communication data, then passes through the first communication check circuit and the slave telecommunication circuit by the monitoring processor Current ring communication is carried out with the slave processor;Or the slave processor and the slave telecommunication circuit do not send it is logical Letter data, then the second communication check circuit and the host communication circuit and the main frame are passed through by the monitoring processor Processor carries out current ring communication.
6. current ring communication control as claimed in claim 1 and detection circuit, it is characterised in that or communication data inspection Slowdown monitoring circuit includes the first communication check circuit, the second communication check circuit, the first monitoring processor and the second monitoring processor;Institute The data output end of the data input pin and the second communication check circuit of stating the first communication check circuit is connected to described altogether One signal wire, the data input pin of the data output end of the first communication check circuit and the second communication check circuit are total to The secondary signal line is connected to, the signal receiving end and signal sending end of the first communication check circuit connect described respectively The signal sending end and signal receiving end of one monitoring processor, the power positive end and data output of the first communication check circuit End be also respectively connected with the main frame power supply live wire and zero line, the signal receiving end of the second communication check circuit and Signal sending end connects the signal sending end and signal receiving end of second monitoring processor respectively;
Electric current loop is carried out by the host communication circuit and the slave telecommunication circuit between the main frame and the slave During communication, the first communication check circuit and the second communication check circuit are respectively to first signal wire and described The communication data that binary signal line is transmitted be read out and be respectively sent to first monitoring processor and it is described second monitoring Processor;
When the main frame actively disconnects with the slave or the main frame is not at working condition, the first monitoring processing Device carries out current ring communication by the first communication check circuit and the slave telecommunication circuit with the slave processor;
When the slave actively disconnects with the main frame or the slave is not at working condition, the second monitoring processing Device carries out current ring communication by the second communication check circuit and the host communication circuit with the host-processor;
When the main frame and the slave normal work and when carrying out current ring communication, the host-processor and the main frame lead to Letter circuit does not send communication data, then passes through the first communication check circuit and the slave by first monitoring processor Telecommunication circuit carries out current ring communication with the slave processor;Or the slave processor and the slave telecommunication circuit Communication data is not sent, then the second communication check circuit and main-machine communication electricity are passed through by second monitoring processor Road carries out current ring communication with the host-processor.
7. current ring communication control and detection circuit as described in claim 1,5 or 6, it is characterised in that first communication Detection circuit includes:
19th resistance, the 20th resistance, the 8th electric capacity, the 5th optocoupler, the 21st resistance, the 9th electric capacity, the tenth electric capacity, Six diodes, the 22nd resistance, the 7th diode, the 23rd resistance, the 3rd NPN type triode, the 24th resistance, 25 resistance, the 6th optocoupler, the second voltage-regulator diode, the 26th resistance, the 11st electric capacity, the second electrochemical capacitor, second 17 resistance, the 28th resistance and the 8th diode;
The first end of 19th resistance is the signal sending end of the first communication check circuit, the 19th resistance Second end is connected to the photosensitive of the 5th optocoupler altogether with the first end of the 20th resistance and the first end of the 8th electric capacity The emitter stage of triode, the second end of the 20th resistance and the second end of the 8th electric capacity are connected to ground altogether, and the described 5th The colelctor electrode of the phototriode of optocoupler connects the 3rd dc source, and the 21st resistance is connected in parallel with the 9th electric capacity Between the anode and negative electrode of the light emitting diode of the 5th optocoupler, first end and the six or two pole of the tenth electric capacity The first end of the negative electrode of pipe and the 22nd resistance is connected to the anode of the light emitting diode of the 5th optocoupler altogether, described Second end of the 22nd resistance connects the negative electrode of the 7th diode, and the anode of the 7th diode is logical for described first The data input pin of letter detection circuit, the first end of the 23rd resistance connect for the signal of the first communication check circuit Receiving end, the second end of the 23rd resistance connect the base stage of the 3rd NPN type triode, and the 24th resistance connects It is connected between the 3rd dc source and the colelctor electrode of the 3rd NPN type triode, the emitter stage of the 3rd NPN type triode It is connected to the anode of the light emitting diode of the 6th optocoupler, the 25th electricity altogether with the first end of the 25th resistance The negative electrode of second end of resistance and the light emitting diode of the 6th optocoupler is connected to ground altogether, the phototriode of the 6th optocoupler Colelctor electrode connects the negative electrode of the light emitting diode of the 5th optocoupler, the emitter stage of the phototriode of the 6th optocoupler and institute State the second end of the tenth electric capacity, the anode of the 6th diode, the first end of the 26th resistance, the 11st electricity It is steady that the first end of the first end of appearance, the negative pole of second electrochemical capacitor and the 27th resistance is connected to described second altogether Second end of the anode of pressure diode, the negative electrode of second voltage-regulator diode and the 26th resistance, the described 11st The positive pole of second end of electric capacity and second electrochemical capacitor connects the common contact to be formed as first communication check electricity altogether The data output end on road, the 28th resistance are connected to the second end of the 27th resistance and the 8th diode Anode between, the negative electrode of the 8th diode is the power positive end of the first communication check circuit.
8. current ring communication control and detection circuit as described in claim 4,5 or 6, it is characterised in that second communication Detection circuit includes:
9th diode, the 29th resistance, the tenth diode, the 12nd electric capacity, the 7th optocoupler, the 30th resistance, the 30th One resistance, the 4th NPN type triode, the 32nd resistance, the 33rd resistance, the 13rd electric capacity, the 34th resistance, the 8th Optocoupler, the 14th electric capacity, the 35th resistance and the 36th resistance;
The negative electrode of 9th diode be the second communication check circuit data output end, the moon of the 9th diode Pole connects the first end of the 29th resistance, the second end of the 29th resistance and the negative electrode of the tenth diode And the first end of the 12nd electric capacity is connected to the emitter stage of the phototriode of the 7th optocoupler, the 7th optocoupler altogether The negative electrode of light emitting diode and the first end of the 30th resistance be connected to the colelctor electrode of the 4th NPN type triode altogether, The anode of the light emitting diode of 7th optocoupler is connected to the 31st resistance altogether with the second end of the 30th resistance First end, the second the 3rd dc source of termination of the 31st resistance, the first end of the 32nd resistance and institute The first end for stating the 33rd resistance is connected to the base stage of the 4th NPN type triode altogether, and the second of the 32nd resistance The emitter stage of end and the 4th NPN type triode is connected to ground altogether, and the second end of the 33rd resistance is logical for described second The signal receiving end of letter detection circuit, the anode of the tenth diode and the second end of the 12nd electric capacity, the described tenth The anode of the light emitting diode of the first end of three electric capacity, the first end of the 34th resistance and the 8th optocoupler connects altogether The common contact formed be the second communication check circuit data input pin, the collection of the phototriode of the 7th optocoupler Electrode is connected to the hair of the 8th optocoupler with the second end of the 13rd electric capacity and the second end of the 34th resistance altogether The negative electrode of optical diode, the colelctor electrode of the phototriode of the 8th optocoupler connect the 3rd dc source, the 8th optocoupler The emitter stage of phototriode is connected to institute altogether with the first end of the 14th electric capacity and the first end of the 35th resistance The first end of the 36th resistance is stated, the second end and the second end of the 35th resistance of the 14th electric capacity are connected to altogether Ground, the second end of the 36th resistance are the signal sending end of the second communication check circuit.
CN201410039126.XA 2014-01-26 2014-01-26 A kind of current ring communication control and detection circuit Active CN104113444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410039126.XA CN104113444B (en) 2014-01-26 2014-01-26 A kind of current ring communication control and detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410039126.XA CN104113444B (en) 2014-01-26 2014-01-26 A kind of current ring communication control and detection circuit

Publications (2)

Publication Number Publication Date
CN104113444A CN104113444A (en) 2014-10-22
CN104113444B true CN104113444B (en) 2017-11-24

Family

ID=51710080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410039126.XA Active CN104113444B (en) 2014-01-26 2014-01-26 A kind of current ring communication control and detection circuit

Country Status (1)

Country Link
CN (1) CN104113444B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104776559B (en) * 2015-03-30 2017-11-10 广东美的制冷设备有限公司 A kind of convertible frequency air-conditioner and its bus-type electric current loop communication system
CN105972768B (en) * 2016-05-26 2019-01-22 广东美的制冷设备有限公司 A kind of the electric current loop communication control circuit and method of air conditioner
CN106301743B (en) * 2016-10-17 2023-05-30 东莞启益电器机械有限公司 Half-duplex communication driving circuit based on mains supply fire wire zero line
CN109474505B (en) * 2018-12-20 2024-04-05 苏州路之遥科技股份有限公司 Single-bus communication signal enhancement circuit with monitoring function
CN112860514B (en) * 2021-02-01 2022-08-16 深圳市科陆精密仪器有限公司 Method, system and storage medium for identifying slave machine by host machine based on 4-20mA current loop

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102734902A (en) * 2011-04-12 2012-10-17 珠海格力电器股份有限公司 Debugging instrument of variable frequency air conditioner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200930955A (en) * 2008-01-15 2009-07-16 Chunghwa Telecom Co Ltd Management system for scheduling air condition apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102734902A (en) * 2011-04-12 2012-10-17 珠海格力电器股份有限公司 Debugging instrument of variable frequency air conditioner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《变频空调室内外机的通讯设计》;刘学鹏等;《工业控制计算机》;20090630;第22卷(第6期);第73-74,76页 *

Also Published As

Publication number Publication date
CN104113444A (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN104113444B (en) A kind of current ring communication control and detection circuit
CN102005718B (en) Protector for electronic load and electronic load system
CN203243268U (en) Large-power DC motor drive control circuit device
CN103763840A (en) Indoor LED lamp intelligent lighting system based on CAN bus
CN206115221U (en) Computer control based on singlechip
CN103208256A (en) Interactive light-emitting diode (LED) display screen control system
CN205607447U (en) Medical environment humiture monitoring system
CN204530080U (en) A kind of yarn burn out detection terminating circuit based on monobus networking
CN204961359U (en) Colliery ventilation blower monitored control system based on zigBee network
CN215729400U (en) Multi-channel controller
CN208621708U (en) A kind of alternating current power-off signal transmission circuit
CN205121237U (en) Controller
CN203520392U (en) Communication circuit for electronic exploration detonator
CN202837981U (en) Smart home monitoring system
CN105486732A (en) Diesel-engine tail-gas quality monitoring apparatus
CN104991198A (en) Battery tour inspection processing circuit based on ARM platform multichannel switching
CN206482745U (en) A kind of general electric wheelchair control system
CN209158405U (en) A kind of wireless teaching system of robot
CN210802546U (en) Wireless temperature and humidity inspection alarm system
CN209250666U (en) A kind of monobus communication signal isolation circuit with monitoring function
CN209419955U (en) A kind of gesture induction switch panel
CN203882184U (en) A machine tool monitoring system
CN206893050U (en) Family fire automatic alarm system based on Internet of Things and Fusion
CN102680845A (en) Polarity determining device of direct plug-in type two-pin semiconductor
CN206331281U (en) A kind of kinematic system controls circuit

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