Background technology
Most of real-time systems are generally dcs, dcs (distributed control systems, be called for short DCS), be called scattered control system or Distributed Control System (DCS) again, be to control a plurality of control loops in the production run respectively, can concentrate again simultaneously and obtain data, centralized management and central controlled automatic control system by many computing machines.Dcs adopts microprocessor to control each loop respectively, and implements the control of upper level with middle-size and small-size industrial control computer or high performance microprocessor.The process control level that is in bottom is generally realized data acquisition and control on the spot by the field control station that disperses, data acquisition station etc., and is sent to production monitoring level computing machine by data communication network.Monitoring level is to carry out the centralized operation management from the data of process control level, as various computation optimization, statistical report form, fault diagnosis, display alarm etc.
Along with development of computer, DCS can realize more senior centralized management function with more high performance computer equipment by net connection as required, as planned dispatching, warehousing management, energy management etc.All task and produce partial information and be used for centralized management in the monitoring level processing procedure, therefore the function of centralized management increase the processing burden that will inevitably increase the weight of the production monitoring level, influence the processing speed of controller.
In addition, a plurality of control system also are stored in same in-house network and are also extensively needed day by day, for example vehicle management system and access control and attendance system, and file management system etc. usually is used simultaneously.But these systems need provide respectively at present, when each system sets up, all will consider the compatibling problem with existing system, in case and changing appears in demand for control, designer and user are aspectant to be exchanged with regard to often needing, and carries out demand analysis, expends more time and money cost.
Summary of the invention
The object of the present invention is to provide a kind of can the real time altering system steering logic and the solution of controlled variable, described steering logic comprises the change that control method is brought because the physical structure of system changes.
To achieve these goals, the invention provides a kind of method of controlling electronic equipment, comprise step: by service language and pattern description operation flow and relation formation service logic; Described service logic is resolved into real-time task that needs processing in real time and the central task that can focus on; Described central task is transformed into executable program of center operation system and parameter, and with described program and parameter downloads to described center operation system, described program comprises transmission of Information flow process and logic, information processing flow process and logic, and the Stored Procedure of information and logic; Executable program of described center operation system and parameter downloads are arrived the center service server, according to this program and parameter implementation center business processing; Described real-time task is transformed into information gathering and the behavior steering logic and the controlled variable of electronic equipment; Described information gathering and behavior steering logic and controlled variable are compiled into the executable real-time control routine of real-time controller; And download described real-time control routine, and carry out information gathering and behavior control by the element that connects with real-time controller according to this real-time control routine.Described real-time control method also comprises step: with the abnormal conditions in the operational process to the design construction System Reports.Described service language is the general technical language of personnel of the technical field at user place.Described electronic equipment can comprise various sensor elements, RFID element, machinery and electronic control component.
To achieve these goals, the present invention also provides a kind of design construction system that control program is provided in real time for information acquisition and control system, comprise: service logic and process analysis module, the pattern description business relations that are used for providing by service language and database form service logic and described service logic are resolved into real-time real-time task of handling of needs and the central task that can focus on; Center service parameter and program form module, in order to described central task is transformed into executable program of center operation system and parameter, described program comprises transmission of Information flow process and logic, information processing flow process and logic, and the Stored Procedure of information and logic; Steering logic and controlled variable form module, in order to described real-time task being transformed into information gathering and the behavior steering logic and the controlled variable of electronic equipment, and described information gathering and behavior steering logic and controlled variable be compiled into the executable real-time control routine of real-time controller; And centring system sets up module, is downloaded to information acquisition and control system in order to described professional control program is connected by network with real-time control routine, and the abnormal conditions that occurred in the operational process that fed back to of reception information acquisition and control system.Described information acquisition and control system comprise centring system and set up module and real-time controller establishment module, executable program of described center operation system and parameter are set up module by described centring system and are downloaded to described center operation system, and described real-time control routine is set up module by described real-time controller and is downloaded to described real-time controller.Described centring system is set up module and also is used for starting, and monitors and the executable program of described center operation system of termination download and the operation of parameter and real-time control routine, and testing result is uploaded to the system buildup module of design construction system.Described real-time controller is set up module and also is used for starting, the operation of the described real-time control routine that monitoring and termination are downloaded, and testing result is uploaded to the system buildup module of design construction system.Described network is connected to the TCP interface.
The present invention is by making existing control system by net connection design construction system, save the client for realizing the essential software of seeking of application system that contains real-time system, numerous and diverse link that hardware and integrator realize, and allow the user directly use its professional language and shown design and its system of realization, shorten the exploitation and the establishment time of control system, reduced system development and organizing cost.
The present invention makes a plurality of control system connect a design construction system by internal network, can make a plurality of embedded real time systems share a design construction system, reaches high yield cost ratio.
The pattern description business relations that the present invention utilizes service language and database to provide form service logic, can make the business personnel design operation system very absorbedly and do not need to estimate the thing of concrete bottoms such as electronic signal, and easily form a control system.
Purpose of the present invention, advantage and characteristics will illustrate by the non-limitative illustration of following preferred embodiment and explain that these embodiment only provide as an example with reference to accompanying drawing.
Embodiment
With reference to figure 1,, comprising according to a kind of information acquisition of the present invention and control method: step S102, collection site information also inputs to real-time controller with it, and those field datas comprise real-time information and non real-time information; Step S104 utilizes real-time controller to handle real-time information; Step S106 utilizes real-time controller that non real-time information is sent to service server, and this service server is by the described real-time controller of net connection; And step S108, utilize service server to handle described non real-time information.Described field data comprises heat transfer agent and RFID information.
With reference to figure 2, a kind of information acquisition provided by the invention and control system 10, comprise real-time controller 22 and service server 42, described real-time controller 22 is used for the needs processing in real time of process information collection and control system 10 and the task of control, and described service server 42 is used for the task of not needing processing in real time and control of process control system 12.Can make real-time controller 22 be absorbed in the processing real-time task like this, accelerate real-time processing speed.Each service server 42 could be attached to few real-time controller 22, and when connecting a plurality of real-time controller 22, those real-time controllers 22 can belong to same user, also can belong to different users.Described real-time controller 22 passes through net connection with described service server 42, can be the internet, also can be in-house network, can be wired, also can be wireless.Described information acquisition and control system comprise sensor-based system and recognition system.
With reference to figure 3,, comprise step according to a kind of method of controlling electronic equipment of the present invention: step S302, by service language and pattern description operation flow and relation formation service logic; Step S304 resolves into real-time task that needs processing in real time and the central task that can focus on described service logic; Step S306, described central task is transformed into executable program of center operation system and parameter, and with described program and parameter downloads to service server, described program comprises transmission of Information flow process and logic, information processing flow process and logic, and the Stored Procedure of information and logic; Step S308 arrives the center service server with executable program of described center operation system and parameter downloads, according to this program and parameter implementation center business processing; Step S310 is transformed into described real-time task information gathering and the behavior steering logic and the controlled variable of electronic equipment; Step S312 is compiled into executable real-time control routine of real-time controller and parameter with described information gathering and behavior steering logic and controlled variable; And step S314, download described real-time control routine and parameter, and carry out information gathering and behavior control by the element that connects with real-time controller according to this real-time control routine and parameter.Use for ease of the client, described service language is the general technical language of personnel of the technical field at user place, can make the business personnel design operation system so very absorbedly and do not need to estimate the thing of concrete bottoms such as electronic signal, and easily form a control system.Described real-time control routine comprises element interface consolidator, business object program and task program, when this real-time control routine is downloaded to electronic equipment, the element interface consolidator, business object program and task program successively are downloaded to real-time controller, and these Automatic Program are moved on real-time controller afterwards.Described parameter can be the parameter of element, and it is generally downloaded by the element interface consolidator.In other words, described element interface consolidator arrives real-time controller prior to parameter downloads.Parameter also can be real-time controller operation business object program and the needed data of task program.Described electronic equipment can comprise sensor element, the RFID element, machinery and electronic control component at least a.
Fig. 4 shows a kind of computer system provided by the invention, as shown in the figure, information acquisition shown in Figure 2 can connect design construction system 60 by Ethernet with control system 10, design construction system 60 provides control program in real time for described information acquisition and control system 10, described information acquisition and control system 10 comprise embedded real time system 20 and center operation system 40, center operation system 40 comprises at least one described service server 42, embedded real time system 20 comprises one or more described real-time controllers 22, each real-time controller 22 is connected with 24, one service servers of one or more elements 42 and connects at least one real-time controller 22.Described element 24 can comprise various sensor elements, RFID element, machinery and electronic control component.Described real-time controller 22 comprises real-time controller and sets up module 26, it is mainly used in download, startup and operational monitoring and the termination of real-time controller 22 initialization files and program, abnormal conditions in monitoring real-time controller 22 operational processs and to 60 reports of design construction system, and down loading updating file and program.
With reference to figure 5, described design construction system 60 can receive and make up professional control program in center and real-time control routine according to service logic, by the system buildup module described professional control program and real-time control routine are downloaded to the service server 42 and the real-time controller 22 of information acquisition and control system 10 respectively and receive service server 42 and operational process that real-time controller 22 is fed back in the abnormal conditions that occurred.Described service server 42 comprises centring system and sets up module 46, it mainly is responsible for the initialization files of service server 42 and download, startup and operational monitoring and the termination of program, abnormal conditions in the monitoring service server operational process and to 60 reports of design construction system, and down loading updating file and program.Described real-time controller 22 is set up module 26 by real-time controller and is made up, this real-time controller is set up download, operation and the startup that module 26 is mainly used in real-time controller 22 initialization files and program, abnormal conditions in monitoring real-time controller 22 operational processs and to 60 reports of design construction system, and down loading updating file and program.Described real-time control routine comprises element interface consolidator, business object program and task program: interface is unified to be handled described element interface consolidator in order to element similar but different manufacturers and model is carried out; The element of the bottom after described business object program is used for the element interface consolidator handled carries out function combinations, thereby the various functions that realize service logic form business objects; Described task program is used to control the business object program implementation and forms real-time task in proper order.
With reference to figure 6.Design construction system 60 comprises and is used for that the pattern description business relations that provide by service language and database form service logic and described service logic is resolved into the real-time task of needs processing in real time and the service logic and the process analysis module 62 of the central task that can focus on; Form module 642 in order to center service parameter and the program that described central task is transformed into executable program of center operation system and parameter, described program comprises transmission of Information flow process and logic, information processing flow process and logic, and the Stored Procedure of information and logic; In order to described real-time task is transformed into information gathering and the behavior steering logic and the controlled variable of electronic equipment, and steering logic and the controlled variable that described information gathering and behavior steering logic and controlled variable are compiled into the executable real-time control routine of real-time controller formed module 644, and with described professional control program with real-time control routine sets up module 46 by centring system respectively and real-time controller is set up service server 42 and the real-time controller 22 that module 26 is downloaded to information acquisition and control system 10, and receive the system buildup module 66 of the abnormal conditions that occurred in the operational process that service server 42 and real-time controller 22 fed back to.Described control program comprises element interface consolidator, business object program and task program.Described system buildup module 66 is downloaded described element interface consolidator earlier, downloads described business object program and task program again.Described system buildup module 66 also is used to download the driver of electronic equipment.Interface is unified to be handled described element interface consolidator in order to element similar but different manufacturers and model is carried out.Described business object program is used for the element of the bottom after the processing of element interface consolidator is carried out function combinations, thereby realize the various functions of service logic, in other words, form a kind of equipment according to the whole service flow process, the concrete function of this equipment can be described and call by enough service languages.Described task program is used to control business object program implementation order, and to finish the task in the operation flow, this task is one or several link in the system flow, is used for the operation flow and the service logic of the system that realizes together with service server.It is the TCP interface that described Ethernet connects.
Continuation is with reference to figure 6.Also be provided with user interface 630, administrator interfaces 632 and database 68 in the design construction system 60.User interface 630 is except being responsible for new user's registration, user profile being made amendment, the user is authorized, deletes the user, and the project modification of highest weight limit waits outside these functions, also have the service logic constructing function, it is realized by Hardware Design module and operation system design module.The Hardware Design module comprises: equipment topological graph boundary element is used for the equipment of needed operation system is drawn in project from lane database; Device parameter configuration and logical design unit are used for the equipment that enters system is carried out parameter configuration and logical design one by one, and form the distinctive business interface of this project, as the reading of file cabinet in the file management, give back, functional interface such as search; The device emulation analytic unit to the apparatus logic of design with parameter is analyzed and emulation, shows mistake; The equipment debugging unit is used for after hardware is connected to system, and equipment is partly or entirely debugged the task that it should be finished of finishing.The operation system design module comprises: user's role definition unit is used for the design of the user of system and all system interfaces (presentation layer) thereof; The business Process Design unit is used for by flow process, logic and data stream to the interaction mode descriptive system operation flow of using role and system.Administrator interfaces 632 comprises that device registration examining, device design are classification associated, service template design registration is examined, professional design masterplate is classification associated, and unit such as database maintenance.Device registration is examined the unit and is responsible for the element that enters system is examined, and whether inspection will enter the proof procedures such as dependence test of the element of system and finish, and whether commercial agreement is signed, and whether supply of material record is good etc.The classification associated unit of device design carries out business association to equipment, makes the equipment that has every profession and trade in the database, conveniently administering and maintaining, and realizes the low coupling that inserts.Service template design registration is examined the unit task of entering system, operation flow, flow chart of data processing, third party's interface etc. is registered on the books, and checks whether proof procedure such as dependence test is finished.The classification associated unit of professional design template carries out related to task, operation flow, flow chart of data processing and third party's interface, so that every profession and trade all has its service template in database.
Refer again to Fig. 6, cooperate with above-mentioned design construction system 60, described real-time controller 22 comprises: interface is unified module 222, and it connects with the element of electronic equipment, is used for element similar but different manufacturers and model carried out that interface is unified to be handled; Business object module 224 is unified module 222 with described interface and is connected, and the element of the bottom after being used for the element interface consolidator handled carries out function combinations, thereby realizes the various functions of service logic; And task module 226, connect with described business object module 224, be used for controlling the execution sequence of business object module to finish the task of operation flow.In one embodiment of this invention, described task module 226 can be set to only be used to control the task executions order that the business object module is handled in real time and controlled the needs of electronic equipment.Described device controller can be handheld device, can be the node that various device connects, also can be the controller of high-end rfid interrogator.
Basic ideas of the present invention are: be not quite similar though use the various hardware and the service logic of information acquisition very widely and control system, all information gatherings and control system are by information acquisition and control subsystem and backup system composition.By to the various combination of information acquisition and control subsystem and backup system and the setting of service logic, can realize the operation of different application on the basis of identical platform, the present invention is under same product platform the system that information acquisition and control subsystem (comprising backup system) are made up and implement to move according to business demand.The present invention finishes the ID identification of business demand correspondence by carrying out correspondent service logic, and information acquisition, business event form and transmission tasks, and under different business demands instructed, system platform was done different disposal and storage to the information of uploading.Be definition equally, determine the content and the information interaction mode of each man-machine interface by service logic.
Certainly, more than only be concrete exemplary applications of the present invention, protection scope of the present invention is not constituted any limitation.In addition to the implementation, the present invention can also have other embodiment.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop within the present invention's scope required for protection.