CN102243585B - Global script program processing and analyzing method of human-machine interaction interface monitoring system - Google Patents

Global script program processing and analyzing method of human-machine interaction interface monitoring system Download PDF

Info

Publication number
CN102243585B
CN102243585B CN201110196675.4A CN201110196675A CN102243585B CN 102243585 B CN102243585 B CN 102243585B CN 201110196675 A CN201110196675 A CN 201110196675A CN 102243585 B CN102243585 B CN 102243585B
Authority
CN
China
Prior art keywords
script
function
priority
variable
overall
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110196675.4A
Other languages
Chinese (zh)
Other versions
CN102243585A (en
Inventor
徐思敏
张鹏
张磊
常宗虎
吕冬宝
肖代云
王强
何志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Nuclear Power Engineering Co Ltd
Original Assignee
China Nuclear Power Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Nuclear Power Engineering Co Ltd filed Critical China Nuclear Power Engineering Co Ltd
Priority to CN201110196675.4A priority Critical patent/CN102243585B/en
Publication of CN102243585A publication Critical patent/CN102243585A/en
Application granted granted Critical
Publication of CN102243585B publication Critical patent/CN102243585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention relates to a global script program processing and analyzing method of a human-machine interaction interface monitoring system. According to the method, a program function needing global monitoring is subjected to priority matching, and a variable is used as an identification bit of the global function complied with different programming languages, so that interactive execution of scripts among different languages is facilitated. According to the method disclosed by the invention, the problem that the programs which cannot be executed at the initializing stage and under other specific situations are executed without limit is solved; and when a plurality of script conditions are simultaneously met, the programs are executed in sequence so that no script can be omitted.

Description

A kind of human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method
Technical field
The present invention relates to the method for designing of human-computer interaction interface system program, be specially a kind of human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method.
Background technology
At present, man machine operation interface is widely used in industry, spreads all over every field, and its reliability and security become the problem that software developer and final user are concerned about the most.Under development platform commonly used, general except adopting visualization procedure to write, the overall script also provided in conjunction with platform carries out program development, completes the exploitation of man machine operation interface.Overall situation script is triggered by the trigger condition of setting, and when condition meets, system is not controlled by picture state or operator can automatically perform shell script, has strengthened the functional of interpersonal operation interface.
These development platform softwares should only just be carried out corresponding scripts to overall script when the trigger condition of each script meets, but, usually development platform software has following defect: at first, program operation initial phase is not subject to any trigger condition restriction to carry out whole overall scripts, do not distinguish sequencing, can not selectivity carry out; Secondly, under specific circumstances, as with after the plc communication disconnection, again successfully set up and communicate by letter, be not subject to the trigger condition restriction to carry out whole overall scripts, do not distinguish sequencing, can not selectivity carry out; The 3rd, when two script conditions meet simultaneously, and while processing same target, one of them script that may ignore is not carried out.
Above-mentioned defect, will reduce reliability and the security of man machine operation interface, and programmer's program design has been caused to difficulty, and operator's use has been increased to risk.
Summary of the invention
The object of the present invention is to provide a kind of method that realizes overall shell script analyzing and processing, can sequentially carry out also selectivity according to setting in all cases and carry out overall script, settlement procedure is not subject to trigger condition restriction, the intrinsic defect of this development platform whole and that carry out without permanent order.
For achieving the above object, technical scheme of the present invention is as follows: a kind of human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method comprises following content:
(a). write the project function according to subfunction, overall shell script adopts the method for directly calling the project function to complete subfunction;
(b). set priority for each needs the project function that variable triggers, interior project function execution sequence at the same level is fixing, and sets the priority tag variable;
(c). for whether each priority level initializing marking variable has this level item function to need to carry out in order to expression;
(d). for each project function is set the action identification position in order to mean whether this project function needs to carry out;
(e). set with plc communication and disconnect flag in order to mean foundation and the off-state of communicating by letter;
(f). write overall script, and set the trigger condition of each script, overall script comprises:
Initializtion script, comprise system initialization parameter and function;
The priority script, height has according to priority judged whether that step by step the project function need to be carried out and has not carried out, if there is certain grade of script need to carry out and not carry out, jumps out the priority determining program, trigger this rank script, put this rank script marking variable for needing the state of carrying out;
Scripts at different levels, scan this level item function action identification position, carries out all flags for need carrying out and the function of executing state not, and after all executing, putting this level priorities marking variable is the complete state of executed, and returns to the priority script and continue to carry out;
Disconnect script with plc communication, foundation or disconnection are communicated by letter with PLC's, during triggering by all function action identification position, priority tag variable, the initialization of overall script flag;
(g). for each overall script design flag, in order to mean whether initialization, initial value is 0, equals 0 expression no initializtion, equals 1 expression initialization and finishes;
(h). write the global variable that the cycle triggers and the time triggers;
(i). for each overall shell script increases following logic: at first judge in overall script in order to mean whether initialized flag is 1, if 0, jump out this program after putting this variable and be 1, if 1, the content of originally writing carried out.
Further, human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method as above, in (b) item, while setting the priority tag variable, 1 is highest, and 2 is second advanced, and by that analogy, the larger priority of marking variable value is lower.
Further, human-computer interaction interface supervisory system as above overall situation shell script Treatment Analysis method, in (c), for the initial value of each priority level initializing marking variable is 0, equal to mean to have this rank function to need to carry out at 1 o'clock, equal to mean that this rank function executes at 2 o'clock.
Further, human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method as above, in (d) item, the initial value of setting the action identification position for each project function is 0, equal to mean that this function does not need to carry out at 0 o'clock, equal to mean that this function need to be carried out at 1 o'clock and do not carry out.
Further, human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method as above, in (e) item, disconnecting flag with plc communication is 1 o'clock connection setup, is with plc communication, to disconnect in 0 o'clock.
Further, human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method as above, in (f) item, the trigger condition of each script is as follows:
Initializtion script, trigger condition is for starting for the first time;
The priority script, trigger condition needs to carry out and unenforced project function for existing;
Scripts at different levels, trigger condition is expressed as for this rank marking variable the state that this rank function need to be carried out;
Disconnect script with plc communication, trigger condition is expressed as off-state for plc communication, disconnecting flag.
Beneficial effect of the present invention is as follows:
1. for to need the program function of global monitoring to carry out the priority distribution;
2. the flag of the overall situation function of writing as different programming languages with variable, facilitate the mutual execution of script between different language;
3. solved the problem of the program unrestricted execution that initial phase and other particular cases should not carry out;
4. when a plurality of script conditions meet, will carry out in order simultaneously, can not neglect any script.
The accompanying drawing explanation
The program flow diagram that Fig. 1 is priority overall situation script of the present invention;
The program flow diagram that Fig. 2 is overall scripts at different levels of the present invention;
The program flow diagram that the flag that Fig. 3 is overall script of the present invention is set;
Fig. 4 is program flow diagram of the present invention and the rear execution of plc communication disconnection;
Fig. 5 is according to the designed fuel manipulator crane human-computer interaction interface software design system schematic diagram of method of the present invention;
The function tree graph that Fig. 6 is fuel manipulator crane human-computer interaction interface software.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be described in detail.
The method of the overall shell script analyzing and processing of realization provided by the present invention, this disposal route comprises following content:
(a) write the project function according to subfunction, overall shell script adopts the method for directly calling the project function to complete subfunction, is generally C language, VBS language etc.;
(b) set priority for each needs the project function that variable triggers, interior project function execution sequence at the same level is fixing, sets the priority tag variable, and 1 is highest, and 2 is second advanced, and by that analogy, the larger priority of marking variable value is lower;
(c) be each priority level initializing marking variable, initial value is 0, equals to mean to have this rank function to need to carry out at 1 o'clock, equals to mean that this rank function executes at 2 o'clock;
(d) set the action identification position for each function, initial value is 0, equals to mean that this function does not need to carry out at 0 o'clock, equals to mean that this function need to be carried out at 1 o'clock and does not carry out;
(e) setting with plc communication and disconnect flag, is 1 o'clock connection setup, is with plc communication, to disconnect in 0 o'clock;
(f) write overall script: initializtion script, trigger condition is for starting for the first time; The priority script, the action identification position that trigger condition is all functions is not all 0; Scripts at different levels, trigger condition is 1 for this rank marking variable; Disconnect script with plc communication, trigger condition is 0 for plc communication, disconnecting flag;
Initializtion script: comprise the functions such as system initialization parameter;
Priority script: judged whether that 1 grade of function need to be carried out and do not carried out, if do not have, judged whether that 2 grades of functions need to be carried out and do not carried out, if do not have, judged whether that 3 grades of functions need to be carried out and do not carried out, by that analogy, until lowermost level, if there is certain grade of script need to carry out and not carry out, is jumped out the priority determining program, trigger this rank script, putting this rank script marking variable is 1; The program flow diagram of priority overall situation script as shown in Figure 1;
Scripts at different levels: scan this rank function action identification position, carry out the function that all flags equal 1, all execute postposition, this level priorities marking variable is 2, and returns to the priority script and continue to carry out; The program flow diagram of overall scripts at different levels as shown in Figure 2;
Disconnect script with plc communication: foundation or disconnection are communicated by letter with PLC's, during triggering by all function action identification position, priority tag variable, the initialization of overall script flag; The program flow diagram of carrying out after disconnecting with plc communication as shown in Figure 4;
(g) be each overall script design flag, initial value is 0, equals 0 expression no initializtion, equals 1 expression initialization and finishes;
(h) write the global variable that the cycle triggers and the time triggers;
(i) increase following logic for each overall shell script: at first judge in overall script in order to mean whether initialized flag is 1, if 0, jump out this program after putting this variable and be 1, if 1, the content of originally writing carried out; The program flow diagram that the flag of overall situation script is set as shown in Figure 3.
Embodiment
The inventive method is applied to the program development of pressurized water reactor nuclear power station material-loading/unloading machine system man machine operation interface.Realize on industrial computer, with combinations such as operating console, Programmable Logic Controller PLC and auxiliary circuits, jointly set up the fuel manipulator crane electric-control system.Described industrial computer adopts touch screen computer, built-in MS Window XP embedded OS, adopt the Software Development Platform of SIMATIC WinCC as man machine operation interface, by built-in communication driver realization and the communication of the S7PLC on PROFIBUS field bus are installed.The man machine operation interface design of the present embodiment is programmed and is realized in conjunction with overall Script Programming by picture, the software design system principle as shown in Figure 5, the realization of goal human-computer interaction interface to the Real-Time Monitoring of fuel manipulator crane operation, handle the functions such as processing, data recording of controlling, report to the police.The human-computer interaction interface software development adopts multiple programming language (ANSI-C, VBS, VBA, Transact-SQL) and graphic editor to carry out Software for Design.
Human-computer interaction interface is as operator's monitoring, control the main command window of fuel manipulator crane, the data of communication interface collection are processed and calculated, instruct the operation of automatic operational mode, the assistance operator correctly sends instruction and completes the process of reloading, and in time failure condition is reported to the police and record, for making operator's monitoring more vivid to equipment state, to operation judgement more accurately, improve the degree of accuracy of operation, the interface that the design of human-computer interaction interface many places contains animation effect, in real time, efficiently and intuitively reflect the running status of fuel manipulator crane, the exploitation of cartoon interface adopts and actual proportional 2 D animation model, dexterously labyrinth is converted into easy to identify, the animation effect that function is complete.
The concrete function tree construction of the present embodiment as shown in Figure 6, wherein C1 can be according to state auto-switching, the demonstration and hiding of fuel manipulator crane operation to C5, make the operator can not ignore any action that can show, prompting and warning, and can next step correct content of operation of prompting operation person.The picture program of conversion automatically can reduce operator's manual operation, thereby has reduced the factor that the people is in operation.The human-computer interaction interface software program is achieved as follows picture and function:
--B1: login.After power-on, human-computer interaction interface starts, and enters login screen, and this picture is realized login feature, will be to operator's authority classification, and the enterable picture of the operator of different stage is different with the function that can realize.
--P1: operation.After operator's login, can monitor and operate the fuel manipulator crane operation by human-computer interaction interface, two pictures are set under running status, and main improving picture and large and small car picture, show the motion on vertical direction and horizontal direction respectively.
--P2: system setting.After operator login, can to the partial parameters of fuel manipulator crane, this part function be set by human-computer interaction interface.
--P3: basic test.Before operator's login, can carry out basic test, for example lamp test to fuel manipulator crane.Running status will be entered after login, basic test must not be carried out.
--P4: the state of every system bypass and setting.Can enter different system bypasses after operator's login of different rights picture is set, can activate and cancel the system bypass.
--P5: the modification of reactor core map.Draw the reactor core map according to actual core region grid positions, have the operator of corresponding authority can need to revise according to operation the state (set/room) of each grid.
--P6: the state of each scrambler and setting.Cart, dolly and main lifting scrambler comprise respectively two of master and slave scramblers, the output valve difference of principal and subordinate's scrambler are compared, as one of effective way of monitoring coder state.Separately can change the priority of master and slave scrambler as required.
--P7: sipping test.Confirm the initial setting up of sipping test.
--P8: the enabling of system basic functions arranges.The operator that corresponding authority is arranged, can change that deflection method is reloaded, sipping test, scrambler enable arrange.
--P9: large and small car screen operation.Can switch manual, full-automatic, semi-automatic operation; Can stop the automatic operation of large and small car; Can check the interlocking of startup/bypass information; When the system failure occurring, can check the system failure and resetting system fault; When conditions permit, can enter main improving picture, system setting by large and small car picture, make that the operator logins again, shutdown system.
--P10: automatically stop.Under manual mode, when main lifting drops to 4500mm, will automatically stop next step operation of prompting operation person.
--P11: main lifting stops automatically.When the operator selects to reload with deflection method, if fuel manipulator crane has entered the deflection method transshipment area, main lifting stops, and prompting operation person carries out next step offset operation, and after moving to the centering position, main lifting continues to descend.
--P12: main improving picture operation.Can switch manual, full-automatic, semi-automatic operation; Can stop the automatic operation of main lifting; Can check the interlocking of startup/bypass information; When the system failure occurring, can check the system failure and resetting system fault; When conditions permit, can enter large and small car picture, system setting by main improving picture, make that the operator logins again, shutdown system.
--P13: main lifting descends and interlocks.The state of the main lifting decline of prompting operation person interlocking and the reason of interlocked startup.
--P14: the system failure is reported to the police and is resetted.Monitoring P20 is to P32 43 system failures warnings of totally 13 class.When fault alarm is initiated the alarm sound equipment.The detailed content that data-base recording is reported to the police and started and finish.Can get back to normal operating conditions by the human-computer interaction interface resetting system after trouble shooting.
--P15: the semi-automatic operation pattern arranges.Allowing to adopt under the condition of semi-automatic operation pattern, start the semi-automatic operation pattern, system can be automatically moved to target location by fuel manipulator crane according to the position command of operator's input, then according to the operator, the automatic-ascending of main lifting, the order that descends is moved to main lifting automatically.
--P16: the full automatic working pattern arranges.Allowing to adopt under the condition of full automatic working pattern, start the full automatic working pattern, system can be according to the parameters such as the order of automatically reloading that are written in database, the operation of automatically reloading, and the operator completes simple confirmation work according to the information on touch-screen.
--P17: gripping apparatus fault interlocking.The state of prompting operation person's gripping apparatus fault interlocking and the reason of interlocked startup.
--P18: gripping apparatus discharges interlocking.Prompting operation person's gripping apparatus discharges the state of interlocking and the reason of interlocked startup.
--P19: large and small car interlocking.The state of the large and small car interlocking of prompting operation person and the reason of interlocked startup.
--P20: motion fault alarm.The reason of judgement motion fault alarm, and the detailed content of prompting motion fault.
--P21: encoder fault is reported to the police.The reason that the judgement encoder fault is reported to the police, and the detailed content of prompting encoder fault.
--P22: the motor driving malfunction is reported to the police.The reason that judgement motor driving malfunction is reported to the police, and the detailed content of prompting motor driving malfunction.
--P23: hypervelocity fault alarm.The reason of judgement hypervelocity fault alarm, and the detailed content of prompting hypervelocity fault.
--P24: scrambler is fault alarm relatively.The judgement scrambler is the reason of fault alarm relatively, and the detailed content of prompting scrambler alarm failure.
--P25: fuel selection switch fault alarm.The detailed content of prompting fuel selection switch fault.
--P26: handwheel fault alarm.The reason of judgement handwheel fault alarm, and the detailed content of prompting handwheel fault.
--P27: load transducer is fault alarm relatively.The prompting load transducer is the detailed content of fault relatively.
--P28: control the power supply dead electricity and report to the police.The detailed content of power supply Loss of power failure is controlled in prompting.
--P29:PLC I/O fault alarm.The detailed content of prompting PLC I/O fault.
--P30: air pressure is hanged down fault alarm.The detailed content of the low fault of prompting air pressure.
--P31: the main hoisting brake wear-out failure is reported to the police.The detailed content of prompting main hoisting brake wear-out failure.
--P32: the weightless fault alarm of damper weight.The detailed content of the weightless fault of prompting damper weight.
--C1: the operation of cart and dolly.By the animation of overall script and internal processes module, cart and dolly, realize the monitoring to cart and dolly.
--C2: the operation of main lifting and TV bar.By the animation of overall script and internal processes module, main lifting and TV bar, realize the operation of main lifting and TV bar is controlled, while being switched to automatic operational mode, can operate main lifting automatic-ascending and decline by human-computer interaction interface.
--C3: the selection that deflection method is reloaded.By overall script and internal processes module, calculate, when system allows to reload with deflection method, whether demand operating person reloads with deflection method.
--C4: the operation that deflection method is reloaded.By the deflection method running status that animation and monitor message reflection deflection method reloads of reloading, and can stop deflection method and reload.
--C5: emergent stopping.When pressing scram button, the emergent stopping warning window ejects.The urgency of prompting operation person's fuel manipulator crane is stopped state.
--W1: system state monitors.The output valve of each scrambler and comparison result of calculation, running environment state (air pressure value, fuel manipulator crane state, tiltable frame state etc.), current system set condition are monitored.
--W2: the status surveillance of cart and dolly.Cart and crab traversing speed and speed state, current location, relevant limit switch, interlock bypass condition, region, automatic operation state etc. are monitored.
--W3: the status surveillance of main lifting and TV bar.The travelling speed of main lifting and TV bar and speed state, current location, relevant limit switch, interlock bypass condition, automatic operation state, main lifting load, gripping apparatus state, load condition etc. are monitored.
--M1: the operation animation of cart and dolly.For making the human-computer interaction interface picture can intuitively reflect run location and the state of fuel manipulator crane cart, dolly, but draw the horizontal plane emulation map (comprising the district that tumbles, operational area, core region) that becomes 1:800 with the operation area of fuel manipulator crane reality, mean fuel manipulator crane gripping apparatus position with round dot, with the refresh rate of 250ms, reflect in real time the position in gripping apparatus relative motion zone with the animation form.When entering core region, (design in reactor core map and P5 is consistent to start the reactor core cartographic animation, setting and change to the reactor core map in P5 embody herein simultaneously), be amplified to the ratio that becomes 1:16 with actual reactor core size, with the refresh rate of 250ms, reflect in real time the position of the relative core region of gripping apparatus with the animation form.
--M2: the operation animation of main lifting and TV bar.For making the human-computer interaction interface picture can intuitively reflect run location and state that the fuel manipulator crane master promotes, drawn the vertical direction plane analogous diagram that becomes 1:400 with fuel manipulator crane (from scrambler top 0 entirely the next to reactor core), according to practical operation situation, the engagement of demonstration tiltable frame, assembly, sleeve, gripping apparatus/release, TV bar etc., with the refresh rate of 250ms, with position and the state of the main lifting of reflection in real time of animation form and TV bar.
--M3: the operation animation that deflection method is reloaded.Run location and the state of assembly when making the human-computer interaction interface picture intuitively reflect that the fuel manipulator crane deflection method is reloaded, draw the horizontal plane analogous diagram that becomes 1:4 with fuel manipulator crane and (comprised target location and adjacent position thereof, totally 9 grids), according to practical operation situation, show reactor core trellis states could (whether having assembly to fill), deviation post, gripping apparatus position etc., refresh rate with 250ms, reflect in real time with the animation form running status that deflection method is reloaded, making the operator complete like clockwork deflection method according to human-computer interaction interface animation direct control handle reloads.
--D1: data base administration.Database is preserved in the fuel manipulator crane operational process technological parameter to assembly operation, the location parameter in core region, operational area, transit zone, the sequence parameter of reloading of full automatic working.When needs in service call these data, after interface query-relevant data by database software and human-computer interaction interface software, call in the human-computer interaction interface computing or directly process, this part data is directly connected to accuracy, high efficiency and the security of fuel manipulator crane operation.Database also real time record fuel manipulator crane is opened all fault alarms, bypass after the human-computer interaction interface important service data when activating/cancelling action, assembly operation etc. and moving.The all right turn-on data library software Update Table of operator storehouse, login windows browser are derived the service data record.Consider the importance of database, the authority that other operator of different operating level has strictly been distributed to inquiry and management data.
Human-computer interaction interface program of the present invention realizes above-mentioned functions by overall script and the embedded script of picture assembly, and design comprises 14 program modules altogether, and the concrete function of modules is as follows:
--the definition module of communication data structure, this module completes data definition and the pre-service of Profibus bus transfer.
--the definition module of internal data structure, this module completes internal data definition and pre-service.
--system initialization module, this module completes variable and program initialization work, comprises 3 subroutines (1 global program).Initialization of variable comprises master routine initialization of variable, subroutine initialization of variable, default setting initialization of variable.Program initialization comprises signal procedure initialization, database program initialization, the fetch program initialization of fuel manipulator crane equipment configuration parameter etc.
--operator's login and power level distribution module, this module completes the judgement of operator's entry password and the division of authority, according to the exercisable picture of power level defining operation person and action.
--the picture automatic switching module, this module comprises 13 subroutines (1 global program needs variable to trigger), realization is according to the fuel manipulator crane running status, the operation picture that automatically switches (large and small car picture, main improving picture, alarm picture, deflection method reload picture etc.).
--the deflection method module of reloading, this module comprises 17 subroutines (5 global programs need variable to trigger), and the 250ms of take realizes deflection method reload real-time follow-up and the processing of data as refresh rate at every turn, completes the judgement of deviation post and the monitoring of courses of action.
--large and small car operation module, this module comprises 31 subroutines (13 global programs need variable to trigger), take 250ms at every turn as real-time follow-up and the processing of refresh rate realization to large and small car service data, complete the judgement of large and small car travelling speed, position, state, fault and the monitoring of operating path.
--main lifting operation module, this module comprises 35 subroutines (11 global programs need variable to trigger), take 250ms at every turn as real-time follow-up and the processing of refresh rate realization to main lifting service data, complete the judgement of main lifting travelling speed, position, state, fault and the monitoring of operating path.
--TV bar operation module, this module comprises 7 subroutines (3 global programs need variable to trigger), take 250ms at every turn as real-time follow-up and the processing of refresh rate realization to TV bar service data, complete judgement and monitoring to TV bar travelling speed, position, state, fault.
--database module, this module comprises 128 subroutines (120 global programs need variable to trigger), the write a program record of the activation that relates to altogether the starting and finish of 43 fault alarms, 10 bypass events and cancellation, all component action of trigger-type, 7 real time data library inquiry subroutines.
--the semi-automatic operation module, this module comprises 12 subroutines (5 global programs need variable trigger), completes functions such as judge whether running status, target location validity, automatic operation condition be satisfied, prompting operation person's proper operation.
--the full automatic working module, this module comprises 10 subroutines (7 global programs need variable trigger), complete judge running status, transfer operational factor corresponding to input step number, the functions such as whether the automatic operation condition satisfied, prompting operation person's proper operation.
--picture Embedding function module, this module comprises 54 subroutines (0 global program needs variable to trigger), for space free in picture, calls.
--API External Program Interface module, this module comprises 5 subroutines (0 global program need variable trigger), has the operator of corresponding authority can enter that windows browser performing database is derived operation, the sequential file import operation reloads; Enter MS SQL Server management database; Carry out switching on and shutting down etc.
Programming language is not distinguished to by the global program (totally 166) that needs variable to trigger in above-mentioned modular subroutine, only priority is divided, being divided into is 5 ranks, utilization VBS, ANSI-C apply mechanically VBA and Transact-SQL carries out function programming to above-mentioned functions, write altogether 166 of functions, and set the action identification position of each function.Write the overall shell script of each priority by global script, same other project function of level writes in identical overall script and calls, and is each other priority level initializing initializing variable of level.Specific as follows:
Figure GDA0000373837560000131
Under the program normal operation, the action identification position of one or more project functions becomes at 1 o'clock (being to mean that this function needs to carry out at 1 o'clock), at first trigger the priority determining program, the action that will carry out is sorted by rank, at first call high level overall script, treat that it is 2 that high level script executes rearmounted this rank marking variable, the priority determining program is returned in triggering, call other overall script of next stage, the overall script called can be carried out across VBS, ANSI-C script-editor, has realized calling in order different language editor's program.
When activating (and initial phase), project re-establishes in situation with after the disconnection of communicating by letter, WinCC carries out unordered execution by unrestricted to whole overall scripts, this will upset the program setting order and trigger the project function that should not now carry out, but example of the present invention to all overall script designs initializing variable (initial value is 0, as Init_1), when project activates, no matter at first carry out that overall script, all first the initializing variable of this script is put to 1, other logics only have when initializing variable is 1 and could carry out, reach when this script is performed for the first time and do not carry out other logics, and need the program of carrying out again to trigger and to carry out in order the project function that needs execution by the action identification position.When project is cancelled activation or disconnected with plc communication, all marking variables or flag will reset.
The pressurized water reactor nuclear power station material-loading/unloading machine human-computer interaction interface software implementation method that the present embodiment provides shows in test and the experience of operation debug phase, under normal operation, the method contributes to improve the efficiency of reloading, reduce operator's fault rate, made up the intrinsic defect of WinCC software, improve reliability and the security of equipment, can complete well the handling material operation of expection.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if of the present invention these are revised and within modification belongs to the scope of the claims in the present invention and equivalent technology thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (5)

