CN102854862A - Functional block with FF (foundation fieldbus) interface - Google Patents

Functional block with FF (foundation fieldbus) interface Download PDF

Info

Publication number
CN102854862A
CN102854862A CN2012103363544A CN201210336354A CN102854862A CN 102854862 A CN102854862 A CN 102854862A CN 2012103363544 A CN2012103363544 A CN 2012103363544A CN 201210336354 A CN201210336354 A CN 201210336354A CN 102854862 A CN102854862 A CN 102854862A
Authority
CN
China
Prior art keywords
data
function piece
pin
module
instrument
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
CN2012103363544A
Other languages
Chinese (zh)
Other versions
CN102854862B (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.)
Zhejiang Supcon Technology Co Ltd
Original Assignee
Zhejiang Supcon Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Supcon Technology Co Ltd filed Critical Zhejiang Supcon Technology Co Ltd
Priority to CN201210336354.4A priority Critical patent/CN102854862B/en
Publication of CN102854862A publication Critical patent/CN102854862A/en
Application granted granted Critical
Publication of CN102854862B publication Critical patent/CN102854862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a functional block with an FF (foundation fieldbus) interface. The functional block comprises a data storage and a control logic module. The data storage comprises an operational data storage which opens for the external upper layer module of DCS (distributed control system). By real-time monitoring and online modifying data in the operational data storage, the external upper layer module of the DCS monitors in real time and modifies online the data of an instrument functional block. The control logic module only modifies the data of the instrument functional block when data content in the operational data storage changes, namely, modification is performed when data in the instrument functional block needs to be modified, and accordingly network load is lowered. By the functional block with the FF interface, the DCS is can control an FF device. The functional block can be built in a central control unit of the DCS. Mixing control of the DCS and the FF device can be achieved by building control schemes between the central control unit and the lower field instruments by the aid of the external upper layer module of the DCS, functions such as real-time monitoring, online modifying, warning and browsing can be performed by the DCS to the instrument functional block.

Description

