CN111309235A - Software control method and device and readable storage medium - Google Patents

Software control method and device and readable storage medium Download PDF

Info

Publication number
CN111309235A
CN111309235A CN202010133628.4A CN202010133628A CN111309235A CN 111309235 A CN111309235 A CN 111309235A CN 202010133628 A CN202010133628 A CN 202010133628A CN 111309235 A CN111309235 A CN 111309235A
Authority
CN
China
Prior art keywords
software
executed
upper computer
operated
database
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.)
Granted
Application number
CN202010133628.4A
Other languages
Chinese (zh)
Other versions
CN111309235B (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.)
6th Research Institute of China Electronics Corp
Original Assignee
6th Research Institute of China Electronics Corp
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 6th Research Institute of China Electronics Corp filed Critical 6th Research Institute of China Electronics Corp
Priority to CN202010133628.4A priority Critical patent/CN111309235B/en
Publication of CN111309235A publication Critical patent/CN111309235A/en
Application granted granted Critical
Publication of CN111309235B publication Critical patent/CN111309235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application provides a software control method and device and a readable storage medium. The software control method comprises the following steps: determining whether software on an upper computer needs to be operated at present; the software on the upper computer comprises a plurality of pieces of software for controlling different operating devices; if the software on the upper computer needs to be operated currently, determining the software to be operated and the operation to be executed; and simulating a keyboard and a mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operating equipment corresponding to the software to be executed. The method reduces the control difficulty of the discrete intelligent manufacturing equipment, reduces the production cost and improves the production efficiency.

Description

