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

Functional block with FF (foundation fieldbus) interface Download PDF

Info

Publication number
CN102854862B
CN102854862B CN201210336354.4A CN201210336354A CN102854862B CN 102854862 B CN102854862 B CN 102854862B CN 201210336354 A CN201210336354 A CN 201210336354A CN 102854862 B CN102854862 B CN 102854862B
Authority
CN
China
Prior art keywords
data
function block
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.)
Active
Application number
CN201210336354.4A
Other languages
Chinese (zh)
Other versions
CN102854862A (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

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 block
Technical field
The invention belongs to field of industrial automation control and fieldbus field, particularly relate to a kind of FF(Foundation Fieldbus, foundation fieldbus) interface function block.
Background technology
FF technology is a kind of field bus technique aiming at 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 that can realize between equipment, thus realize the best system integration.At present, FF has obtained the support of world's major control equipment supplier, becomes international standard, has fabulous prospect at industrial control field, correspondingly, the FF intelligent instrument in 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, be doomed to gather around at industrial control field to hold out broad prospects.
Instrument function block is the basic control unit of FF field bus device, and support the DCS of FF technology, mainly around how supporting that the instrument function block in FF field bus device designs in dcs better, to realize carrying out control program configuration, in real time monitoring, online modification and the controlling functions such as collection of reporting to the police to it.
At present, DCS specifically provides a kind of interface function block in dcs to the control of FF, and as the representative of instrument function block, DCS realizes the real-time monitoring to instrument function block by this interface function block.In prior art, DCS is particular by amendment event trigger parameters amendment order, realize the online modification to instrument function block, but the method no matter before and after amendment event parameter value whether change, all can produce parameter modification order, during as the common parameter in dcs by custom feature block amendment instrument function block, in each cycle of custom feature block computing, it all can issue amendment parameter command to instrument function block, namely no matter instrument function fast in data the need of amendment, custom feature block all can perform retouching operation in each cycle of its computing, amendment parameter command is issued to instrument function block, thus bus network network layers generation message at the scene can be continued, cause 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 block, when realizing that only parameter needs amendment in instrument function block, just online modification is carried out to it, and then reduce network load.
For this reason, the invention provides following technical scheme:
A kind of foundation fieldbus interface function block, for as the control of Interface realization DCS to the instrument function block of FF intelligent 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, for resolving the instrument real time data of described instrument function block, and by the Data Update after parsing to described service data storer and described backup data storage;
Described service data storer, for show its data for the outside upper layer module of DCS and revise;
Described online modification module, 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 described service data storer are different with the data of described backup data storage, online modification is carried out to described instrument function block.
Preferably, described data-carrier store also comprises raw storage, the instrument real time data that described raw storage send in receiving instrument functional block buffer memory.
Preferably, described parsing module, specifically for resolving the data of described raw storage, and by the Data Update after parsing to described service data storer and described backup data storage.
Preferably, the data deposited in 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 writes variable module, wherein:
Described comparison module, 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 described service data storer are different with the data of described backup data storage, described in triggering, write variable module;
Write variable module, for parameter values different for comparative result being write to the relevant parameter in described instrument function block, and this parameter value simultaneously copying backup data storage is to this parameter in service data storer.
Preferably, described FF interface function block is connected especially by the instrument function block of FF gateway interconnect module with described FF intelligent instrument.
Preferably, described FF interface function block carries out data communication especially by the instrument function block of view passage and/or high-speed channel and described FF intelligent 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 block is connected with the internal functional blocks in DCS, pin adopts high-speed channel to transmit; Otherwise pin adopts view passage to transmit.
Preferably, described steering logic module also comprises data update module, pin status processing module and process alarm processing module, wherein:
Described data update module, upgrades and high-speed channel Data Update for carrying out view channel data;
Described pin status processing module, for the adaptive processing of the pin state for carrying out pin in pin and instrument function block in DCS;
Described process alarm processing module, for realizing the enable and instruction of the process alarm to instrument function block.
Visible, the outside upper layer module (as host computer) of DCS can by data in the service data storer in the present invention are monitored in real time and online modification realization to the real-time monitoring of instrument function blocks of data and online modification, and online modification module compares especially by the data of service data storer and backup data storage, when both data are different to instrument function block in data carry out online modification, namely only in service data storer, data are just modified to data in instrument function block by after the outside upper layer module amendment of DCS, thus overcome the problems referred to above, achieve only in instrument function block data need amendment time, just perform the object of corresponding modify operation, and then reduce network load.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 be the FF interface function block that provides of the embodiment of the present invention based on system network architecture schematic diagram;
Fig. 2 is a kind of structural representation of the FF interface function block that the embodiment of the present invention provides;
Fig. 3 is the principle schematic of the online modification that the embodiment of the present invention provides;
Fig. 4 is the another kind of structural representation of the FF interface function block that the embodiment of the present invention provides;
Fig. 5 is that the steering logic module that provides of the embodiment of the present invention is to the control schematic diagram of data in three data-carrier stores;
Fig. 6 be the FF interface function block that provides of the embodiment of the present 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 block that the embodiment of the present invention provides;
Fig. 8 is the process flow diagram of the online modification that the embodiment of the present invention provides;
Fig. 9 is the high-speed channel Data Update process flow diagram that the embodiment of the present invention provides;
Figure 10 is that the view channel data that the embodiment of the present invention provides upgrades process flow diagram;
Figure 11 is the structural representation of the pure FF control program that the embodiment of the present invention provides;
Figure 12 is the Hybrid mode scenario-frame schematic diagram that the embodiment of the present invention provides.
Embodiment
For the purpose of quoting and know, the technical term hereinafter used, to write a Chinese character in simplified form or summary of abridging is explained as follows:
The nerve center of central controller: dcs DCS.It receives the input signal from test side, performs inner control logic, finally execution result is exported to on-the-spot end and drives topworks.
DCS system functional block: be positioned at central controller, is made up of data and steering logic, for user provides modular control method.By the connection configuration of system functional block, realize complete control program.
Internal functional blocks: belong to DCS system functional block.Mainly realize a steering logic, the complete built-in central controller of its control algolithm, is completed separately by internal functional blocks self, does not participate in external communication.
FF interface function block: belong to DCS system functional block, also referred to as mapping function block.The real time data of external meters functional block is mapped to its data district, to realize the mapping of external function block at DCS.
Instrument function block: do not belong to DCS system functional block is external function block, also referred to as external function block or FF functional block for DCS.External function block in this programme refers to the instrument function block in FF field bus device.Be made up of data and logic.Data are sources of mapping function block, according to the steering logic that FF protocol realization specifies.
The parameter of mapping function block: the part belonging to mapping function blocks of data, does not support and other functional block lines.
The pin of mapping function block: the part belonging to mapping function blocks of data, supports and other functional block lines.
FF gateway interconnect module: the communication module connecting central controller and FF field bus device, carries out communication by DCS system agreement and central controller, carries out communication by standard FF agreement and FF field bus device.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of FF interface function block, for as the control of Interface realization DCS to the instrument function block of FF intelligent instrument, FF interface function block can be built in the central controller of DCS, and each instrument function block maps in pairs.Below to realized by above-mentioned FF interface function block DCS to the control of instrument function block based on system network architecture describe in detail.
Refer to Fig. 1, the PC(personal computer of the Tu1Zhong the superiors, personal computer) can be field engineer station, active station, server etc., it is functionally equivalent to host computer, PC carries out communication by the central controller of Industrial Ethernet and DCS, realize configuration download, online modification, in real time monitoring, report to the police browse, the function such as diagnosis; Central controller is by system I/O(input/output, I/O) module and FF gateway interconnect module respectively with the field instrument of bottom, namely general instrument and FF intelligent instrument carry out communication, central controller receives from the on-the-spot input signal that system I/O module and FF gateway interconnect module are sent, and corresponding steering logic is performed to it, afterwards, export net result to field instrument, thus realize the control to field instrument.
Wherein, particularly, system I/O module obtains the simulating signal of the general instrument be attached thereto, A/D(Analog/Digital is carried out to this simulating signal, analog/digital) conversion after, above deliver to central controller, receive the output data of central controller simultaneously, and after D/A (Digital/Analog, digital-to-analog) conversion is carried out to it, export lower floor's general instrument to.
FF gateway interconnect module is the communication conversion module connecting FF intelligent instrument and DCS in field instrument, and it is specifically connected with the FF interface function block (not shown) being built in central controller in DCS.FF gateway interconnect module obtains the data of the complete digital signal form of FF intelligent instrument according to FF standard agreement, and following process is carried out to these data: if the transmission of this data acquisition high-speed channel (hereafter addressing), after then FF gateway interconnect module obtains these data, by DCS internal agreement, protocol conversion process is carried out to it, and deliver to central controller by the data after conversion; If this data acquisition view passage (hereafter addressing) transmits, then, after FF gateway interconnect module obtains these data, do not deal with and directly deliver to central controller by it.Correspondingly, FF gateway interconnect module accepts the output data from central processing unit simultaneously, during high-speed channel, carries out protocol conversion, and be sent to FF intelligent instrument to the output data received according to FF standard agreement; During view passage, directly the output data received are sent to FF intelligent instrument.
Above-mentioned network structure, the data achieved in whole system are penetrating.Active station representated by PC or engineer station etc. can build control program between all field instruments of central controller and lower floor thereof, orecontrolling factor logic between the general instrument that can realize the 4 ~ 20mA signal hung under common I/O module (as said system I/O module), between the FF intelligent instrument hung under FF gateway interconnect module, the field instrument of the bottom is monitored in real time, online modification, warning browse and the function such as inline diagnosis, thus the field resources of abundant rational management whole system, realize the Hybrid mode of DCS and FF field bus device.
The following embodiment of the present invention will describe in detail to FF interface function block of the present invention based on above-mentioned network structure.
Embodiment one
Refer to Fig. 2, Fig. 2 shows a kind of structure of above-mentioned FF interface function block, 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, for resolving the instrument real time data of described instrument function block, and by the Data Update after parsing to described service data storer 110 and described backup data storage 120.
Service data storer 110, for show its data for the outside upper layer module of DCS and revise.
Particularly, service data storer 110 is as the data buffer open to the outside upper layer module of DCS, and upper layer module such as outside such as DCS such as active station or engineer station etc.s can be used as host computer and reads or revise data in service data storer 110 according to DCS system internal communication mode.
Backup data storage 120 is the data buffers to the data redundancy definition in service data storer 110, and two data-carrier store inner structure definition are identical.Data in backup data storage 120 are internal datas of FF interface function block, and other modules outside are invisible.
Wherein, data-carrier store 100 defines its data structure according to FF standard agreement, and with FF functional block parameter one_to_one corresponding, the data deposited in data-carrier store 100 specifically comprise parameter and/or pin, and parameter does not support line, and pin supports 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 instrument function block, can also support to be connected with the internal functional blocks of other FF interface function blocks and DCS.Pin value and pin state distinguish value and the state of pin in corresponding instrument function block, pin quality is the data that FF interface function block of the present invention increases, the object increasing pin quality realizes state transfer when instrument function block is connected with the internal functional blocks pin of DCS, ensures that the fault handling of control program is complete and consistent.
Particularly, the data in service data storer 110 and backup data storage 120 are designated as service data and Backup Data respectively.
Online modification module 220, 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, online modification is carried out to instrument function block.
Particularly, online modification module 220 comprises comparison module and writes variable module.Comparison module, for the data in the data in service data storer 110 and backup data storage 120 being compared, if comparative result is both data differences, triggers and writing variable module, otherwise, do not process.Write variable module, for by service data storer 110 through the amended parameter value of the outside upper layer module of DCS, namely the parameter value that comparative result is different writes to the relevant parameter in described instrument function block, and the parameter value of this parameter in backup data storage 120 is copied to this parameter in service data storer simultaneously.
Wherein, refer to Fig. 3, the specific works principle of online modification module is: write the online modification that variable module is responsible for processing all FF canonical parameters, come into force to on-the-spot FF intelligent instrument.Comparison module judges one by one in units of the parameter that FF agreement specifies, whether compare service data identical with the same parameters in Backup Data, if identical, then this parameter is not revised by host computers such as PC, otherwise, then this parameter there occurs online modification, now, write variable module and initiate write order according to FF standard agreement, the currency of this parameter in service data is issued to the relevant parameter of corresponding instrument functional block, and this parameter value in Backup Data is copied to this parameter in service data, then start the comparison of next parameter.Wherein, online modification module in Fig. 3, write variable module and comparison module does not specifically illustrate, it all belongs to steering logic module.
FF interface function block of the present invention, by above Data Placement mode and steering logic, achieves the real-time monitoring to parameter in instrument function block and online modification.
Visible, the outside upper layer module of DCS can by the data of the service data storer 110 in the present invention are monitored in real time and online modification realization to the real-time monitoring of instrument function blocks of data and online modification, and online modification module 220 compares especially by the data of service data storer 110 and backup data storage 120, when both data are different to instrument function block in data carry out online modification, namely only in service data storer 110 data by after the amendment of the host computer such as PC just to instrument function block in data modify, thus overcome the problems referred to above, achieve only in instrument function block data need amendment time, just perform the object of corresponding modify operation, and then reduce network load.
Embodiment two
On the basis of above-described embodiment one, refer to Fig. 4, in the embodiment of the present invention two, data-carrier store 100 can also comprise raw storage 130, the instrument real time data that this raw storage 130 send in receiving instrument functional block buffer memory.
Particularly, raw storage 130 is reception buffer zones instrument function block sending data, 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, is respectively used to deposit view 2 in instrument function block, view 3 and view 4 data.
In the present embodiment two, parsing module specifically for resolving the data of described raw storage, and by the Data Update after resolving to described service data storer and described backup data storage.
Wherein, corresponding to above-mentioned service data and Backup Data, the data in raw storage 130 are designated as raw data.Be the control schematic diagram of steering logic module to data in three data-carrier stores see Fig. 5, Fig. 5, detailed process please refer to the above-mentioned description to module each in 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 present invention three, steering logic module also can comprise data update module, pin status processing module and process alarm processing module, wherein:
Data update module, upgrades and express passway Data Update for carrying out view channel data;
Pin status processing module, for carrying out the adaptive processing of the pin state of pin in pin and instrument function block in DCS;
Process alarm processing module, for realizing the enable and instruction of the process alarm to instrument function block.
The structure and fuction of other modules is identical with embodiment one or embodiment two, specifically refers to related content in embodiment one or two, no longer describes in detail herein.
In the present invention, FF interface function block is built in the central controller of DCS, is made up of data-carrier store and steering logic module.During concrete enforcement, can by the configuration software of DCS dynamic assigning memory in central controller, the data structure of data-carrier store in instantiation FF interface function block, maps on-the-spot instrument function block one to one.Solidify in central controller to the steering logic that data in data-carrier store process, the steering logic module of multiple FF interface function blocks of same type shares with a steering logic.
FF interface function block of the present invention is connected with the instrument function block in FF intelligent instrument especially by FF gateway interconnect module, and data communication adopts two kinds of passages: high-speed channel, view passage.Wherein, high-speed channel can realize fast transport, the renewal of data, but a pin renewal can produce a message, and bus network network layers can take more bandwidth at the scene, and network load is high; View channel data renewal speed is comparatively slow, but a message can once obtain multiple parameter, and bus layer load is lower at the scene, and to sum up, two kinds of passages cut both ways.
Choosing comprehensively speed of the present invention and performance, for different data, carry out transmitting, upgrading: parameter selects view channel transfer all the time as follows; Pin selects high-speed channel or view passage to carry out transmitting, upgrading according to different connected modes, and particularly, when the pin of FF interface function block is connected with the internal functional blocks in DCS, pin adopts high-speed channel to transmit; Otherwise pin adopts view passage to transmit.Hereafter describe in detail to two kinds of different modes.
In system network architecture, FF interface function block is dispatched by central controller, carries out data interaction with other functional blocks, and the cycle performs the steering logic in steering logic module, manages, safeguards its data.Refer to Fig. 6, Fig. 6 is FF interface function block of the present invention and central processing unit, data interaction schematic diagram between FF gateway interconnect module and FF intelligent instrument, FF gateway interconnect module at the scene network layer collects the data of on-the-spot FF equipment, central controller is delivered to by the data of collection by high-speed channel or view passage, FF interface function block is by its steering logic module of scheduled for executing of central controller, from high-speed channel data buffer and self receive data search corresponding data, and corresponding steering logic is performed to it: be DCS internal data by FF standard agreement by the Data Analysis that instrument function block send, realize the monitoring of DCS to FF equipment, the process of FF interface function block, from the parameter modification of engineer station, produces amendment order, the Data Update from DCS internal functional blocks received by pin is in high speed channel data buffer district, data in above-mentioned amendment order and high-speed channel data buffer are by central controller and FF gateway interconnect module, be issued to on-the-spot instrument function block, thus achieve the control of DCS to FF smart machine.
More than describe in detail FF interface function block of the present invention in system network architecture with the external data reciprocal process of other functional blocks, refer to Fig. 7, FF interface function block of the present invention flow chart of data processing is therein as follows:
S1: the working condition judging gateway interconnect module and the FF equipment (as instrument function block) be connected with this FF interface function block, if there is fault, goes to S2; Otherwise, go to S3.
S2: generation module is reported to the police, and output pin state is set to Bad, terminates to exit.
S3: online data amendment process.
Particularly, steering logic module is to three data-carrier stores: the data in raw storage, service data storer and backup data storage are carried out process and safeguarded, online modification module wherein compares based on to the parameter in service data storer and backup data storage, realize carrying out online modification in instrument function block in requisition for the parameter of amendment, refer to Fig. 8, the detailed process of above-mentioned online modification is as follows:
S31: compare same parameters whether identical with backup data storage at service data storer, if identical, then performs step S34; If different, then perform step S32.
S32: send and write variable order, relevant parameter in instrument function block is modified.
S33: current parameter value in backup data storage is copied to this parameter in service data storer.
S34: judge whether to travel through all FF canonical parameters, if so, then terminate; Otherwise, perform step S35.
S35: start next parameter, repeats above step.
S4: input pin state processing.
It should be noted that herein, support at the DCS based on a set of widespread use, when controlling fieldbus, the internal functional blocks of DCS has the fault delivery mechanism of self, and FF standard agreement defines the state transfer mechanism of instrument function block, usually there is conflict in two kinds of mechanism, the pin being embodied in instrument function block comprises pin value and pin state, and the pin of the internal functional blocks of DCS does not comprise pin state, thus when building the control program that DCS controls FF smart machine based on the present invention, if the program is the Hybrid mode scheme comprising DCS internal functional blocks and instrument function block, then can there is the not reciprocity situation of line two ends pinout information when carrying out line to the pin under this control program.In order to strengthen compatibility of the present invention, the pin of FF interface function block of the present invention is on the basis including pin value and pin state, in turn introduce pin quality, and the problem that under adopting corresponding pin state transfer mechanism solution such scheme, pinout information is not reciprocity.
Below the pin state transfer mechanism that FF interface function block of the present invention adopts is introduced:
When realize one be all made up of instrument function block pure FF control program time, pin line between FF interface function block, only need carry out line to pin value, the now pin at line two ends, can carry out pin value and pin state is transmitted simultaneously, pin quality is as the criterion with pin state and calculates.
When realizing one and comprising the Hybrid mode scheme of DCS internal functional blocks and instrument function block, because the pin of DCS internal functional blocks does not comprise pin state, then need connection two lines, pin value line and pin quality line.When output pin is connected with DCS internal functional blocks, by pin state computation pin quality, and pin quality is linked to the pin quality of its downstream functional block, carry out fault handling for it; When input pin is connected with DCS internal functional blocks, the pin quality of DCS internal functional blocks connects to the pin quality of FF interface function block, pin state value according to pin Mass Calculation pin state value, and is issued to instrument function block by FF interface function block together with pin value.By above-mentioned state transfer mechanism, when the present invention successfully achieves DCS internal functional blocks and the mixed connection of instrument function block, the transmission of status information.The compatible well internal functional blocks of original DCS.
Based on above-mentioned pin state transfer mechanism, in step S4, input pin state processing is specifically performed by described pin status processing module, and processing procedure is: when input pin is connected with FF interface function block or does not connect, by pin state computation pin quality; When input pin is connected with DCS internal functional blocks, by pin Mass Calculation pin state.
S5: high-speed channel Data Update process.
Wherein, the process of high-speed channel Data Update is specifically performed by above-mentioned data update module, refers to Fig. 9, and concrete processing procedure is as follows:
S51: judge whether input pin is connected with DCS internal functional blocks, if connect, performs step S52; Otherwise, perform step S53.
S52: upgrade the output buffer memory of input pin data to high speed channel data buffer district, and input pin data are issued to instrument function block by FF interface function block and gateway interconnect module.
S53: judge whether output pin is connected with DCS internal functional blocks, if connect, performs step S54, otherwise terminates.
S54: upgrade the input-buffer data of high-speed channel data buffer to output pin.
It should be noted that herein, high-speed channel data buffer is the central controller that the is positioned at DCS a slice contiguous memory independent of FF interface function block, is the data interaction district between FF gateway interconnect module and central controller when adopting high-speed channel to transmit data.
S6: view channel data update process.
The view channel data update process of this step is performed by above-mentioned data update module equally, its specifically in conjunction with timing and more new logo view channel data is upgraded.Refer to Figure 10, processing procedure is as follows:
S61: judge whether viewdata update time (corresponding above-mentioned timing) arrives, if arrive, then performs step S62, otherwise terminates.
S62: the more new logo judging three-view diagram data-carrier store data, is designated False if upgrade, then perform step S66; If upgrade and be designated True, then perform step S63.
S63: the data of resolving three-view diagram data-carrier store in raw storage by FF standard agreement, by the Data Update after parsing to service data storer and backup data storage, and is set to False by the more new logo of correspondence.
S64: judge whether static version number upgrades, if result is True, performs step S65.
S65:FF interface function block reads view 2 to the initiation of instrument function block and view 4 is ordered.
S66: the more new logo judging the second viewdata memory data, is designated False if upgrade, and performs step S68; If upgrade and be designated True, perform step S67.
S67: the data of resolving the second viewdata storer in raw storage by FF standard agreement, by the Data Update after parsing to service data storer and backup data storage, and is set to False by the more new logo of correspondence.
S68: the more new logo judging the 4th viewdata memory data, is designated True if upgrade, and performs step S69, is designated False, then terminates if upgrade.
S69: the data of resolving the 4th viewdata storer in raw storage by FF standard agreement, by the Data Update after parsing to service data storer and backup data storage, and is set to False by the more new logo of correspondence.
View channel data update process, specifically in conjunction with timing and more new logo carry out Data Update, avoid data and frequently unnecessarily upgrade, and then reduce system loading.
S7: output pin state processing.
Particularly, no matter the connection of output pin, all passes through pin state computation pin quality.
S8: process alarm process.
This process is performed by process alarm processing module, specifically comprises and carries out enable and instruction to the process alarm of instrument function block.
Particularly, FF standard agreement defines the process alarm that each standard feature block (comprising instrument function block) is supported, canonical parameter ALARM_SUM provides enable setting and the process alarm information of process alarm.
Based on the above, carrying out detailed process that is enable and instruction to the process alarm of instrument function block is: FF interface function block provides enable parameter of reporting to the police, by writing variable order, the enable item of warning of enable setting in amendment instrument function block, thus it is enable to realize process alarm; FF interface function block obtains the canonical parameter ALARM_SUM of instrument function block, according to FF standard agreement parsing process alarm information wherein, and indicates active procedure to report to the police in FF interface function block, achieves the instruction to process alarm.Because the process alarm instruction of the present invention to instrument function block resolves rear instruction particular by process alarm information, be different from prior art and process alarm information is calculated, resolve rear instruction, thus truly reflect the alarm condition of instrument function block, eliminate the distortion hidden danger existed in process alarm instruction.
Below respectively by a pure FF control program and a Hybrid mode scheme, the different update mode of different pin when controlling configuration is described.
(1) pure FF control program
In dcs, user, by carrying out line to FF interface function block, realizes the configuration to instrument function block, and then structure DCS is to the control program of on-the-spot FF intelligent instrument, in control program, instrument function block can be arranged in same FF intelligent instrument, also can belong to different FF intelligent instruments.
Refer to Figure 11, it illustrates the unity loop control scheme that comprises two FF intelligent instruments.At DCS layer, form the functional block FFAI of this unity loop control scheme, instrument function block that FFPID, FFAO are FF fieldbus layer in pairs carries out the FF interface function block that maps, without DCS internal functional blocks; At FF fieldbus layer, form three instrument function blocks of control program, be all 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 pure FF control program, at FF fieldbus layer, when the instrument function block at line two ends belongs to same FF intelligent instrument, as instrument function block PID and AO in Figure 11, the data interaction of two instrument function interblocks realizes in FF intelligent instrument inside, and fieldbus network network layers does not produce data interaction message; When the instrument function block at line two ends does not belong to same FF intelligent instrument, as instrument function block AI and PID in Figure 11, two instrument function blocks need bus network network layers 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, the FF intelligent instrument of data communication completely belonging to instrument function block completes, DCS does not participate in the realization that can complete control program, namely in pure FF control program, the line of DCS layer FF interface function interblock is dotted line, line is that bus layer is realized by FF intelligent instrument at the scene, DCS host computer system does not participate in the realization of control program, mainly through FF interface function block, FF instrument function block is monitored in real time, therefore the speed of pin data renewal speed, do not affect on-the-spot control effects.Thus during pure FF control program, while ensure that control effects, 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 view passage to use view command to upgrade.
(2) Hybrid mode scheme
If control program contains DCS internal functional blocks and FF interface function block at DCS layer simultaneously, at FF fieldbus layer, the realization of control program must introduce Third party system except comprising on-the-spot FF intelligent instrument, is DCS herein, then claims such control program to be Hybrid mode scheme.
Refer to Figure 12, the schematic diagram of its Hybrid mode scheme provided for the embodiment of the present invention, in Hybrid mode scheme shown in Figure 12, FFAI and FFAO is FF interface function block, instrument function block AI and AO that FFAI and FFAO maps lays respectively in FF intelligent instrument A and FF intelligent instrument B, PID is positioned at the central controller of DCS, is the internal functional blocks of DCS.
Wherein, the parameter in FFAI and FFAO utilizes view command to upgrade by view passage as shown in Figure 12.At 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 effects of whole control program.Therefore, FFAI adopts high-speed channel as shown in Figure 12 to upgrade FFAI.OUT pin.Correspondingly, the pin FFAO.CAS_IN of FFAO receives the output valve from PID, and be handed down to the AO.CAS_IN pin of instrument function block AO, thus realize PID instrument function block is controlled, the renewal speed of pin affects the control effects of whole control program equally, and therefore between FFAO and AO, pin data transmission adopts high-speed channel equally.Thus improve the control effects of Hybrid mode.
The present invention, except advantage mentioned above, also possesses following advantage:
(1) in prior art, DCS realizes particular by amendment event trigger parameters amendment order the online modification of instrument function block, and which makes interface function block not as the operator that instrument function block is unique, namely all online modification operation can be carried out to instrument function block by the FF parameter of the docking port functional block modules of modifying in DCS.In the method obviously there is following drawback in interface function block: because online modification is specifically realized by multiple module, uniquely do not realized by interface function block, thus can all need to resolve complicated FF agreement by the FF parameter of the docking port functional block modules of modifying, when there is amendment event, produce parameter modification order, thus fully do not realize its proper function as interface as the interface function block of the representative of instrument function block, therefore interface function block of the prior art demands perfection urgently; In addition, above by the mode of multiple module to instrument function block online modification, have impact on the security of communication.For above-mentioned shortcoming, FF interface function block of the present invention is especially by the online modification realized the comparison of service data and Backup Data instrument function block parameter, which makes it can be used as unique interface and realizes the amendment of DCS to the instrument function block of FF intelligent instrument, and then make other module of DCS system can keep existing characteristic, complicated FF agreement need not be identified, there is better DCS system compatible; Meanwhile, the security of communication is also improved.
(2) FF interface function block of the present invention and DCS internal functional blocks completely independent, there is not intersecting of data and algorithm, thus avoid potential safety hazard and possess application widely, the change of FF interface function block can not be introduced when DCS internal functional blocks is upgraded, affect FF interface function block.
(3) FF interface function block by collect, resolve instrument function block on send data, carry out process alarm instruction, truly can reflect the alarm condition of FF intelligent instrument, avoid in prior art and send data by calculating, resolving in instrument function block, carry out warning instruction, thus make process alarm there is the shortcoming of distortion hidden danger.
(4) support all canonical parameters of FF functional block, comprise feedback pin, the present invention is aided with pin pass through mechanism can freely build complete control program.Add pin quality, support FF functional block pin state transfer, Hybrid mode scheme can be realized.
(5) can in conjunction with upper computer software, the details of clear instruction pin state and enumerated variable, improve ease for use.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles 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 (8)

1. a foundation fieldbus interface function block, it is characterized in that, for as the control of Interface realization DCS to the instrument function block of FF intelligent 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, for resolving the instrument real time data of described instrument function block, and by the Data Update after parsing to described service data storer and described backup data storage;
Described service data storer, for show its data for the outside upper layer module of DCS and revise;
Described online modification module, 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 described service data storer are different with the data of described backup data storage, online modification is carried out to described instrument function block;
Described online modification module comprises comparison module and writes variable module, wherein:
Described comparison module, 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 described service data storer are different with the data of described backup data storage, described in triggering, write variable module;
Write variable module, for parameter values different for comparative result being write to the relevant parameter in described instrument function block, and this parameter value simultaneously copying backup data storage is to this parameter in service data storer.
2. FF interface function block according to claim 1, it is characterized in that, described data-carrier store also comprises raw storage, the instrument real time data that described raw storage send in receiving instrument functional block buffer memory.
3. FF interface function block according to claim 2, it is characterized in that, described parsing module, specifically for resolving the data of described raw storage, and by the Data Update after parsing to described service data storer and described backup data storage.
4. the FF interface function block according to any one of claims 1 to 3, it is characterized in that, the data deposited in 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 block according to claim 1, is characterized in that, described FF interface function block is connected especially by the instrument function block of FF gateway interconnect module with described FF intelligent instrument.
6. FF interface function block according to claim 4, is characterized in that, described FF interface function block carries out data communication especially by the instrument function block of view passage and/or high-speed channel and described FF intelligent instrument.
7. FF interface function block according to claim 6, 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 block is connected with the internal functional blocks in DCS, pin adopts high-speed channel to transmit; Otherwise pin adopts view passage to transmit.
8. FF interface function block according to claim 7, is characterized in that, described steering logic module also comprises data update module, pin status processing module and process alarm processing module, wherein:
Described data update module, upgrades and high-speed channel Data Update for carrying out view channel data;
Described pin status processing module, for carrying out the adaptive processing of the pin state of pin in pin and instrument function block in DCS;
Described process alarm processing module, for realizing the enable and instruction of the process alarm to instrument function block.
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 CN102854862A (en) 2013-01-02
CN102854862B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112702247B (en) * 2020-12-18 2022-08-02 杭州和利时自动化有限公司 Hybrid control method and device for FF field bus system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373498B2 (en) * 2003-12-23 2008-05-13 Intel Corporation Method and apparatus for updating a system configuration through an active or passive update
CN101159650B (en) * 2007-11-29 2010-12-01 中控科技集团有限公司 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
CN102354165B (en) * 2011-05-30 2013-07-10 浙江中控技术股份有限公司 Method for updating data online and device therefor

Also Published As

Publication number Publication date
CN102854862A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN1178113C (en) Network accessible interface for process control network
CN101840228B (en) Method and device for collecting data of equipment of third party in distributed control system
CN100514233C (en) EPA on-site controller based on SOPC
CN104135533B (en) A kind of system and method for industrial data transmission
CN105138409B (en) Train schedule chart workout system and method based on multi-process
CN1798141A (en) Remote Configuration Monitoring System Conforming to OPC Standard
CN103501047A (en) Intelligent fault wave recording main station information management system
CN102685134A (en) Communication managing machine capable of being comprehensively realized based on extensible markup language and dynamic library
CN110838961B (en) General aviation bus message scheduling system
CN102650869A (en) Cloud manufacturing serve access terminal for machine tool equipment
CN102929224B (en) Condition acquisition controller (CAC) for power transformer equipment and system control method
CN102664953B (en) High flux distributed type simulation support platform, system and simulation method based on high level architecture (HLA)
CN107797816A (en) FPGA program online updating circuits
CN106391482A (en) Parcel sorting machine control method and system based on cloud computing
CN103532749A (en) Main station information management system
CN103092072A (en) Experimental system and method of ore grinding process control
CN102854862B (en) Functional block with FF (foundation fieldbus) interface
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN107832042A (en) One kind is based on embedded software development method
CN103577355B (en) A kind of DCS analog machines back-up disk interface processing method and system
CN112995001A (en) Industrial communication network system
CN106790403A (en) Realize the method for mobile cloud computing halfpace and realize distributed method
CN109839910A (en) Control device, control method and computer readable storage medium
CN112068522A (en) Reconfigurable production line manufacturing control system, method, and medium
CN112055047A (en) Data communication method based on publishing and subscribing for intelligent coal-fired power plant

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