A kind of FF interface function piece
Technical field
The invention belongs to industrial automatic control field and fieldbus field, relate in particular to a kind of FF(Foundation Fieldbus, foundation fieldbus) the interface function piece.
Background technology
The FF technology is a kind of field bus technique that aims at the industrial control field design, FF can provide the communication connection of a total digitalization, two-way, multinode between smart devices and industrial control system, equipment based on the different manufacturers of same FF agreement can access same system by FF, and the mutual operation between can realization equipment, thereby realize the best system integration.At present, FF has obtained world's major control equipment supplier's support, becomes international standard, has fabulous prospect at industrial control field, correspondingly, the FF intelligence instrument in the FF field bus device (being called for short FF equipment) progressively becomes the main product of field instrument.And the most widely used control system of present stage industrial control field is DCS(Distributed Control System, dcs), so the combination of DCS and FF technology is doomed to gather around at industrial control field and is held out broad prospects.
The instrument function piece is the basic control unit of FF field bus device, and the DCS of support FF technology, mainly be around how supporting better in DCS that the instrument function piece in the FF field bus device designs, it being carried out the control functions such as control program configuration, Real Time Monitoring, online modification and the collection of reporting to the police with realization.
At present, DCS specifically provides a kind of interface function piece to the control of FF in DCS, and as the representative of instrument function piece, DCS is by the Real Time Monitoring of this interface function piece realization to the instrument function piece.In the prior art, DCS specifically revises order by revising event trigger parameters, realize the online modification to the instrument function piece, but no matter whether the method change at modification event front and back parameter value, all can produce the parameter modification order, as common when in DCS, revising the parameter of instrument function piece by the custom feature piece, in each cycle of custom feature piece computing, it all can issue the modification parameter command to the instrument function piece, namely no matter whether the data of instrument function in fast need to revise, the custom feature piece all can be carried out retouching operation in each cycle of its computing, issue the modification parameter command to the instrument function piece, the bus network layer produces message thereby can continue at the scene, causes network load higher.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of FF interface function piece, when realizing that only parameter need to be revised in the instrument function piece, just it is carried out online modification, and then reduce network load.
For this reason, the invention provides following technical scheme:
A kind of foundation fieldbus interface function piece, be used for as the control of Interface realization DCS to the instrument function piece of FF intelligence instrument, comprise data-carrier store and steering logic module, wherein, described data-carrier store comprises service data storer and backup data storage, and described steering logic module comprises parsing module and online modification module;
Described parsing module be used for the instrument real time data of described instrument function piece is resolved, and the Data Update after will resolving is to described service data storer and described backup data storage;
Described service data storer is for for the outside upper layer module of DCS its data being shown and revising;
Described online modification module, be used for the data of described service data storer and the data of described backup data storage are compared, if comparative result is that the data of the data of described service data storer and described backup data storage are different, described instrument function piece is carried out online modification.
Preferably, described data-carrier store also comprises raw storage, and described raw storage is for the instrument real time data and the buffer memory that send on the receiving instrument functional block.
Preferably, described parsing module, concrete being used for resolves the data of described raw storage, and the Data Update after will resolving is to described service data storer and described backup data storage.
Preferably, the data of depositing in the described data-carrier store comprise parameter and/or pin, wherein:
Described pin is divided into input pin and output pin, and described pin comprises pin value, pin state and pin quality.
Preferably, described online modification module comprises comparison module and write the variable module, wherein:
Described comparison module, be used for the data of described service data storer and the data of described backup data storage are compared, if comparative result is that the data of the data of described service data storer and described backup data storage are different, trigger the described variable module of writing;
Write the variable module, be used for the parameter value that comparative result is different and write to the relevant parameter of described instrument function piece, and this parameter value that copies simultaneously backup data storage this parameter to the service data storer.
Preferably, described FF interface function piece specifically links to each other with the instrument function piece of described FF intelligence instrument by FF gateway interconnect module.
Preferably, described FF interface function piece specifically carries out data communication by the instrument function piece of view passage and/or high-speed channel and described FF intelligence instrument.
Preferably, described parameter is transmitted by described view passage, and described pin selects different passages to transmit according to different connected modes, wherein:
When the pin of FF interface function piece when internal functional blocks among the DCS is connected, pin adopts high-speed channel to transmit; Otherwise pin adopts the view passage to transmit.
Preferably, described steering logic module also comprises data update module, pin state processing module and process alarm processing module, wherein:
Described data update module is used for carrying out the view channel data and upgrades and the high-speed channel Data Update;
Described pin state processing module is for the adaptive processing of the pin state that carries out DCS pin and instrument function piece pin;
Described process alarm processing module be used for to realize enabling and indicating the process alarm of instrument function piece.
As seen, the outside upper layer module of DCS (such as host computer) can be by carrying out the realization of Real Time Monitoring and online modification to Real Time Monitoring and the online modification of instrument function blocks of data to data in the service data storer among the present invention, and the online modification module specifically compares by the data to service data storer and backup data storage, both data not simultaneously to the instrument function piece in data carry out online modification, namely only in the service data storer data just data in the instrument function piece are made amendment after being revised by the outside upper layer module of DCS, thereby the problems referred to above have been overcome, when having realized that only data need to be revised in the instrument function piece, just carry out the purpose of corresponding modify operation, and then reduced network load.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 be the FF interface function piece that provides of the embodiment of the invention based on the system network architecture schematic diagram;
Fig. 2 is a kind of structural representation of the FF interface function piece that provides of the embodiment of the invention;
Fig. 3 is the principle schematic of the online modification that provides of the embodiment of the invention;
Fig. 4 is the another kind of structural representation of the FF interface function piece that provides of the embodiment of the invention;
Fig. 5 is that the steering logic module that provides of the embodiment of the invention is to the control schematic diagram of data in three data storeies;
Fig. 6 be the FF interface function piece that provides of the embodiment of the invention based on the data interaction schematic diagram of system network architecture;
Fig. 7 is the flow chart of data processing schematic diagram of the FF interface function piece that provides of the embodiment of the invention;
Fig. 8 is the process flow diagram of the online modification that provides of the embodiment of the invention;
Fig. 9 is the high-speed channel Data Update process flow diagram that the embodiment of the invention provides;
Figure 10 is that the view channel data that the embodiment of the invention provides upgrades process flow diagram;
Figure 11 is the structural representation of the pure FF control program that provides of the embodiment of the invention;
Figure 12 is the mixing control program structural representation that the embodiment of the invention provides.
Embodiment
For quote and know for the purpose of, the technical term that hereinafter uses, write a Chinese character in simplified form or abridge to sum up and be explained as follows:
The nerve center of central controller: dcs DCS.It receives the input signal from the test side, carries out inner control logic, at last execution result is exported to on-the-spot end and drives topworks.
DCS system functional block: be positioned at central controller, consisted of by data and steering logic, for the user provides modular control method.By the connection configuration of system functional block, realize complete control program.
Internal functional blocks: belong to the DCS system functional block.Steering logic of main realization, the complete built-in central controller of its control algolithm is finished separately by internal functional blocks self, does not participate in external communication.
FF interface function piece: belong to the DCS system functional block, be also referred to as the mapping function piece.The real time data of external meters functional block is mapped to its data district, to realize that external function block is in the mapping of DCS.
Instrument function piece: do not belong to the DCS system functional block, for DCS, be external function block, be also referred to as external function block or FF functional block.External function block in this programme refers to the instrument function piece in the FF field bus device.Formed by data and logic.Data are sources of mapping function piece, realize the steering logic of regulation according to the FF agreement.
The parameter of mapping function piece: belong to the part of mapping function blocks of data, do not support and other functional block lines.
The pin of mapping function piece: belong to the part of mapping function blocks of data, support and other functional block lines.
FF gateway interconnect module: connect the communication module of central controller and FF field bus device, carry out communication by DCS system protocol and central controller, carry out communication by standard FF agreement and FF field bus device.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The invention discloses a kind of FF interface function piece, be used for as the control of Interface realization DCS to the instrument function piece of FF intelligence instrument, FF interface function piece can be built in the central controller of DCS, and each instrument function piece shines upon in pairs.Below to realize by above-mentioned FF interface function piece DCS to the control of instrument function piece based on system network architecture describe in detail.
See also Fig. 1, the PC(personal computer of the superiors among Fig. 1, personal computer) can be field engineer station, active station, server etc., it is equivalent to host computer in function, PC carries out communication by the central controller of Industrial Ethernet and DCS, realizes the functions such as configuration download, online modification, Real Time Monitoring, warning are browsed, diagnosis; Central controller is by the I/O(input/output of system, I/O) module and FF gateway interconnect module respectively with the field instrument of bottom, be that general instrument and FF intelligence instrument carry out communication, central controller receives from the on-the-spot input signal that send on the I/O of system module and the FF gateway interconnect module, and it is carried out corresponding steering logic, afterwards, export net result to field instrument, thereby realize the control to field instrument.
Wherein, particularly, system I/O module is obtained the simulating signal of the general instrument that is attached thereto, this simulating signal is carried out A/D(Analog/Digital, analog/digital) conversion after, on deliver to central controller, receive simultaneously the output data of central controller, and after it is carried out D/A (Digital/Analog, digital-to-analog) conversion, export lower floor's general instrument to.
FF gateway interconnect module is the communication conversion module that connects FF intelligence instrument and DCS in the field instrument, its specifically with DCS in be built in central controller FF interface function piece (not shown) link to each other.FF gateway interconnect module obtains the data of the complete digital signal form of FF intelligence instrument according to the FF standard agreement, and these data are carried out following processing: if this data high-speed channel (hereinafter addressing) transmission, after then FF gateway interconnect module obtains these data, by the DCS internal agreement it is carried out protocol conversion process, and deliver to central controller on the data after will changing; If this data view passage (hereinafter addressing) transmission after then FF gateway interconnect module obtains these data, does not deal with directly and delivers to central controller with on it.Correspondingly, FF gateway interconnect module is accepted the output data from central processing unit simultaneously, during high-speed channel, the output data that receive is carried out protocol conversion according to the FF standard agreement, and is sent to the FF intelligence instrument; During the view passage, the output data that directly will receive are sent to the FF intelligence instrument.
Above-mentioned network structure has realized that the data in the whole system are penetrating.The active station of PC representative or engineer station etc. can make up control program between central controller and all field instruments of lower floor thereof, can realize between the general instrument of the lower 4 ~ 20mA signal hung of common I/O module (such as above-mentioned system I/O module), construct steering logic between the FF intelligence instrument hung under the FF gateway interconnect module, field instrument to the bottom carries out Real Time Monitoring, online modification, warning is browsed and the functions such as inline diagnosis, thereby fully the on-the-spot resource of rational management whole system realizes the mixing control of DCS and FF field bus device.
The following embodiment of the invention will describe in detail to FF interface function piece of the present invention based on above-mentioned network structure.
Embodiment one
See also Fig. 2, Fig. 2 shows a kind of structure of above-mentioned FF interface function piece, it comprises data-carrier store 100 and steering logic module 200, wherein, described data-carrier store 100 comprises service data storer 110 and backup data storage 120, and described steering logic module 200 comprises parsing module 210 and online modification module 220.
Parsing module 210 be used for the instrument real time data of described instrument function piece is resolved, and the Data Update after will resolving is to described service data storer 110 and described backup data storage 120.
Service data storer 110 is for for the outside upper layer module of DCS its data being shown and revising.
Particularly, service data storer 110 is as to the open data buffer of the outside upper layer module of DCS, and outside upper layer module such as active station or the engineer station DCS of etc.ing can be used as host computer and reads or revise the interior data of service data storer 110 according to DCS internal system communication modes.
Backup data storage 120 is the data buffers to the definition of the data redundancy in the service data storer 110, and the definition of two data-carrier store inner structures is identical.Data in the backup data storage 120 are internal datas of FF interface function piece, and outside other modules are invisible.
Wherein, data-carrier store 100 defines its data structure according to the FF standard agreement, and corresponding one by one with FF functional block parameter, the data of depositing in the data-carrier store 100 specifically comprise parameter and/or pin, and parameter is not supported line, and pin is supported line.Pin is divided into input pin and output pin, and described pin comprises pin value, pin state and pin quality.
Pin can be supported to be connected with the instrument function piece, can also support to be connected with the internal functional blocks of other FF interface function pieces and DCS.Value and the state of pin in pin value and the corresponding instrument function piece of pin state difference, the pin quality is the data that FF interface function piece of the present invention increases, the purpose that increases the pin quality is to realize that the instrument function piece is connected the state transfer of internal functional blocks pin when connecting with DCS, guarantees that the fault handling of control program is complete and consistent.
Particularly, the data in service data storer 110 and the backup data storage 120 are designated as respectively service data and Backup Data.
Online modification module 220, be used for the data of described service data storer 110 and the data of described backup data storage 120 are compared, if comparative result is that the data of described service data storer 110 are different with the data of described backup data storage 120, the instrument function piece is carried out online modification.
Particularly, online modification module 220 comprises comparison module and writes the variable module.Comparison module is used for the data of service data storer 110 and the data in the backup data storage 120 are compared, if comparative result is different for both data, triggers and writes the variable module, otherwise, do not process.Write the variable module, be used for service data storer 110 through the amended parameter value of the outside upper layer module of DCS, be that the different parameter value of comparative result writes to the relevant parameter in the described instrument function piece, and simultaneously the parameter value of this parameter in the backup data storage 120 be copied to this parameter in the service data storer.
Wherein, see also Fig. 3, the specific works principle of online modification module is: write the online modification that the variable module is responsible for processing all FF canonical parameters, come into force to on-the-spot FF intelligence instrument.Comparison module judges one by one take the parameter of FF agreement regulation as unit, relatively whether service data is identical with same parameters in the Backup Data, if identical, then this parameter is not revised by host computers such as PC, otherwise, then online modification has occured in this parameter, at this moment, write the variable module and initiate write order according to the FF standard agreement, the currency of this parameter in the service data is issued to the relevant parameter of corresponding instrument functional block, and this parameter value in the Backup Data is copied to this parameter in the service data, then begin the comparison of next parameter.Wherein, online modification module among Fig. 3, write the variable module and comparison module does not specifically illustrate, it all belongs to the steering logic module.
FF interface function piece of the present invention has been realized Real Time Monitoring and online modification to parameter in the instrument function piece by above data dividing mode and steering logic.
As seen, the outside upper layer module of DCS can be by carrying out the realization of Real Time Monitoring and online modification to Real Time Monitoring and the online modification of instrument function blocks of data to the data of the service data storer 110 among the present invention, and online modification module 220 specifically compares by the data to service data storer 110 and backup data storage 120, both data not simultaneously to the instrument function piece in data carry out online modification, after namely only data are revised by host computers such as PC in service data storer 110 just to the instrument function piece in data make amendment, thereby the problems referred to above have been overcome, when having realized that only data need to be revised in the instrument function piece, just carry out the purpose of corresponding modify operation, and then reduced network load.
Embodiment two
On the basis of above-described embodiment one, see also Fig. 4, in the embodiment of the invention two, data-carrier store 100 can also comprise raw storage 130, this raw storage 130 is for the instrument real time data and the buffer memory that send on the receiving instrument functional block.
Particularly, raw storage 130 is the reception buffer zones that send data on the instrument function piece, it presses FF standard agreement definition data structure, raw storage 130 comprises three independently unit: the second viewdata storer, three-view diagram data-carrier store and the 4th viewdata storer are respectively applied to deposit view 2 in the instrument function piece, view 3 and view 4 data.
In the present embodiment two, parsing module specifically is used for the data of described raw storage are resolved, and the Data Update after will resolving is to described service data storer and described backup data storage.
Wherein, corresponding to above-mentioned service data and Backup Data, the data in the raw storage 130 are designated as raw data.Referring to Fig. 5, Fig. 5 be the steering logic module to the control schematic diagram of data in three data storeies, detailed process please refer to above-mentioned description to each module in the steering logic module, no longer describes in detail herein.
Embodiment three
On the basis of above-described embodiment one and embodiment two, in the embodiment of the invention three, the steering logic module also can comprise data update module, pin state processing module and process alarm processing module, wherein:
Data update module is used for carrying out the view channel data and upgrades and the express passway Data Update;
Pin state processing module is for the adaptive processing of carrying out the pin state of pin in DCS pin and the instrument function piece;
The process alarm processing module be used for to realize enabling and indicating the process alarm of instrument function piece.
The structure of other modules and function and embodiment one or embodiment two are identical, specifically see also related content among embodiment one or two, no longer describe in detail herein.
Among the present invention, FF interface function piece is built in the central controller of DCS, is comprised of data-carrier store and steering logic module.During implementation, can be by configuration software dynamic assigning memory in central controller of DCS, the data structure of data-carrier store in the instantiation FF interface function piece, the one to one on-the-spot instrument function piece of mapping.The steering logic that data in the data storer are processed is solidified in central controller, and the steering logic module of a plurality of FF interface function pieces of same type shares with a steering logic.
FF interface function piece of the present invention specifically links to each other with instrument function piece in the FF intelligence instrument by FF gateway interconnect module, and two kinds of passages of data communication employing: high-speed channel, view passage.Wherein, high-speed channel can be realized fast transport, the renewal of data, produces a message but a pin upgrades meeting, and the bus network layer can take more bandwidth at the scene, and network load is high; View channel data renewal speed is slower, but a message can once obtain a plurality of parameters, and the bus layer load is lower at the scene, and to sum up, two kinds of passages cut both ways.
The present invention comprehensively weighs speed and performance, for different data, transmits as follows, upgrades: parameter is selected the view channel transfer all the time; Pin selects high-speed channel or view passage to transmit, upgrades according to different connected mode, particularly, when the pin of FF interface function piece when internal functional blocks among the DCS is connected, pin employing high-speed channel transmits; Otherwise pin adopts the view passage to transmit.Hereinafter will describe in detail two kinds of different modes.
In system network architecture, FF interface function piece is dispatched by central controller, carries out data interaction with other functional blocks, and the cycle is carried out the steering logic in the steering logic module, manages, safeguards its data.See also Fig. 6, Fig. 6 is FF interface function piece of the present invention and central processing unit, data interaction schematic diagram between FF gateway interconnect module and the FF intelligence instrument, FF gateway interconnect module is the network layer data of collecting on-the-spot FF equipment at the scene, to deliver to central controller on the data of collecting by high-speed channel or view passage, FF interface function piece is subjected to its steering logic module of scheduled for executing of central controller, from the data of high-speed channel data buffer and self reception, search corresponding data, and it is carried out corresponding steering logic: be the DCS internal data by the FF standard agreement with the Data Analysis that send on the instrument function piece, realize that DCS is to the monitoring of FF equipment; FF interface function piece is processed the parameter modification from the engineer station, produces to revise order; With pin receive from the Data Update of DCS internal functional blocks to high speed channel data buffer district, data communication device in above-mentioned modification order and the high-speed channel data buffer is crossed central controller and FF gateway interconnect module, be issued to on-the-spot instrument function piece, thereby realized the control of DCS to the FF smart machine.
More than describe in detail FF interface function piece of the present invention in system network architecture with the external data reciprocal process of other functional blocks, see also Fig. 7, the FF interface function piece of the present invention within it flow chart of data processing of section is as follows:
S1: the gateway interconnect module that judgement links to each other with this FF interface function piece and the working condition of FF equipment (such as the instrument function piece) if there is fault, go to S2; Otherwise, go to S3.
S2: generation module is reported to the police, and the output pin state is set to Bad, finishes to withdraw from.
S3: online data is revised and is processed.
Particularly, the steering logic module is to three data storeies: the data in raw storage, service data storer and the backup data storage are processed maintenance, online modification module wherein is based on the parameter in service data storer and the backup data storage is compared, realization is to carrying out online modification in requisition for the parameter of revising in the instrument function piece, see also Fig. 8, the detailed processing procedure of above-mentioned online modification is as follows:
S31: relatively whether same parameters is identical with backup data storage at the service data storer, if identical, execution in step S34 then; If difference, then execution in step S32.
S32: send and write the variable order, relevant parameter in the instrument function piece is made amendment.
S33: parameter current value in the backup data storage is copied to this parameter in the service data storer.
S34: judge whether to travel through all FF canonical parameters, if then finish; Otherwise, execution in step S35.
S35: begin next parameter, repeat above step.
S4: input pin state processing.
Need to prove herein, supporting based on a DCS who overlaps widespread use, during the control fieldbus, the internal functional blocks of DCS has the fault delivery mechanism of self, and the FF standard protocol specifies state transfer mechanism of instrument function piece, there is conflict usually in two kinds of mechanism, the pin that is embodied in the instrument function piece comprises pin value and pin state, and the pin of the internal functional blocks of DCS does not comprise the pin state, thereby when making up the control program that DCS controls the FF smart machine based on the present invention, if this scheme is the mixing control program that comprises DCS internal functional blocks and instrument function piece, then when being carried out line, the pin under this control program can have the not reciprocity situation of line two ends pinout information.In order to strengthen compatibility of the present invention, the pin of FF interface function piece of the present invention is on the basis that has comprised pin value and pin state, introduce again the pin quality, and adopted corresponding pin state transfer mechanism to solve the not reciprocity problem of pinout information under the such scheme.
Below pin state transfer mechanism that FF interface function piece of the present invention is adopted be introduced:
When realizing a pure FF control program that is all formed by the instrument function piece, pin line between the FF interface function piece, only needing that the pin value is carried out line gets final product, this moment line two ends pin, can carry out the pin value and the pin state transmits simultaneously, the pin quality is as the criterion with the pin state and calculates.
When one of realization comprises the mixing control program of DCS internal functional blocks and instrument function piece, because the pin of DCS internal functional blocks does not comprise the pin state, then need connect two lines, pin value line and pin quality line.When output pin is connected with the DCS internal functional blocks, by pin state computation pin quality, and the pin quality linked pin quality to its downstream functional block, carry out fault handling for it; When input pin is connected with the DCS internal functional blocks, the pin quality of DCS internal functional blocks connects the pin quality to FF interface function piece, FF interface function piece is according to pin Mass Calculation pin state value, and pin state value and pin value are issued to the instrument function piece together.By above-mentioned state transfer mechanism, when the present invention has successfully realized DCS internal functional blocks and the mixed connection of instrument function piece, the transmission of status information.The compatible well internal functional blocks of original DCS.
Based on above-mentioned pin state transfer mechanism, the input pin state processing is specifically carried out by described pin state processing module among the step S4, and processing procedure is: when input pin is connected or does not connect with FF interface function piece, by pin state computation pin quality; When input pin is connected with the DCS internal functional blocks, by pin Mass Calculation pin state.
S5: the high-speed channel Data Update is processed.
Wherein, the high-speed channel Data Update is processed specifically and is carried out by above-mentioned data update module, sees also Fig. 9, and concrete processing procedure is as follows:
S51: judge whether input pin is connected with the DCS internal functional blocks, if connect execution in step S52; Otherwise, execution in step S53.
S52: upgrade the input pin data to the output buffer memory in high speed channel data buffer district, and the input pin data communication device crossed FF interface function piece and the gateway interconnect module is issued to the instrument function piece.
S53: judge whether output pin is connected with the DCS internal functional blocks, if connect, execution in step S54, otherwise finish.
S54: upgrade the input-buffer data of high-speed channel data buffer to output pin.
Need to prove herein, the high-speed channel data buffer is a slice contiguous memory that the central controller that is positioned at DCS is independent of FF interface function piece, is the data interaction district when adopting the high-speed channel the transmission of data between FF gateway interconnect module and the central controller.
S6: the view channel data upgrades to be processed.
The view channel data of this step upgrades to process equally to be carried out by above-mentioned data update module, its specifically in conjunction with timing and more new logo the view channel data is upgraded.See also Figure 10, processing procedure is as follows:
S61: judge whether viewdata update time (corresponding above-mentioned timing) arrives, if arrive, execution in step S62 then, otherwise finish.
S62: judge the more new logo of three-view diagram data-carrier store data, be designated False, then execution in step S66 if upgrade; Be designated True, then execution in step S63 if upgrade.
S63: press the data that the FF standard agreement is resolved three-view diagram data-carrier store in the raw storage, the Data Update after resolving to service data storer and backup data storage, and is set to False with the more new logo of correspondence.
S64: judge whether static version number upgrades, if the result is True, execution in step S65.
S65:FF interface function piece initiates to read view 2 and view 4 orders to the instrument function piece.
S66: judge the more new logo of the second viewdata memory data, be designated False, execution in step S68 if upgrade; Be designated True, execution in step S67 if upgrade.
S67: press the data that the FF standard agreement is resolved the second viewdata storer in the raw storage, the Data Update after resolving to service data storer and backup data storage, and is set to False with the more new logo of correspondence.
S68: judge the more new logo of the 4th viewdata memory data, be designated True if upgrade, execution in step S69 is designated False if upgrade, and then finishes.
S69: press the data that the FF standard agreement is resolved the 4th viewdata storer in the raw storage, the Data Update after resolving to service data storer and backup data storage, and is set to False with the more new logo of correspondence.
The view channel data upgrade to be processed, specifically in conjunction with timing and more new logo carry out Data Update, avoided that data are frequent to be upgraded meaninglessly, and then reduced system loading.
S7: output pin state processing.
Particularly, no matter the connection of output pin is all passed through pin state computation pin quality.
S8: process alarm is processed.
This process is carried out by the process alarm processing module, comprises that specifically process alarm to the instrument function piece enables and indicates.
Particularly, the FF standard protocol specifies process alarm supported of each standard feature piece (comprising the instrument function piece), canonical parameter ALARM_SUM provide process alarm enable arrange and process alarm information.
Based on the above, the process alarm of instrument function piece is enabled and the detailed process of indicating is: FF interface function piece provides to report to the police and enables parameter, by writing the variable order, revise the warning that enables to arrange in the instrument function piece and enable item, thereby realize enabling process alarm; FF interface function piece obtains the canonical parameter ALARM_SUM of instrument function piece, according to FF standard agreement parsing process alarm information wherein, and in the warning of FF interface function piece indicating active procedure, has realized the indication to process alarm.Because the present invention indicates specifically by process alarm information is resolved rear indication the process alarm of instrument function piece, be different from the prior art rear indication is calculated, resolved to process alarm information, thereby the alarm condition that has truly reflected the instrument function piece has been eliminated the distortion hidden danger that exists in the process alarm indication.
Below respectively by a pure FF control program and a mixing control program, the different update mode of the pin when describing different control configuration.
(1) pure FF control program
In DCS, the user realizes the configuration to the instrument function piece by FF interface function piece is carried out line, and then structure DCS is to the control program of on-the-spot FF intelligence instrument, the instrument function piece can be arranged in same FF intelligence instrument in the control program, also can belong to different FF intelligence instruments.
See also Figure 11, it shows a single loop control program that comprises two FF intelligence instruments.At the DCS layer, functional block FFAI, FFPID, the FFAO that consists of this single loop control program is the FF interface function piece that the instrument function piece of FF fieldbus layer in pairs shines upon, without the DCS internal functional blocks; At FF fieldbus layer, consist of three instrument function pieces of control program, all be arranged in on-the-spot FF smart machine, do not relate to third party's host computer system, then claim such control program pure FF control program.
In the pure FF control program, at FF fieldbus layer, when the instrument function piece at line two ends belongs to same FF intelligence instrument, such as instrument function piece PID and AO among Figure 11, the data interaction of two instrument function interblocks is in the inner realization of FF intelligence instrument, and the fieldbus networks layer does not produce the data interaction message; When the instrument function piece at line two ends did not belong to same FF intelligence instrument, such as instrument function piece AI and PID among Figure 11, two instrument function pieces needed bus network layer at the scene to carry out the mutual of pin data by the reception/published method of FF standard.
But above-mentioned two situations, at FF fieldbus layer, data communication is finished by the FF intelligence instrument under the instrument function piece fully, DCS does not participate in finishing the realization of control program, be in the pure FF control program, the line of DCS layer FF interface function interblock is dotted line, line is that bus layer realizes by the FF intelligence instrument at the scene, the DCS host computer system does not participate in the realization of control program, mainly by FF interface function piece FF instrument function piece is carried out Real Time Monitoring, therefore the speed of pin data renewal speed does not affect on-the-spot control effect.Thereby during pure FF control program, when having guaranteed the control effect, in order to reduce the communication load of whole system network, as shown in Figure 11, the pin of FF interface function and parameter all adopt the view passage to use view command to upgrade.
(2) mix control program
If control program has comprised DCS internal functional blocks and FF interface function piece simultaneously at the DCS layer, at FF fieldbus layer, the realization of control program must be introduced the third party system except comprising on-the-spot FF intelligence instrument, be DCS herein, then claims such control program for mixing control program.
See also Figure 12, the schematic diagram of the mixing control program that it provides for the embodiment of the invention, in the mixing control program shown in Figure 12, FFAI and FFAO are FF interface function piece, instrument function piece AI and the AO of FFAI and FFAO mapping lay respectively among FF intelligence instrument A and the FF intelligence instrument B, PID is positioned at the central controller of DCS, is the internal functional blocks of DCS.
Wherein, the parameter among FFAI and the FFAO utilizes view command to upgrade by view passage as shown in Figure 12.At the DCS layer, FFAI.OUT is connected to PID.PV, PID periodic duty under the scheduling of central controller, specifically not shown in conjunction with PID.PV and PID.SV(), calculate PID.OUT, and pass to downstream module FFAO, therefore the renewal speed of FFAI.OUT directly affects the result of calculation of PID, and then affect the control effect of whole control program.Therefore, FFAI adopts as shown in Figure 12 high-speed channel renewal FFAI.OUT pin.Correspondingly, the pin FFAO.CAS_IN of FFAO receives the output valve from PID, and it is handed down to the AO.CAS_IN pin of instrument function piece AO, thereby realize that PID controls the instrument function piece, the control effect of the whole control program of the same impact of the renewal speed of pin, so the same high-speed channel that adopts of pin data transmission between FFAO and AO.Thereby improved the control effect of mixing control.
The present invention also possesses following advantage except advantage mentioned above:
(1) in the prior art, DCS specifically revises the order realization by revising event trigger parameters to the online modification of instrument function piece, and this mode so that the interface function piece not as the unique operator of instrument function piece, the modules that FF parameter that namely can the docking port functional block among the DCS is made amendment all can carry out the online modification operation to the instrument function piece.Obviously there is following drawback in the interface function piece in the method: because online modification is specifically realized by a plurality of modules, not unique by the realization of interface function piece, thereby the modules that FF parameter that can the docking port functional block is made amendment all need be resolved complicated FF agreement, when the modification event occurs when, produce the parameter modification order, thereby the interface function piece as the representative of instrument function piece is not fully realized it as the proper function of interface, therefore interface function piece of the prior art demands perfection urgently; In addition, above-mentioned by the mode of a plurality of modules to instrument function piece online modification, affected the security of communication.For above-mentioned shortcoming, FF interface function piece of the present invention is specifically by relatively realizing online modification to instrument function piece parameter to service data and Backup Data, this mode makes it can be used as unique Interface realization DCS to the modification of the instrument function piece of FF intelligence instrument, and then so that other module of DCS system can keep existing characteristic, need not identify complicated FF agreement, have better DCS system compatibility; Simultaneously, also improved the security of communication.
(2) FF interface function piece of the present invention and DCS internal functional blocks are fully independent, there be not intersecting of data and algorithm, thereby avoided potential safety hazard and possessed widely application, when the DCS internal functional blocks is upgraded, can not introduce FF interface function piece change, affect FF interface function piece.
(3) FF interface function piece is by sending data on collection, the parsing instrument function piece, carry out the process alarm indication, the alarm condition that can truly reflect the FF intelligence instrument, avoided on calculating, resolve in the instrument function piece, sending data in the prior art, the indication of reporting to the police, thus make process alarm have the shortcoming of distortion hidden danger.
(4) all canonical parameters of support FF functional block comprise feedback pin, and the present invention is aided with the pin pass through mechanism can freely make up complete control program.Increase the pin quality, supported FF functional block pin state transfer, can realize mixing control program.
(5) can be in conjunction with upper computer software, the details of clear indication pin state and enumerated variable improve ease for use.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (9)