Software control method and device and readable storage medium
Technical Field
The present application relates to the field of automatic control technologies, and in particular, to a software control method and apparatus, and a readable storage medium.
Background
In the discrete intelligent manufacturing industry, production equipment in each production link has own proprietary application software, or a proprietary communication protocol and a proprietary data interface, so that control systems of the production equipment are not communicated with each other.
In the current discrete manufacturing, for the situation that the systems are not intercommunicated, if the intercommunication control of different application software is to be realized, the following two solutions are available: the first scheme is as follows: and developing interfaces among different control systems, and realizing system intercommunication through the interfaces. Scheme II: an operator is equipped in the production process, and the judgment is manually carried out according to the information provided by the upper-layer system, and corresponding software is operated to drive corresponding equipment.
The first scheme has the disadvantages that the interface development work is relatively heavy, the interface is not reusable and needs to be developed again aiming at the intercommunication problem among different systems, and further, the realization difficulty is high due to large development amount. The second solution has the disadvantage of wasting manpower to participate in tedious and repetitive work, and is difficult to liberate productivity, resulting in increased plant operation cost and lower efficiency. A
Therefore, the discrete intelligent manufacturing equipment in the prior art is high in control difficulty, high in production cost and low in production efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide a software control method and apparatus, and a readable storage medium, so as to reduce the control difficulty of discrete intelligent manufacturing equipment, reduce the production cost, and improve the production efficiency.
In a first aspect, an embodiment of the present application provides a software control method, including: determining whether software on an upper computer needs to be operated at present; the software on the upper computer comprises a plurality of pieces of software for controlling different operating devices; if the software on the upper computer needs to be operated currently, determining the software to be operated and the operation to be executed; and simulating a keyboard and a mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operating equipment corresponding to the software to be executed.
In the embodiment of the application, when it is determined that the corresponding operating device needs to be controlled by software for controlling different operating devices, the software to be operated is executed by simulating a keyboard and a mouse of the upper computer, so that the corresponding operating device is controlled by the software to be operated. When the manual operation is carried out, the operation is carried out by depending on the keyboard and the mouse, the automatic operation of different software is realized by simulating the operation of the keyboard and the mouse, the manual operation is replaced, a large amount of manpower is not needed, the production cost is reduced, and the production efficiency is improved. And, when it is determined that the operation is required, the software of the operation to be performed and the operation to be performed are determined, and therefore, when the keyboard and mouse operation is simulated, the operation to be performed is performed, thereby ensuring accurate control of the operation device. In addition, the whole process adopts a mode of automatically operating software, and the intercommunication among different software is not needed, so that the development of interfaces is avoided, and the control difficulty of operating equipment is reduced.
As a possible implementation manner, the determining whether the software on the upper computer needs to be operated currently includes: accessing a preconfigured database; configuring a database field in the pre-configured database; and determining whether the software on the upper computer needs to be operated currently or not according to the database field.
In the embodiment of the application, by configuring the database field in the database, if the operating device needs to be controlled, the control system can use the database field to realize the issuing of the instruction. By configuring the database and the database field, the issuing of the instruction can be accurately and simply realized, and then whether the automatic operation of the software is needed or not is quickly judged according to the database field, so that the automatic operation efficiency of the software is improved.
As a possible implementation manner, the determining whether an operation needs to be performed on the software on the upper computer according to the database field includes: if the database field is changed into a preset field, determining that the software on the upper computer needs to be operated currently; and if the database field is not changed, determining that the software on the upper computer is not required to be operated currently.
In the embodiment of the application, when whether the software needs to be operated is judged according to the database field, the software can be operated by judging whether the database field is changed, and then whether the software needs to be automatically operated can be accurately and quickly determined.
As a possible implementation manner, the determining software to be operated and operations to be operated includes: and determining software to be operated and operation to be operated according to the content represented by the preset field which is configured in advance.
In the embodiment of the application, the content represented by the preset field can be configured in advance, so that the software to be operated and the operation to be operated can be quickly determined according to the represented content, and the efficiency of automatic operation of the software is improved.
As a possible implementation manner, after the simulating the keyboard and mouse of the upper computer executes the operation to be executed on the software to be executed, the method further includes: acquiring an execution state corresponding to the operation to be executed; and updating the database field according to the execution state.
In the embodiment of the application, after the operation to be executed is executed, the execution state corresponding to the operation to be executed can be obtained in real time, and the database field is updated according to the execution state, so that the control system can know the automatic operation condition of software and the running condition of equipment when accessing the database field.
As a possible implementation manner, after the updating the database field according to the execution status, the method further includes: comparing the execution state with a pre-stored standard execution state to obtain a comparison result; and feeding back the execution state and the comparison result.
In the embodiment of the application, after an execution state is obtained, the execution state can be compared with a standard execution state to obtain a comparison result, and the comparison result is fed back, so that the real-time monitoring of the automatic operation process of the software is realized.
As a possible implementation manner, the simulating the keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed includes: and simulating the keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed according to the preset simulated keyboard and mouse operation interval.
In the embodiment of the application, when the keyboard and mouse operation is simulated, the interval of the keyboard and mouse operation can be configured in advance, regular keyboard and mouse clicking operation is realized, the possibility of operation error is reduced, and the accuracy of automatic operation is improved.
In a second aspect, an embodiment of the present application provides a software control apparatus, where the apparatus includes functional modules for implementing the method described in the first aspect and any one of the possible implementation manners of the first aspect.
In a third aspect, the present embodiments provide a readable storage medium, on which a computer program is stored, where the computer program is executed by a computer to perform the steps of the method as described in the first aspect and any possible implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a control method of software provided in an embodiment of the present application;
fig. 2 is an example diagram of an application scenario provided in an embodiment of the present application;
fig. 3 is an example diagram of a business process provided in an embodiment of the present application;
fig. 4 is a functional block diagram of a control device of software according to an embodiment of the present disclosure.
Icon: 200-control means of the software; 201-a first determination module; 202-a second determination module; 203-analog operation module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, an application scenario is described next.
The software control method provided by the embodiment of the application can be applied to the discrete intelligent manufacturing industry, and in the discrete manufacturing, the arrangement of the operating equipment is not arranged according to products but according to processes, for example, the machine tool is arranged according to turning, grinding, planing and milling. The process may be different for each product and there may be multiple machine tools that can perform the same machining process. Therefore, the processed material needs to be scheduled, and the intermediate products need to be handled. Inventory-oriented, high-volume discrete manufacturing industries, such as the automotive industry, for example, arrange production equipment in a process. Further, the control software for different operation devices (production devices) is also different, for example: the Automatic Guided Vehicle (AGV) control system comprises an AGV (automatic Guided Vehicle), a 3D printer and the like, and the operation devices are controlled by independent application software, a special communication protocol and a special data interface.
In the discrete intelligent manufacturing industry, an SCADA (Supervisory Control And data acquisition) system is generally used as a main Control system, And the main Control system is mounted on an upper computer And can monitor And Control on-site operating equipment to realize various functions such as data acquisition, equipment Control, measurement, parameter adjustment, various signal alarms And the like.
The control software of different operating devices belonging to the main control system can communicate with other modules or devices of the main control system. Further, the software control method provided by the embodiment of the present application can be applied to an upper computer on which the main control system is mounted. For the implementation form, unlike the control software of the operating device, the upper computer may be implemented by a desktop application. Desktop applications, also known as GUI (Graphical User Interface) programs, are somewhat different from GUI programs. The desktop application embodies the GUI program from the GUI as a "desktop". The desktop application program can be developed based on a Windows system, for example, the upper computer system can be Windows7 or Windows 10. After the development of the desktop application program is completed, the desktop application program can be started along with the starting of the upper computer during application, and then the corresponding function is realized. In the embodiment of the present application, the main function of the desktop application is to automatically operate the control software of the operating device.
With reference to the above description, reference is next made to fig. 1, which is a flowchart of a software control method provided in an embodiment of the present application, where the control method can be understood as an implementation logic of a desktop application in automatically operating software, and a hardware execution main body of the control method is an upper computer. The control method comprises the following steps:
step 101: it is determined whether the software on the upper computer needs to be operated currently. The software on the upper computer comprises a plurality of pieces of software for controlling different operating devices.
Step 102: and if the software on the upper computer needs to be operated currently, determining the software to be operated and the operation to be executed.
Step 103: and simulating a keyboard and a mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operating equipment corresponding to the software to be executed.
In the embodiment of the application, when the operating equipment is determined to be controlled by software for controlling different operating equipment, the software to be operated is executed by simulating a keyboard and a mouse of the upper computer, so that the software to be operated controls the corresponding operating equipment. When the manual operation is carried out, the operation is carried out by depending on the keyboard and the mouse, the automatic operation of different software is realized by simulating the operation of the keyboard and the mouse, the manual operation is replaced, a large amount of manpower is not needed, the production cost is reduced, and the production efficiency is improved. And, when it is determined that the operation is required, the software of the operation to be performed and the operation to be performed are determined, and therefore, when the keyboard and mouse operation is simulated, the operation to be performed is performed, thereby ensuring accurate control of the operation device. In addition, the whole process adopts a mode of automatically operating software, and the intercommunication among different software is not needed, so that the development of interfaces is avoided, and the control difficulty of operating equipment is reduced.
The detailed implementation flow of steps 101 to 103 will be described next.
In step 101, it is determined whether the software on the upper computer needs to be operated currently, which may be understood as determining whether the control system issues a control instruction for operating the software. The software on the upper computer refers to software corresponding to different operating devices and used for controlling the different operating devices. For the control instruction, it can be determined by ERP (enterprise resource Planning) and MES (Manufacturing Execution System). The enterprise resource plan converges the characteristics of discrete production and flow production, faces to the global market, covers all leading and supporting capabilities on the supply chain, coordinates each management department of the enterprise to guide around the market, develops business activities more flexibly or elastically and responds to the market demand in real time. The MES can provide management modules for enterprises, such as manufacturing data management, planning scheduling management, production scheduling management, inventory management, quality management, human resource management, work center/equipment management, tool and tool management, purchasing management, cost management, project bulletin board management, production process control, bottom layer data integration analysis, upper layer data integration decomposition and the like, and create a solid, reliable, comprehensive and feasible manufacturing cooperative management platform for the enterprises. Briefly, the enterprise resource plan is responsible for issuing the plan, and the MES is responsible for issuing specific orders to the control system according to the issued plan. And after receiving the issued order, the control system determines a production plan according to the issued order, and generates a corresponding control instruction when a production link in the production plan runs to a step of operating software.
It should be noted that, in the production process of the product, not all production links of the operating device need to be operated by software, so that it is only necessary to determine whether the software needs to be operated.
Further, when the control system issues the control instruction, the control system may directly generate a corresponding instruction according to a specific operation requirement of the software, for example, generate a corresponding instruction according to the software to be operated and the operation to be executed. If this embodiment is implemented, step 101 may include: and when a control instruction issued by the control system is acquired, determining that the software on the upper computer needs to be operated currently.
It should be noted that the control system and the desktop application may be installed on different upper computers, but the desktop application and the software to be operated must be installed on the same upper computer.
In practical applications, in order to facilitate timely knowing the operation requirement of the software, as an alternative implementation, step 101 includes: accessing a preconfigured database; configuring a database field in a pre-configured database; and determining whether the software on the upper computer needs to be operated currently or not according to the database field.
In this embodiment, the determination of whether the software needs to be operated is performed by the database field, which may be understood as the representation of the database field as a control instruction.
The access mode for accessing the preconfigured database may be frequency access, for example, access according to a preconfigured access frequency. For the configuration of the access frequency, if the access frequency is higher, the response to the control system is faster, but the use load of the upper computer is increased; if the access frequency is lower, the response to the control system is slower, and the use load of the upper computer is smaller. Therefore, when configuring the frequency, the frequency can be configured according to different application scenarios. For example, in the case where the operational demand on the software is small, the frequency may be set low; this frequency can be set higher in case of strong operational demands on the software. As an alternative embodiment, the access frequency may be once every 2 seconds or once every 5 seconds.
In the embodiment of the application, by configuring the database field in the database, if the operating device needs to be controlled, the control system can use the database field to realize the issuing of the instruction. By configuring the database and the database field, the issuing of the instruction can be accurately and simply realized, and then whether the automatic operation of the software is needed or not is quickly judged according to the database field, so that the automatic operation efficiency of the software is improved.
Further, as an optional implementation manner, determining whether the software on the upper computer needs to be operated according to the database field includes: if the database field is changed into a preset field, determining that the software on the upper computer needs to be operated currently; and if the database field is not changed, determining that the software on the upper computer is not required to be operated currently.
In this embodiment, rules for the database fields may be predefined, for example, different database fields represent different contents, for the control system, the database fields in the database may be updated according to the defined rules for the database fields, and for the desktop application, when a changed database field is scanned, it may be determined that an operation needs to be performed on the software currently.
For example, database field 1 is initially: 000, which is a default database field value, when the control system issues a control instruction, the value of the database field 1 is modified to be: 001, the desktop application scans the database field 1 to change in the process of accessing the database, and determines that the software needs to be operated currently.
Of course, if there is no change in the database fields scanned each time, it indicates that no software operation is currently required.
In the embodiment of the application, when whether the software needs to be operated is judged according to the database field, the software can be operated by judging whether the database field is changed, and then whether the software needs to be automatically operated can be accurately and quickly determined.
Further, if it is determined that the software needs to be operated currently through step 101, step 102 may be performed to determine the software to be operated and the operation to be operated.
For step 102, step 102 may be implemented in different ways according to different implementations of step 101. In the foregoing embodiment, it is described that whether the software needs to be operated or not may be determined by a direct control instruction in step 101, and correspondingly, in this embodiment, the control instruction may be parsed in step 102 to determine the software to be operated and the operation to be performed. For example: the control system generates a control command by using a preset command generation rule, for example, the control command includes: 001 (identification of software); a1 (operation identifier to be executed), then correspondingly, the desktop application also performs parsing according to the instruction generation rule, and further may determine the software to be executed and the operation to be executed according to the identifier and the operation identifier of the parsed software.
Further, in the foregoing embodiment, it is also described that whether the software needs to be operated is determined by the database field, and in this embodiment, step 102 may include: and determining the software to be operated and the operation to be operated according to the content represented by the preset field which is configured in advance.
In this embodiment, the content represented by different database fields is configured in advance, and when it is detected that the database fields become the preset fields, the software to be executed and the operation to be executed can be determined according to the content represented by the preset fields.
For example, the database field may include a software identifier and an operation identifier, and for the software identifier, assuming that there are 5 pieces of software on the upper computer, the software identifier may be: 001-; for each piece of software, an operation identifier may be set according to the operation step, for example: the operating steps of the software are 4 steps in total, and the step 1 is self-checking; step 2, loading; step 3, reading data; step 4 is data storage, and the operation identifier of each operation step may be: A-D.
It will be appreciated that the rules, whether for control instructions or for database fields, are uniformly defined by the developer, and then the control system, desktop application, and database communicate using the uniformly defined rules.
When the method is applied, the method can be developed by using Java language, namely, rules of various instructions or database fields can be configured based on the Java language.
In the embodiment of the application, the content represented by the preset field can be configured in advance, so that the software to be operated and the operation to be operated can be quickly determined according to the represented content, and the efficiency of automatic operation of the software is improved.
Further, after determining the software to be operated and the operation to be executed in step 102, step 103 may be executed to simulate a keyboard and mouse of the upper computer to execute the operation to be executed on the software to be operated.
In step 103, the software on the upper computer may not be started after the upper computer is started, so that in order to realize the automatic operation of the software by simulating the keyboard and mouse, a path of the software needs to be configured for the desktop application program in advance, and then the software to be operated is started first according to the path of the software to be operated, and then the keyboard and mouse operation is simulated. The path of the software can be understood as an installation path of the software on the upper computer.
As an alternative embodiment, step 103 includes: and simulating a keyboard and mouse of the upper computer according to a preset simulated keyboard and mouse operation interval to execute the operation to be executed on the software to be executed. In such embodiments, simulating a keyboard and mouse operation interval may comprise: an interval between two different operations that are temporally adjacent or an interval between two identical operations that are temporally adjacent. Assuming that both key-down and key-up are one operation, the key-mouse operation interval may be: the interval between each key lifting and the next key lifting is 50ms, and the interval between each key pressing and the key lifting after each key pressing is 0 ms.
In addition to the keyboard and mouse operation interval, conditions such as a keyboard and mouse movement speed and a click speed may be preset, and automatic operation may be performed according to the preset conditions in the case of the simulation operation. The placement may be performed according to the actual operation of the keyboard and mouse of the host computer, and may be, for example, the same as the actual keyboard and mouse moving speed and click of the host computer.
In the embodiment of the application, when the keyboard and mouse operation is simulated, the interval of the keyboard and mouse operation can be configured in advance, regular keyboard and mouse clicking operation is realized, the possibility of operation error is reduced, and the accuracy of automatic operation is improved.
Further, after step 103, if the embodiment of the database field is adopted, the method may further include: acquiring an execution state corresponding to an operation to be executed; the database fields are updated according to the execution status.
The execution state corresponding to the operation to be executed can be understood as the operation step of the software and the result after the operation step is executed. For example, in the foregoing embodiment, the procedure is described, in the operation to be performed, steps a to D may be included, and correspondingly, the execution state may include the result of performing step a and performing step a.
Further, when updating the database field according to the execution status, in combination with the description of the foregoing embodiment, assuming that the operation to be executed includes 3 steps in total, the operation identifier corresponding to the first two steps can be updated to the default value after the first two steps have been executed. In the updating mode, in addition to the updating operation identifier, the operation result of the corresponding operation can be updated, the operation result refers to operation success or operation failure or waiting, and the like, the corresponding database field can be generated according to the definition rule of the database field, and the newly generated database field can be directly added to the back of the original field during updating. Of course, a position indicating the operation result may be reserved in the original database field, a default value may be initially set, and after the operation result is determined, the default value may be updated to a value corresponding to the operation result. Of course, a representation field representing operation failure, operation success, or the like may be originally arranged in the database field, and after the operation result is determined, the database field may be updated directly in accordance with the arranged database field.
In the embodiment of the application, after the operation to be executed is executed, the execution state corresponding to the operation to be executed can be obtained in real time, and the database field is updated according to the execution state, so that the control system can know the automatic operation condition of software and the running condition of equipment when accessing the database field.
As another embodiment, after step 103, in addition to directly feeding back the execution state, the execution state may be evaluated and then fed back, and the method further includes: comparing the execution state with a pre-stored standard execution state to obtain a comparison result; and feeding back the execution state and the comparison result.
In this embodiment, the same processing may be performed for the execution state of each operation step, or only the execution state of the critical step may be processed. The critical and non-critical steps may also be configured in advance, for example, when the database fields are configured. Wherein, whether it is a key step can be defined by users familiar with the software.
Further, the standard execution state stored in advance may be the standard execution state stored by the developer, or may be a correct execution state stored in a previous automatic operation process. It is understood that in the standard execution state, the operation step and the operation result of the operation step are also included.
For comparison, the operation result in the execution state may be saved or embodied in the form of a screenshot. The screenshot can be a screenshot of a key part on a display interface of the software. Further, during the comparison, the current execution state can be compared with the standard execution state to obtain a comparison result. The obtained alignment result can be expressed by the difference between the two. If the comparison result shows that the two are different, it indicates that the step may have operation errors caused by click errors or click failures. If the comparison result shows that the two are identical, the step is more normal.
Furthermore, after the comparison result is obtained, the current execution state and the comparison result are fed back to the control system, and the control system can continue to reflect the current execution state to the upper level, such as a monitoring end where the user is located. Or perform an early warning to remind the user to perform processing, etc.
In the embodiment of the application, after an execution state is obtained, the execution state can be compared with a standard execution state to obtain a comparison result, and the comparison result is fed back, so that the real-time monitoring of the automatic operation process of the software is realized.
With reference to the foregoing description of the embodiments, reference is next made to fig. 2 and fig. 3, which are an example of an application scenario and a service flow chart in the application scenario provided in the embodiments of the present application, respectively. As can be seen from fig. 2, the enterprise resource planning system issues the enterprise plan to the manufacturing execution system, the manufacturing execution system issues an order to the SCADA (control) system, the SCADA system updates the database, the desktop application scans the database, and controls the independent software, and the independent software can write data into the database. Combining the service flow of fig. 3, starting the upper computer, starting the control system, automatically starting the desktop application program, scanning the database field of the database every x seconds, simulating the keyboard and mouse operation when the change is a set value, updating the data field corresponding to the database according to the result of the simulation operation, changing the flag bit characters after all the operation steps are executed, and then continuously scanning the database value to wait for the next software operation.
Based on the same inventive concept, referring to fig. 4, an embodiment of the present application further provides a software-operated apparatus 200, including: a first determination module 201, a second determination module 202 and a simulation operation module 203.
The first determining module 201 is configured to determine whether to currently operate software on the upper computer; the software on the upper computer comprises a plurality of pieces of software for controlling different operating devices. The second determining module 202 is configured to: and if the software on the upper computer needs to be operated currently, determining the software to be operated and the operation to be executed. The simulation operation module 203 is used for simulating a keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operation equipment corresponding to the software to be executed.
Optionally, the first determining module 201 is specifically configured to: accessing a preconfigured database; configuring a database field in the pre-configured database; and determining whether the software on the upper computer needs to be operated currently or not according to the database field.
Optionally, the first determining module 201 is further specifically configured to: if the database field is changed into a preset field, determining that the software on the upper computer needs to be operated currently; and if the database field is not changed, determining that the software on the upper computer is not required to be operated currently.
Optionally, the second determining module 202 is specifically configured to: and determining software to be operated and operation to be operated according to the content represented by the preset field which is configured in advance.
Optionally, the software control apparatus 200 further includes an update module, configured to: acquiring an execution state corresponding to the operation to be executed; and updating the database field according to the execution state.
Optionally, the software control apparatus 200 further includes a feedback module, configured to: comparing the execution state with a pre-stored standard execution state to obtain a comparison result; and feeding back the execution state and the comparison result.
Optionally, the analog operation module 203 is specifically configured to: and simulating the keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed according to the preset simulated keyboard and mouse operation interval.
The embodiments and specific examples of the software control method in the foregoing embodiments are also applicable to the modules in the software control apparatus 200, and the detailed description of the software control method will be clear to those skilled in the art, so that the detailed description is omitted here for brevity of the description.
Based on the same inventive concept, the present application further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a computer, the computer program performs the software control method according to any of the above embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for controlling software, comprising:
determining whether software on an upper computer needs to be operated at present; the software on the upper computer comprises a plurality of pieces of software for controlling different operating devices;
if the software on the upper computer needs to be operated currently, determining the software to be operated and the operation to be executed;
and simulating a keyboard and a mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operating equipment corresponding to the software to be executed.
2. The control method according to claim 1, wherein the determining whether the software on the upper computer needs to be operated currently comprises:
accessing a preconfigured database; configuring a database field in the pre-configured database;
and determining whether the software on the upper computer needs to be operated currently or not according to the database field.
3. The control method according to claim 2, wherein the determining whether the software on the upper computer needs to be operated according to the database field includes:
if the database field is changed into a preset field, determining that the software on the upper computer needs to be operated currently;
and if the database field is not changed, determining that the software on the upper computer is not required to be operated currently.
4. The control method according to claim 3, wherein the determining software and operations to be performed comprises:
and determining software to be operated and operation to be operated according to the content represented by the preset field which is configured in advance.
5. The control method according to claim 2, wherein after the operation to be executed is executed on the software to be executed by simulating a keyboard and mouse of the upper computer, the method further comprises:
acquiring an execution state corresponding to the operation to be executed;
and updating the database field according to the execution state.
6. The control method according to claim 5, wherein after the updating the database field according to the execution status, the method further comprises:
comparing the execution state with a pre-stored standard execution state to obtain a comparison result;
and feeding back the execution state and the comparison result.
7. The control method according to claim 1, wherein the simulating of the keyboard and mouse of the upper computer performs the operation to be performed on the software to perform the operation to be performed, and includes:
and simulating the keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed according to the preset simulated keyboard and mouse operation interval.
8. A software control apparatus, comprising:
the first determining module is used for determining whether the software on the upper computer needs to be operated currently; the software on the upper computer comprises a plurality of pieces of software for controlling different operating devices;
the second determining module is used for determining the software to be operated and the operation to be executed if the software on the upper computer needs to be operated currently;
and the simulation operation module is used for simulating a keyboard and mouse of the upper computer to execute the operation to be executed on the software to be executed so as to control the operation equipment corresponding to the software to be executed.
9. The control device according to claim 8, wherein the first determining module is specifically configured to:
accessing a preconfigured database; configuring a database field in the pre-configured database;
and determining whether the software on the upper computer needs to be operated currently or not according to the database field.
10. A readable storage medium, having stored thereon a computer program which, when executed by a computer, performs the method of any one of claims 1-7.
CN202010133628.4A 2020-02-28 2020-02-28 Software control method and device and readable storage medium Active CN111309235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010133628.4A CN111309235B (en) 2020-02-28 2020-02-28 Software control method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010133628.4A CN111309235B (en) 2020-02-28 2020-02-28 Software control method and device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111309235A true CN111309235A (en) 2020-06-19
CN111309235B CN111309235B (en) 2021-05-18