1. human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method is characterized in that: comprise following content:
(a). write the project function according to subfunction, overall shell script adopts the method for directly calling the project function to complete subfunction;
(b). set priority for each needs the project function that variable triggers, interior project function execution sequence at the same level is fixing, and sets the priority tag variable;
(c). for whether each priority level initializing marking variable has this level item function to need to carry out in order to expression;
(d). for each project function is set the action identification position in order to mean whether this project function needs to carry out;
(e). set with plc communication and disconnect flag in order to mean foundation and the off-state of communicating by letter;
(f). write overall script, and set the trigger condition of each script, overall script comprises:
Initializtion script, comprise system initialization parameter and function;
The priority script, height has according to priority judged whether that step by step the project function need to be carried out and has not carried out, if there is certain grade of script need to carry out and not carry out, jumps out the priority determining program, trigger this rank script, put this rank script marking variable for needing the state of carrying out;
Scripts at different levels, scan this level item function action identification position, carries out all flags for need carrying out and the function of executing state not, and after all executing, putting this level priorities marking variable is the complete state of executed, and returns to the priority script and continue to carry out;
Disconnect script with plc communication, foundation or disconnection are communicated by letter with PLC's, during triggering by all function action identification position, priority tag variable, the initialization of overall script flag;
The trigger condition of each script is as follows:
Initializtion script, trigger condition is for starting for the first time;
The priority script, trigger condition needs to carry out and unenforced project function for existing;
Scripts at different levels, trigger condition is expressed as for this rank marking variable the state that this rank function need to be carried out;
Disconnect script with plc communication, trigger condition is expressed as off-state for plc communication, disconnecting flag;
(g). for each overall script design flag, in order to mean whether initialization, initial value is 0, equals 0 expression no initializtion, equals 1 expression initialization and finishes;
(h). write the global variable that the cycle triggers and the time triggers;
(i). for each overall shell script increases following logic: at first judge in overall script in order to mean whether initialized flag is 1, if 0, jump out this program after putting this variable and be 1, if 1, the content of originally writing carried out.
2. human-computer interaction interface supervisory system overall situation shell script Treatment Analysis method as claimed in claim 1, is characterized in that: in (b) item, while setting the priority tag variable, 1 is highest, 2 is second advanced, and by that analogy, the larger priority of marking variable value is lower.
3. human-computer interaction interface supervisory system as claimed in claim 1 overall situation shell script Treatment Analysis method, it is characterized in that: in (c) item, for the initial value of each priority level initializing marking variable is 0, equal to mean to have this rank function to need to carry out at 1 o'clock, equal to mean that this rank function executes at 2 o'clock.
4. human-computer interaction interface supervisory system as claimed in claim 1 overall situation shell script Treatment Analysis method, it is characterized in that: in (d) item, the initial value of setting the action identification position for each project function is 0, equal to mean that this function does not need to carry out at 0 o'clock, equal to mean that this function need to be carried out at 1 o'clock and do not carry out.
5. human-computer interaction interface supervisory system as claimed in claim 1 overall situation shell script Treatment Analysis method is characterized in that: in (e), disconnecting flag with plc communication is 1 o'clock connection setup, is with plc communication, to disconnect in 0 o'clock.
CN201110196675.4A 2011-07-14 2011-07-14 Global script program processing and analyzing method of human-machine interaction interface monitoring system Active CN102243585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110196675.4A CN102243585B (en) 2011-07-14 2011-07-14 Global script program processing and analyzing method of human-machine interaction interface monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110196675.4A CN102243585B (en) 2011-07-14 2011-07-14 Global script program processing and analyzing method of human-machine interaction interface monitoring system

