CN1376985A - Field bus network controller - Google Patents

Field bus network controller Download PDF

Info

Publication number
CN1376985A
CN1376985A CN 01106350 CN01106350A CN1376985A CN 1376985 A CN1376985 A CN 1376985A CN 01106350 CN01106350 CN 01106350 CN 01106350 A CN01106350 A CN 01106350A CN 1376985 A CN1376985 A CN 1376985A
Authority
CN
China
Prior art keywords
data
module
link layer
fieldbus
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.)
Granted
Application number
CN 01106350
Other languages
Chinese (zh)
Other versions
CN1232915C (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

A field bus network controller for the interactive communication network of procedure or manufacture automatizing equipment is composed of CPU, dual-port memory, RAM, programmable ROM for control program, standard ISA interface and field bus interface. Said control program includes field bus message normalizing module, field bus accessing sub-layer module, system manager module, network manager, module, data link layer module and link activity schedular module.

Description

Field bus network controller
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.
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.
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 central processing unit (CPU);
One twoport storer (DPRAM) is finished between the central processing unit (CPU) of described central processing unit (CPU) and described connection and is visited;
One random access memory (RAM), the internal memory that carries out communication as described central processing unit (CPU) and fieldbus;
One programmable read only memory (EPROM) is deposited control program;
One standard I SA interface circuit is pegged graft with Standard PC or Industrial PC Computer, connects computing machine;
One meets the field-bus interface of 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 (FMS), fieldbus access sub-layer module (FAS), system management module (SM), network management module (NM), data link layer module (DLL) and link active scheduler (LAS), the double port memory (DPRAM) of fieldbus message specification module (FMS) in the host card access modules, be connected with host computer by host driver, again respectively with system management module (SM) and fieldbus access sub-layer module (FAS) communication; Data link layer module (DLL) and link active scheduler (LAS) and system management module (SM) and fieldbus access sub-layer module (FAS) communication export field-bus interface to through fieldbus driver module (ICDriver) again; Network management module (NMA) all has the communication annexation with fieldbus message specification module (FMS), fieldbus access sub-layer module (FAS), data link layer module (DLL) and link active scheduler (LAS);
Described fieldbus message specification module (FMS) has been stipulated the form of message transmission and the behavior of agreement, context management, object dictionary service, variables access, Event Service, upload/download service, six kinds of services of routine call are provided, idiographic flow is: handle when host card access modules down-transmitting data, get the user data in the double port memory (DPRAM), user data is assert, if data are correct, encode, send to fieldbus message specification module (FMS) protocol Data Unit, otherwise provide error report; Handle fieldbus message specification module (FMS) protocol Data Unit catch come data the time, decoding judges whether to issue the user earlier, as judged result for issuing the user, executable operations then; If judged result then realizes service for not issuing the user, should confirm order, unidentified then termination routine through then sending out of affirmation;
Described fieldbus access sub-layer module (FAS) is responsible for the on-the-spot message specification module in upper strata (FMS) 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, report ways of distribution are wherein reported one way system (QUU) the application protocol machine communication applications formation, that the user triggers of ways of distribution; Bidirectional mode (QUB) application protocol machine client/server mode mode application queue, that the user triggers; Publisher/subscriber's mode is used one way system application protocol machine buffer zone, network-triggered (NBU); Its flow process is: from the information of fieldbus message specification module (FMS), provide selection by fieldbus access sub-layer module (FAS) service agreement machine, use data link layer module (DLL) shadowing agreement machine that communication with data link layer module (DLL) is provided then different communication modes;
Described system management module (SM) 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 success or not of peek state then, if successfully do not get back to the system management pipeline, if the success would judge which kind of primitive, if request primitive is arranged, then judge the services request kind, wherein judgement formula is that system management is provided with the physical equipment mark, and the address is set in system management, and 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 and is fetched data, indication is arranged, the protocol Data Unit (PDU) that the data link layer is sent here is decoded, the apportion situation responds, be specially the judgement formula and be 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, and system management who have the physical equipment mark to reply, and system management is set the address and replied, system management enables to reply, and system management is removed the address and replied;
Described network management module (NM) is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Described network management module (NM), idiographic flow is: fetch data to network management proxy from network configuration, by network management proxy is that the layer management entity of field-bus interface circuit carries out communication and manages managed object by fieldbus message specification module (FMS) layer management entity, fieldbus access sub-layer module (FAS) layer management entity, fieldbus data link layer module (DLL) layer management entity, fieldbus physical layer (PHY) respectively, and also request by fieldbus message specification module (FMS) or response and network manager get in touch in addition;
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 allows field instrument periodically transmit and measures and control information by predefined timetable; The transmission of non-scheduling is used for transmitting the operator beyond scheduling time and controls control information, warning message, response message; Comprising fieldbus link active scheduler (LAS), be responsible for scheduling, the coordination of each equipment of fieldbus, guarantee that each equipment moves under breakthrough condition in nothing, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module (DLL) idiographic flow is: at transmit leg, the downward data stream of application layer process is request or response, processing through the A process of transmitting, form data link layer protocol data unit (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 (DLPDU) of priority the earliest, each data link layer protocol data unit (DLPDU) all has a timer of concentrating in the time corresponding with it, if receiving preceding this timer expiry of authorization token (PT), then carry out sequence of operations, as disconnect connection, after this data link layer protocol data unit (DLPDU) is sent, confirm if need, then start a timer for it and carry out Error Control, if receiving, data link layer forces to send token (CD), then from send buffer zone, take out user data, directly mail to Physical layer after the data link layer protocol data unit (DT DLPDU) of formation data type, and do not mail to non-dispatch request formation (Q (US)), the take over party, after the processing of the data link layer protocol data unit of receiving (DLPDU) through the B receiving course, generate indication or confirm to send to the application layer process; The flow process of described fieldbus link active scheduler (LAS) is: judge whether the time of sending out pressure transmission token (CD) next time is enough, if it is enough then send authorization token (PT), otherwise etc. injunction board to be sent (CD), time is to sending, no matter be to send the sort of token, 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);
In described A processing procedure, after request or response judgement, handle according to different situations.Specifically, be (EC) request that connects as if what receive, 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 the mandatory services request, 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 that connects, data link layer protocol data unit (DT DLPDU) 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 (DTDLPDU) that forms data type that lumps together of data link layer protocol data unit (DTDLPDU) 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 connectionless request of data, 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 the response that connects, then form the data link layer protocol data unit (EC DLPDU) of the class that connects, mail to non-dispatch request formation (Q (US));
In described B processing procedure, after data link layer protocol data unit (DLPDU) judgement, handle according to different situations, specifically, if what receive is the data link layer protocol data unit (EC DLPDU) of class of connecting, then when connecting when having set up, to the application layer transmission affirmation that connects, 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 (DC DLPDU) of deletion class, 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 data type, then send out the 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 (DT DLPDU) of data type is sent into received formation or send buffer respectively; If what receive is 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 (DT DLPDU) of the data type of band user data, mail to non-dispatch request formation (Q (US));
Double port memory (DPRAM), the host driver of described fieldbus message specification module (FMS) in the host card access modules, and the object connection of passing through in the control procedure is connected with host computer with embedding (OPC) 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.
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.
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 central processing unit (CPU), present embodiment adopts the i80386EX central processing unit;
One twoport storer (DPRAM) is finished between the central processing unit (CPU) of described central processing unit (CPU) and described connection and is visited;
One random access memory (RAM), the internal memory that carries out communication as described central processing unit (CPU) and fieldbus;
One programmable read only memory (EPROM) is deposited control program;
One standard I SA interface circuit is pegged graft with Standard PC or Industrial PC Computer, connects computing machine;
One meets the field-bus interface of 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 (NM), data link layer module (DLL) and link active scheduler (LAS), the double port memory (DPRAM) of fieldbus message specification module (FMS) in the host card access modules, be connected with the host computer application program by host driver, again respectively with system management module (SM) and fieldbus access sub-layer module (FAS) communication; Data link layer module (DLL) and link active scheduler (LAS) and system management module (SM) and fieldbus access sub-layer module (FAS) communication export field-bus interface to through fieldbus driver module (ICDriver) again; Network management module (NMA) all has the communication annexation with fieldbus message specification module (FMS), fieldbus access sub-layer module (FAS), data link layer module (DLL) and link active scheduler (LAS);
Shown in Fig. 3,4, described fieldbus message specification module (FMS), the form of message transmission and the behavior of agreement have been stipulated, context management, object dictionary service, variables access, Event Service, upload/download service, six kinds of services of routine call are provided, idiographic flow is: handle when host card access modules down-transmitting data, get the user data in the double port memory (DPRAM), user data is assert, if data are correct, encode, send to fieldbus access sub-layer module (FAS), otherwise provide error report; Handle fieldbus message specification module (FMS) protocol Data Unit catch come data the time, decoding judges whether to issue the user earlier, as judged result for issuing the user, executable operations then; If judged result then realizes service for not issuing the user, should confirm order, unidentified then termination routine through then sending out of affirmation;
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), report ways of distribution (SOURCE/SINK) are wherein reported unidirectional side 1 formula (QUU) the application protocol machine communication applications formation, that the user triggers of ways of distribution (SOURCE/SINK); 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 information of fieldbus message specification module (FMS), provide selection by fieldbus access sub-layer (FAS) service agreement machine, use data link layer module (DLL) shadowing agreement machine that communication with data link layer module (DLL) is provided then different communication modes.
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 success or not of peek state then, if successfully do not get back to system management pipeline (pipe-SM), if the success would judge which kind of primitive, if request primitive is then judged the services request kind, wherein judgement formula is that system management is provided with the physical equipment mark, the address is set in system management, remove the system management address, 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 (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 apportion situation responds, be specially the judgement formula and be 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, and system management who have the physical equipment mark to reply, and system management is set the address and replied, system management enables to reply, and system management is removed the address and replied;
As shown in Figure 7, described network management module (NM) is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Idiographic flow is: fetch data to network management proxy from network configuration, by network management proxy is that the layer management entity of field-bus interface circuit carries out communication and manages managed object by fieldbus message specification module (FMS) layer management entity, fieldbus access sub-layer module (FAS) layer management entity, fieldbus data link layer module (DLL) layer management entity, fieldbus physical layer (PHY) respectively, and also request by fieldbus message specification module (FMS) or response and network manager get in touch in addition;
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 allows field instrument periodically transmit and measures and control information by predefined timetable; The transmission of non-scheduling is used for transmitting the operator beyond scheduling time and controls control information, warning message, response message etc.; Comprising fieldbus link active scheduler (LAS), be responsible for scheduling, the coordination of each equipment of fieldbus, guarantee that each equipment moves under breakthrough condition in nothing, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module (DLL) idiographic flow is: at transmit leg, the downward data stream of application layer process is request or response, processing through the A process of transmitting, form data link layer protocol data unit (DLPDU) and put into non-dispatch request formation (Q (US)), after receiving authorization token (PT) token, send and put into formation and the highest DLPDU of priority the earliest, each DLPDU has a timer of concentrating in the time corresponding with it, if receiving preceding this timer expiry of authorization token (PT), then carry out sequence of operations, as disconnect connection, after this DLPDU sends, confirm if need, then start a timer for it and carry out Error Control, if data link layer is subjected to forcing to send token (CD), then from send buffer zone, take out user data, directly mail to Physical layer after the data link layer protocol data unit (DT DLPDU) of formation data type, and do not mail to Q (US), the take over party, after the processing of the DLPDU that receives through the B receiving course, generate indication or confirm to send to the application layer process; As Figure 11, Figure 12, shown in Figure 13, the flow process of described fieldbus link active scheduler (LAS) is: judge whether the time of sending out pressure transmission token (CD) next time is enough, if it is enough then send authorization token (PT), otherwise etc. injunction board to be sent (CD), time is to sending, no matter be to send the sort of token, 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, specifically, be (EC) request that connects as if what receive, the data link layer protocol data unit (EC DLPDU) that then forms the class that connects mails to Q (US); If what receive is the mandatory services request, then forms and force transmission class data link layer protocol data unit (CD DLPDU) to mail to Q (US); If what receive is the request of data that connects, it is auspicious then to form DT DLPDU control, when this request mail to data link services visit between when point (DLSAP) or the data link connection end point (DLCEP) relevant with formation, 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 the DT DLPDU control 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, form DT DLPDU with auspicious the lumping together of data link layer protocol data unit (DT DLPDU) control of the data type that has generated, mail to Q (US); If what receive is connectionless request of data, then from transmit queue, take out user data, it is auspicious to form DT DLPDU control, mails to Q (US); If what receive is response (annotating: may be the response that connects only), then form ECDLPDU, mail to Q (US);
As shown in figure 10, in described B processing procedure, after the DLPDU judgement, handle according to different situations, specifically, if what receive is the data link layer protocol data unit (EC DLPDU) of class of connecting, then when connection has been set up, send the affirmation that connects to application layer, and form, mail to output stream not with the DT DLPDU 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 (DC DLPDU) of deletion class, then sends out to disconnect connecting and indicate to application layer; If that receive is DT DLPDU, then send out data and arrive indication (Data Indication), and be to receive formation or send buffer according to what be associated to application layer, respectively with among the DTDLPDU with user data send into and receive formation or send buffer; If that receive is CD DLPDU, then fetching data to retransmit from the transmission buffer zone sends buffer contents, forms the DT DLPDU of band user data, mails to 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 central processing unit (CPU);
One twoport storer (DPRAM) is finished between the central processing unit (CPU) of described central processing unit (CPU) and described connection and is visited;
One random access memory (RAM), the internal memory that carries out communication as described central processing unit (CPU) and fieldbus;
One programmable read only memory (EPROM) is deposited control program;
One standard I SA interface circuit is pegged graft with Standard PC or Industrial PC Computer, connects computing machine;
One meets the field-bus interface of 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 (FMS), fieldbus access sub-layer module (FAS), system management module (SM), network management module (NM), data link layer module (DLL) and link active scheduler (LAS), the double port memory (DPRAM) of fieldbus message specification module (FMS) in the host card access modules, be connected with host computer by host driver, again respectively with system management module (SM) and fieldbus access sub-layer module (FAS) communication; Data link layer module (DLL) and link active scheduler (LAS) and system management module (SM) and fieldbus access sub-layer module (FAS) communication export field-bus interface to through fieldbus driver module (ICDriver) again; Network management module (NMA) all has the communication annexation with fieldbus message specification module (FMS), fieldbus access sub-layer module (FAS), data link layer module (DLL) and link active scheduler (LAS).
2. according to the described field bus network controller of claim 1, it is characterized in that: described fieldbus message specification module (FMS) 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: handle when host card access modules down-transmitting data, get the user data in the double port memory (DPRAM), user data is assert, if data are correct, encode, send to fieldbus message specification module (FMS) protocol Data Unit, otherwise provide error report; Handle fieldbus message specification module (FMS) protocol Data Unit catch come data the time, decoding judges whether to issue the user earlier, as judged result for issuing the user, executable operations then; If judged result then realizes service for not issuing the user, should confirm order, unidentified then termination routine through then sending out of affirmation.
3. according to the described field bus network controller of claim 1, it is characterized in that: described fieldbus access sub-layer module (FAS) is responsible for the on-the-spot message specification module in upper strata (FMS) 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, report ways of distribution are wherein reported one way system (QUU) the application protocol machine communication applications formation, that the user triggers of ways of distribution; Bidirectional mode (QUB) application protocol machine client/server mode mode application queue, that the user triggers; Publisher/subscriber's mode is used one way system application protocol machine buffer zone, network-triggered (NBU); Its flow process is: from the information of fieldbus message specification module (FMS), provide selection by fieldbus access sub-layer module (FAS) service agreement machine, use data link layer module (DLL) shadowing agreement machine that communication with data link layer module (DLL) is provided then different communication modes.
4. according to the described field bus network controller of claim 1, it is characterized in that: described system management module (SM) 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 success or not of peek state then, if successfully do not get back to the system management pipeline, if the success would judge which kind of primitive, if request primitive is arranged, then judge the services request kind, wherein judgement formula is that system management is provided with the physical equipment mark, the address is set in system management, remove the system management address, 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 and is fetched data, indication is arranged, the protocol Data Unit (PDU) that the data link layer is sent here is decoded, the apportion situation responds, be specially the judgement formula and be 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, and system management who have the physical equipment mark to reply, and system management is set the address and replied, system management enables to reply, and system management is removed the address and replied.
5. according to the described field bus network controller of claim 1, it is characterized in that: described network management module (NM) is in charge of the configuration parameters of fieldbus networks, by being the configuration parameters assignment, realizes different network functions; Described network management module (NM), idiographic flow is: fetch data to network management proxy from network configuration, by network management proxy is that the layer management entity of field-bus interface circuit carries out communication and manages managed object by fieldbus message specification module (FMS) layer management entity, fieldbus access sub-layer module (FAS) layer management entity, fieldbus data link layer module (DLL) layer management entity, fieldbus physical layer (PHY) respectively, and also request by fieldbus message specification module (FMS) or response and network manager get in touch in addition.
6. according to the described field bus network controller of claim 1, it is characterized in that: 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 allows field instrument periodically transmit and measures and control information by predefined timetable; The transmission of non-scheduling is used for transmitting the operator beyond scheduling time and controls control information, warning message, response message; Comprising fieldbus link active scheduler (LAS), be responsible for scheduling, the coordination of each equipment of fieldbus, guarantee that each equipment moves under breakthrough condition in nothing, guarantee that simultaneously each equipment has identical time reference, and then the energy real time execution; Data link layer module (DLL) idiographic flow is: at transmit leg, the downward data stream of application layer process is request or response, processing through the A process of transmitting, form data link layer protocol data unit (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 (DLPDU) of priority the earliest, each data link layer protocol data unit (DLPDU) all has a timer of concentrating in the time corresponding with it, if receiving preceding this timer expiry of authorization token (PT), then carry out sequence of operations, as disconnect connection, after this data link layer protocol data unit (DLPDU) is sent, confirm if need, then start a timer for it and carry out Error Control, if receiving, data link layer forces to send token (CD), then from send buffer zone, take out user data, directly mail to Physical layer after the data link layer protocol data unit (DTDLPDU) of formation data type, and do not mail to non-dispatch request formation (Q (US)), the take over party, after the processing of the data link layer protocol data unit of receiving (DLPDU) through the B receiving course, generate indication or confirm to send to the application layer process; The flow process of described fieldbus link active scheduler (LAS) is: judge whether the time of sending out pressure transmission token (CD) next time is enough, if it is enough then send authorization token (PT), otherwise etc. injunction board to be sent (CD), time is to sending, no matter be to send the sort of token, 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).
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.Specifically, be (EC) request that connects as if what receive, 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 the mandatory services request, 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 that connects, data link layer protocol data unit (DT DLPDU) 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 (DTDLPDU) 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 connectionless request of data, then from transmit queue, take out user data, data link layer protocol data unit (DTDLPDU) control that forms data type is auspicious, mails to non-dispatch request formation (Q (US)); If what receive is the response that connects, then form the data link layer protocol data unit (EC DLPDU) of the class that connects, mail to non-dispatch request formation (Q (US)).
8. according to the described field bus network controller of claim 6, it is characterized in that: in described B processing procedure, after data link layer protocol data unit (DLPDU) judgement, handle according to different situations, specifically, if what receive is the data link layer protocol data unit (ECDLPDU) of class of connecting, 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 (DC DLPDU) of deletion class, 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 data type, then send out the 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 (DT DLPDU) of data type is sent into received formation or send buffer respectively; If what receive is 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 (DT DLPDU) of the data type of band user data, mail to non-dispatch request formation (Q (US)).
9. according to the described field bus network controller of claim 6, it is characterized in that: double port memory (DPRAM), the host driver of described fieldbus message specification module (FMS) in the host card access modules, and the object connection of passing through in the control procedure is connected with host computer with embedding (OPC) 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 true CN1376985A (en) 2002-10-30
CN1232915C 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)