Family

ID=71152133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010133628.4A Active CN111309235B (en) 2020-02-28 2020-02-28 Software control method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111309235B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880897A (en) * 2020-07-24 2020-11-03 哈尔滨工业大学(威海) Windows window application program behavior simulation robot and working method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414182A (en) * 2008-12-04 2009-04-22 南通明兴科技开发有限公司 RFID interface controller of discrete manufacturing business machining assembly line
US20120166875A1 (en) * 2010-12-23 2012-06-28 Mitel Networks Corporation Conducting an application-aware test in a virtual environment
CN104102196A (en) * 2014-07-04 2014-10-15 上海德川自动控制系统工程有限公司 Batch production-based industrial automatic control system
CN109189452A (en) * 2018-10-29 2019-01-11 深圳市路畅科技股份有限公司 Oftware updating method, device and the storage medium of a kind of electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414182A (en) * 2008-12-04 2009-04-22 南通明兴科技开发有限公司 RFID interface controller of discrete manufacturing business machining assembly line
US20120166875A1 (en) * 2010-12-23 2012-06-28 Mitel Networks Corporation Conducting an application-aware test in a virtual environment
CN104102196A (en) * 2014-07-04 2014-10-15 上海德川自动控制系统工程有限公司 Batch production-based industrial automatic control system
CN109189452A (en) * 2018-10-29 2019-01-11 深圳市路畅科技股份有限公司 Oftware updating method, device and the storage medium of a kind of electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880897A (en) * 2020-07-24 2020-11-03 哈尔滨工业大学(威海) Windows window application program behavior simulation robot and working method thereof