Publications (2)

Publication Number Publication Date
CN102243585A CN102243585A (en) 2011-11-16
CN102243585B true CN102243585B (en) 2014-01-08

Family

ID=44961657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110196675.4A Active CN102243585B (en) 2011-07-14 2011-07-14 Global script program processing and analyzing method of human-machine interaction interface monitoring system

Country Status (1)

Country Link
CN (1) CN102243585B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388444B (en) * 2017-08-03 2021-11-16 上海宝信软件股份有限公司 Distribution process of ingredients under tank

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246439A (en) * 2008-03-18 2008-08-20 中兴通讯股份有限公司 Automatized test method and system based on task scheduling
CN102012809A (en) * 2010-11-10 2011-04-13 国电南瑞科技股份有限公司 Comprehensive monitoring linkage module design and implementation method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246439A (en) * 2008-03-18 2008-08-20 中兴通讯股份有限公司 Automatized test method and system based on task scheduling
CN102012809A (en) * 2010-11-10 2011-04-13 国电南瑞科技股份有限公司 Comprehensive monitoring linkage module design and implementation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常宗虎,张鹏,徐思敏.核电站装卸料机控制系统设计方法.《第一届中国(国际)核电仪控技术大会论文集》.2011, *

Also Published As

Publication number Publication date
CN102243585A (en) 2011-11-16

