A kind of realization method and system of device drives controller assembliesTechnical field
The present invention relates to Industrial Automation Software control technology field more particularly to a kind of device drives controller assembliesRealization method and system.
Background technique
Currently, many large scale industry control system project demands are changeable, control function is complicated, hardware system is often integratedA large amount of engineering equipment, the quantity of related project data point is also very huge, and especially the large-scale firepower in China is sent outIn power plant, the quantity up to hundreds of thousands that output point is physically entered as unit capacity constantly increases, in engineering is even up to a million, isMeet equipment of industrial product level security reliable demand for control, the drive control device of field engineering equipment is mainly by by phaseThe control logic answered is associated with specified inputoutput data point to realize, what so-called device drives controller referred to is exactly a kind ofCan driving equipment complete the control logic unit of specific control operation, it is certain that major function is that input order to user carries outLogical operation, make a series of chain judgement, determine whether input order occurs and meet all execution conditions, to produceRaw corresponding output order.The controller is to be connected the instruction of equipment control logic and gongwu input and output point that user writesNecessary functional unit, while be also engineering equipment can correct, safe operation important guarantee, to industrial control systemSafety in production play the role of it is very important.
However, in currently available technology the development and application of control system equipment drive control device be primarily present it is followingProblem:
1, component is closed.As shown in Fig. 2, existing equipment is driven due to design of Configuration Software specification, use habit etc.Movement controller component be usually all producer dispatch from the factory configuration software product when, it is packaged in advance in the form of functional block etc., for engineeringCalling when teacher writes Logical Configuration, such as the sequence functions of the equipments block HSSCS of HOLLiAS MACS product.This mode has veryBig limitation, engineer is in development system engineering logical process, if hardware fault occurs or generates new demand for control to becomeMore, original component is unable to satisfy engineer application needs, must just transfer to producer's re-optimization, and this mode seriously affectsThe development efficiency of control logic and its flexibility of application.
2, poor universality.The control system integration of many integrated mills DCS system or PLC in a variety of different manufacturers sourcesSystem, such as the coal handling system of certain thermal power plant's generating set use OMRON CS1D series of PLC, and boiler system uses SIEMENSS7400 series of PLC, ash disposal system use AB-ControlLogix series of PLC.Although the included configuration software of different manufacturers is compiledCheng Yuanli is similar, but programming mode and its instruction format have very big difference, also result in its included device drives controlDevice assembly processed can not be general, and multiplexing capacity is poor.
3, it can not visualize.It is used currently, the device drives controller of many producers is only used as single logical operation component,Industrial production user can not directly carry out the logical design work of device drives controller in configuration software, can not also understand thisThe logical operation process of component internal leverages the engineering development experience of user, answers especially for Engineering Simulation trainingIt is totally unfavorable for.
In view of this, it is necessary to propose a kind of implementation method of general, visual device drives controller to solveThe above problem.The present invention is based on the deficiencies in the prior art, and device drives controller assemblies can be converted by proposing one kindFor the method for executable general control logic figure, this method is using the configuration mode of unit module come development equipment drive controlThe logic of device, and a kind of design specification of general control logic is provided, there is open good, visualization, restructural, versatilityBy force, the features such as programming is simple and readable good, can improve significantly the flexibility of device drives controller application, to be promotedThe efficiency and quality that control system logic is established reduce the cost and risk of exploitation and maintenance.
Summary of the invention
One of the technical problem to be solved in the present invention is to provide a kind of implementation method of device drives controller assemblies,Both overcome traditional equipment drive control device assembly closing, visualization is poor, can not reconstruct the defect of modification, also solve showWith the presence of device drives controller versatility in technology is insufficient, flexibility is poor, readability is poor, and be difficult to different hardware system itBetween transplanting and shared, hardly possible meets the technical issues of changeable control of engineer application requires.
One of the technical problem to be solved in the present invention is achieved in that a kind of realization side of device drives controller assembliesMethod includes the following steps:
The control logic figure of step 10, design, editing equipment drive control device, the control logic figure pass through data interactionInterface reads the user's control instruction of former engineering system and the control logic of output equipment drive control device instructs, and completes and former workThe connection of journey system;The data interaction interface is by the corresponding input-output unit module composition of the control logic figure;
The logical algorithm of the control logic figure of device drives controller is converted into currently by step 20 by middleware componentThe executable program that hardware platform and its instruction system are supported, runs the logical algorithm, and by operation result data correlationIt is physically entered on output point to corresponding.
Further, the step 10 further comprises:
Step 11 designs and edits general control logic template, and the control logic template includes unit module, connectionLine and arrow;
Step 12 is obtained required control logic figure by the graphical configuration of multiple unit modules, or selected correspondingControl logic template, adjustment obtain required control logic figure, and the adjustment includes increase, deletes, the meter of modification unit moduleCalculation sequence;
Step 13 is instructed, the input by the user's control that the data interaction interface of input terminal reads former engineering systemThe data interaction interface at end is made of corresponding input unit module in the control logic figure;
Step 14 is instructed by the control logic of the data interaction interface output device drive control device of output end, describedThe data interaction interface of output end is by corresponding output unit module composition in the control logic figure.
Further, include the special algorithm function for calling, outernal display unit module inside the unit moduleLower label and current value, and the lower label of each unit module be it is customized, the lower label is to distinguish control logic figureIn multiple similar unit modules, and the lower label of similar unit module in same logical circuit does not repeat, described currentValue is distinguished with number and color.
Further, the control logic template is divided according to switching value and analog quantity equipment and its input and output pointClass, specifically: according to the used type for being physically entered output point and quantity difference, to switching value involved in control systemEquipment and analog quantity equipment are classified, and the function of being realized according to common switching value and analog quantity equipment, further willThe difference for being physically entered output point logically function needed for it is classified.
Further, the type sum number that the switching value equipment and analog quantity equipment pass through conversion physics input and output pointAmount selects and calls different control logic templates to carry out flexible Application, and by merging several identical input signalsAt the same signal, it is assigned under difference target temporary digital amount or analog quantity unit module then to reduce control logic template instituteThe quantity of the input and output point used.
The second technical problem to be solved by the present invention is to provide a kind of realization system of device drives controller assemblies,Versatility, flexibility and the readability of device driver are improved, and realizes device drives controller between different hardware systemIt transplants and shared.
The second technical problem to be solved by the present invention is achieved in that a kind of realization system of device drives controller assembliesSystem, including control logic designer and algorithm actuator:
The control logic designer for designing, the control logic figure of editing equipment drive control device, the control patrolsFigure is collected to patrol by the user's control instruction that data interaction interface reads former engineering system with the control of output equipment drive control deviceInstruction is collected, the connection with former engineering system is completed;The data interaction interface is by the corresponding input and output of the control logic figureUnit module is constituted.
The algorithm actuator is used to calculate the logic of the control logic figure of device drives controller by middleware componentMethod is converted into the executable program that Current hardware platform and its instruction system are supported, runs the logical algorithm, and by operationResult data is associated with corresponding be physically entered on output point.
Further, the control logic designer further comprises:
Stencil design unit for designing and calling the control logic template of device drives controller, and provides generalControl logic template, the control logic template include unit module, connecting line and arrow;
Control logic figure drawing unit, for designing and the Graph Control logic of editing equipment drive control device, by moreThe graphical configuration of a unit module obtains required control logic figure, or the corresponding control logic template of selection, adjustment obtainRequired control logic figure, described adjust includes the computation sequence for increasing, deleting, modifying unit module, and is used for former engineeringThe user's control instruction of system is connected in corresponding input unit module, realizes the reading of user's control instruction, equipment is drivenThe control logic instruction of movement controller is connected in corresponding output unit module, realizes the defeated of device drives controller instructionOut.
Further, include the special algorithm function for calling, outernal display unit module inside the unit moduleLower label and current value, and the lower label of each unit module be it is customized, the lower label is to distinguish control logic figureIn multiple similar unit modules, and the lower label of similar unit module in same logical circuit does not repeat, described currentValue is distinguished with number and color.
Further, the control logic template is divided according to switching value and analog quantity equipment and its input and output pointClass, specifically: according to the used type for being physically entered output point and quantity difference, to switching value involved in control systemEquipment and analog quantity equipment are classified, and the function of being realized according to common switching value and analog quantity equipment, further willThe difference for being physically entered output point logically function needed for it is classified.
Further, the type sum number that the switching value equipment and analog quantity equipment pass through conversion physics input and output pointAmount selects and calls different control logic templates to carry out flexible Application, and by merging several identical input signalsAt the same signal, it is assigned under difference target temporary digital amount or analog quantity unit module then to reduce control logic template instituteThe quantity of the input and output point used.
The present invention has the advantage that
1, the method for replacing traditional code to encapsulate by the way of model block configuration realizes device drives controller, has fineOpening, easy to operate, while having the characteristics that operational process is visual, industrial process operation personnel can not only see clearly groupComposition inside part voluntarily modifies the control logic of component internal, seeks help, can also in real time, dynamically supervise without to producerSurvey the operating condition of component internal logic;
2, the control logic for the device drives controller realized through the invention has very strong versatility, is suitable for differenceIndustry, the control system of different manufacturers are used especially for being integrated with the large scale industry control system of a variety of isomery control stationsFamily can easily realize the transplanting of control logic program and be shared between different hardware platforms, improve engineering logic significantlyDevelopment efficiency;
3, general control logic template is provided for device drives controller, application is very flexible, provided controlLogic template processed is not only readable strong, the also restructural operation of support logic, and user can be by calling template, autonomous modification controlLogic meets the application requirement of different process process, easy to use and maintainable height;
4, the method for the present invention is not only suitable for the development process of simulation control subsystem, also can be applied to Practical Project systemIn, can meet the exploitation of device drives control logic and the needs of safeguarding in engineering system well.
Detailed description of the invention
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is a kind of implementation method execution flow chart of device drives controller assemblies of the present invention.
Fig. 2 is the schematic illustration that device drives controller is realized in the prior art.
Fig. 3 is the schematic illustration that present device drive control device is realized.
Fig. 4 is a kind of control logic template exemplary diagram of switching value equipment of the present invention.
Specific embodiment
As shown in figures 1 and 3, a kind of implementation method of device drives controller assemblies, includes the following steps:
The control logic figure of step 10, design, editing equipment drive control device, the control logic figure pass through data interactionInterface reads the user's control instruction of former engineering system and the control logic of output equipment drive control device instructs, and completes and former workThe connection of journey system;The data interaction interface is described by the corresponding input-output unit module composition of the control logic figureStep 10 further comprises step 11 to step 14:
Step 11 designs and edits general control logic template, and the control logic template includes unit module, connectionLine and arrow, the unit module inside include the special algorithm function for calling, the lower label of outernal display unit moduleAnd current value, and the lower label of each unit module be it is customized, the lower label is multiple same in control logic figure to distinguishThe unit module of class, and the lower label of similar unit module in same logical circuit does not repeat, the current value numberIt is distinguished with color.The control logic template is classified according to switching value and analog quantity equipment and its input and output point, specificallyAre as follows: it is different according to the used type for being physically entered output point and quantity, to switching value equipment involved in control system andAnalog quantity equipment is classified, and the function of being realized according to common switching value and analog quantity equipment, further will be needed for itThe difference for being physically entered output point logically function classify;Wherein, switching value equipment and analog quantity equipment can lead toThe type and quantity for crossing conversion physics input and output point select and call different control logic templates to carry out flexible Application;It is defeatedThen the quantity for entering output point can be assigned to different subscripts by the way that several identical input signals are merged into the same signalTemporary digital amount or analog quantity unit module reduce;
Step 12 is obtained required control logic figure by the graphical configuration of multiple unit modules, or selected correspondingControl logic template, adjustment obtain required control logic figure, and the adjustment includes increase, deletes, the meter of modification unit moduleCalculation sequence;
Step 13 is instructed, the input by the user's control that the data interaction interface of input terminal reads former engineering systemThe data interaction interface at end is made of corresponding input unit module in the control logic figure;
Step 14 is instructed by the control logic of the data interaction interface output device drive control device of output end, describedThe data interaction interface of output end is by corresponding output unit module composition in the control logic figure;
The logical algorithm of the control logic figure of device drives controller is converted into currently by step 20 by middleware componentThe executable program that hardware platform and its instruction system are supported, runs the logical algorithm, and by operation result data correlationIt is physically entered on output point to corresponding.
A kind of realization system of device drives controller assemblies of the present invention, including control logic designer and algorithm executeDevice:
The control logic designer for designing, the control logic figure of editing equipment drive control device, the control patrolsFigure is collected to patrol by the user's control instruction that data interaction interface reads former engineering system with the control of output equipment drive control deviceInstruction is collected, the connection with former engineering system is completed;The data interaction interface is by the corresponding input and output of the control logic figureUnit module is constituted, and the control logic designer further comprises a stencil design unit, a control logic figure drawing unit.
The stencil design unit for designing and calling the control logic template of device drives controller, and provides logicalControl logic template, the control logic template include unit module, connecting line and arrow, packet inside the unit moduleContaining the special algorithm function for calling, the lower label and current value of outernal display unit module, and under each unit moduleMarked as customized, the lower label is returned to distinguish multiple similar unit modules in control logic figure, and in same logicThe lower label of similar unit module does not repeat in road, and the current value number and color are distinguished.The control logic templateClassified according to switching value and analog quantity equipment and its input and output point, specifically: output is physically entered according to usedThe type of point and quantity difference, classify to switching value equipment involved in control system and analog quantity equipment, and according to normalThe function that switching value and analog quantity equipment are realized further will be physically entered output point logically function needed for itDifference classify;Wherein, switching value equipment and analog quantity equipment can by convert physics input and output point type andQuantity selects and calls different control logic templates to carry out flexible Application;The quantity of input and output point can be by will be severalA identical input signal is merged into the same signal, is then assigned to target temporary digital amount or analog quantity unit module under differenceTo reduce;
The control logic figure drawing unit can for designing and the Graph Control logic of editing equipment drive control deviceRequired control logic figure, or the corresponding control logic template of selection are obtained by the graphical configuration of multiple unit modules, is adjustedWhole to obtain required control logic figure, described adjust includes the computation sequence for increasing, deleting, modifying unit module, and being used for willThe user's control instruction of former engineering system is connected in corresponding input unit module, realizes the reading of user's control instruction;It willThe control logic instruction of device drives controller is connected in corresponding output unit module, realizes the instruction of device drives controllerOutput;
The algorithm actuator is used to calculate the logic of the control logic figure of device drives controller by middleware componentMethod is converted into the executable program that Current hardware platform and its instruction system are supported, runs the logical algorithm, and by operationResult data is associated with corresponding be physically entered on output point.
Below with reference to a specific embodiment, the present invention will be further described:
Present system includes control logic designer and algorithm actuator, and user can be by the control logic of the systemDesigner automatically designs, develops and the control logic figure of running equipment drive control device, and runs institute by algorithm actuatorState control logic figure.The input terminal for only needing for the user's control instruction of former engineering system to be linked into the system when use, by thisThe specified output point that is physically entered of system drive triggering executes corresponding operation.
The control logic designer is mainly used for: the control logic figure of design and editing equipment drive control device, simultaneouslyThe control logic template of many general is provided, is called for user flexibility, and data interaction interface is provided, for reading former engineering departmentThe user's control of system instructs, and is connected to corresponding input terminal unit module, the equipment includes that switching value equipment and analog quantity are setStandby two major classes type, the logic chart of the device drives controller are made of (such as Fig. 4, for one kind unit module, connecting line and arrowThe exemplary diagram of general control logic template), for the Logical Configuration information of storage equipment drive control device, and dynamicallyShow the calculating data of each unit module, can also by independently increase, delete with the computation sequence of adjustment unit module comeThe control function for modifying logic has the characteristics that programming is simple, it is restructural to calculate transparent and logic.Wherein, each unit moduleInside comprising specific algorithmic function for calling, it is external can intuitive, dynamically display module lower label and current value, andThe lower label of each unit module can customize, lower label to distinguish multiple similar unit modules in control logic figure,And the lower label of similar unit module cannot repeat in same logical circuit, the control logic figure under operation,With the current value of each unit module of real-time display, when output valve is analog quantity, its current value can be shown with number, works as outputWhen value is digital quantity, other than showing its current value with 0 or 1, also distinguished using different colors.
Since different equipment is physically entered output point or identical or different in the certain technical process of industrial production,Output point is physically entered with different same equipment is in different technical process.Input/output signal is different,The function that switchgear is realized is different therewith, so that control logic is also not quite similar, therefore general control logic template isIt is designed on the basis of analyzing logical relation between each input/output signal.The logic of distinct device drive control is different mainIt is different with output order to be embodied in input instruction, therefore control logic template can be according to switching value and analog quantity equipment and its defeatedEnter output point to presort, specifically, being to control according to the used type for being physically entered output point and quantity differenceSwitching value equipment and analog quantity equipment involved in system are classified, and are realized according to common switching value and analog quantity equipmentFunction, further the difference for being physically entered output point logically function needed for it is classified.With switching value equipmentFor, it is mono- defeated can be divided by single input-according to the difference of used input and output vertex type sum number amount for switching value equipmentOut, Double input-double output, single input-dual output, dual input-four seed types of mono- output;It can be according to common switching value equipment instituteThe function of realization can be inputted output point and be further divided into state feedback, from control logic to physical equipment or simulation modelThe order of sending orders achievable function under the condition generated, the function of realizing by manual operation, auto state, hasProtect several major class such as the function of equipment, the equipment state signal of ON/OFF time-out alarm signal and reflection equipment current state.
Control logic template provides one group of conventional device drives control function in the present invention, answers in practical engineering projectUsed time can handle each corresponding relationship for being physically entered output point well, so that inhomogeneity according to the difference of site technique demandBetween other device drives control logic can mutually inversion of phases without influence control process, to realize the flexible Application of template.
By taking the electronic door equipment of certain desulphurization system as an example, which is Double input-double output equipment, develops the device drives controlWhen logic processed, the general controls template of Double input-double output equipment both can be used, it can also be general in single-input-single-outputOn the basis of controlling template, realized by correctly corresponding to input and output point.Specifically, single input type switching value equipment, oneAs to show as open state negated negated as open state as off status or off status;Single output type switching value equipment, generallyOnly one start stop command is shown as, instructs and is opened for 1 equipment, otherwise closed.Double input-double output switching value is setStandby, open/close state can also be used as off status or the negated conduct open state of off status to realize by the way that open state is negated, becauseThis can be handled such equipment as the equipment of single-input-single-output type, not only make control logic more succinct in this way,And reduce the quantity that output point is physically entered used in control logic.
In the present invention when control logic stencil design, in the case where being improved for assurance function, reduce to the greatest extent usedIt is physically entered the quantity of output point, while clear, easy-to-use external interface being provided and calls, debug for system.For example, being set for certainThen standby general control logic is assigned to target under difference by the way that several identical input signals are merged into the same signalTemporary digital amount or analog quantity unit module, it is possible to reduce the workload of input data point subscript modification, and see on the whole,Also the quantity of input and output point used in logic can be effectively reduced.
The control logic template use process is as follows:
Step S1, the demand for control of analysis system specifies the logical relation between user's input/output control command, judgementWhether there is the template that can directly use, if so, calling corresponding logic control template, enter step S3, otherwise, into stepRapid S2;
Step S2, judge whether existing template meets control function demand, if so, entering step S3, otherwise, chooseThe close logic control template of one function, is deleted, the company of adding unit module or adjustment unit module on its basisThe method for connecing sequence is reconstructed logic control template, modifies, enters step S3;
Step S3, by the Logical Configuration system access containing the control logic figure editted into former control systems engineering (CSE), togetherWhen ensure system user's control instruction it is corresponding with the input end interface of control logic figure;
Step S4, operation control system, the operating condition of the internal element module of observation device drive control logic chart, andDebugging in time.
The algorithm actuator is mainly used for executing the logical algorithm of device drives controller, and operation result data are closedBe linked to it is corresponding be physically entered on output point, which, which can be loaded into, has certain fortune including PC, industrial personal computer or PLCIn the calculating device of calculation ability, the algorithm actuator has been internally integrated a middleware component, is used for device drives controllerControl logic algorithm be converted into the executable program that different hardware platforms and its instruction system are supported, pass through middleware componentIt is run after being converted to current executable program, to effectively improve control logic program between different type hardwarePortable and sharing capability.
Although specific embodiments of the present invention have been described above, those familiar with the art should be managedSolution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with thisThe technical staff in field should be covered of the invention according to modification and variation equivalent made by spirit of the inventionIn scope of the claimed protection.