Also Published As

Publication number Publication date
CN111309235B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN109189016B (en) Intelligent manufacturing integrated execution system
US9552194B2 (en) System and method for creating a graphical user interface within a manufacturing execution system
US20040225391A1 (en) Monitoring and reporting incremental job status system and method
JP6649764B2 (en) Configuration method of control device for production system and production system
US10372112B2 (en) System and method for legacy level 1 controller virtualization
CN101770605A (en) R & D project plan management method and system
CN103124938A (en) Method, system,and program for upgrading runtime environment of programmable logic controller
CN103034920A (en) System and method for controlling operations of manufacturing facility
US6985786B2 (en) Method for managing manufacturing data
US8347283B2 (en) System and method for automatic installation and maintenance of hardware and software in a distributed computer system
CN110796342A (en) Automatic management method and device based on typical maintenance project
CN103176792A (en) Customizing a graphical user interface of a manufacturing execution system screen
CN111309235B (en) Software control method and device and readable storage medium
US11619923B2 (en) Digital twin management system and method
EP2747001A1 (en) A method and a system for granting an access to MES functionalities
CN113191738B (en) Multi-template management and control method for test equipment and related equipment
CN103177074B (en) Customize the graphic user interface of manufacturing execution system screen
US9342805B2 (en) Method and system for generating an integration model
CN111597676B (en) System and method for checking system requirements of information physical system
US20130167051A1 (en) Method and system for customizing a graphic user interface of a manfuacturing execution system screen
CN112596481B (en) MES management system and method supporting plug-in interactive nodes
Chen Activity‐based approach to justification of advanced factory management systems
KR100545737B1 (en) Production information system
CN114968819A (en) Code quality problem detection and repair method for micro-service continuous integration
CN115113851A (en) System model smart object configuration

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
GR01 Patent grant
GR01 Patent grant