CN109933398A - Check method, device and the computer readable storage medium of function diagram page - Google Patents
Check method, device and the computer readable storage medium of function diagram page Download PDFInfo
- Publication number
- CN109933398A CN109933398A CN201910186250.1A CN201910186250A CN109933398A CN 109933398 A CN109933398 A CN 109933398A CN 201910186250 A CN201910186250 A CN 201910186250A CN 109933398 A CN109933398 A CN 109933398A
- Authority
- CN
- China
- Prior art keywords
- functional diagram
- objective function
- information
- electronic equipment
- comparison result
- 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.)
- Pending
Links
- 238000010586 diagram Methods 0.000 title claims abstract description 315
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000006870 function Effects 0.000 claims description 153
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012545 processing Methods 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 10
- 230000037430 deletion Effects 0.000 claims description 10
- 238000012937 correction Methods 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 125000004122 cyclic group Chemical group 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 101150039208 KCNK3 gene Proteins 0.000 description 1
- 101150083764 KCNK9 gene Proteins 0.000 description 1
- -1 Task2 Proteins 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000000498 cooling water Substances 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000004146 energy storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of functional diagram check methods, which comprises obtains the functional diagram information of at least two electronic equipments;Compare the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control display interface shows the first comparison result;Wherein, first comparison result is used to indicate at least two electronic equipment at least one different objective function figure between distinct electronic apparatuses;Based on first comparison result, the synchronization policy at least one objective function figure is obtained;Based on the synchronization policy of at least one objective function figure, at least one described objective function figure is corrected, shows the second comparison result to control the display interface;Wherein, the functional diagram that second comparison result is used to indicate at least two electronic equipment between distinct electronic apparatuses is all identical.The embodiment of the invention also discloses a kind of functional diagram capacity checking device and computer readable storage mediums.
Description
Technical field
The present invention relates to industrial control field more particularly to a kind of check method, device and the computers of function diagram page
Readable storage medium storing program for executing.
Background technique
Industrial control field has promoted the use of the program norm of IEC61131-3, and wherein functional diagram is intuitively visual, obtains
More application.Single-page function diagram page is updated since industrial control field generally requires online unperturbed, in more people's concurrent developments
In the case of, often there is the inconsistent situation of the page of the function diagram page of the offline engineering of PC machine and device side operation, it is this not
Consistent situation may bring some hidden danger.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide check method, the devices of a kind of function diagram page
And computer readable storage medium.
The technical scheme of the present invention is realized as follows:
In a first aspect, providing a kind of functional diagram check method, which comprises
Obtain the functional diagram information of at least two electronic equipments;
Compare the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control display interface shows the
One comparison result;Wherein, first comparison result be used to indicate at least two electronic equipment distinct electronic apparatuses it
Between at least one different objective function figure;
Based on first comparison result, the synchronization policy at least one objective function figure is obtained;
Based on the synchronization policy of at least one objective function figure, at least one described objective function figure is corrected, with control
It makes the display interface and shows the second comparison result;Wherein, second comparison result is used to indicate at least two electronics
Functional diagram in equipment between distinct electronic apparatuses is all identical.
It include the identification information and check information of at least one functional diagram in above scheme, in the functional diagram information;Institute
Stating objective function figure is identification information mismatch or the unmatched functional diagram of check information.
In above scheme, the functional diagram information of distinct electronic apparatuses at least two electronic equipments, packet
Include: the identification information based at least one functional diagram is determined at least two electronic equipment and is marked between distinct electronic apparatuses
Know the functional diagram and the unmatched functional diagram of identification information of information matches;Check information based at least one functional diagram, from institute
It states and determines the unmatched first kind functional diagram of check information in the functional diagram of identification information match;By the first kind functional diagram and
The unmatched functional diagram of identification information is as objective function figure.
In above scheme, the synchronization policy includes the reference side of setting correction objective function figure;It is described based on it is described extremely
The synchronization policy of a few objective function figure corrects at least one described objective function figure, comprising: utilize the target function of reference side
It can scheme, correct the objective function figure of target side;Wherein, the reference side is an electronics at least two electronic equipment
Equipment, the target side are at least partly electronic equipment at least two electronic equipment in addition to reference side.
In above scheme, the objective function figure using reference side corrects the objective function figure of target side, comprising: will
The first kind functional diagram of reference side is sent to target side, so that the target side covers corresponding first kind functional diagram;By benchmark
Second class functional diagram of side is sent to target side, so that the target side is inserted into the second class functional diagram;Third based on target side
The identification information of class functional diagram generates the deletion instruction for the third class functional diagram of target side;The deletion is instructed and is sent
To target side, so that the target side deletes third class functional diagram;Wherein, the second class functional diagram is benchmark side identification information
Unmatched functional diagram, the third class functional diagram are the unmatched functional diagram of target side identification information.
In above scheme, first comparison result includes: the first label of the first kind functional diagram, second class
Second label of functional diagram and the third label of the third class functional diagram.
In above scheme, first comparison result includes: the different information of first kind functional diagram;Wherein, the difference
Information includes at least: the check information of functional diagram, total number of symbols, sign pattern, real name example, identical unique identifier symbol category
Sex differernce, inputoutput data connect difference.
Second aspect, a kind of functional diagram capacity checking device, described device includes: first acquisition unit, for obtaining at least two
The functional diagram information of a electronic equipment;
Comparing unit, for the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control
Display interface shows the first comparison result;Wherein, first comparison result is used to indicate at least two electronic equipment
At least one different objective function figure between distinct electronic apparatuses;
Second acquisition unit is obtained for being based on first comparison result at least one described objective function figure
Synchronization policy;
Processing unit corrects at least one described mesh for the synchronization policy based at least one objective function figure
Functional diagram is marked, shows the second comparison result to control the display interface;Wherein, second comparison result is used to indicate described
Functional diagram at least two electronic equipments between distinct electronic apparatuses is all identical.
The third aspect, a kind of functional diagram capacity checking device, which is characterized in that described device includes: processor and is configured to deposit
The memory of the enough computer programs run on a processor of energy storage, wherein the processor is configured to run the computer
When program, execute preceding method the step of.
Fourth aspect provides a kind of computer storage medium, is stored thereon with computer program, wherein the computer
The step of preceding method is realized when program is executed by processor.
By adopting the above technical scheme, by comparing the functional diagram information of distinct electronic apparatuses, detect distinct electronic apparatuses it
Between different objective function figure, and in the display interface show distinct electronic apparatuses between different objective function figure,
User's quickly positioning target functional diagram is helped, and synchronization policy is arranged for objective function figure to make difference to correct objective function figure
Functional diagram on electronic equipment is identical, and it is hidden to reduce the problems such as functional diagram is not identical unknowable in project implementing process bring
Suffer from.
Detailed description of the invention
Fig. 1 is functional diagram check method flow diagram 1 in the embodiment of the present application;
Fig. 2 is functional diagram check method flow diagram 2 in the embodiment of the present application;
Fig. 3 is the bandwagon effect schematic diagram 1 of display interface in the embodiment of the present application;
Fig. 4 is the bandwagon effect schematic diagram 2 of display interface in the embodiment of the present application;
Fig. 5 is the composed structure schematic diagram 1 of functional diagram capacity checking device in the embodiment of the present application;
Fig. 6 is the composed structure schematic diagram 2 of functional diagram capacity checking device in the embodiment of the present application.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to this hair
The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the embodiment of the present invention.
Embodiment one
As shown in Figure 1, functional diagram check method can specifically include:
Step 101: obtaining the functional diagram information of at least two electronic equipments;
Step 102: comparing the functional diagram information of distinct electronic apparatuses at least two electronic equipments, control display interface exhibition
Show the first comparison result;Wherein, the first comparison result is used to indicate at least two electronic equipments between distinct electronic apparatuses not
At least one identical objective function figure;
Step 103: being based on the first comparison result, obtain the synchronization policy for being directed at least one objective function figure;
Step 104: the synchronization policy based at least one objective function figure corrects at least one objective function figure, with control
Display interface processed shows the second comparison result;Wherein, the second comparison result is used to indicate at least two electronic equipments different electricity
Functional diagram between sub- equipment is all identical.
Here, the executing subject of step 101 to step 104 can be the processing of the device with functional diagram check function
Device.
Functional diagram is control process, a kind of graphic representation method of function and feature for describing control system.It has letter
The features such as single, intuitive, it is not related to the particular technique of control function, is a kind of general language, is International Electrotechnical Commission's first choice
Programming language, in recent years in the programming of programmable logic controller (PLC) (Programmable Logic Controller, PLC)
In popularization and promotion has been obtained.
The basic thought of functional diagram is: a duty cycle of controlled device is divided by designer according to production requirement
Several working stages (referred to as " step "), and explicitly indicate that the output to be executed of each step, pass through formulation between " step " and " step "
Condition converted, in a program, as long as by correctly connection carry out " step " and " step " between conversion, so that it may complete quilt
Control whole movements of equipment.
It here, include the identification information and check information of at least one functional diagram in functional diagram information;Wherein, identification information
For distinguishing the different functional diagram of electronic equipment internal, for example, functional diagram is numbered.That is, identification information is for will be different
The function diagram page that characterization executes same function in electronic equipment is aligned.
Whether the check information of functional diagram is used to examine the functional diagram between distinct electronic apparatuses with same identification information
It is identical, a kind of corresponding check information of functional diagram, have in functional diagram it is any change corresponding check information and can also change, than
Such as, functional diagram cyclic redundancy check code (Cyclic Redundancy Check, CRC).
In some embodiments, step 102 can specifically include: the identification information based at least one functional diagram, determine
The functional diagram of identification information match and the unmatched function of identification information between distinct electronic apparatuses at least two electronic equipments
Figure;Check information based at least one functional diagram determines that check information is unmatched from the functional diagram of identification information match
First kind functional diagram;Using first kind functional diagram and the unmatched functional diagram of identification information as objective function figure.
In some embodiments, step 103 specifically includes: being based on the first comparison result, obtains being directed to extremely for user setting
The synchronization policy of a few objective function figure, or obtain the preset synchronization policy at least one objective function figure.
Specifically, there are different objective functions between at least two electronic equipments for showing for the first comparison result
Figure, user can be that the setting of objective function figure synchronizes by input unit for the first comparison result shown on display interface
Strategy.Alternatively, presetting and storing the synchronization policy of objective function figure, when detecting different objective function figure, directly
It connects and obtains synchronization policy from storage unit.Synchronization policy can be batch setting or be arranged one by one, can completely or partially select
Select the reference data side of functional diagram.
Here, synchronization policy is used to the objective function figure in distinct electronic apparatuses being adjusted to identical.One synchronization policy
Corresponding one or more objective function figure, that is to say, that different synchronization policies can be set for different target functional diagram, or
For multiple objective function figures, identical synchronization policy is set.
In some embodiments, synchronization policy includes the reference side of setting correction objective function figure.Correspondingly, step 104
It specifically includes: where reference side is an electronic equipment at least two electronic equipments, and target side is that at least two electronics are set
At least partly electronic equipment in standby in addition to reference side.
That is, objective function figure is using the objective function figure of reference side at least two electronic equipments as correction base
Standard, after being determined as the electronic equipment of reference side, the electronic equipment of rest part or whole can be used as target side, utilize benchmark
The objective function figure of side the objective function figure of target side is corrected into it is consistent with reference side, can for all objective function figures
A reference side is arranged, or different reference sides is set for different target functional diagram.
Specific bearing calibration may include: that the first kind functional diagram of reference side is sent to target side, so that target side
Cover corresponding first kind functional diagram;Second class functional diagram of reference side is sent to target side, so that target side insertion second
Class functional diagram;The identification information of third class functional diagram based on target side generates deleting for the third class functional diagram for being directed to target side
Except instruction;Instruction will be deleted and be sent to target side, so that target side deletes third class functional diagram;Wherein, the second class functional diagram is
The unmatched functional diagram of reference side identification information, third class functional diagram are the unmatched functional diagram of target side identification information.Here,
Delete the identification information that instruction includes the objective function figure that target side need to be deleted.
That is, the first kind functional diagram that objective function figure includes reference side and target side includes, only reference side packet
The second class functional diagram for containing and the third class functional diagram that only target side includes.
In some embodiments, the first comparison result includes: the first label of first kind functional diagram, the second class functional diagram
The third label of second label and third class functional diagram.
That is, by show interface on display first label, second label and third mark, come help user from
The visually type of quickly positioning target functional diagram and objective function figure is to belong to the discrepant first kind functional diagram of tool, is
Only the second class functional diagram that reference side includes, the third class functional diagram that still only target side includes.First label can be first
Color mark and/or the first icon indicia, the second label can be the second color mark and/or the second icon indicia, third mark
Note can be third color mark and/or third icon indicia.
In some embodiments, the first comparison result includes: the different information of first kind functional diagram;Wherein, different information
Include at least: check information, total number of symbols, sign pattern, real name example, the symbol attribute of identical unique identifier of functional diagram are poor
Different, inputoutput data connects difference.
That is, other than the first label of display, can also show specific difference letter for first kind functional diagram
Breath.For example, user, which clicks, breathes out different information display area on the first label display interface, different information can be with textual list
Form put on display, or on multiple first kind functional diagrams interface show different information label.
By adopting the above technical scheme, by comparing the functional diagram information of distinct electronic apparatuses, detect distinct electronic apparatuses it
Between different objective function figure, and in the display interface show distinct electronic apparatuses between different objective function figure,
User's quickly positioning target functional diagram is helped, and synchronization policy is arranged for objective function figure to make difference to correct objective function figure
Functional diagram on electronic equipment is identical, and it is hidden to reduce the problems such as functional diagram is not identical unknowable in project implementing process bring
Suffer from.
Embodiment two
It is illustrated so that at least two electronic equipments include the first electronic equipment and the second electronic equipment as an example, first
Electronic equipment can be the PC machine in industrial control system, and the second electronic equipment can be control any in industrial control system
Device processed.
As shown in Fig. 2, functional diagram check method specifically includes:
Step 201: obtaining the functional diagram information of the first electronic equipment and the functional diagram information of the second electronic equipment;
Step 202: comparing the functional diagram information of the first electronic equipment and the functional diagram information of the second electronic equipment, control is aobvious
Show the first comparison result of showing interface;Wherein, the first comparison result be used to indicate the first electronic equipment and the second electronic equipment it
Between at least one different objective function figure;
Step 203: being based on the first comparison result, obtain the synchronization policy for being directed at least one objective function figure;
Step 204: the synchronization policy based at least one objective function figure corrects the first electronic equipment and/or the second electricity
Objective function figure in sub- equipment shows the second comparison result to control display interface;Wherein, the second comparison result is used to indicate
Functional diagram between first electronic equipment and the second electronic equipment is all identical.
Here, the executing subject of step 201 to step 204 can be the processing of the device with functional diagram check function
Device.
It here, include the identification information and check information of at least one functional diagram in functional diagram information;When two electronics are set
When any one difference of the identification information or check information of the functional diagram in standby, show that two functional diagrams are not identical.Wherein, it identifies
Information is for distinguishing the different functional diagram of electronic equipment internal, for example, functional diagram is numbered.The check information of functional diagram is for examining
Whether the functional diagram between distinct electronic apparatuses with same identification information is identical, for example, functional diagram CRC.Functional diagram CRC can be with
Function diagram page product CRC, function diagram page product are binary format, including file header (contain crc field), data field, are referred to
Enable the compressed content in area, graph data.Wherein, crc field is for verifying the identical function of identification information between distinct electronic apparatuses
Can whether identical, the information that data field and instruction area identify and execute comprising device side, the compressed content of graph data includes function
The graphical content of the display interface of energy figure.
For example, being connected with the electronic equipment that functional diagram checks function with the first electronic equipment and the second electronic equipment, obtain
Take the functional diagram information for including on the first electronic equipment, the functional diagram information on the second electronic equipment under each task grade, function
Energy figure information includes functional diagram page number and function diagram page product CRC.It will be in the first electronic equipment and the second electronic equipment
Functional diagram be aligned according to functional diagram page number, the display interface of functional diagram comparison result is provided, shows two sides function map sheet
The label such as the consistent of face, difference, newly-increased, deletion.
Specifically, the comparison result of the functional diagram of the first electronic equipment and the second electronic equipment is in display interface with tree-like knot
Structure shows that a node can correspond to one or more groups of functional diagrams in tree structure, and each group of functional diagram includes having identical mark
The functional diagram for knowing information, double-clicks or clicks the node in tree structure, can show the first electronic equipment of browsing and/or the second electronics
The graphical page of functional diagram in equipment.For discrepant functional diagram, summary difference content is listed, difference content specifically can wrap
It includes: the check information of functional diagram, total number of symbols, sign pattern, real name example, the symbol attribute difference of identical unique identifier, defeated
Enter output data connection difference.
As shown in figure 3, display interface illustrates the function diagram page of PC machine side, left side engineering includes root node
Test20190123, first nodes include 101:DPU1, and two-level node includes device configuration, global variable, IO configuration and program
Configuration, it includes 6 tasks that program, which configures corresponding three-level node, have respectively Task1, Task2, Task3, Task4, Task5,
Corresponding level Four node includes the functional diagram of 7 tasks in Task6, Task6, there is the alarm of 001:POU001_ excitation, 002 respectively:
POU002_ temperature warning, the alarm of 003:POU003_ cooling water, the alarm of 004:POU004_ governor, 005:POU005_ outer circulation
Alarm, the alarm of 006:POU006_ ball valve, wherein when between PC machine side and device side there are when objective function figure, in tree structure
The middle node by objective function figure is distinctly displayed with the node for not including objective function figure, in Fig. 3, when including objective function figure
Time point Text information is shown in the form of overstriking, is shown, is used in the form of non-acceleration when not including objective function figure time point Text
It family can be by clicking or double-clicking overstriking node, to check the details of objective function figure.For example, user successively clicks
Test20190123,101:DPU1, program configuration, Task6 determine objective function figure be 004:POU004_ governor alarm with
The alarm of 006:POU006_ ball valve, clicking the alarm of node 004:POU004_ governor can show that PC machine side is aobvious on the interface of right side
Show that 004:POU004_ governor alerts the details of corresponding functional diagram, HDI2, HDI3 in functional diagram, FIRST1,
AND216, OR132 etc. are functional block, are respectively used to the input, output and the certain calculation functions for executing data of data.Function
It can scheme the arithmetic logic figure being made of functional block and connecting line.
As shown in figure 4, display interface can also show that PC machine side is compared with the functional diagram content of device side simultaneously, and
And two functional diagrams of graphical representation have differences, and identify differential position with color (grey), bottom can also be provided to difference
Different verbal description.
In some embodiments, step 202 can specifically include: the identification information based at least one functional diagram, determine
The functional diagram of identification information match and the unmatched functional diagram of identification information between first electronic equipment and the second electronic equipment;Base
In the check information of at least one functional diagram, the unmatched first kind of check information is determined from the functional diagram of identification information match
Functional diagram;Using first kind functional diagram and the unmatched functional diagram of identification information as objective function figure.
Specifically, the first electronic equipment includes M functional diagram, the second electronic equipment includes N number of functional diagram, M and N it is equal or
Differ.
Table 1
Functional diagram number | First electronic equipment | Second electronic equipment |
1 | Functional diagram 1 | Functional diagram 1 |
2 | Functional diagram 2 | —— |
3 | —— | Functional diagram 3 |
4 | Functional diagram 4 | Functional diagram 4 |
As shown in table 1, the first electronic equipment includes functional diagram 1, functional diagram 2 and functional diagram 4, and the second electronic equipment includes
Functional diagram 1, functional diagram 3 and functional diagram 4, wherein functional diagram number is utilized for distinguishing the different functional diagram of electronic equipment internal
Functional diagram in first electronic equipment and the second electronic equipment is aligned by functional diagram number, and functional diagram numbers identical function
Figure alignment, functional diagram are numbered different functional diagram and are misaligned.As it can be seen from table 1 the first electronic equipment and the second electronics are set
All there is functional diagram 1 and functional diagram 4, functional diagram 2 only exists in the first electronic equipment, and functional diagram 2 is in the second electronics in standby
It is not present in equipment, functional diagram 3 only exists in the second electronic equipment, and functional diagram 3 is not present in the first electronic equipment.
Therefore, the functional diagram of individualism and the second electricity in the first electronic equipment can be positioned by functional diagram identification information
The functional diagram of individualism in sub- equipment.Further, determine that the identical check information of identification information is not identical by check information
Functional diagram.These identification informations or the different functional diagram of check information are the objective function figure that need to be corrected.
In some embodiments, step 203 specifically includes: being based on the first comparison result, obtains being directed to extremely for user setting
The synchronization policy of a few objective function figure, or obtain the preset synchronization policy at least one objective function figure.
That is, there are different objective functions between at least two electronic equipments for showing for the first comparison result
Figure, user can be that the setting of objective function figure synchronizes by input unit for the first comparison result shown on display interface
Strategy.Alternatively, presetting and storing the synchronization policy of objective function figure, when detecting different objective function figure, directly
It connects and obtains synchronization policy from storage unit.Synchronization policy can be batch setting or be arranged one by one, can completely or partially select
Select the reference data side of functional diagram.
Here, synchronization policy is used to the objective function figure in the first electronic equipment and the second electronic equipment being adjusted to phase
Together.The corresponding one or more objective function figures of one synchronization policy, that is to say, that can be different for the setting of different target functional diagram
Synchronization policy, or identical synchronization policy is set for multiple objective function figures.
In some embodiments, synchronization policy includes the reference side of setting correction objective function figure.Correspondingly, step 204
It specifically includes: using the objective function figure of reference side, correcting the objective function figure of target side;Wherein, reference side is the first electronics
Target side is the second electronic equipment when equipment, and target side is the first electronic equipment when reference side is the second electronic equipment.
That is, objective function figure be using the objective function figure in the first electronic equipment or the second electronic equipment as
Correction reference.The second electronic equipment is to be corrected object i.e. target side if being correction reference if the first electronic equipment.
Further, using the objective function figure of reference side, the objective function figure of target side is corrected, comprising: by reference side
First kind functional diagram be sent to target side so that target side covers corresponding first kind functional diagram;By the second class of reference side
Functional diagram is sent to target side, so that target side is inserted into the second class functional diagram;The mark of third class functional diagram based on target side
Information generates the deletion instruction for the third class functional diagram of target side;Instruction will be deleted and be sent to target side, so that target side
Delete third class functional diagram;Wherein, the second class functional diagram is the unmatched functional diagram of benchmark side identification information, third class functional diagram
For the unmatched functional diagram of target side identification information.
That is, the first kind functional diagram that objective function figure includes reference side and target side includes, only reference side packet
The second class functional diagram for containing and the third class functional diagram that only target side includes.
In some embodiments, the first comparison result includes: the first label of first kind functional diagram, the second class functional diagram
The third label of second label and third class functional diagram.
That is, by show interface on display first label, second label and third mark, come help user from
The visually type of quickly positioning target functional diagram and objective function figure is to belong to the first electronic equipment while including but having
Discrepant first kind functional diagram is the functional diagram that only the first electric equipment includes, the function that still only the second electronic equipment includes
Figure equipment.First label can be the first color mark and/or the first icon indicia, and the second label can be the second color mark
And/or second icon indicia, third label can be third color mark and/or third icon indicia.
Here, when reference side is device side, then the objective function figure different for CRC and only target function existing for device side
It can scheme, then fill the page product of the objective function figure from device side, page product tail portion includes function diagram page graph data
Compressed content, after extraction decompression covering PC machine side file.For the PC machine sidelong glance mark functional diagram that need to be deleted, then deletion is generated
Instruction, deleting instruction includes needing the page number of delete target functional diagram, is shown in the file and software to delete PC machine storage
Node.
When reference side is PC machine side, objective function figure existing for the objective function figure different for CRC and only PC machine side, then
The corresponding page product of objective function figure is formed, device side is downloaded in such a way that unperturbed updates and comes into force online.For being related to
The operation for deleting device side function diagram page then generates and issues deletion instruction, and deleting instruction includes needing delete target functional diagram
Page number, the device side page is invalid and deletes page product file.
Further, function diagram page product is binary format, including file header (containing crc field), data field, instruction
Area, graph data compressed content.Wherein, crc field is for verifying the identical function of identification information between distinct electronic apparatuses
Information whether identical, that data field and instruction area identify and execute comprising device side, the compressed content of graph data include function
The graphical content of the display interface of figure.
Have functional diagram check function device can be third party device, can also be located at PC machine side, i.e., by PC machine Lai
Realize that functional diagram checks function.In practical application, it is online that PC machine obtains the functional diagram information of local engineering and device side offline
The functional diagram information of engineering, is compared, and shows whether the function diagram page of PC machine side engineering and device side engineering deposits in time
It in difference, and supports that batch checking is synchronous, the comparison of individual feature diagram page is also supported to browse difference content, it is quick convenient for user
Understand it is offline be enough consistent with online engineering and synchronize operation in time, reduce inconsistent, no in project implementing process
Known to etc. brings hidden danger, industrial control device exploitation in applied.
Embodiment three
Based on the same inventive concept, the embodiment of the present application also provides a kind of functional diagram capacity checking devices.As shown in figure 5, should
Device includes:
First acquisition unit 51, for obtaining the functional diagram information of at least two electronic equipments;
Comparing unit 52, for the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control
Display interface processed shows the first comparison result;Wherein, first comparison result is used to indicate at least two electronic equipment
At least one different objective function figure between middle distinct electronic apparatuses;
Second acquisition unit 53 is obtained for being based on first comparison result at least one described objective function
The synchronization policy of figure;
Processing unit 54, for the synchronization policy based at least one objective function figure, correction it is described at least one
Objective function figure shows the second comparison result to control the display interface;Wherein, second comparison result is used to indicate institute
The functional diagram stated at least two electronic equipments between distinct electronic apparatuses is all identical.
In some embodiments, the identification information in the functional diagram information including at least one functional diagram and verification letter
Breath;The objective function figure is identification information mismatch or the unmatched functional diagram of check information.
In some embodiments, the functional diagram of distinct electronic apparatuses is believed at least two electronic equipments
Breath, comprising: the identification information based at least one functional diagram, determine at least two electronic equipment distinct electronic apparatuses it
Between identification information match functional diagram and the unmatched functional diagram of identification information;Check information based at least one functional diagram,
The unmatched first kind functional diagram of check information is determined from the functional diagram of the identification information match;By the first kind function
Figure and the unmatched functional diagram of the identification information are as objective function figure.
In some embodiments, the synchronization policy includes the reference side of setting correction objective function figure;It is described to be based on institute
The synchronization policy of at least one objective function figure is stated, corrects at least one described objective function figure, comprising: utilize the mesh of reference side
Functional diagram is marked, the objective function figure of target side is corrected;Wherein, the reference side is one at least two electronic equipment
Electronic equipment, the target side are at least partly electronic equipment at least two electronic equipment in addition to reference side.
In some embodiments, the objective function figure using reference side corrects the objective function figure of target side, packet
It includes: the first kind functional diagram of reference side is sent to target side, so that the target side covers corresponding first kind functional diagram;It will
Second class functional diagram of reference side is sent to target side, so that the target side is inserted into the second class functional diagram;Based on target side
The identification information of third class functional diagram generates the deletion instruction for the third class functional diagram of target side;The deletion is instructed
It is sent to target side, so that the target side deletes third class functional diagram;Wherein, the second class functional diagram is benchmark side mark
The unmatched functional diagram of information, the third class functional diagram are the unmatched functional diagram of target side identification information.
In some embodiments, first comparison result includes: the first label of the first kind functional diagram, and described the
Second label of two class functional diagrams and the third label of the third class functional diagram.
In some embodiments, first comparison result includes: the different information of first kind functional diagram;Wherein, described
Different information includes at least: the check information of functional diagram, total number of symbols, sign pattern, real name example, identical unique identifier symbol
Number attribute difference, inputoutput data connect difference.
Example IV
Based on the hardware realization of each unit in above-mentioned functional diagram capacity checking device, the embodiment of the present application also provides another function
Energy figure capacity checking device, as shown in fig. 6, the device includes: processor 61 and is configured to store the meter that can be run on a processor
The memory 62 of calculation machine program;
Wherein, when processor 61 is configured to operation computer program, the method and step in previous embodiment is executed.
Certainly, when practical application, as shown in fig. 6, the various components in the device are coupled by bus system 63.
It is understood that bus system 63 is for realizing the connection communication between these components.Bus system 63 except include data/address bus in addition to,
It further include power bus, control bus and status signal bus in addition.But for the sake of clear explanation, by various buses in Fig. 6
All it is designated as bus system 63.
In practical applications, above-mentioned processor can be application-specific IC (ASIC, Application
Specific Integrated Circuit), digital signal processing device (DSPD, Digital Signal Processing
Device), programmable logic device (PLD, Programmable Logic Device), field programmable gate array
At least one of (Field-Programmable Gate Array, FPGA), controller, microcontroller, microprocessor.It can
To understand ground, for different equipment, the electronic device for realizing above-mentioned processor function can also be other, the application reality
Example is applied to be not especially limited.
Above-mentioned memory can be volatile memory (volatile memory), such as random access memory (RAM,
Random-Access Memory);Or nonvolatile memory (non-volatile memory), such as read-only memory
(ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid
State hard disk (SSD, Solid-State Drive);Or the combination of the memory of mentioned kind, and to processor provide instruction and
Data.
In the exemplary embodiment, the embodiment of the present application also provides a kind of computer readable storage medium, for example including
The memory 62 of computer program, above-mentioned computer program can be executed by processor 61, to complete aforementioned method steps.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Schematic diagram and/or block diagram describe.It should be understood that can be realized by computer program instructions in flow diagram and/or block diagram
Each flow and/or block and process and/or box in flow diagram and/or block diagram combination.It can provide this
A little computer program instructions are to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Processor to generate a machine so that the finger executed by the processor of computer or other programmable data processing devices
It enables generating and refer to for realizing in flow diagram one process or multiple processes and/or block diagrams one box or multiple boxes
The device of fixed function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, which realizes in one side of flow diagram one process or multiple processes and/or block diagrams
The function of being specified in frame or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one process of flow diagram or multiple processes and/or box
The step of function of being specified in figure one box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of functional diagram check method, which is characterized in that the described method includes:
Obtain the functional diagram information of at least two electronic equipments;
Compare the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control display interface shows the first ratio
Relatively result;Wherein, first comparison result is used to indicate at least two electronic equipment between distinct electronic apparatuses not
At least one identical objective function figure;
Based on first comparison result, the synchronization policy at least one objective function figure is obtained;
Based on the synchronization policy of at least one objective function figure, at least one described objective function figure is corrected, to control
It states display interface and shows the second comparison result;Wherein, second comparison result is used to indicate at least two electronic equipment
Functional diagram between middle distinct electronic apparatuses is all identical.
2. the method according to claim 1, wherein including at least one functional diagram in the functional diagram information
Identification information and check information;
The objective function figure is identification information mismatch or the unmatched functional diagram of check information.
3. according to the method described in claim 2, it is characterized in that,
The functional diagram information of distinct electronic apparatuses at least two electronic equipments, comprising:
Identification information based at least one functional diagram is determined at least two electronic equipment and is marked between distinct electronic apparatuses
Know the functional diagram and the unmatched functional diagram of identification information of information matches;
Check information based at least one functional diagram does not determine check information not from the functional diagram of the identification information match
The first kind functional diagram matched;
Using the first kind functional diagram and the unmatched functional diagram of the identification information as objective function figure.
4. according to the method described in claim 3, it is characterized in that, the synchronization policy includes setting correction objective function figure
Reference side;
The synchronization policy based at least one objective function figure corrects at least one described objective function figure, comprising:
Using the objective function figure of reference side, the objective function figure of target side is corrected;
Wherein, the reference side is an electronic equipment at least two electronic equipment, the target side be it is described extremely
At least partly electronic equipment in few two electronic equipments in addition to reference side.
5. according to the method described in claim 4, it is characterized in that, the objective function figure using reference side, corrects target
The objective function figure of side, comprising:
The first kind functional diagram of reference side is sent to target side, so that the target side covers corresponding first kind functional diagram;
Second class functional diagram of reference side is sent to target side, so that the target side is inserted into the second class functional diagram;
The identification information of third class functional diagram based on target side, the deletion generated for the third class functional diagram of target side refer to
It enables;Deletion instruction is sent to target side, so that the target side deletes third class functional diagram;
Wherein, the second class functional diagram is the unmatched functional diagram of benchmark side identification information, and the third class functional diagram is mesh
Mark the unmatched functional diagram of side identification information.
6. according to the method described in claim 5, it is characterized in that, first comparison result includes: the first kind function
First label of figure, the second label of the second class functional diagram and the third label of the third class functional diagram.
7. according to the method described in claim 5, it is characterized in that, first comparison result includes: first kind functional diagram
Different information;
Wherein, the different information includes at least: the check information of functional diagram, total number of symbols, sign pattern, real name example, identical
The symbol attribute difference of unique identifier, inputoutput data connect difference.
8. a kind of functional diagram capacity checking device, which is characterized in that described device includes:
First acquisition unit, for obtaining the functional diagram information of at least two electronic equipments;
Comparing unit, for the functional diagram information of distinct electronic apparatuses at least two electronic equipment, control display
The first comparison result of showing interface;Wherein, first comparison result is used to indicate at least two electronic equipment different
At least one different objective function figure between electronic equipment;
Second acquisition unit is obtained for being based on first comparison result for the same of at least one objective function figure
Step strategy;
Processing unit corrects at least one described target function for the synchronization policy based at least one objective function figure
It can scheme, show the second comparison result to control the display interface;Wherein, second comparison result be used to indicate it is described at least
Functional diagram in two electronic equipments between distinct electronic apparatuses is all identical.
9. a kind of functional diagram capacity checking device, which is characterized in that described device includes: processor and is configured to store and can handle
The memory of the computer program run on device,
Wherein, when the processor is configured to run the computer program, perform claim requires any one of 1 to 7 the method
The step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
The step of claim 1 to 7 described in any item methods are realized when processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910186250.1A CN109933398A (en) | 2019-03-12 | 2019-03-12 | Check method, device and the computer readable storage medium of function diagram page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910186250.1A CN109933398A (en) | 2019-03-12 | 2019-03-12 | Check method, device and the computer readable storage medium of function diagram page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109933398A true CN109933398A (en) | 2019-06-25 |
Family
ID=66986762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910186250.1A Pending CN109933398A (en) | 2019-03-12 | 2019-03-12 | Check method, device and the computer readable storage medium of function diagram page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933398A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111460629A (en) * | 2020-03-16 | 2020-07-28 | 南京南瑞继保电气有限公司 | Graphic data checking method and device, electronic equipment and computer storage medium |
CN112954060A (en) * | 2021-02-19 | 2021-06-11 | 南京南瑞继保电气有限公司 | Data analysis method and device, electronic equipment and storage medium |
CN113741411A (en) * | 2021-11-08 | 2021-12-03 | 西安热工研究院有限公司 | Generation method and system of global variable point product file of distributed control system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5751592A (en) * | 1993-05-06 | 1998-05-12 | Matsushita Electric Industrial Co., Ltd. | Apparatus and method of supporting functional design of logic circuit and apparatus and method of verifying functional design of logic circuit |
CN102591635A (en) * | 2010-11-22 | 2012-07-18 | 西门子公司 | Graphical comparison display of software |
CN102622463A (en) * | 2012-01-05 | 2012-08-01 | 山东电力工程咨询院有限公司 | Drawing-model uniformity based method for automatic check of design drawings |
US20130132059A1 (en) * | 2011-03-31 | 2013-05-23 | Udmtek Co., Ltd. | Multiple plc simulation system |
CN105868043A (en) * | 2016-03-25 | 2016-08-17 | 南京南瑞继保电气有限公司 | Visualization page program modification consistency verification method |
CN105930174A (en) * | 2016-05-22 | 2016-09-07 | 南京南瑞继保电气有限公司 | Difference comparison method and system for graphical page programs |
CN107193747A (en) * | 2017-05-27 | 2017-09-22 | 北京金山安全软件有限公司 | Code testing method and device and computer equipment |
-
2019
- 2019-03-12 CN CN201910186250.1A patent/CN109933398A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5751592A (en) * | 1993-05-06 | 1998-05-12 | Matsushita Electric Industrial Co., Ltd. | Apparatus and method of supporting functional design of logic circuit and apparatus and method of verifying functional design of logic circuit |
CN102591635A (en) * | 2010-11-22 | 2012-07-18 | 西门子公司 | Graphical comparison display of software |
US20120304148A1 (en) * | 2010-11-22 | 2012-11-29 | Siemens Aktiengesellschaft | Visual comparison display of software |
US20130132059A1 (en) * | 2011-03-31 | 2013-05-23 | Udmtek Co., Ltd. | Multiple plc simulation system |
CN102622463A (en) * | 2012-01-05 | 2012-08-01 | 山东电力工程咨询院有限公司 | Drawing-model uniformity based method for automatic check of design drawings |
CN105868043A (en) * | 2016-03-25 | 2016-08-17 | 南京南瑞继保电气有限公司 | Visualization page program modification consistency verification method |
CN105930174A (en) * | 2016-05-22 | 2016-09-07 | 南京南瑞继保电气有限公司 | Difference comparison method and system for graphical page programs |
CN107193747A (en) * | 2017-05-27 | 2017-09-22 | 北京金山安全软件有限公司 | Code testing method and device and computer equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111460629A (en) * | 2020-03-16 | 2020-07-28 | 南京南瑞继保电气有限公司 | Graphic data checking method and device, electronic equipment and computer storage medium |
CN111460629B (en) * | 2020-03-16 | 2022-07-22 | 南京南瑞继保电气有限公司 | Graphic data checking method and device, electronic equipment and computer storage medium |
CN112954060A (en) * | 2021-02-19 | 2021-06-11 | 南京南瑞继保电气有限公司 | Data analysis method and device, electronic equipment and storage medium |
CN112954060B (en) * | 2021-02-19 | 2023-03-28 | 南京南瑞继保电气有限公司 | Data analysis method and device, electronic equipment and storage medium |
CN113741411A (en) * | 2021-11-08 | 2021-12-03 | 西安热工研究院有限公司 | Generation method and system of global variable point product file of distributed control system |
CN113741411B (en) * | 2021-11-08 | 2022-02-01 | 西安热工研究院有限公司 | Generation method and system of global variable point product file of distributed control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Chicharro et al. | Drawing dynamical and parameters planes of iterative families and methods | |
US9705761B2 (en) | Opinion information display system and method | |
CN109933398A (en) | Check method, device and the computer readable storage medium of function diagram page | |
CN109582772B (en) | Contract information extraction method, contract information extraction device, computer equipment and storage medium | |
CN108388598A (en) | Electronic device, date storage method and storage medium | |
CN112949973B (en) | Automatic generation method of robot flow RPA (reactive power analysis) flow combining with AI (advanced technology attachment) | |
CN110515951B (en) | BOM standardization method and system, electronic device and storage medium | |
CN106874253A (en) | Recognize the method and device of sensitive information | |
CN107438833A (en) | A kind of data-updating method, device, system and server | |
CN110909168B (en) | Knowledge graph updating method and device, storage medium and electronic device | |
CN109756368A (en) | Detection method, device, computer readable storage medium and the terminal of unit exception change | |
CN109871205B (en) | Interface code adjustment method, device, computer device and storage medium | |
CN112528189A (en) | Data-based component packaging method and device, computer equipment and storage medium | |
US20220376991A1 (en) | System and method for visualizing and navigating network data | |
CN114860531A (en) | Fault detection method and device for security chip, electronic equipment and medium | |
CN111460629B (en) | Graphic data checking method and device, electronic equipment and computer storage medium | |
CN108170838B (en) | Topic evolution visualization display method, application server and computer readable storage medium | |
CN110673507A (en) | Data simulation method and device for Internet of things equipment | |
CN113238748B (en) | Direct current control and protection program page modification and verification method, device, terminal and medium | |
CN106610899B (en) | Test case generation method and device | |
CN106446611A (en) | Security-level information generation and reading methods and apparatuses | |
CN103593532A (en) | Data processing method and device for charting | |
CN107992995A (en) | A kind of method and system for creating technological process title | |
CN108595325A (en) | Input method software testing method and device and electronic equipment | |
CN113656466A (en) | Policy data query method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190625 |
|
WD01 | Invention patent application deemed withdrawn after publication |