CN1106611C - Semi-duplex series signal control method and device with variety of baud rate and configuration - Google Patents
Semi-duplex series signal control method and device with variety of baud rate and configuration Download PDFInfo
- Publication number
- CN1106611C CN1106611C CN 97115058 CN97115058A CN1106611C CN 1106611 C CN1106611 C CN 1106611C CN 97115058 CN97115058 CN 97115058 CN 97115058 A CN97115058 A CN 97115058A CN 1106611 C CN1106611 C CN 1106611C
- Authority
- CN
- China
- Prior art keywords
- signal
- state
- low
- send
- ttl
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
The present invention relates to a method and a device for controlling half-duplex sequence signals with multiple baud rates and multiple configurations. The device comprises an RS-232 interface circuit, an RS-485 interface circuit, a power circuit, a protective circuit and a logical control circuit; the control method of a signal receiving and transmitting control line of the RS-485 interface circuit comprises a transmission initiation rule, an LOW and HIGH transmission rule and a receiving rule; in the receiving rule, the signal receiving and transmitting control line is kept in an LOW state. The present invention is under a two-wire RS-485 circuit; signals with different baud rates and different configurations can be used among devices; the present invention can be used for apparatuses and devices with different trade marks and different speed to achieve the control of connecting circuits between a computer and other devices.
Description
Technical field
The present invention relates to a kind of multiple baud rate of the equipment room that is applicable to computer and friction speed and the semi-duplex series signal control method and the device of multiple configuration.
Background technology
Therefore RS-232 interface card in many ports can be transmitted a series of series signal in binary digit, if transmit a hyte (Byte) data, is divided into usually:
Start bit+data bits+inspection position+stop bit.
Start bit=1Bit wherein
Data bits=7Bit or 8Bit
Check position=0Bit or 1Bit
So this series signal length of stop bit=1Bit or 2Bit is the shortest is (1+7+0+1) i.e. 9 (Bit), and the longest be (1+8+1+2) promptly 12, therefore have the series signal of four kinds of different configurations such as 9,10,11,12, yet do not have unified regulation during present stage actual use, therefore the product that comes out of each manufacturer's manufacturing, its configuration that transmits data also is not quite similar.The quantity of the transmissible information bit of relevant RS-232 series signal per second, be referred to as baud rate (Baud Rate), but instrument, equipment difference because of being adopted, the baud rate that each manufacturer used or set also is not quite similar, and the also not special in the use unified regulation of manufacturer
Therefore cause the line networking between PC and PLC, the brand that necessary special requirement are identical in the use, identical transfer rate can overcome the obstacle between the present stage line.
Half-duplex (Half-duplex) communication is meant between host computer and instrument, the equipment, not only received data in can not be at one time, but also transmitted data, normally adopts the mode of " question-response " to finish.That is host computer sends one instruction earlier, and instrument, equipment are responded a result then, therefore transmits and receives the two and take place in can be at one time.
In present industry member, a lot of instruments, equipment are arranged all by programmable logic controller (PLC, Programable Logic Controller) controls, and under the demand of industry comprehensive automation, these PLC must be connected by the mode at networking.These PLC all have the interface of RS-232 usually, and can set different address for, therefore are well suited for linking to each other in the mode at networking.
Fig. 1 is the synoptic diagram that connects multi-section programmable logic controller with many ports RS-232 interface card, adopts many ports RS-232 interface card, and a PC can be connected with multi-section PLC.PC can automatically switch by " many ports RS-232 card ", makes a time PC in office only link to each other with one one PLC wherein, link to each other one by one when being docile and obedient preface when switching " many ports RS-232 card ", then all PLC can being distinguished with PC.And the shortcoming of this kind connected mode maximum:
For the distribution cost is too high, system maintenance is difficulty in the extreme.Its area of general production plant is very big usually, and disperse everywhere between each PLC, suitable again far away of distance to each other, if desire with every PLC all direct cable to PC, then its distribution cost is very high, and on-the-spot environment is very abominable usually, various circuits assorted old, wear and contract therebetween, circuit that has even the mode that adopts the high-altitude to set up, more make system maintenance work if adopt this kind erection mode, the mode of connection that makes the distribution cost than Fig. 2 is reduced significantly, and maintenance cost also relatively reduces.Among the figure each PLC only receive with oneself the address that conforms to instruction after just can respond, other times all respond.Therefore PC assigns the instruction of #1 address earlier, and this moment, PLC#1~PLC#m can receive this instruction simultaneously, but had only PLC#1 to respond, and was #1 because have only the address of PLC#1, and other PLC address is not #1.In like manner, PC can assign #2 number, #3 number .. in regular turn, the #m address instructs to reach the purpose that all is connected.
Fig. 3 is the synoptic diagram that connects multi-section programmable logic controller with TW two wire RS-485, be for using " converter of RS-232 and TW two wire RS485 ", it makes shared two the RS-485 guiding principle road transmission lines of line between PLC and the PC, if adopt this kind erection mode, to make the distribution cost save one times cost than the mode of connection of Fig. 2 system, its maintenance cost relatively also reduces by one times.The manner of execution of PC and Fig. 2 are very similar among the figure, and T+, the T-of its maximum difference in Fig. 2 is used for move instruction, and R+, R-are used for returned results.Yet D+, the D-of Fig. 3 can be used to move instruction, also can be used to returned results, so the circuit of its " RS-232/RS-485 converter and RS-485 duplicator " is just much complicated than the circuit of Fig. 2 system.If relatively between each PLC, desire is used different baud rate and different configurations, then " RS-232/RS485 converter and the RS-485 duplicator " among Fig. 3 can't reach this kind function at all, because its employed instrument of each manufacturing works, equipment is the mode to introduce successively all, the label of equipment room each other, it is consistent that speed all can reach, therefore cause the puzzlement on the connection line operation of guiding principle road can't overcome always, and the converter of present stage (Converter) and duplicator (Repeater) are at home, in the use of outer product, be far from finding that any product can reach the requirement of above-mentioned functions.
In view of this, the inventor according to the experience that goes in for the study, makes Related product for many years, develops, designs the semi-duplex series signal control method and the device of one kind of multiple baud rates and multiple configuration at the above-mentioned shortcoming of existing in prior technology finally.
Summary of the invention
The object of the present invention is to provide the semi-duplex series signal control method and the device of one kind of multiple baud rates and multiple configuration, utilize the receipts of boundary's interface circuit/send signal control line itself, take a kind of brand-new control method, so as to reaching the guiding principle road connection system of multiple baud rate and multiple configuration, make the peripheral instrument of different labels, friction speed, equipment can interconnect use.
Another object of the present invention is to provide the semi-duplex series signal control method and the device of one kind of multiple baud rates and multiple configuration, it can make TW two wire RS-485 guiding principle road, as long as use D+, two signal line of D-, can reach the requirement of receiving/sending signal and signal repetition (continuity), wherein utilize the receipts of this interface circuit/send signal control line itself, take a kind of brand-new control method, to reach the guiding principle road connection system of multiple baud rate and multiple configuration, make different labels, the peripheral instrument of friction speed, equipment can interconnect use, can make cost minimum, it is the easiest to safeguard.
For achieving the above object, the present invention adopts following technology contents:
A kind of multiple baud rate of the line guiding principle road that applies to computer and other equipment rooms and the semi-duplex series signal control method of multiple configuration, it includes RS-232 interface circuit, RS-485 interface circuit, power circuit, holding circuit and logic control circuit at least;
The receipts of RS-485 interface circuit/send the control method of signal control line (DIR) to be wherein:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR) is the LOW state;
Transmit the rule of LOW:
When transmitting the signal of LOW, when promptly the sequential of data T1 was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send signal control line (DIR) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When transmitting the signal of HIGH, when promptly the sequential of data T1 was the state of HIGH by the state exchange of LOW, the sequential of then receiving/send signal control line (DIR) was prolonging t after the time, and the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR) maintains LOW; By above-mentioned control method, make under TW two wire RS-485 guiding principle road, also can use the RS-232 series signal of different baud rates and different configuration between each equipment, that is can be applicable to various different labels, the instrument of friction speed, equipment, reach the control on computer and other equipment room line guiding principle roads.
In the design of existing line guiding principle road, between each PLC that TW two wire RS-485 is connected, difference because of each PLC label, cause baud rate or configuration all inconsistent, so must be forced to use instead the RS-485 guiding principle road of four-wire type, therefore all increased substantially two times on material cost and maintenance cost, this also is the puzzlement of the maximum in dealer's use.The present invention proposes a kind of brand-new control method, make under TW two wire RS-485 guiding principle road, also can use RS-232 sequence (Serial) signal of different baud rate (Baud Rate) and different configuration (Configuration) between each PLC, this point is other TW two wire guiding principle parts that the road can not reach, and present stage technical the bottleneck that can't break through, also be maximum characteristics of the present invention.
The above-mentioned purpose of control method of the present invention, also can further realize by following technical measures:
When described control device adopted signal converter, the control method of wherein receiving/send signal control line (DIR5) was:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR5) is the state of LOW;
Transmit the rule of LOW:
When transmitting the signal of LOW, the sequential of data T1 will be the state of LOW by the state exchange of HIGH, and the sequential that receive/sent signal control line (DIR5) this moment is the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When transmitting the signal of HIGH, the sequential of data T1 will be the state of HIGH by the state exchange of LOW, and the sequential of receiving/send signal control line (DIR5) this moment is prolonging t after the time, and the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR5) maintains LOW; By combinations thereof, in order to changing the interface signal between each outside RS-232 interface and RS-485 interface, and can apply to the equipment room line guiding principle path control system of different baud rates and different configuration.
The minimum value of described time t needs the tPLH value more than or equal to this RS-485 interface circuit, and this time t maximal value equals the reaction time P sum of stop bit length S and connecting line equipment.
When above-mentioned control device adopted signal converter, wherein the control method of " receiving/send signal control line (DIR6) " was:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR6) is the state of LOW;
Transmit the rule of LOW:
When the signal that transmits (D2+, when sequential D2-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR6) was the state of HIGH by the state exchange of LOW at once;
Transmit the HIGH rule:
(D2+ when D2-) sequential is the state of HIGH by the state exchange of LOW, then receives/send after the sequential time expand t of controlling signal line (DIR6), and the state exchange by HIGH is the state of LOW again when the signal that transmits;
The rule that receives:
Receive/send the state that controlling signal line (DIR6) maintains LOW; The control method of wherein receiving/send signal control line (DIR7) is:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR7) is the state of LOW;
Transmit the rule of LOW:
When the signal that transmits (D1+, when sequential D1-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR7) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When the signal that transmits (D1+, sequential D1-) is the state of HIGH by the state exchange of LOW, the sequential of then receiving/send controlling signal line (DIR7) is after time expand t, the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR7) maintains LOW;
By combinations thereof, in order to outside RS-485 interface signal continuity, and can apply to the equipment room line guiding principle path control system of different baud rates and different configuration.
The minimum value of described time t needs the tPLH value more than or equal to this RS-485 interface circuit, and the maximal value of this time t can be the reaction time P sum of stop bit length S and connecting line equipment.
The brand-new control method that the present invention proposes is a kind of " violating existing control mode ", make can't solve in Fig. 3 system with the control function that reaches can be fully accomplished.Therefore, the present invention has that cost is low, function is strong, and the product that practicality is very high when it is widely used in industrial community, must be enhanced productivity, and then raising and external competitive power.
For achieving the above object, the technology contents of the semi-duplex series signal control device of the multiple baud rate of the present invention's employing and multiple configuration is as described below:
The semi-duplex series signal control device of one kind of multiple baud rates and multiple configuration is characterized in that, described control device is a signal converter, comprising: power circuit, and its input end links to each other with extraneous power supply, and its output terminal is connected with the input end of hardware device;
Holding circuit, respectively with the RS-232 interface and the RS-232/TTL interface circuit of outside, and the TTL/RS-485 interface circuit links to each other with outside RS-485 interface circuit;
One RS-232/TTL interface circuit is to be connected with holding circuit, control logic circuit and TTL/RS-485 interface circuit respectively, is converted to TTL interface signal in order to the RS-232 interface signal that will receive;
One TTL/RS-485 interface circuit, be connected with RS-232/TTL interface circuit, control logic circuit and holding circuit respectively, in order to TTL interface signal is converted to RS-485 interface signal, and this TTL/RS-485 interface circuit comprises and receives/send signal control line (DIR5);
One control logic circuit is connected with RS-232/TTL interface circuit and TTL/RS-485 interface circuit respectively, and according to the signal that interface signal T2 is sent here, controls and receive/send signal control line (DIR5) action.
The semi-duplex series signal control device of one kind of multiple baud rates and multiple configuration, it is characterized in that described control device is the signal duplicator, it comprises: a power circuit, its input end links to each other with extraneous power supply, and its output terminal is connected with the input end of hardware device;
Two holding circuits, respectively with outside RS-485 interface and RS-485/TTL interface circuit, and the TTL/RS-485 interface circuit is connected with outside RS-485 interface circuit;
One RS-485/TTL interface circuit, it links to each other with holding circuit, control logic circuit and TTL/RS-485 interface circuit respectively, is converted to TTL interface signal in order to the RS-485 interface signal that will receive; And this RS-485/TTL interface circuit comprises to be drawn together one and receives/send signal control line (DIR6);
One TTL/RS-485 interface circuit, link to each other with RS-485/TTL interface circuit, control logic circuit and holding circuit respectively, in order to TTL interface signal is converted to RS-485 interface signal, and this TTL/RS-485 interface circuit comprises and receives/send signal control line (DIR7);
Two control logic circuits are connected with RS-485/TTL interface circuit and TTL/RS-485 interface circuit respectively, circuit is controlled and received/send signal control line (DIR6) action according to the signal controlling that interface signal R is sent here; And, control and receive/send signal control line (DIR7) action according to the signal that interface signal T is sent here.
Description of drawings
Fig. 1 is the synoptic diagram with many ports RS-232 card connection multi-section programmable logic controller.
Fig. 2 is the synoptic diagram that connects multi-section programmable logic controller with four-wire type RS-485.
Fig. 3 is the synoptic diagram that connects multi-section programmable logic controller with TW two wire RS-485.
The RS-485 interface circuit figure of Fig. 4 for simplifying.
Fig. 5 is the line calcspar between existing PC and PLC.
Fig. 6 is the associated sequence numbers sequential chart between existing PC and PLC.
Fig. 7 is the sequential chart of existing RS-485 interface I C.
Fig. 8 is the procedure chart that PC gives data transmission PLC.
Fig. 9 is returned to data for PLC the procedure chart of PC.
Figure 10 is converter block figure of the present invention.
Figure 11 is the related signal sequential chart of converter of the present invention.
The calcspar of Figure 12 side's duplicator of the present invention.
Figure 13 is the related signal sequential chart of duplicator of the present invention.
Figure 14 is the isolated form block schematic diagram of converter of the present invention.
Figure 15 is the isolated form block schematic diagram of duplicator of the present invention.
Figure 16 is the packing vertical view of existing RS-485 interface I C.
Embodiment
Suppose that now each PLC among Fig. 3 all uses " identical baud rate " and " identical configuration ", then its converter A and duplicator B all can reach its function with regard to the existing product in present home and abroad.For being easy to understand the design concept of prior art, modern summary is described as follows: RS-485 interface circuit can be simplified to reduced graph as shown in Figure 4 usually.Wherein when receiving/sending signal control line DIR and be LOW, the reception data from the RS-485 guiding principle road of then indicating is so the data of D+, D-can be sent to R.When DIR is HIGH, then to indicate data transmission to RS-485 guiding principle road, this moment, the data of T can be sent to D+, D-.Now with this receipts/send the function of signal control line (IRD), after the arrangement as shown in the following Table 1:
In the table, more can know and recognize when DIR is LOW thus, represent reception data from the guiding principle road, and when DIR is HIGH, then indicate data transmission to the guiding principle road.
State | Function declaration |
DIR=LOW | (D+, D-) passes to R, receives data from RS-485 guiding principle road |
DIR=HIGH | T passes to (D+, D-), send data to arrive RS-485 guiding principle road |
Fig. 5 is line calcspar and related signal sequential chart between existing PC and PLC, by among this figure we to find just to begin DIR1, DIR2, DIR3, DIR4 all be the state of LOW, just all at the state of preparation reception data.When PC begins to send when instruction, T1 is at once by HIGH → LOW (meaning of conversion of " → " table or conversion), and begins the transmission data, this moment, DI R1 was promptly at once by LOW → HIGH, became the state of transmission data, so (D1+, D1-) begin to transmit the data of T1, and this moment, DIR2 remained on the state of LOW, so that receive (D1+, D1-) the T1 data on, but DIR3 becomes the state of transmission data also at once by LOW → HIGH, so (D2+, D2-)=(D1+, D1-)=T1.This moment, DIR4 also maintained LOW, the T1 data so that receive on (D2+, D2-), so R2=(D2+, D2-)=(D1+, D1-)=T1.That is to say the instruction T1 that PC sends, correctly pass on the R2 of PLCn.
For ease of understanding data transmission program wherein, see also Fig. 8, Fig. 9, it has represented to receive each other between PC and PLC/send the procedure chart of data, like this, as long as we can recognize the part that the RS-485 interface is arranged among Fig. 5, will control wherein receipts/send signal control line (DIR), a RS-485 interface is respectively arranged among converter A1 and the A2, each is represented with DIR1 and DIR4 to suppose its receipts/send signal control line, duplicator B1 then has two RS-485 interfaces, and to receive/send the signal control line be DIR2 and DIR3 so there are two.Four control lines such as the DIR1 among Fig. 5, DIR2, DIR3, DIR4 are total system most important control signal line, please survey in detail again to look at its program and can know and understand above-mentioned transmission course.
We have only introduced DIR1 and DIR3 by LOW → HIGH in the preceding paragraph, so when will can know be again by HIGH → LOW for DIR1 and DIR3? answer is after the T1 data transmission finishes, and DIR1 and DIR3 must be by HIGH → LOW to prepare the reception data.We suppose that earlier PLCn uses fixing baud rate and fixing configuration, and make that T1 is 1 hyte (Byte) data, and then T1 is the length (document just) of fixing.For example: 10000 of baud rate=per seconds, configuration=10, the then length of T1=10 * 1/10000 second=1/1000 second.We can set regular time with the timer or the delayer of hardware, allow DIR1 and DIR3 can be returned the state of LOW by the state of HIGH then.
Presumptive instruction has only a hyte, and then PLCn just can be returned to PC with the result after receiving the data of T1.After T1 had transmitted, DIR1, DIR3 were by HIGH → LOW, and DIR2, DIR4 were exactly LOW originally, therefore all were in the state of " waiting for the reception data ".When the T2 data was sent in the PLCn tendency to develop, DIR2, DIR4 just can be by LOW → HIGH, so that transmit the T2 data, then (D2+, D2-)=T2, this moment, DIR3 was that LOW, DIR2 are HIGH, therefore (D1+, D1-)=(D2+, D2-)=T2, and DIR1 also is the state of LOW, promptly prepare the reception data, and last R1=(D1+, D1-)=(D2+, D2-)=and T2, that is to say that the T2 data of sending from PLCn correctly delivered to the R1 of PC.After the T2 data transmission finished, DIR2, DIR4 can be by HIGH → LOW, and its principle and DIR1, the DIR3 situation during by HIGH → LOW is identical.
What discussed in front is that " sending instruction " all is the situation of 1 hyte (Byte) with " returned results ", if " send instruction " and " returned results " when all being numerical digit group (bytes), how does this handle again? it is after having given first hyte data, DIR1, DIR2, DIR3, DIR4 all can get back to original state, but because of PLCn only receives 1 hyte data, so can not move, therefore can continue to transmit the next instruction hyte, after whole instruction transmission finishes, after this moment, PLCn confirmed that instruction is errorless, just can begin returned results.And returned results all is that a hyte is then passed back to a hyte with to send the action of instruction similar, and has passed a hyte data and all can be returned to virgin state at every turn, so tendency to develop send several hytes can.
We can find by above description: when all P L C used " identical baud rate ", " phase is state on the same group ", converter A1, A2 and duplicator B1 among Fig. 5 can be devised.When but if PLC uses " different baud rates " or uses " different configurations ", the time of transmitting a hyte just becomes the on-fixed time, have only PC to know how much length of this " on-fixed time " is on earth this moment? because PC can only directly control coupled converter A1, and other converter A2 and duplicator B1 can't be controlled by PC, therefore don't you know all what " length of time " is on earth? so DIR2, DIR3, HIGH/LOW between DIR4 relation will entanglement, all transmit and the data that receive mistake fully all then, prior art why that Here it is, must adopt identical label, the equipment of identical speed, identical to reach baud rate, the reason on the line control guiding principle road that configuration is identical, yet in the actual operation, be difficult to reach this requirement, this also is on this technical field, technical bottleneck anxious to be solved.
The present invention proposes a kind of brand-new control method, makes that each PLC among Fig. 3 can use different baud rates and different configurations.First figure of Fig. 8 is signal converter 10 calcspars of the present invention, signal converter for a kind of RS-232 and TW two wire RS-485, include members such as holding circuit 12, power circuit 13, RS-232/TTL interface circuit 14, control logic circuit 15, TTL/RS-485 interface circuit 16, holding circuit 17, in order to change the interface signal at 18 at each outside RS-232 interface 11 and RS-485 interface; Wherein: this power circuit 13 is in order to convert the power supply (Vin+, Vin-) that the external world provided to hardware device required power supply; This holding circuit the 12, the 17th connects outside RS-232 interface 11 and RS-232/TTL interface circuit 14 respectively, and TTL/RS-485 interface circuit 16 and outside RS-485 interface circuit 18, so as to removing outside clutter, prevents high-voltage electric shock or overload phenomenon etc.; This RS-232/TTL interface circuit 14 links to each other with holding circuit 12, control logic circuit 15 and TTL/RS-485 interface circuit 16 respectively, be converted to TTL interface signal R2, T2 in order to RS-232 interface signal R1, the T1 that will receive, carry out the control of circuit in order to control logic circuit 15, and receive/send signal control line DIR5 action according to the signal controlling that interface signal T2 is sent here; This TTL/RS-485 interface circuit 16 is connected with RS-232/TTL interface circuit 14, control logic circuit 15 and holding circuit 17 respectively, in order to TTL interface signal R2, T2 are converted to RS-485 interface signal D+, D-, uses for outside RS-485 interface.
Its control principle is described as follows: in the sequential chart of Fig. 8, correlation timing figure when we with T1 are example explanation transmission T1 data, when T1 data during by HIGH → LOW, then T2=T1 and receipts/send signal control line DIR0 at once by LOW → HIGH, be the state of transmission data, (D+ D-) will go out the T1 data transmission at this moment, transmission finishes back DIR0 again by HIGH → LOW, and this is existing control method.
The characteristics of brand-new control method of the present invention are to adopt " receiving/send signal control line (DIR5) ", and the method for its control is as described below:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR5) is the state of LOW;
Transmit the rule of LOW:
When transmitting the signal of LOW, the sequential of data T1 will be the state of LOW by the state exchange of HIGH, and the sequential that receive/sent signal control line (DIR5) this moment is the HIGH state by the LOW state exchange at once;
Transmit the rule of HIGH:
When transmitting the HIGH signal, the sequential of data T1 will be the state of HIGH by the state exchange of LOW, and the sequential of receiving/send signal control line (DIR5) this moment is prolonging t after the time, and the state exchange by HIGH is the state of LOW again.
Wherein the meaning that " transmits initial rule " is the state that promptly is in " reception data " at the beginning, and the meaning of " transmitting the rule of LOW " is in the time the signal of LOW will being sent out, and DIR5 must become HIGH at once and could transmit correctly.In addition, the suggestion that " transmits the rule of HIGH " is when the signal of T1=HIGH will being sent out, wait for that hardware transient state (Propogation Delry) finishes as long as prolong the t time again at DIR5, if then this moment with DIR5 by HIGH → LOW, (D1+ D1-) still remains on the state of HIGH in then output.The time of this T is relevant with the characteristic of employed RS-485 interface I C, and is all irrelevant with baud rate and the configuration of PC or PLC.When desire receives data, DIR5 is as long as maintain the state of LOW always, because transmit initial rule, transmit the rule of LOW and the rule of transmission HIGH, all irrelevant with baud rate or the configuration of PC or PLC, so when the present invention is applied in the system of Fig. 3, can allow between PC and other PLC to be used on the series signal of different baud rates and different configuration.
The length of t is relevant with the characteristic of employed interface I C, C is an example with this interface I of the employed LTC485 of present industry, the length of t must be worth more than or equal to the tPLH among Fig. 6 (DriverPropogationDelay), its value is 100ns herein, so as long as t is more than or equal to 100ns=0.1 μ s.And the S in Fig. 8 represents the length of stop bit (Stop Bit), P then is the reaction time of PLC, the length of this t can be the same with the length S of stop bit long, suppose that the RS-232 interface is the speed rates with 100KHz, then the length of S is 1/100K=10 μ s, that is to say that the length of t must be between 0.1 μ s and 10 μ s; If stop bit S is 2, then t can extend to 10 μ s * 2=20 μ s.After PLC received this instruction, it needed time of a bit handling, that is so-called reaction time P, afterwards, meeting returned results, thus the length of t in fact the longest can be the length of S+P.
Fig. 9, Figure 10 are respectively duplicator calcspar of the present invention and related signal sequential chart, and its principle of work is identical with Fig. 8.Fig. 9 is signal duplicator 20 calcspars of the present invention, be a kind of " TW two wire RS-485 is to TW two wire RS-485 signal duplicator ", when PLC distance each other is too far away apart, this signal duplicator 20 more can improve guiding principle director Lu, the signal of RS-485, realizes remote guiding principle road transmission connection system; Include circuit such as holding circuit 22, power circuit 23, RS-485/TTL interface circuit 24, control logic circuit 25,26, TTL/RS-485 interface circuit 27, holding circuit 28, in order to each outside RS-485 interface signal is extended (raising); Wherein: this power circuit 23 is in order to (Vin+ Vin-) converts the required power supply of hardware device to power supply that the external world provided; This holding circuit the 22, the 28th connects outside RS-485 interface 21 and RS-485/TTL interface circuit 24 respectively, and TTL/RS-485 interface circuit 27 and outside RS-485 interface circuit 29, except that outside clutter, prevents high-voltage electric shock or overload phenomenon etc. with anti-; Above-mentioned RS-485/TTL interface circuit 24 is to be connected with holding circuit 22, control logic circuit 25,26 and TTL/RS-485 interface circuit 27 respectively, be converted to the RS-485 interface signal D1+ of TTL interface signal T in order to RS-485 interface signal D1+, the D1-that will receive receiving, D1-is converted to TTL interface signal T, be convenient to the signal that control logic circuit 25 is sent here according to interface signal T, signal control line DIR7 action is received/is sent in control; This TTL/RS-485 interface circuit 27 connects RS-485/TTL interface circuit 24, control logic circuit 25,26 and holding circuit 28 respectively; in order to RS-485 interface signal (D2+ with the outside; D2-) be converted to TTL interface signal R; be convenient to the signal that control logic circuit 26 is sent here according to interface signal R, signal control line DIR6 action is received/is sent in control.The transmission rule of wherein receiving/send signal control line (DIR6) is as follows:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR6) is the state of 0.1W;
Transmit the rule of LOW:
When the signal that transmits (D2+, when sequential D2-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR6) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
(D2+ when sequential D2-) is the state of HIGH by the state exchange of LOW, then receives/send the LOW state of controlling signal line (DIR6) when the signal that transmits.The transmission rule of wherein receiving/send signal control line (DIR7) is as follows:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR7) is the state of LOW;
Transmit the rule of LOW:
When the signal that transmits (D1+, when sequential D1-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR7) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When the signal that transmits (D1+, when sequential D1-) was the state of HIGH by the state exchange of LOW, the sequential of then receiving/send controlling signal line (DIR7) was prolonging t after the time, the state exchange by HIGH is the state of LOW again.
Learn from above, receipts among signal control line DIR5 and Fig. 9 of receipts among Fig. 8/send/send the transmission rule of signal control line DIR6, DIR7 just the same, and also the minimum value of t and maximal value are also just the same.
The most important key of the present invention is to take and the diverse control mode of prior art, but reaches a kind of unprecedented control method.On the product information (Data Sheet) of general RS-485 interface I C, signal control line (DIR) is received/sent to the sign of all understanding is " reception data " for the state of " LOW ", is " transmission data " when it is the state of " HIGH "; But the receipts of the present invention when transmitting data/send signal control line DIR are the states that " HIGH → LOW → HIGH → LOW " replaces, and violate the use habit in the prior art control significantly.Existing RS-485 guiding principle road is in vogue never to have associated documents to mention similar intention for many years, and this is a valuable point of the present invention.And when practical application, the PLC of different labels really uses different speed or configuration, so the present invention has practicality, novelty and progressive really, is in fact one to have creationary design.
The present invention is except can applying to the application of PLC line, and all instruments, equipment have following condition person and all can interconnect.
1, have the RS-232 interface, and the person that initiatively do not send the signal usually.
2, when receiving the not right instruction of form, the person that can initiatively not reply the error messages.
Therefore, when instrument, equipment have above binomial condition, can be placed on the position of PLC of Fig. 3 system, and can reach the purpose of line running, its principle and the PLC principle during interconnection line mutually are identical, therefore the very wide connection system that is limited to PLC that has more than of applicability of the present invention.
Figure 14 is the isolated form calcspar of converter of the present invention, that is adds buffer circuit in the calcspar of Fig. 8.And Figure 15 is the isolated form calcspar of duplicator of the present invention, similarly adds buffer circuit in the calcspar of Fig. 9.
Table 2, table 3, table 4 are respectively all size, the parameter list of existing RS-485 interface I C.Table 2
The max cap. specification
Table 3
1. service voltage ... 12V |
2. input control voltage ...-0.5Vto Vcc+0.5V |
3. pusher input voltage ...-0.5Vto Vcc+0.5V |
4. pusher output voltage ... ± 14V |
5. receiver input voltage ... ± 14V |
6. receiver output voltage ...-0.5Vto Vcc+0.5V |
7. operating temperature range LTC485I ...-4 0≤℃ TA≤8 5 ℃ LTC485C ... 0 ℃≤TA≤70 ℃ LTC485M ...-55 ℃≤TA≤125 |
8. pin welding temperature ... 300 ℃ |
The pin menu
Table 4
Pin | Title | Invention |
① ? ? ② ? ? ③ ? ? ④ ? ? ⑤ ⑥ ⑦ ⑧ | ?RO ? ? ?RE ? ? ?DE ? ? ?DI ? ? ?CND ?A ?B ?Vcc | If be receiver pusher input pin as DE=HIGH and DI=HIGH then A=Low if receiver output pin A>B200mv then RO=HIGH A<B200mv then RO=Low receiver activation RE=Low then RO activation RE=HIGH then RO suspension joint pusher activation DE=HIGH then A and B are pusher DE=Low then A and B; B=HIGH is as DE=HIGH and DI=Low A=HIGH then, and B=Low ground connection promotes/receive to promote/receive positive supply 4.75<Vcc<5.25 |
Menu transmits
Receive
INPUTS | LINE | OUTPUTS | |||
RE | DE | DI | CONDITION | B | A |
X | 1 | 1 | NO?Fault | 0 | 1 |
X | 1 | 0 | NO?Fault | 1 | 0 |
X | 0 | X | X | 2 | 2 |
X | 1 | X | Fault | 2 | 2 |
INPUTS | OUTPUTS | ||
RE | DE | A-B | R |
0 | 0 | ≥0.2V | 1 |
0 | 0 | ≤-0.2V | 0 |
0 | 0 | lupuls?Open | 1 |
1 | 0 | X | 2 |
For clearly distinguishing the relation between itself and Fig. 4 RS-485 interface I C, the spy is organized into shown in following comparison sheet-table 5:
Transmit RS-and accept RS-and receive/send the moving negative sense signal Fig. 4 T R DIR D+ D-Figure 10 DI RO RE of the differential RS-485 difference of the RS-485 RS-485 explanation 485 signals 485 signal data control forward signal A B that links to each other with DE
In sum, the semi-duplex series signal control method and the device of multiple baud rate of the present invention and multiple configuration, can be between the connection system of existing PLC guiding principle road, the function that is beyond one's reach, effective solution is proposed, can allow numerous dealers experience convenient and practical, creative, novelty meets the application important document of patent of invention really.
The above only is preferred embodiment of the present invention, and the equivalence that the Fan Yiben creation spirit is done changes and modifies, and all should belong to technology contents category of the present invention.
Claims (10)
1, a kind of multiple baud rate of the line guiding principle road that applies to computer and other equipment rooms and the semi-duplex series signal control method of multiple configuration is characterized in that including at least RS-232 interface circuit, RS-485 interface circuit, power circuit, holding circuit and logic control circuit;
The receipts of RS-485 interface circuit/send the control method of signal control line (DIR) to be wherein:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR) is the LOW state;
Transmit the rule of LOW:
When transmitting the signal of LOW, when promptly the sequential of data T1 was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send signal control line (DIR) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When transmitting the signal of HIGH, when promptly the sequential of data T1 was the state of HIGH by the state exchange of LOW, the sequential of then receiving/send signal control line (DIR) was prolonging t after the time, and the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR) maintains LOW.
2, the semi-duplex series signal control method of multiple baud rate according to claim 1 and multiple configuration is characterized in that, the minimum value of described time t needs the tPLH value more than or equal to this RS-485 interface circuit.
3, the semi-duplex series signal control method of multiple baud rate according to claim 1 and multiple configuration is characterized in that, when described control device adopted signal converter, the control method of wherein receiving/send signal control line (DIR5) was:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR5) is the state of LOW;
Transmit the rule of LOW:
When transmitting the signal of LOW, the sequential of data T1 will be the state of LOW by the state exchange of HIGH, and the sequential that receive/sent signal control line (DIR5) this moment is the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When transmitting the signal of HIGH, the sequential of data T1 will be the state of HIGH by the state exchange of LOW, and the sequential of receiving/send signal control line (DIR5) this moment is prolonging t after the time, and the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR5) maintains LOW.
4, the semi-duplex series signal control method of multiple baud rate according to claim 3 and multiple configuration is characterized in that, the minimum value of described time t needs the tPLH value more than or equal to this RS-485 interface circuit.
According to the semi-duplex series signal control method of claim 1,3 or 4 described multiple baud rates and multiple configuration, it is characterized in that 5, described time t maximal value equals the reaction time P sum of stop bit length S and connecting line equipment.
6, the semi-duplex series signal control method of multiple baud rate according to claim 1 and multiple configuration is characterized in that, when described control device adopted signal converter, wherein the control method of " receiving/send signal control line (DIR6) " was:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR6) is the state of LOW;
Transmit the rule of LOW:
When the signal that transmits (D2+, when sequential D2-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR6) was the state of HIGH by the state exchange of LOW at once;
Transmit the HIGH rule:
(D2+ when D2-) sequential is the state of HIGH by the state exchange of LOW, then receives/send after the sequential time expand t of controlling signal line (DIR6), and the state exchange by HIGH is the state of LOW again when the signal that transmits;
The rule that receives:
Receive/send the state that controlling signal line (DIR6) maintains LOW; The control method of wherein receiving/send signal control line (DIR7) is:
Transmit initial rule:
When initial state, the sequential of receiving/send controlling signal line (DIR7) is the state of LOW;
Transmit the rule of LOW:
When the signal that transmits (D1+, when sequential D1-) was the state of LOW by the state exchange of HIGH, the sequential of then receiving/send controlling signal line (DIR7) was the state of HIGH by the state exchange of LOW at once;
Transmit the rule of HIGH:
When the signal that transmits (D1+, sequential D1-) is the state of HIGH by the state exchange of LOW, the sequential of then receiving/send controlling signal line (DIR7) is after time expand t, the state exchange by HIGH is the state of LOW again;
The rule that receives:
Receive/send the state that controlling signal line (DIR7) maintains LOW.
7, the semi-duplex series signal control method of multiple baud rate according to claim 6 and multiple configuration is characterized in that, the minimum value of described time t needs the tRLH value more than or equal to this RS-485 interface circuit.
8, the semi-duplex series signal control method of multiple baud rate according to claim 7 and multiple configuration is characterized in that, the maximal value of described time t can be the reaction time P sum of stop bit length S and connecting line equipment.
9, the semi-duplex series signal control device of one kind of multiple baud rates and multiple configuration, it is characterized in that described control device is a signal converter, comprising: power circuit, its input end links to each other with extraneous power supply, and its output terminal is connected with the input end of hardware device;
Holding circuit, respectively with the RS-232 interface and the RS-232/TTL interface circuit of outside, and the TTL/RS-485 interface circuit links to each other with outside RS-485 interface circuit;
One RS-232/TTL interface circuit is to be connected with holding circuit, control logic circuit and TTL/RS-485 interface circuit respectively, is converted to TTL interface signal in order to the RS-232 interface signal that will receive;
One TTL/RS-485 interface circuit, be connected with RS-232/TTL interface circuit, control logic circuit and holding circuit respectively, in order to TTL interface signal is converted to RS-485 interface signal, and this TTL/RS-485 interface circuit comprises and receives/send signal control line (DIR5);
One control logic circuit is connected with RS-232/TTL interface circuit and TTL/RS-485 interface circuit respectively, and according to the signal that interface signal T2 is sent here, controls and receive/send signal control line (DIR5) action.
10, the semi-duplex series signal control device of one kind of multiple baud rates and multiple configuration, it is characterized in that described control device is the signal duplicator, it comprises: a power circuit, its input end links to each other with extraneous power supply, and its output terminal is connected with the input end of hardware device;
Two holding circuits, respectively with the RS-485 interface and the RS-485/TTL interface circuit of outside, and the TTL/RS-485 interface circuit links to each other with outside RS-485 interface circuit;
One RS-485/TTL interface circuit is to be connected with holding circuit, control logic circuit and TTL/RS-485 interface circuit respectively, is converted to TTL interface signal in order to the RS-485 interface signal that will receive; And this RS-485/TTL interface circuit comprises receives/send signal control line (DIR6);
One TTL/RS-485 interface circuit, be connected with RS-485/TTL interface circuit, control logic circuit and holding circuit respectively, in order to TTL interface signal is converted to RS-485 interface signal, and this TTL/RS-485 interface circuit comprises and receives/send signal control line (DIR7);
Two control logic circuits, be connected with RS-485/TTL interface circuit and TTL/RS-485 interface circuit respectively, with the signal of circuit being controlled and being sent here according to interface signal R, signal control line (DIR6) action is received/is sent in control, and, control and receive/send signal control line (DIR7) action according to the signal that interface signal T is sent here.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 97115058 CN1106611C (en) | 1997-07-30 | 1997-07-30 | Semi-duplex series signal control method and device with variety of baud rate and configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 97115058 CN1106611C (en) | 1997-07-30 | 1997-07-30 | Semi-duplex series signal control method and device with variety of baud rate and configuration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1206878A CN1206878A (en) | 1999-02-03 |
CN1106611C true CN1106611C (en) | 2003-04-23 |
Family
ID=5173087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 97115058 Expired - Fee Related CN1106611C (en) | 1997-07-30 | 1997-07-30 | Semi-duplex series signal control method and device with variety of baud rate and configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1106611C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100437540C (en) * | 2006-02-22 | 2008-11-26 | 福建师范大学 | Method and device for updating field monolithic unit by variable baud-rate |
CN101662369B (en) * | 2008-08-28 | 2012-02-08 | 中冶赛迪工程技术股份有限公司 | Universal network adapter |
US9563260B2 (en) * | 2013-03-15 | 2017-02-07 | Intel Corporation | Systems, apparatuses, and methods for synchronizing port entry into a low power state |
-
1997
- 1997-07-30 CN CN 97115058 patent/CN1106611C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1206878A (en) | 1999-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1086237C (en) | Data communication network with highly efficient polling procedure | |
CN1881120A (en) | Communication master station startup period control method | |
CN1133946C (en) | Network system, combination device, combination device control method and storage medium | |
CN1768487A (en) | Packet communication between a collecting unit and a plurality of control devices over the power supply line | |
CN1662008A (en) | Communication method of half duplex serial bus with clock singal and communication system | |
CN1199525A (en) | Apparatus and method for digital data transmission | |
CN1851681A (en) | Device and method for operating USB interface device | |
CN1888990A (en) | Programmable controller back plate communicating method | |
CN1106611C (en) | Semi-duplex series signal control method and device with variety of baud rate and configuration | |
CN105429764A (en) | FPGA chip, and remote transmission system and method | |
CN105183685A (en) | Method for acquiring slave machine addresses based on I2C communication protocol and I2C communication system | |
CN1659066A (en) | Method and system for switching between subnetwork operation and full network operation | |
CN101711076B (en) | DMX512 communication link and method thereof | |
CN102027715B (en) | Method and apparatus for repeating illumination information on a daisy chain bus structure | |
CN1715956A (en) | Double collecting machine system and it double collecting method for double machine hot back-up | |
CN1376348A (en) | Method for managing bandwidth in a communication network comprising a cordless connection | |
CN1755560A (en) | Control apparatus | |
CN1305269C (en) | Communication system, communication device, and communication method | |
CN101662369B (en) | Universal network adapter | |
CN1332415A (en) | Information handling unit and method, and network bridge using the same | |
CN100346271C (en) | Method and device for two-way communication between virtual PS/2 apparatus and host machine | |
CN201577220U (en) | Sending-receiving buffer unit for DMX512 lamps | |
CN103376369B (en) | Communication load testing method and device | |
CN1190925C (en) | Universal serial bus synthesizer and synthesis method | |
CN1264314C (en) | State transition method for implementing ether ring redundancy protection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C19 | Lapse of patent right due to non-payment of the annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1027929 Country of ref document: HK |