Summary of the invention
The objective of the invention is: research and develop a kind of field bus system with open two-stage topological structure with independent intellectual property right.
According to an aspect of the present invention, DP-NET provides a kind of bus physical link layer with open two-stage topological structure, comprising: the main line one-level physical link topology that the DP-NET bus trunk constitutes; The branch line secondary physical link topology that the fieldbus branch line that is expanded by the secondary main website as the main line slave station constitutes;
Preferably, adopt open High-Speed RS-485 bussing technique to realize DP-NET bus trunk physical link topology, typical DP-NET trunk bandwidth is 5Mbps;
Preferably, the fieldbus that adopts the DP-NET bus system to provide is expanded female slave station, expands the fieldbus branch line as the DP-NET bus secondary main website that realizes heterogeneous fieldbus expansion, realizes secondary branch line physical link topology.
According to an aspect of the present invention, DP-NET provides a kind of bus data link layer of realizing the control of two-stage topological structure link data time certainty, comprise time deterministic data LCP (the Time Certainty Data Link Control that realizes the transmission of DP-NET main line one-level link data, be called for short TCDLC), with the control of realization branch line secondary link data transmission logic link, it also is the heterogeneous expansion logic link control protocol (Heterogeneous Extending Logic Link Control is called for short HELLC) of two-stage topological structure transfer of data;
Preferably, adopt application-specific integrated circuit (ASIC) (Application Specific Integrated Circuit is called for short ASIC) chip DPMaster, perhaps software sDPMaster realizes DP-NET main website data link control protocol;
According to a further aspect of the invention, DP-NET provides a kind of multifunctional application layer towards many applications, comprise application-layer data transmission control (Application Data Transmission Control, be called for short ADTC) agreement, towards open application data interface (the Multi-domain Application Data Interface of multi-field application, be called for short MADI) agreement, and bus management configuration service (Bus Management and Configuration Services is called for short BMCS) agreement.
Compared with the prior art, advantage of the present invention is: the open secondary bus topological structure that adopts the fieldbus branch formation of DP-NET main line and expansion, can satisfy the demand with the intercommunication of heterogeneous fieldbus data, realization has overcome the inconvenience that other fieldbus bring to the system integration to the seamless access of heterogeneous field bus system when inserting heterogeneous bus apparatus.Heterogeneous fieldbus data transmission and original bus system, retention time certainty feature on transfer of data after the expansion simultaneously.
Embodiment
See also Fig. 1, the realization of the DP-NET of open two-stage topological structure comprises following link:
1, DP-NET bus master and slave station, the physical link of realizing by High-Speed RS-485 bus carries out interconnected, constitutes the main line one-level bus topolopy of DP-NET bus;
2, DP-NET bus master as DP-NET bus one-level main website, realizes time deterministic data transmission control and bus management function to DP-NET main line slave station;
3, DP-NET bus slave station is expanded female slave station by fieldbus and general slave station is formed, wherein fieldbus is expanded the expansion work that female slave station is used for finishing the various field bus systems that comprise the DP-NET bus, and general slave station is finished the transmission process work of the site intelligent unit measuring and control data of DP-NET bus;
4, fieldbus is expanded female slave station as DP-NET bus secondary main website, with its fieldbus of expanding, constitutes the expansion fieldbus branch line of DP-NET bus, forms the branch line secondary bus topological structure of DP-NET bus.
See also Fig. 2, the DP-NET communication structure model of open two-stage topological structure comprises with the lower part:
1, adopts the transceiver controller of open High-Speed RS-485 bus specification and two redundant physical link layers that Shielded Twisted Pair constitutes the DP-NET bus trunk.The typical bandwidth that the main line of DP-NET bus adopts is 5Mbps;
2, adopt the DP-NET main line level data link control protocol of time deterministic data LCP TCDLC formation and the DP-NET branch line two-stage topological structure data logic link control protocol that adopts heterogeneous expansion logic link control protocol HEDLC to constitute; Expand female slave station, general slave station main website for the fieldbus of DP-NET main line, and the logic link control of transfer of data between the one-level main website, adopt logic link control (LogicLink Control the is called for short LLC) sub-protocol of TCDLC agreement to realize; For the logic link control of transfer of data between the expansion child node of the fieldbus on the DP-NET branch line and the DP-NET bus one-level main website, adopt heterogeneous expansion logic link control protocol HELLC to realize;
3, adopt application data transmission control protocol ADTC, towards multi-field application data interface protocol MADI, and the DP-NET bus application layer of bus management configuration service agreement BMCS formation.
See also Fig. 3, the one-level bus topolopy data time certainty transmission controlling packets of DP-NET bus is drawn together with the lower part:
1, main website sends data to the control of slave station: come from the application datas such as the process control of FCS main station controller, bus management of link 1 (expression main website administration configuration service BMCS) and link 2 (presentation surface is to multi-field application data interface MADI), realize sending data priority control by link 3 (expression application data transmission control layer ADTC) to control with storage; Link 5 (the data link layer medium access control (MAC) of expression employing TCDLC mechanism) starts the application data that link 4 (the data link layer logic link control (LLC) of TCDLC mechanism is adopted in expression) will send from link 3 acquisitions under strictly determined polling cycle, and after doing trunk link data envelopes frame and handle by link 4, data are done the transmission of RS-485 differential signal by link 7 (the expression RS-485 of main website transceiving driver) at the main line physical link; Last slave station is realized the reception of these data by link 8 (expression slave station RS-485 transceiving driver);
2, slave station is responded the main website measuring and control data to the control of main website: link 9 (expression slave station data link is controlled TCDLC) is after receiving the polling data of main website, controlling unit 10 (expression slave station configuration admin service BMCS) and link 11 (expression slave station application layer services) are carried out the measuring and control data (comprising measurement data, control response data, administration configuration data) of responding main website and are prepared, then ready response data is done trunk link data envelope frame and handle, in the time of determining, do the RS-485 differential signal by link 8 at the main line physical link at last and send;
3, main website receives the control of the measuring and control data that slave station responds: link 5 after sending data in the time of determining by link 7 after the main line physical link receives the measuring and control data that slave station responds, start 4 pairs of data of link and carry out dissection process; Start link 3 after link 4 disposes and do application data transmission control, and finish the reception data to the transmission of link 1 or link 2 according to data type;
4, main line logic link control: for the link data that belongs to the general slave station transmission of DP-NET main line, link 4 directly starts DP-NET trunk link data and resolves or seal the frame processing; For belonging to the link data that DP-NET main line fieldbus expansion slave station sends, link 4 at first starts the envelope frame that link 5 (representing heterogeneous expansion logic link control HELLC) is finished expansion fieldbus link data, starts link 4 then it is continued to finish the envelope frame processing of DP-NET trunk link data; For belonging to the link data that DP-NET main line fieldbus expansion slave station receives, link 4 at first starts the parsing that link 4 is finished the trunk link data, starts the parsing that link 5 continues to finish expansion fieldbus link data then.
See also Fig. 4, data time certainty transmission controlling packets is drawn together with the lower part in the secondary bus topological structure of DP-NET bus:
1, the DP-NET bus master realizes and the link data transmission of expansion fieldbus child node by the secondary main website, specifically comprises: will be by the link data between the DP-NET master-salve station that transmits on the DP-NET main line as one-level link data (shown in figure D2); With between the DP-NET main website by DP-NET two-stage topological structure transmission and the female slave station of expansion fieldbus, about the link data of expansion fieldbus child node as secondary link data (as scheming shown in the D1); The secondary link data becomes time certainty transmission control in the DP-NET bus one-level bus topolopy of doing behind the one-level link data as shown in Figure 3 by doing HELLC (shown in figure link 4 and link 11) control, realizes that the secondary link data expands time certainty transmission between female slave station at DP-NET one-level main website and fieldbus; Fieldbus is expanded female slave station and is realized that the time on the bus expansion branch line is determined transmission at the scene to the secondary link data;
2, the DP-NET bus is expanded secondary link data in the secondary bus topological structure that female slave station expands to fieldbus, and the logic link control of doing HELLC mechanism realizes time certainty transmission control.Wherein HELLC mechanism specifically comprises:
(1) fieldbus of DP-NET bus is expanded female slave station as the secondary main website in the secondary bus topological structure, finishes the time certainty of expansion fieldbus son node number certificate and collects and transmit;
(2) expansion fieldbus child node is done to the mapping mechanism of the general slave station of DP-NET bus by the secondary main website, specifically comprises: the expansion bus child node is done with the general slave station of DP-NET bus and fieldbus expanded the unified tributary address distribution of slave station; Expansion fieldbus child node is done configuration and the management of DP-NET bus in the secondary main website; Do the expansion bus son node number according to the conversion to the general slave station data of DP-NET; Do the general slave station data of DP-NET to the conversion of expansion bus son node number certificate;
(3) management and the resource distribution of the unified general slave node of DP-NET are done to the expansion bus child node by DP-NET bus one-level main website, specifically comprise: obtain the DP-NET slave station information that all expansion fieldbus child nodes are mapped to by the secondary main website; For the mapping slave station is done the general slave station configuration management of the unified DP-NET of DP-NET bus; The logical links passage that belongs to the female slave station of expansion bus for the association of mapping slave station; For shining upon the unified slave station application data treatment channel of back slave station configuration DP-NET bus;
(4) conversion of the HELLC between secondary link data and the one-level link data specifically comprises: the secondary link data is passed through to add or the unified tributary address information realization of deletion expansion bus child node and the conversion between the two-level logic link data; The two-level logic link data passes through to increase or female slave station (the secondary main website in other words) address information of expansion fieldbus of deletion expansion bus child node association realizes and the corresponding conversion of expanding between the female slave station one-level of the fieldbus link data; Realize the one-level bus topolopy transfer of data of secondary link data by the one-level logical links transfer of data of describing in (1); By (2) the middle mapping relations of describing, the female slave station of expansion fieldbus is finished the conversion between secondary link data and the expansion fieldbus son node number certificate; Realize the transmission of secondary link data on this expansion bus by the expansion fieldbus specification;
(5) the time certainty control of secondary link data transmission, specifically comprise: require to be principle according to the time certainty that guarantees transfer of data between DP-NET bus one-level main website and the expansion bus child node, determined by the cycle of DP-NET bus one-level main website poll by the female slave station of expansion bus, and be transferred to DP-NET bus one-level main website as configuration management information; DP-NET bus one-level main website controls (shown in link among the figure 5) with the time deterministic data link that the female slave station polling cycle of expansion bus is done TCDLC mechanism, and realization is converted into the secondary link data time certainty transmission of the one-level link data transmission of the female slave station of expansion bus; Require to be principle according to the strict time certainty that guarantees transfer of data between DP-NET bus one-level main website and the expansion bus child node, the female slave station of expansion bus is as the data time certainty transmission control between the realization of secondary main website and the expansion fieldbus child node;
Find out thus, DP-NET has own notable attribute as a kind of bus system of new research and development: it is to be that starting point is designed with open theory, can realize the two-stage topological structure fieldbus of the seamless access of heterogeneous fieldbus, can realize expanding the fieldbus of fieldbus node data time certainty transmission control, keep the deterministic fieldbus of time of system's control data transmission when can be implemented in heterogeneous fieldbus expansion.It is as a kind of scheme that solves the open and uniformity problem in fieldbus field and and realization, for the design of field bus control system provides a kind of new selection.