1. foundation fieldbus interface function piece, it is characterized in that, be used for as the control of Interface realization DCS to the instrument function piece of FF intelligence instrument, comprise data-carrier store and steering logic module, wherein, described data-carrier store comprises service data storer and backup data storage, and described steering logic module comprises parsing module and online modification module;
Described parsing module be used for the instrument real time data of described instrument function piece is resolved, and the Data Update after will resolving is to described service data storer and described backup data storage;
Described service data storer is for for the outside upper layer module of DCS its data being shown and revising;
Described online modification module, be used for the data of described service data storer and the data of described backup data storage are compared, if comparative result is that the data of the data of described service data storer and described backup data storage are different, described instrument function piece is carried out online modification.
2. FF interface function piece according to claim 1 is characterized in that, described data-carrier store also comprises raw storage, and described raw storage is for the instrument real time data and the buffer memory that send on the receiving instrument functional block.
3. FF interface function piece according to claim 2, it is characterized in that, described parsing module, concrete being used for resolves the data of described raw storage, and the Data Update after will resolving is to described service data storer and described backup data storage.
4. each described FF interface function piece is characterized in that according to claim 1 ~ 3, and the data of depositing in the described data-carrier store comprise parameter and/or pin, wherein:
Described pin is divided into input pin and output pin, and described pin comprises pin value, pin state and pin quality.
5. FF interface function piece according to claim 4 is characterized in that, described online modification module comprises comparison module and write the variable module, wherein:
Described comparison module, be used for the data of described service data storer and the data of described backup data storage are compared, if comparative result is that the data of the data of described service data storer and described backup data storage are different, trigger the described variable module of writing;
Write the variable module, be used for the parameter value that comparative result is different and write to the relevant parameter of described instrument function piece, and this parameter value that copies simultaneously backup data storage this parameter to the service data storer.
6. FF interface function piece according to claim 1 is characterized in that, described FF interface function piece specifically links to each other with the instrument function piece of described FF intelligence instrument by FF gateway interconnect module.
7. FF interface function piece according to claim 4 is characterized in that, described FF interface function piece specifically carries out data communication by the instrument function piece of view passage and/or high-speed channel and described FF intelligence instrument.
8. FF interface function piece according to claim 7 is characterized in that, described parameter is transmitted by described view passage, and described pin selects different passages to transmit according to different connected modes, wherein:
When the pin of FF interface function piece when internal functional blocks among the DCS is connected, pin adopts high-speed channel to transmit; Otherwise pin adopts the view passage to transmit.
9. FF interface function piece according to claim 8 is characterized in that, described steering logic module also comprises data update module, pin state processing module and process alarm processing module, wherein:
Described data update module is used for carrying out the view channel data and upgrades and the high-speed channel Data Update;
Described pin state processing module is for the adaptive processing of carrying out the pin state of pin in DCS pin and the instrument function piece;
Described process alarm processing module be used for to realize enabling and indicating the process alarm of instrument function piece.
CN201210336354.4A 2012-09-12 2012-09-12 Functional block with FF (foundation fieldbus) interface Active CN102854862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210336354.4A CN102854862B (en) 2012-09-12 2012-09-12 Functional block with FF (foundation fieldbus) interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210336354.4A CN102854862B (en) 2012-09-12 2012-09-12 Functional block with FF (foundation fieldbus) interface