Cited By (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
CN101536422B (en) * 2005-09-29 2012-10-10 费希尔-罗斯蒙德***公司 Method for associating a signal measurement with a communication device on a network
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
CN110392867A (en) * 2017-03-08 2019-10-29 恩德莱斯和豪瑟尔过程解决方案股份公司 Method for field device parameters will to be automated
CN116610467A (en) * 2023-07-21 2023-08-18 烟台东方威思顿电气有限公司 Energy controller serial port management method

Cited By (8)

* 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
CN101536422B (en) * 2005-09-29 2012-10-10 费希尔-罗斯蒙德***公司 Method for associating a signal measurement with a communication device on a network
CN104090986A (en) * 2014-07-28 2014-10-08 福建三元达通讯股份有限公司 Wireless controller slot position control method, access device and wireless controller
CN110392867A (en) * 2017-03-08 2019-10-29 恩德莱斯和豪瑟尔过程解决方案股份公司 Method for field device parameters will to be automated
CN110392867B (en) * 2017-03-08 2022-08-19 恩德莱斯和豪瑟尔过程解决方案股份公司 Method for parameterizing an automation field device
CN116610467A (en) * 2023-07-21 2023-08-18 烟台东方威思顿电气有限公司 Energy controller serial port management method
CN116610467B (en) * 2023-07-21 2023-10-20 烟台东方威思顿电气有限公司 Energy controller serial port management method

Also Published As

Publication number Publication date
CN1232915C (en) 2005-12-21

Similar Documents

Publication Publication Date Title
CN1271824C (en) Portable information system and access equipment, home network system and access method
CN100345427C (en) Home network system and method for operating the same
CN100477602C (en) A method for realizing the multi-task polling in the network management monitoring system
CN1297926C (en) Affair type data communication of procedue control system
CN1178113C (en) Network accessible interface for process control network
US20040039459A1 (en) Universal device control
CN1268995C (en) Wireless local area network field bus network control station
CN101741819A (en) Protocol conversion gateway
WO2013131457A1 (en) Dual-system assembly type industrial robot controller
CN209417574U (en) Industrial robot controller data intelligence acquisition system
CN104635708A (en) OPC UA (Unified Architecture) data acquisition module based on I-MX287 processor
CN1232915C (en) Field bus network controller
CN1960276A (en) Remote control system and method
CN103746836A (en) Embedded network management agent system based on ARM
CN201821163U (en) Intelligent transformer substation network performance analysis device
CN103744365A (en) Bridging module for communication between room control terminal and upper computer and method thereof
CN115022379B (en) Ceramic production management system based on 5G cloud platform
CN1187937C (en) Embedded in situ bus gateway
CN110161898A (en) A kind of substation inspection robot resource sharing system of compatible multiple agent
CN1549520A (en) Method for realizing universal simplified gateway equipment in intelligent home system
KR101926799B1 (en) Method for providing context awareness messenger and system thereof
KR100837716B1 (en) home network managing system
John Introduction to Digital Communication for Building Automation and DDC
CN101393452A (en) System and method for data communication between application software and distributed control system
Yan et al. Design and Implementation of Fully Integrated Automation Scheme Based on Heterogeneous Field-bus Network

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