CN1232915C - Field bus network controller - Google Patents

Field bus network controller Download PDF

Info

Publication number
CN1232915C
CN1232915C CN 01106350 CN01106350A CN1232915C CN 1232915 C CN1232915 C CN 1232915C CN 01106350 CN01106350 CN 01106350 CN 01106350 A CN01106350 A CN 01106350A CN 1232915 C CN1232915 C CN 1232915C
Authority
CN
China
Prior art keywords
data
fieldbus
module
link layer
data link
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
Application number
CN 01106350
Other languages
Chinese (zh)
Other versions
CN1376985A (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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN 01106350 priority Critical patent/CN1232915C/en
Publication of CN1376985A publication Critical patent/CN1376985A/en
Application granted granted Critical
Publication of CN1232915C publication Critical patent/CN1232915C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention relates to an automation system, more specifically a site bus network controller. The present invention comprises a central processing unit, a dual-port memory, a random access memory, a programmable read only memory for storing control programs, a standard ISA interface circuit and a site bus interface, wherein the control programs are composed of a site bus message specification module, a site bus access sublayer module, a system administration module, a network management module, a data link layer module and a link activity despatcher. The present invention thoroughly disperses a control function to a site so as to realize a basic control function by depending on site intelligent equipment; the present invention is used for process automation or manufacturing an interconnection communication network of automation site equipment.

Description

Field bus network controller
Technical field
The present invention relates to automated system, specifically a kind of field bus network controller that is used for process automation or manufacturing automation field apparatus interlinkage communication network.
Background technology
In the prior art, field bus control system is field mounted pneumatic instrument control system, electrodynamic element combination type analog blind controller system, centralized digital control system, Distributed Control System (DCS), it wherein mainly is Distributed Control System (DCS) (DCS), DCS adopts one or more " control modules " that multiloop is controlled, its control section is distributed on some control panels, and a plurality of loops are arranged on each control panel.In the process that the DCS system forms, owing to be subjected to early stage this defect influence of system lock that exists of computer system, the product of each producer establishes one's own system, the equipment of different manufacturers can not be interconnected, this solution based on sealing, special use is difficult to realize exchanging and interoperability, and the network system of forming wider information sharing exists a lot of difficult.
Summary of the invention
Realize the defective that caused by the closed system of dedicated network in order to overcome communication, the purpose of this invention is to provide a kind of based on coming into the open, standardized solution, promptly can be observe the automation equipment of same protocol specification from different vendor, connect into system by fieldbus networks, realize the field bus network controller of the various functions of comprehensive automation, the distributing system structure that it combines the DCS centralization and decentralization, become novel all distributed structure, control function thoroughly is distributed to the scene, relies on field intelligent device itself just can realize basic control function.
To achieve these goals, technical scheme of the present invention is that hardware configuration comprises:
One controller central processing unit;
One twoport storer links to each other with the controller central processing unit by fieldbus, data bus, finishes between described controller central processing unit and the host cpu by the connection of industrial standard architectures interface circuit and visits;
One random access memory, the internal memory as described controller central processing unit and fieldbus carry out communication links to each other with the controller central processing unit by fieldbus, data bus;
One programmable read only memory is deposited control program, links to each other with controller central processing unit and field-bus interface by fieldbus, data bus;
One industrial standard architectures interface circuit links to each other with double port memory by fieldbus, data bus on the one hand, pegs graft with main frame on the other hand, promptly pegs graft with standard computer or industrial computer;
One this field-bus interface meets fieldbus H1 standard, provides the fieldbus access of the 31.25K of standard to connect;
Wherein: described control program is made up of fieldbus message specification module, fieldbus access sub-layer module, system management module, network management module, data link layer module and link active scheduler, fieldbus message specification module is through the host card access modules, be connected with host application program by host driver, again respectively with system management module and the mutual communication of fieldbus access sub-layer module; Data link layer module and link active scheduler and system management module and the mutual communication of fieldbus access sub-layer module are exported the fieldbus message to field-bus interface through the fieldbus driver module again; Network management module and fieldbus message specification module, fieldbus access sub-layer module, data link layer module and link active scheduler all have mutual communication annexation; The host card access modules also with the mutual communication of system management module; Wherein the fieldbus driver module is the bottom of control program;
Described fieldbus message specification module has been stipulated the form of message transmission and the behavior of agreement, context management is provided, the object dictionary service, variables access, Event Service, the upload/download service, six kinds of services of routine call, idiographic flow is: the host card access modules is upwards to host driver, divide two roads downwards, the one, system management module, the 2nd, fieldbus message specification module, when under the host card access modules, passing fieldbus message specification module data, get the user data in the double port memory, user data is assert, if user data is correct, user data is encoded, send to the fieldbus access sub-layer module, otherwise provide error report; When processing fieldbus message specification module is caught next user data, to the user data decoding, judge whether user data is issued the user earlier, for issuing the user, then carry out transmit operation as judged result; If judged result is not for issuing the service that the user then realizes the user data requirement, corresponding then sending out through the user data of confirming confirmed order, unidentified then termination routine;
Described fieldbus access sub-layer module is responsible for the on-the-spot message specification module in upper strata information transfering path is provided, comprise the corresponding three kinds of different virtual communication relations of three kinds of application protocol machines, that is: client/server mode, publisher/subscriber's mode, three kinds of different virtual communications of report ways of distribution concern, wherein report the one way system application protocol machine communication applications formation, that the user triggers of ways of distribution; Bidirectional mode application protocol machine client/server mode application queue, that the user triggers; Publisher/subscriber's mode is used one way system application protocol machine buffer zone, network-triggered; Its flow process is: from the protocol Data Unit of fieldbus message specification module, provide selection by the service agreement machine in the fieldbus access sub-layer module to described three kinds of different communication modes, the Content of communciation that provides with data link layer module shadowing agreement machine is a protocol Data Unit then, with the communication of data link layer module;
Described system management module is finished address assignment, sign location and applied clock synchronizing function, idiographic flow is: at first fetch data from the system management pipeline, judge the state success or not of fetching data then, if successfully do not get back to the system management pipeline, if success then judge described data are for which kind of primitive, if request primitive is arranged, then judge services request kind in the request primitive, wherein the services request kind is that system management is provided with the physical equipment mark, the address is set in system management, remove the system management address, the system management request mark, the inquiry of system management mark, the system management mark is replied, the setting of system management configuration parameter; If not request primitive, judge and have or not indication, nothing indication primitive is then got back in the system management pipeline and is fetched data, indication is arranged, the protocol Data Unit that the data link layer is sent here is decoded, the data apportion situation of being decoded responds, and specifically judgement formula is the revision of system management time, the indication of system management inquiry mark, the indication of system management respond flag, system management mark inquiry indication, system management is provided with the physical equipment mark and replys, system management who have the physical equipment mark to reply, system management is set the address and is replied, system management enables to reply, address answer service indication kind is removed in system management;
Described network management module is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Described network management module idiographic flow is: fetch data to network management proxy from network configuration, pass through fieldbus message specification module layer management entity respectively by network management proxy, fieldbus access sub-layer module layer management entity, fieldbus data link layer module layer management entity, the layer management entity of fieldbus physical layer carries out interactive communicate and comes data content in the network configuration information that the supervising the network configuration information revise to need revises, in addition also by the request of fieldbus message specification module or the network manager in response and the host application program are got in touch; The field-bus interface circuit is a fieldbus physical layer;
Described data link layer module controls message is the transmission on the bus at the scene, it ensures that various message deliver to the destination in time, exactly, this transmission is divided into two kinds, the i.e. transmission of Tiao Du transmission and non-scheduling, the transmission of scheduling is by predefined timetable, allow and periodically transmit measurement and control information by the connected field instrument of fieldbus, this measurement and control information be non-scheduling transmission, be used for beyond scheduling time, and transmit by the control information of operator's control, warning message, response message to main frame; Comprising the fieldbus link active scheduler, be responsible for scheduling, the coordination of fieldbus field instrument, guarantee that each equipment moves under conflict free condition, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module idiographic flow is: when with the downward data stream of the application layer process of fieldbus access sub-layer module communication during for request or response, through the A processing procedure, form data link layer protocol data unit and put into non-dispatch request formation, after receiving authorization token, send and put into formation and the highest data link layer protocol data unit of priority the earliest, each data link layer protocol data unit all has the timer in the time timer set corresponding with it, if this timer expiry before receiving authorization token, then disconnect attended operation, this data link layer protocol data unit is sent the back and is confirmed if need, then start a timer for it and carry out Error Control, wherein: do not have affirmation then to think before the timer expiry that is started and make mistakes, be " Error Control ", if receiving, data link layer forces to send token, then take out user data from the transmission buffer zone that is arranged in the data link layer module, directly mail to Physical layer after the data link layer protocol data unit of formation data type, and do not mail to non-dispatch request formation as bottom module; The take over party, the data link layer protocol data unit of receiving by the data link layer module through the B processing procedure after, generate indication or confirm to send to the application layer process of fieldbus access sub-layer module communication; The flow process of described fieldbus link active scheduler is: judge by the operating data traffic of system whether the time that sends the pressure token next time is enough, if it is enough then send authorization token by the fieldbus link active scheduler, otherwise wait for by the fieldbus link active scheduler and send the pressure token, time is to sending, no matter be to send to force token, still send authorization token, all turn back to after distributing next time and judge, circulate with this; Wherein send the order of forcing token and send according to the dispatch list in the link active scheduler, the order that sends authorization token sends according to the list of devices in the link active scheduler;
In described A processing procedure, after request or response judgement, handle according to different situations; If what receive is to send the request of connecting by Physical layer, the data link layer protocol data unit that then forms the class that connects mails to non-dispatch request formation; If what receive is to send the mandatory services request by Physical layer, then forms and force transmission class data link layer protocol data unit to mail to non-dispatch request formation; If what receive is the request of data of being sent connection by Physical layer, the data link layer protocol data unit control that then forms data type is auspicious, when data link services accessing points or the data link connection end point relevant with formation are mail in this request, from transmit queue, take out user data, with the auspicious data link layer protocol data unit that forms data type that lumps together of the data link layer protocol data unit control of the data type that has generated, mail to non-dispatch request formation, when the data link connection end point relevant with buffer zone mail in this request, from send buffer zone, take out user data, with the auspicious data link layer protocol data unit that forms data type that lumps together of the data link layer protocol data unit control of the data type that has generated, mail to non-dispatch request formation; If what receive is to send connectionless request of data by Physical layer, then from transmit queue, take out user data, the data link layer protocol data unit control that forms data type is auspicious, mails to non-dispatch request formation; If what receive is to send the response that connects by Physical layer, then form the data link layer protocol data unit of the class that connects, mail to non-dispatch request formation;
In described B processing procedure, after the data link layer protocol data unit judgement, handle according to different situations, if what receive is the data link layer protocol data unit of being sent the class that connects by Physical layer, then when connection has been set up, send affirmations that connect to application layer, and formation is mail to output stream not with the data link layer protocol data unit of the data type of user data; When connection is not set up, send the indication that connects to application layer; If what receive is the data link layer protocol data unit of being sent the deletion class by Physical layer, then sends out to disconnect connecting and indicate to application layer; If what receive is the data link layer protocol data unit of being sent data type by Physical layer, then send out the data indication to application layer, and according to what be associated is to receive formation or send buffer, respectively with in the data link layer protocol data unit of data type with user data send into and receive formation or send buffer; If what receive is to be sent by Physical layer to force to send the class data link layer protocol data unit, then fetch data to retransmit and send buffer contents from the transmission buffer zone, form the data link layer protocol data unit of the data type of band user data, mail to non-dispatch request formation;
Described fieldbus message specification module is through host card access modules, host driver, and the object connection of passing through in the control procedure is connected with host computer with the embedding driver of process.
The present invention has following advantage:
1. applied range.The present invention is mainly used in industrial process automation and industrial manufacturing automation field, and its application industry is quite extensive, comprising: relevant industries such as metallurgy, chemical industry, electric power, pharmacy, papermaking, its outstanding advantage is controlled the field in automation process.
2. have the decentralised control characteristics.The present invention has discarded I/O unit and the control station of DCS, the I/O function of the control function of DCS control station and DCS is distributed to field apparatus on the network, thereby constitute the virtual controlling station, control loop is realized by field apparatus, thereby realize decentralised control completely, embodied the high dispersion of system architecture.
3. has the robotization integration capability.The present invention has broken through the closed system of communicating by letter in the DCS system by dedicated network and has adopted man-to-man equipment line, connect respectively by control loop and to realize the drawback that caused, become based on sealing, special-purpose solution based on come into the open, standardized solution, owing to adopted smart devices, can insert field apparatus to control module, each input/output module of being in the pulpit in the original DCS system, be convenient to the automation equipment of standard is linked to be system by fieldbus networks, realize the various functions of comprehensive automation.
4. the opening that has system.Open consistance, the publicity that is meant relevant criterion, emphasize to the common recognition of standard with defer to.An open system is meant that it can be connected with miscellaneous equipment or the system of under the sun observing identical standard.Communication protocol is consistent to be disclosed, and can realize message exchange between the equipment of each different manufacturers.The present invention is devoted to set up the open system of unified factory's bottom-layer network, and the user can forming the random system of size from different suppliers' product, construct the open interconnection system of automatic field by needs and the consideration of oneself by the present invention.
5. have interoperability and interoperability.Interoperability of the present invention, be meant realize between interconnect equipment, the information between system transmits and link up; Can realize mutual alternative with equipment like the performance classes that then means different manufacturers mutually.
6. the intellectuality and the function autonomy that have field apparatus.The present invention with sensing measurement, compensation calculate, quantities is handled with functions such as control is distributed to and finishes in the field apparatus, only depends on field apparatus can finish the basic function of automatic control, and the running status of diagnostic device at any time.
7. has adaptability to site environment.The present invention is operated in the production scene front end, fieldbus as the plant network bottom, aim at site environment and design, can support twisted-pair feeder, concentric cable, optical cable, radio frequency, infrared ray, line of electric force etc., has stronger antijamming capability, can adopt two-wire system to realize power supply and communicate by letter, and can satisfy Sefe antiexplosion requirement etc.
In addition, because the above characteristics of the present invention, the particularly simplification of field bus system structure make control system from designing, being installed to normal operation and repair and maintenance thereof, all embody superiority.As:
8. save hardware quantity and investment.Because being dispersed in on-the-spot smart machine, the present invention can directly carry out multiple sensing control warning and computing function, thereby can reduce the quantity of transmitter, no longer need independent regulator, computing unit etc., functional unit and complicated connections the thereof such as signal condition, conversion, isolation that also no longer need the DCS system, can also be with the industry control PC as active station, thereby saved a large number of hardware investment, and can reduce the floor area of pulpit.
9. saving erected cost.Wiring of the present invention is very simple, can articulate a plurality of equipment usually on a pair of twisted-pair feeder or a cable, thereby the consumption of cable, terminal, groove box, crane span structure significantly reduces, and the line design also significantly reduces with the workload of joint check and correction.When needs increase field control equipment, need not to set up new cable, can be connected nearby on original cable, both saved investment, also reduced the workload of design, installation.
10. saving maintenance costs.Because the present invention has the ability of self diagnosis and simple fault processing, and be sent to the pulpit by the diagnosis maintenance information that digital communication will be correlated with, the user can inquire about the operation of all devices, the diagnosis maintenance information, so that early stage analyzing failure cause is also got rid of fast, shortened and safeguarded shut down time, because system architecture is simplified, line has simply reduced maintenance workload simultaneously.
11. the user has the system integration initiative of height.The equipment that adopting user of the present invention freely to select different vendor is provided comes integrated system.Avoid because of the product of having selected a certain brand by " frame is dead " use the range of choice of equipment, can not be stymied by for agreement incompatible in the system integration, interface, system integration power is firmly grasped in user's hand.
12. improved the accuracy and the reliability of system.Because intellectuality of the present invention, digitizing are compared with simulating signal, it has fundamentally improved the degree of accuracy of measuring with control, has reduced the transmission error; Simultaneously, because the designs simplification of system, equipment and line reduce, and the field instrument built-in function is strengthened, and has reduced the round-trip transmission of signal, has improved the functional reliability of system.
Description of drawings
Fig. 1 is a hardware block diagram of the present invention.
Fig. 2 is a flow chart of the present invention.
Fig. 3 is microcomputer interface structured flowchart in the present invention.
Fig. 4 is fieldbus message specification module of the present invention (FMS) program flow diagram.
Fig. 5 is fieldbus access sub-layer module of the present invention (FAS) program flow diagram.
Fig. 6 is system management module of the present invention (SM) program flow diagram.
Fig. 7 is network management module of the present invention (NM) program flow diagram.
Fig. 8 is data link layer module of the present invention (DLL) program flow diagram.
Fig. 9 is an A process handling procedure process flow diagram among Fig. 8.
Figure 10 is a B process handling procedure process flow diagram among Fig. 8.
Figure 11 has described the Content of Communication of fieldbus pressure transmission token.
Figure 12 has described the Content of Communication of fieldbus authorization token.
Figure 13 has described authorization token and how to have coordinated with forcing communicating by letter of transmission token two class character.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
As shown in Figure 1, hardware characteristics of the present invention comprises:
One controller central processing unit (CPU), present embodiment adopts the i80386EX central processing unit;
One twoport storer (DPRAM) is visited between the host cpu that is connected by fieldbus, data bus and controller central processing unit (CPU) with by the industrial standard architectures interface circuit;
One random access memory (RAM), the internal memory as described controller central processing unit (CPU) and fieldbus carry out communication links to each other with central processing unit (CPU) by fieldbus, data bus;
One programmable read only memory (EPROM) is deposited control program; Link to each other with controller central processing unit (CPU) and field-bus interface by fieldbus, data bus;
One industrial standard architectures interface circuit links to each other with double port memory by fieldbus, data bus on the one hand, pegs graft with main frame on the other hand, promptly pegs graft with standard computer or industrial computer;
One this field-bus interface meets fieldbus H1 standard, provides the fieldbus access of the 31.25K of standard to connect;
Wherein: as shown in Figure 2, described control program is made up of fieldbus message specification module (FMS), fieldbus access sub-layer module (FAS), system management module (SM), network management module (NMA), data link layer module (DLL) and link active scheduler (LAS), fieldbus message specification module (FMS) is through the host card access modules, be connected with host application program by host driver, again respectively with system management module (SM) and fieldbus access sub-layer module (FAS) communication mutually; Data link layer module (DLL) and link active scheduler (LAS) and system management module (SM) and fieldbus access sub-layer module (FAS) communication are mutually exported the fieldbus message to field-bus interface through fieldbus driver module (ICDriver) again; Network management module (NMA) all has mutual communication annexation with fieldbus message specification module (FMS), fieldbus access sub-layer module (FAS), data link layer module (DLL) and link active scheduler (LAS); The host card access modules also with the mutual communication of system management module; Wherein the fieldbus driver module is the bottom of control program;
As Fig. 3, shown in 4, described fieldbus message specification module (FMS), the form of message transmission and the behavior of agreement have been stipulated, context management is provided, the object dictionary service, variables access, Event Service, the upload/download service, six kinds of services of routine call, idiographic flow is: the host card access modules is upwards to host driver, divide two roads downwards, the one, system management module (SM), the 2nd, fieldbus message specification module (FMS), when under the host card access modules, passing fieldbus message specification module (FMS) data, get the user data in the double port memory (DPRAM), user data is assert,, user data is encoded if user data is correct, send to fieldbus access sub-layer module (FAS), otherwise provide error report; When processing fieldbus message specification module (FMS) is caught next user data, to the user data decoding, judge whether user data is issued the user earlier, for issuing the user, then carry out transmit operation as judged result; If judged result is not for issuing the service that the user then realizes the user data requirement, corresponding then sending out through the user data of confirming confirmed order, unidentified then termination routine.
As shown in Figure 5, described fieldbus access sub-layer module (FAS) is responsible for providing information transfering path (VCR) to upper strata fieldbus message specification module (FMS), comprise the corresponding three kinds of different virtual communication relations of three kinds of application protocol machines, that is: client/server mode (CLIENT/SERVER), publisher/subscriber's mode (PUBLISHER/SUBSCRIBER), virtual communications relation that report ways of distribution (SOURCE/SINK) three kinds is different is wherein reported the communication applications formation of ways of distribution (SOURCE/SINK), one way system 1 (QUU) the application protocol machine that the user triggers; Bidirectional mode (QUB) application protocol machine CLIENT/SERVER mode application queue, that the user triggers; Publisher/subscriber's mode is used one way system buffer zone, network-triggered (BNU) application protocol machine; Its flow process is: from the protocol Data Unit of fieldbus message specification module (FMS), provide selection by the service agreement machine in the fieldbus access sub-layer (FAS) to described three kinds of different communication modes, the Content of communciation of using data link layer module (DLL) shadowing agreement machine to provide then is a protocol Data Unit, with the communication of data link layer module (DLL).
As shown in Figure 6, described system management module (SM) is finished address assignment, functions such as sign location and applied clock are synchronous, idiographic flow is: at first fetch data from system management pipeline (pipe-SM), judge the state success or not of fetching data then, if successfully do not get back to system management pipeline (pipe-SM), if success then judge described data are for which kind of primitive, if request primitive, then judge services request kind in the request primitive, wherein the services request kind is that system management is provided with the physical equipment mark, the address is set in system management, remove the system management address, the system management request mark, the inquiry of system management mark, the system management mark is replied, the setting of system management configuration parameter; If not request primitive, judge and have or not indication, nothing indication primitive is then got back in the system management road (pipe-SM) and is fetched data, indication is arranged, the protocol Data Unit (PDU) that the data link layer is sent here is decoded, the data apportion situation of being decoded responds, and specifically judgement formula is the revision of system management time, the indication of system management inquiry mark, the indication of system management respond flag, system management mark inquiry indication, system management is provided with the physical equipment mark and replys, system management who have the physical equipment mark to reply, system management is set the address and is replied, system management enables to reply, address answer service indication kind is removed in system management;
As shown in Figure 7, described network management module (NMA) is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Described network management module (NMA), idiographic flow is: fetch data to network management proxy from network configuration, pass through fieldbus message specification module (FMS) layer management entity respectively by network management proxy, fieldbus access sub-layer module (FAS) layer management entity, fieldbus data link layer module (DLL) layer management entity, the layer management entity of fieldbus physical layer (PHY) carries out interactive communicate and comes data content in the network configuration information that the supervising the network configuration information revise to need revises, in addition also by the request of fieldbus message specification module (FMS) or the network manager in response and the host application program are got in touch; The field-bus interface circuit is fieldbus physical layer (PHY);
As shown in Figure 8, described data link layer module (DLL) control messages is the transmission on the bus at the scene, it ensures that various message deliver to the destination in time, exactly, this transmission is divided into two kinds, the i.e. transmission of Tiao Du transmission and non-scheduling, the transmission of scheduling is by predefined timetable, allow and periodically transmit measurement and control information by the connected field instrument of fieldbus, this measurement and control information be non-scheduling transmission, be used for beyond scheduling time, and transmit by the control information of operator's control, warning message, response message to main frame; Comprising fieldbus link active scheduler (LAS), be responsible for scheduling, the coordination of fieldbus field instrument, guarantee that each equipment moves under conflict free condition, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module (DLL) idiographic flow is: when with the downward data stream of the application layer process of fieldbus access sub-layer module (FAS) communication during for request or response, through the A processing procedure, form data link layer protocol data unit (DT DLPDU) and put into non-dispatch request formation (Q (US)), after receiving authorization token (PT), send and put into formation and the highest data link layer protocol data unit (DT DLPDU) of priority the earliest, each data link layer protocol data unit (DTDLPDU) all has the timer in the time timer set corresponding with it, if receiving preceding this timer expiry of authorization token (PT), then disconnect attended operation, after sending, this data link layer protocol data unit (DTDLPDU) needs to confirm, then start a timer for it and carry out Error Control, wherein: do not have affirmation then to think before the timer expiry that is started and make mistakes, be " Error Control ", if receiving, data link layer forces to send token (CD), then take out user data from the transmission buffer zone that is arranged in data link layer module (DLL), directly mail to Physical layer after the data link layer protocol data unit of formation data type, and do not mail to non-dispatch request formation (Q (US)) as bottom module; The take over party, the data link layer protocol data unit of receiving by data link layer module (DLL) (DLPDU) through the B processing procedure after, generate indication or confirm to send to the application layer process of fieldbus access sub-layer module (FAS) communication; As Figure 11, Figure 12, shown in Figure 13, the flow process of described fieldbus link active scheduler (LAS) is: judge by the operating data traffic of system whether the time that sends pressure token (CD) next time is enough, if it is enough then send authorization token (PT) by fieldbus link active scheduler (LAS), otherwise wait for by fieldbus link active scheduler (LAS) and send pressure token (CD), time is to sending, no matter be to send to force token (CD), still send the sort of token of authorization token (CD), all turn back to after distributing next time and judge, circulate with this; Wherein send the order of forcing token (CD) and send according to the dispatch list in the link active scheduler (LAS), the order that sends authorization token (PT) sends according to the list of devices in the link active scheduler (LAS).
As shown in Figure 9, in described A processing procedure, after request or response judgement, handle according to different situations; If what receive is to send (EC) request that connects by Physical layer, the data link layer protocol data unit (EC DLPDU) that then forms the class that connects mails to non-dispatch request formation (Q (US)); If what receive is to send the mandatory services request by Physical layer, then forms and force transmission class data link layer protocol data unit (CD DLPDU) to mail to non-dispatch request formation (Q (US)); If what receive is the request of data of being sent connection by Physical layer, data link layer protocol data unit (DTDLPDU) control that then forms data type is auspicious, when data link services accessing points (DLSAP) or the data link connection end point (DLCEP) relevant with formation are mail in this request, from transmit queue, take out user data, with the auspicious data link layer protocol data unit (DT DLPDU) that forms data type that lumps together of data link layer protocol data unit (DT DLPDU) control of the data type that has generated, mail to non-dispatch request formation (Q (US)), when the data link connection end point (DLCEP) relevant with buffer zone mail in this request, from send buffer zone, take out user data, with the auspicious data link layer protocol data unit (DT DLPDU) that forms data type that lumps together of data link layer protocol data unit (DT DLPDU) control of the data type that has generated, mail to non-dispatch request formation (Q (US)); If what receive is to send connectionless request of data by Physical layer, then from transmit queue, take out user data, data link layer protocol data unit (DT DLPDU) control that forms data type is auspicious, mails to non-dispatch request formation (Q (US)); If what receive is to send the response that connects by Physical layer, then form the data link layer protocol data unit (EC DLPDU) of the class that connects, mail to non-dispatch request formation (Q (US));
As shown in figure 10, in described B processing procedure, after data link layer protocol data unit (DLPDU) judgement, handle according to different situations, if what receive is the data link layer protocol data unit (EC DLPDU) of being sent the class that connects by Physical layer, then when connection has been set up, send the affirmation that connects to application layer, and form not data link layer protocol data unit (DT DLPDU) with the data type of user data, mail to output stream; When connection is not set up, send the indication that connects to application layer; If what receive is the data link layer protocol data unit (DTDLPDU) of being sent the deletion class by Physical layer, then sends out to disconnect connecting and indicate to application layer; If what receive is the data link layer protocol data unit (DT DLPDU) of being sent data type by Physical layer, then send out data indications (Data Indication) to application layer, and according to what be associated is to receive formation or send buffer, the user data of band in the data link layer protocol data unit (DC DLPDU) of data type is sent into received formation or send buffer respectively; If what receive is to be sent by Physical layer to force to send class data link layer protocol data unit (CD DLPDU), then fetch data to retransmit and send buffer contents from the transmission buffer zone, form the data link layer protocol data unit (DTDLPDU) of the data type of band user data, mail to non-dispatch request formation (Q (US));
Host driver of the present invention also can connect with embedding (OPC) driver by the object in the process control and be connected with the host computer application program.

Claims (9)

1. field bus network controller is characterized in that hardware configuration comprises:
One controller central processing unit;
One twoport storer links to each other with the controller central processing unit by fieldbus, data bus, finishes between described controller central processing unit and the host cpu by the connection of industrial standard architectures interface circuit and visits;
One random access memory, the internal memory as described controller central processing unit and fieldbus carry out communication links to each other with the controller central processing unit by fieldbus, data bus;
One programmable read only memory is deposited control program, links to each other with controller central processing unit and field-bus interface by fieldbus, data bus;
One industrial standard architectures interface circuit links to each other with double port memory by fieldbus, data bus on the one hand, pegs graft with main frame on the other hand, promptly pegs graft with standard computer or industrial computer;
One this field-bus interface meets fieldbus H1 standard, provides the fieldbus access of the 31.25K of standard to connect;
Wherein: described control program is made up of fieldbus message specification module, fieldbus access sub-layer module, system management module, network management module, data link layer module and link active scheduler, fieldbus message specification module is through the host card access modules, be connected with host application program by host driver, again respectively with system management module and the mutual communication of fieldbus access sub-layer module; Data link layer module and link active scheduler and system management module and the mutual communication of fieldbus access sub-layer module are exported the fieldbus message to field-bus interface through the fieldbus driver module again; Network management module and fieldbus message specification module, fieldbus access sub-layer module, data link layer module and link active scheduler all have mutual communication annexation; The host card access modules also with the mutual communication of system management module; Wherein the fieldbus driver module is the bottom of control program.
2. according to the described field bus network controller of claim 1, it is characterized in that: described fieldbus message specification module has been stipulated the form of message transmission and the behavior of agreement, context management is provided, the object dictionary service, variables access, Event Service, the upload/download service, six kinds of services of routine call, idiographic flow is: the host card access modules is upwards to host driver, divide two roads downwards, the one, system management module, the 2nd, fieldbus message specification module, when under the host card access modules, passing fieldbus message specification module data, get the user data in the double port memory, user data is assert, if user data is correct, user data is encoded, send to the fieldbus access sub-layer module, otherwise provide error report; When processing fieldbus message specification module is caught next user data, to the user data decoding, judge whether user data is issued the user earlier, for issuing the user, then carry out transmit operation as judged result; If judged result is not for issuing the service that the user then realizes the user data requirement, corresponding then sending out through the user data of confirming confirmed order, unidentified then termination routine.
3. according to the described field bus network controller of claim 1, it is characterized in that: described fieldbus access sub-layer module is responsible for the on-the-spot message specification module in upper strata information transfering path is provided, comprise the corresponding three kinds of different virtual communication relations of three kinds of application protocol machines, that is: client/server mode, publisher/subscriber's mode, three kinds of different virtual communications of report ways of distribution concern, wherein report the one way system application protocol machine communication applications formation, that the user triggers of ways of distribution; Bidirectional mode application protocol machine client/server mode application queue, that the user triggers; Publisher/subscriber's mode is used one way system application protocol machine buffer zone, network-triggered; Its flow process is: from the protocol Data Unit of fieldbus message specification module, provide selection by the service agreement machine in the fieldbus access sub-layer module to described three kinds of different communication modes, the Content of communciation that provides with data link layer module shadowing agreement machine is a protocol Data Unit then, with the communication of data link layer module.
4. according to the described field bus network controller of claim 1, it is characterized in that: described system management module is finished address assignment, sign location and applied clock synchronizing function, idiographic flow is: at first fetch data from the system management pipeline, judge the state success or not of fetching data then, if successfully do not get back to the system management pipeline, if success then judge described data are for which kind of primitive, if request primitive is arranged, then judge services request kind in the request primitive, wherein the services request kind is that system management is provided with the physical equipment mark, the address is set in system management, remove the system management address, the system management request mark, the inquiry of system management mark, the system management mark is replied, the setting of system management configuration parameter; If not request primitive, judge and have or not indication, nothing indication primitive is then got back in the system management pipeline and is fetched data, indication is arranged, the protocol Data Unit that the data link layer is sent here is decoded, the data apportion situation of being decoded responds, and specifically judgement formula is the revision of system management time, the indication of system management inquiry mark, the indication of system management respond flag, system management mark inquiry indication, system management is provided with the physical equipment mark and replys, system management who have the physical equipment mark to reply, system management is set the address and is replied, system management enables to reply, address answer service indication kind is removed in system management.
5. according to the described field bus network controller of claim 1, it is characterized in that: described network management module is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Described network management module idiographic flow is: fetch data to network management proxy from network configuration, pass through fieldbus message specification module layer management entity respectively by network management proxy, fieldbus access sub-layer module layer management entity, fieldbus data link layer module layer management entity, the layer management entity of fieldbus physical layer carries out interactive communicate and comes data content in the network configuration information that the supervising the network configuration information revise to need revises, in addition also by the request of fieldbus message specification module or the network manager in response and the host application program are got in touch; The field-bus interface circuit is a fieldbus physical layer.
6. according to the described field bus network controller of claim 1, it is characterized in that: described data link layer module controls message is the transmission on the bus at the scene, it ensures that various message are timely, deliver to the destination exactly, this transmission is divided into two kinds, the i.e. transmission of Tiao Du transmission and non-scheduling, the transmission of scheduling is by predefined timetable, allow and periodically transmit measurement and control information by the connected field instrument of fieldbus, this measurement and control information are the transmission of non-scheduling, be used for beyond scheduling time, and transmit the control information of controlling by the operator, warning message, response message is to main frame; Comprising the fieldbus link active scheduler, be responsible for scheduling, the coordination of fieldbus field instrument, guarantee that each equipment moves under conflict free condition, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module idiographic flow is: when with the downward data stream of the application layer process of fieldbus access sub-layer module communication during for request or response, through the A processing procedure, form data link layer protocol data unit and put into non-dispatch request formation, after receiving authorization token, send and put into formation and the highest data link layer protocol data unit of priority the earliest, each data link layer protocol data unit all has the timer in the time timer set corresponding with it, if this timer expiry before receiving authorization token, then disconnect attended operation, this data link layer protocol data unit is sent the back and is confirmed if need, then start a timer for it and carry out Error Control, wherein: do not have affirmation then to think before the timer expiry that is started and make mistakes, be " Error Control ", if receiving, data link layer forces to send token, then take out user data from the transmission buffer zone that is arranged in the data link layer module, directly mail to Physical layer after the data link layer protocol data unit of formation data type, and do not mail to non-dispatch request formation as bottom module; The take over party, the data link layer protocol data unit of receiving by the data link layer module through the B processing procedure after, generate indication or confirm to send to the application layer process of fieldbus access sub-layer module communication; The flow process of described fieldbus link active scheduler is: judge by the operating data traffic of system whether the time that sends the pressure token next time is enough, if it is enough then send authorization token by the fieldbus link active scheduler, otherwise wait for by the fieldbus link active scheduler and send the pressure token, time is to sending, no matter be to send to force token, still send authorization token, all turn back to after distributing next time and judge, circulate with this; Wherein send the order of forcing token and send according to the dispatch list in the link active scheduler, the order that sends authorization token sends according to the list of devices in the link active scheduler.
7. according to the described field bus network controller of claim 6, it is characterized in that: in described A processing procedure, after request or response judgement, handle according to different situations; If what receive is to send the request of connecting by Physical layer, the data link layer protocol data unit that then forms the class that connects mails to non-dispatch request formation; If what receive is to send the mandatory services request by Physical layer, then forms and force transmission class data link layer protocol data unit to mail to non-dispatch request formation; If what receive is the request of data of being sent connection by Physical layer, the data link layer protocol data unit control that then forms data type is auspicious, when this request is mail to data link services accessing points or the data relevant with formation and is connected the road connection end point, from transmit queue, take out user data, with the auspicious data link layer protocol data unit that forms data type that lumps together of the data link layer protocol data unit control of the data type that has generated, mail to non-dispatch request formation, when the data link connection end point relevant with buffer zone mail in this request, from send buffer zone, take out user data, with the auspicious data link layer protocol data unit that forms data type that lumps together of the data link layer protocol data unit control of the data type that has generated, mail to non-dispatch request formation; If what receive is to send connectionless request of data by Physical layer, then from transmit queue, take out user data, the data link layer protocol data unit control that forms data type is auspicious, mails to non-dispatch request formation; If what receive is to send the response that connects by Physical layer, then form the data link layer protocol data unit of the class that connects, mail to non-dispatch request formation.
8. according to the described field bus network controller of claim 6, it is characterized in that: in described B processing procedure, after the data link layer protocol data unit judgement, handle according to different situations, if what receive is the data link layer protocol data unit of being sent the class that connects by Physical layer, then, send affirmations that connect, and formation is not with the data link layer protocol data unit of the data type of user data to application layer when connecting when having set up.Mail to output stream; When connection is not set up, send the indication that connects to application layer; If what receive is the data link layer protocol data unit of being sent the deletion class by Physical layer, then sends out to disconnect connecting and indicate to application layer; If what receive is the data link layer protocol data unit of being sent data type by Physical layer, then send out the data indication to application layer, and according to what be associated is to receive formation or send buffer, respectively with in the data link layer protocol data unit of data type with user data send into and receive formation or send buffer; If what receive is to be sent by Physical layer to force to send the class data link layer protocol data unit, then fetch data to retransmit and send buffer contents from the transmission buffer zone, form the data link layer protocol data unit of the data type of band user data, mail to non-dispatch request formation.
9. according to the described field bus network controller of claim 1, it is characterized in that: described fieldbus message specification module is through host card access modules, host driver, and the object connection of passing through in the control procedure is connected with host computer with the embedding driver of process.
CN 01106350 2001-03-23 2001-03-23 Field bus network controller Expired - Fee Related CN1232915C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 01106350 CN1232915C (en) 2001-03-23 2001-03-23 Field bus network controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 01106350 CN1232915C (en) 2001-03-23 2001-03-23 Field bus network controller

Publications (2)

Publication Number Publication Date
CN1376985A CN1376985A (en) 2002-10-30
CN1232915C true CN1232915C (en) 2005-12-21

Family

ID=4655376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 01106350 Expired - Fee Related CN1232915C (en) 2001-03-23 2001-03-23 Field bus network controller

Country Status (1)

Country Link
CN (1) CN1232915C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322704C (en) * 2003-12-12 2007-06-20 上海贝尔阿尔卡特股份有限公司 Multistandard wireless network controller
CN100388713C (en) * 2005-07-13 2008-05-14 中国科学院沈阳自动化研究所 Wireless embedded controller based on factory automation industrial Ethernet field bus
US7609713B2 (en) * 2005-09-29 2009-10-27 Fisher-Rosemount Systems, Inc. Associating a signal measurement with a communication device on a network
CN104090986B (en) * 2014-07-28 2018-06-01 福建三元达网络技术有限公司 A kind of wireless control tank position control method, access device and wireless controller
DE102017104912A1 (en) * 2017-03-08 2018-09-13 Endress+Hauser Process Solutions Ag Method for parameterizing a field device of automation technology
CN116610467B (en) * 2023-07-21 2023-10-20 烟台东方威思顿电气有限公司 Energy controller serial port management method

Also Published As

Publication number Publication date
CN1376985A (en) 2002-10-30

Similar Documents

Publication Publication Date Title
CN1178113C (en) Network accessible interface for process control network
CN1297926C (en) Affair type data communication of procedue control system
CN1271824C (en) Portable information system and access equipment, home network system and access method
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN100345427C (en) Home network system and method for operating the same
Loy et al. Open control networks: LonWorks/EIA 709 technology
CN104660682B (en) A kind of OPC data collection and monitoring intelligent terminal based on TD-LTE
CN1268995C (en) Wireless local area network field bus network control station
US20040039459A1 (en) Universal device control
CN101262473B (en) EPA industrial Ethernet and HART field bus interconnection method
CN101056202A (en) A method for realizing the multi-task polling in the network management monitoring system
CN101741819A (en) Protocol conversion gateway
CN209417574U (en) Industrial robot controller data intelligence acquisition system
CN104635708A (en) OPC UA (Unified Architecture) data acquisition module based on I-MX287 processor
CN112529497A (en) Intelligent warehousing system based on OPC UA over TSN under 5G network
CN115022379B (en) Ceramic production management system based on 5G cloud platform
CN1232915C (en) Field bus network controller
CN201163782Y (en) Intelligent network gateway used for EPA/HART interconnection
CN109167768B (en) Remote access and tamper-proof system for industrial field data in industrial Internet of things
CN110708239A (en) Industrial Internet of things gateway based on OPC and MQTT
CN1960276A (en) Remote control system and method
CN101639694A (en) Control system based on EPA standard and management method thereof
CN114385541B (en) OPC UA aggregation server oriented to intelligent manufacturing and design method thereof
CN105223918B (en) The system for realizing control information and information on services separating treatment
CN101986664A (en) Communication network-based three-level remote monitoring system of medicinal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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