Publications (2)

Publication Number Publication Date
CN102854862A true CN102854862A (en) 2013-01-02
CN102854862B CN102854862B (en) 2015-06-10

Family

ID=47401521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210336354.4A Active CN102854862B (en) 2012-09-12 2012-09-12 Functional block with FF (foundation fieldbus) interface

Country Status (1)

Country Link
CN (1) CN102854862B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528871A (en) * 2016-12-06 2017-03-22 爱普(福建)科技有限公司 Method for updating information of engineering data points in industrial control system on line
CN107368757A (en) * 2017-06-02 2017-11-21 九阳股份有限公司 A kind of date storage method of cooking equipment
CN112702247A (en) * 2020-12-18 2021-04-23 杭州和利时自动化有限公司 Hybrid control method and device for FF field bus system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005064460A1 (en) * 2003-12-23 2005-07-14 Intel Corporation Method and apparatus for remote modification of system configuration
CN101159650A (en) * 2007-11-29 2008-04-09 中控科技集团有限公司 Control system including FF protocol H1 network segment and interface arrangement and communication method
CN101639694A (en) * 2009-07-13 2010-02-03 大连理工计算机控制工程有限公司 Control system based on EPA standard and management method thereof
CN102291286A (en) * 2010-06-18 2011-12-21 北京华控技术有限责任公司 Foundation field bus gateway
CN102354165A (en) * 2011-05-30 2012-02-15 浙江中控技术股份有限公司 Method for updating data online, controller and man-machine interactive system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005064460A1 (en) * 2003-12-23 2005-07-14 Intel Corporation Method and apparatus for remote modification of system configuration
CN101159650A (en) * 2007-11-29 2008-04-09 中控科技集团有限公司 Control system including FF protocol H1 network segment and interface arrangement and communication method
CN101639694A (en) * 2009-07-13 2010-02-03 大连理工计算机控制工程有限公司 Control system based on EPA standard and management method thereof
CN102291286A (en) * 2010-06-18 2011-12-21 北京华控技术有限责任公司 Foundation field bus gateway
CN102354165A (en) * 2011-05-30 2012-02-15 浙江中控技术股份有限公司 Method for updating data online, controller and man-machine interactive system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528871A (en) * 2016-12-06 2017-03-22 爱普(福建)科技有限公司 Method for updating information of engineering data points in industrial control system on line
CN106528871B (en) * 2016-12-06 2019-07-26 爱普(福建)科技有限公司 A kind of method of online updating industrial control system project data point information
CN107368757A (en) * 2017-06-02 2017-11-21 九阳股份有限公司 A kind of date storage method of cooking equipment
CN112702247A (en) * 2020-12-18 2021-04-23 杭州和利时自动化有限公司 Hybrid control method and device for FF field bus system and storage medium
CN112702247B (en) * 2020-12-18 2022-08-02 杭州和利时自动化有限公司 Hybrid control method and device for FF field bus system and storage medium