Similar Documents

Publication Publication Date Title
US10850393B2 (en) Method for extending end user programming of an industrial robot with third party contributions
CN102903271B (en) A kind of PWR nuclear power plant handling material operating procedure analogue system
CN101763757B (en) Pressurized water reactor nuclear power station material-loading/unloading simulator system
CN102360201B (en) Nuclear power plant refueling machine control system with adoption of PLC (Programmable Logic Controller) with integral motion control function
CN102959480B (en) In the security system for the Method and kit for of the automatic distribution of control routine
CN101872184A (en) Programming and control method of sequence control diagram of programmable controller
CN101458973B (en) Safety monitoring system for nucleus electromotor unit
Alvarez et al. A novel approach for supporting the development cycle of automation systems
US20100268358A1 (en) Method and device for programming an industrial controller
CN108897676B (en) Flight guidance control software reliability analysis system and method based on formalization rules
CN103675302A (en) Reagent loading method and system, and biochemical analyzer
CN102914998A (en) Embedded small four-axis open-type numerical control system
Maier FMEA and FTA to support safe design of embedded software in safety-critical systems
CN108363880A (en) It is a kind of to be applied to construction, operation, the D-BIM methods for safeguarding integrated management
CN105788434A (en) Nuclear power plant fuel workshop fuel gripping operation technology simulation system
US20240025034A1 (en) Enhancement of human-machine interface (hmi) for controlling a robot
CN102243585B (en) Global script program processing and analyzing method of human-machine interaction interface monitoring system
US20110060582A1 (en) Diversity and Defense-In-Depth Simulation Apparatus
Ma et al. Knowledge-based software design for Defense-in-Depth risk monitor system and application for AP1000
Lee et al. Application of system-theoretic process analysis to engineered safety features-component control system
Song et al. A new software failure analysis method based on the system reliability modeling
Kim et al. A supervisory control approach for execution control of an FMC
CN113963443B (en) Method, device, equipment and medium for identifying human error mode in nuclear power plant
Qamsane et al. A model-based transformation method to design PLC-based control of discrete automated manufacturing systems
Holt et al. Experiences with precise state modeling in an industrial safety critical system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant