The setting of sign board and service control method and its control in a kind of scada system
Equipment
Technical field
The present invention relates to the setting of sign board and Service control technology, sign board in more particularly, to a kind of scada system
Setting and Service control technology.
Background technology
Data acquisition and supervisor control (supervisory control and data acquisition, referred to as
" scada "), it is that computer-based production process controls and dispatch automated system.It can set to live operation
For being monitored and controlling, to realize the items such as data acquisition, equipment control, measurement, parameter regulation and various types of signal warning
Function.In scada system, the operation of sign board is a basic function.User can be by carrying out listing operation to equipment
To there is provided information warning, such as: maintenance, fault, danger etc..Meanwhile, system, by the physical significance according to sign board, to corresponding is
System service logic is adjusted, and such as hanging equipment overhauls during board it should carry out locking etc. to control operation.
In the prior art, in scada system, the operation of sign board adopts predefined mode mostly, substantially can divide
For following two types: the first is the application characteristic according to industry, conclude in advance, sort out the mark that this application is commonly used
Board type, and each type of sign board corresponding system business logic also all pre-defines, user cannot voluntarily expand
The type of exhibition sign board or corresponding system business logic;Another kind is to be extended on the basis of the first type, that is,
It is allowed to user carries out limited extension to the type of sign board in addition to the sign board pre-defining, but sign board corresponds to
System business logic be then that fixation cannot extend.
In actual applications, with user, the demand of scada system is constantly expanded, existing sign board type and
This sign board corresponding system business logic, often cannot meet the existing demand of user, need by extension flag board type
Or sign board corresponding system business logic is meeting its demand.And in the prior art, user cannot voluntarily extension flag board
Type or sign board corresponding system business logic, only can be only achieved the purpose of setting sign board by upgrade-system program,
Thus substantially increasing human cost.
Content of the invention
The invention mainly solves the technical problem of providing the setting of sign board and Service control side in a kind of scada system
Method and its control device so that user can carry out independent assortment to the arranges value on each bit of this sign board model, according to
System requirements, flexibly generate required sign board, thus reaching truly user voluntarily arrange sign board.
In order to solve above-mentioned technical problem, the invention provides the setting of sign board and business control in a kind of scada system
Method processed, the method includes the steps of:
According to the service logic of scada system, determine the corresponding atom operation of this system business logic;One sign board is set
Model, is made up of multiple bytes, and each bit of byte corresponds to unary operation respectively;Each bit position 0 in this sign board model
Or 1, represent and enable or forbid the corresponding atom operation of this bit;User, according to scada system traffic demand, arranges sign board mould
The value of each bit in type, generates a sign board;Scada system, according to the value of bit each in this sign board, enables or forbids
The corresponding atom operation of this bit.
As the improvement of technique scheme, the service logic of scada system can comprise: the collection of real time data, goes through
The storage of history data, the control of equipment and/or equipment state change alarm of item etc..
As the improvement of technique scheme, atom operation can comprise: control upwards, control downwards, history data store,
Item alarm notification, item alarm storage and/or device data acquisition etc..
As the improvement of technique scheme, comprise multiple idle bit positions in sign board model, in scada system
When increasing new service logic and/or atom operation, it is extended.
Present invention also offers a kind of scada system control equipment, each service logic corresponding difference respectively of scada system
Atom operation, this equipment comprises:
Sign board model memory module, for preserving sign board model, this sign board model is at least made up of a byte,
Each bit of byte corresponds to unary operation;Each bit position 0 or 1 in this sign board model, represents and enables or forbid this bit
The corresponding atom operation in position;Indicating module, for instruction user according to scada system traffic demand, arranges each of sign board model
The value of bit, generates a sign board;Message control module, for the value according to each bit in sign board, enables or prohibits
Stop the corresponding atom operation of this bit.
As the improvement of technique scheme, the service logic of scada system can comprise: the collection of real time data, goes through
The storage of history data, the control of equipment and/or equipment state change alarm of item etc..
As the improvement of technique scheme, atom operation can comprise: control upwards, control downwards, history data store,
Item alarm notification, item alarm storage and/or device data acquisition etc..
As the improvement of technique scheme, sign board model comprises multiple idle bit positions, for increasing in scada system
Plus when new service logic and/or atom operation, be extended.
Compared with prior art, the main distinction and its effect are embodiment of the present invention: according to the business of scada system
Logic, determines the corresponding atom operation of this system business logic, and arranges a sign board model, is made up of multiple bytes, this word
Each bit of section corresponds to unary operation, each bit position 0 or 1 in this sign board model respectively, represents and enables or forbid this ratio
The corresponding atom operation in special position, user, according to scada system traffic demand, arranges the value of each bit of sign board model, generates
One sign board, scada system, according to the value of bit each in this sign board, enables or forbids the corresponding atom operation of this bit.
In the prior art, only the purpose that user voluntarily arranges sign board be can be only achieved by upgrade-system program.And in the present invention
In embodiment, sign board model is made up of each bit, is carried out certainly by the numerical value on each bit to this sign board model
By combining, according to system requirements, flexibly generate required sign board, thus reaching truly user voluntarily arrange mark
Board.
Idle bit position is remained with, user can increase new service logic by this idle bit position in sign board model
Or atom operation, thus voluntarily meeting user's request, solve the problems, such as to bring because of the increase of demand.And can need not upgrade
In the case of system program, quickly and easily carry out sign board type and sign board corresponding system business logical extension,
Greatly save human cost.
Brief description
With reference to the accompanying drawings and detailed description the present invention is described in further detail.
Fig. 1 be first embodiment of the invention scada system in sign board service control method flow chart;
Fig. 2 is the scada system control equipment structure chart of second embodiment of the invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the enforcement to the present invention for the accompanying drawing
Mode is described in further detail.
First embodiment of the invention is related to the setting of sign board and service control method in a kind of scada system.This reality
Apply in mode, first the service logic according to scada system, determine the corresponding atom operation of this system business logic.Wherein,
The service logic of scada system may include that the collection of real time data, the storage of historical data, the control of equipment and equipment shape
State changes alarm of item etc..And this corresponding atom operation of system business logic may include that and controls upwards, control downwards, go through
History data storage, item alarm notification, item alarm storage and device data acquisition etc..
And, in scada internal system, one sign board model is set.In the present embodiment, this sign board model is by 2
Byte forms, and totally 16 bits, wherein high byte retain, and in low byte, the 0th to 5 bit corresponds to unary operation respectively,
6th and the 7th bit retains, as shown in table 1.Can be by by each bit position 0 in this sign board model, to represent and to forbid
The corresponding atom operation of this bit;Or put 1, to represent the enable corresponding atom operation of this bit.Retain in sign board model
Idle bit position, is available for user and can be extended when increasing new service logic or atom operation, thus voluntarily meeting user's need
Ask, solve the problems, such as to bring because of the increase of demand.
The sign board model that user provides according to current demand and system, the value of each bit in setting sign board model,
Generate a sign board (i.e. a sign board type), system, according to the sign board type of user setup, enables or forbid each bit
The corresponding atom operation in position.Below the service control method of sign board in scada system is specifically described, as shown in Figure 1.
In a step 101, receive the sign board of user setup.
For example, system receives the sign board " 00000000,00101100 " of user setup, and each bit has it
Corresponding atom operation, that is, the corresponding atom operation of bit 0 is alarm log storage;The corresponding atom operation of bit 1 is that alarm is logical
Know;The corresponding atom operation of bit 2 is history data store;The corresponding atom operation of bit 3 is to control upwards;Bit 4 is right
The atom operation answered is downward control;The corresponding atom operation of bit 5 is data acquisition.
In a step 102, read the value of each bit of this sign board.
In step 103, enable the atom operation that numerical value is corresponding to 0 bit;Forbid that the bit by 1 for the numerical value is right
The atom operation answered.
Specifically, numerical value on the bit 0 in sign board " 00000000,00101100 ", bit 1 and bit 4
For 0, then enable its corresponding atom operation, i.e. the storage of execution alarm log, alarm notification and downward control;And bit 2, bit
On position 3 and bit 5, numerical value is 1, then forbid the corresponding atom operation of this bit, that is, forbid history data store, control upwards
Data gathers.
Due in the prior art, the corresponding system business logic of each type of sign board all pre-defines,
And sign board corresponding system business logic is that fixation cannot extend.For this problem, in the present embodiment, sign board
Model is made up of each bit, carries out independent assortment by the numerical value on each bit to this sign board model, generates a mark
Board, thus reach truly user voluntarily arrange sign board.And again can be in the case of without upgrade-system program, side
Just, quickly carry out system business logical extension, greatly save human cost.
Second embodiment of the invention is related to a kind of scada system control equipment, as shown in Figure 2.Each industry of scada system
Business logic corresponds to different atom operation respectively, and this equipment comprises:
Sign board model memory module, for preserving sign board model, this sign board model is at least made up of a byte,
Each bit of byte corresponds to unary operation;Each bit position 0 or 1 in this sign board model, represents and enables or forbid this bit
The corresponding atom operation in position;Indicating module, for instruction user according to scada system traffic demand, arranges each of sign board model
The value of bit, generates a sign board;Message control module, for the value according to each bit in sign board, enables or prohibits
Stop the corresponding atom operation of this bit.
As improving further, the service logic of scada system can comprise: the collection of real time data, historical data
Storage, the control of equipment and/or equipment state change alarm of item etc..
As improving further, atom operation can comprise: control, control downwards, history data store, item alarm upwards
Notify, item alerts storage and/or device data acquisition etc..
As improving further, sign board model can comprise multiple idle bit positions, new for increasing in scada system
Service logic and/or during atom operation, be extended.
In sum, in the present embodiment, sign board model is made up of each bit, by this sign board model
Numerical value on each bit carries out independent assortment, generates different types of sign board, thus reach truly user voluntarily setting
Put sign board.
Idle bit position is advanced for, user can increase new business by this idle bit position and patrol in sign board model
Collecting or atom operation, thus voluntarily meeting user's request, solving the problems, such as to bring because of the increase of demand.And can need not rise
In the case of level system program, quickly and easily carry out sign board type and sign board corresponding system business logic expands
Exhibition, greatlys save human cost.
Although by referring to some of the preferred embodiment of the invention, being shown and described to the present invention,
It will be understood by those skilled in the art that can to it, various changes can be made in the form and details, without departing from this
Bright spirit and scope.