Also Published As

Publication number Publication date
CN102854862B (en) 2015-06-10

Similar Documents

Publication Publication Date Title
CN109831354A (en) Virtual Debugging system based on OPC UA industry communications protocol
CN104932364B (en) The OPC UA conversion equipments and method of a kind of Modbus communications protocol
CN101188624B (en) Grid middleware system based on virtual machine
CA2386272A1 (en) Collaborative design
CN104808592A (en) Numerical control system based on virtual upper computer
CN104298175A (en) Numerical control system based on virtualization technology and method
CN102130966A (en) System architecture for enterprise integrated information platform and method for implementing the same
CN101840228A (en) Method and device for collecting data of equipment of third party in distributed control system
CN110838961B (en) General aviation bus message scheduling system
CN103092072A (en) Experimental system and method of ore grinding process control
CN113821332B (en) Method, device, equipment and medium for optimizing efficiency of automatic machine learning system
CN107832042A (en) One kind is based on embedded software development method
CN102608946A (en) Programmable logic controller (PLC) experimental system
CN112995001A (en) Industrial communication network system
CN102854862B (en) Functional block with FF (foundation fieldbus) interface
CN109839910A (en) Control device, control method and computer readable storage medium
CN203399145U (en) Intelligent interaction service robot based on cloud computing
CN107943476B (en) A kind of computer interlocking software development approach based on model-driven
CN106325242A (en) MES system based on modularized control units
Yang et al. Requirements specification and architecture design for Internet-based control systems
CN106354015B (en) Long-range monitoring and the on-line debugging method of Diagonal Recurrent Neural Network control system
CN102141917A (en) Method for realizing multi-service linkage based on IronPython script language
CN1127190C (en) Communication management device of measuring and control unit in automatization system of transformer station
CN110442338A (en) A kind of emulation mode of Structural analysis and design language AADL model
CN101739483A (en) Mobile AGENT-based distribution interactive type supply chain simulation system

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