CN114326507A - Machine control method and device, electronic equipment and computer readable storage medium - Google Patents

Machine control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114326507A
CN114326507A CN202111638040.5A CN202111638040A CN114326507A CN 114326507 A CN114326507 A CN 114326507A CN 202111638040 A CN202111638040 A CN 202111638040A CN 114326507 A CN114326507 A CN 114326507A
Authority
CN
China
Prior art keywords
machine
execution instruction
control operation
target
control
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
CN202111638040.5A
Other languages
Chinese (zh)
Other versions
CN114326507B (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.)
Suzhou Saimeite Technology Co ltd
Original Assignee
Suzhou Saimeite Technology 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 Suzhou Saimeite Technology Co ltd filed Critical Suzhou Saimeite Technology Co ltd
Priority to CN202111638040.5A priority Critical patent/CN114326507B/en
Publication of CN114326507A publication Critical patent/CN114326507A/en
Application granted granted Critical
Publication of CN114326507B publication Critical patent/CN114326507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a machine control method, a device, an electronic device and a computer readable storage medium, wherein the method is applied to a machine, and comprises the following steps: recording an execution instruction of the machine responding to an operation step of an operator under the control operation aiming at each control operation of the machine; receiving a target control instruction sent by a server, and determining a first control operation carried in the target control instruction; inquiring a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each control operation; and controlling the machine to execute the target execution instruction. Through the method, the machine can be remotely controlled through the server without operators, labor cost is reduced, and control efficiency of the machine is improved.

Description

Machine control method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a machine, an electronic device, and a computer-readable storage medium.
Background
The machine refers to a machine for production and processing, and when the machine is controlled to work, in order to avoid a worker to control the machine on a control panel on the machine, in the prior art, the operator operates the server, and then the machine is remotely controlled. When the operating personnel remotely controls the machine through the server, the operating personnel remotely controls the machine through the server every time the machine processes and produces a product. Therefore, when the machine is controlled by using the method in the prior art, the operation repetition rate of operators is high, the labor cost is wasted, and the operation efficiency of the machine is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide a machine control method, device, electronic device and computer-readable storage medium, which can reduce labor cost and improve operation efficiency of a machine.
In a first aspect, an embodiment of the present application provides a machine control method, where the method is applied to a machine, and the method includes:
recording an execution instruction of the machine responding to an operation step of an operator under the control operation aiming at each control operation of the machine;
receiving a target control instruction sent by a server, and determining a first control operation carried in the target control instruction;
inquiring a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each control operation;
and controlling the machine to execute the target execution instruction.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, where the controlling the machine to execute the target execution instruction includes:
and for each target execution instruction corresponding to the first control operation, sequentially sending the target execution instruction to the machine according to the recording sequence of the target execution instruction, so that the machine executes the target execution instruction.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect, where, for each target execution instruction corresponding to the first control operation, the sequentially sending the target execution instructions to the machine station according to a recording order of the target execution instructions includes:
for each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending a first query signal to the machine;
when a first signal which is used for indicating that the target execution instruction response succeeds is received when the machine station responds to the first query signal, sending a next target execution instruction of the target execution instruction to the machine station until a first signal that the last target execution instruction response succeeds is received, and determining that the first control operation is executed;
and sending a second signal that the machine executes to complete the first control operation to the server.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present application provides a third possible implementation manner of the first aspect, where the execution instruction corresponding to each control operation is provided with a corresponding response time;
after sending the target execution instruction to the machine and sending a first query signal to the machine for each target execution instruction corresponding to the first control operation, the method further includes:
starting timing when the first query signal is sent to the machine, and determining that the response of the target execution instruction fails if the first signal that the machine responds to the first query signal successfully is not received within the response time corresponding to the target execution instruction;
sending a third signal to the server that the response failed.
With reference to the first aspect, an embodiment of the present application provides a fourth possible implementation manner of the first aspect, where before the receiving a target control instruction sent by a server and determining a first control operation carried in the target control instruction, the method further includes:
receiving a test instruction sent by the server, and determining a second control operation carried in the test instruction;
inquiring a test execution instruction corresponding to the second control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
sending the test execution instruction to the machine station and sending a second query signal to the machine station aiming at each test execution instruction corresponding to the second control operation;
and when a fourth signal that the response of the machine station to the second query signal fails is received, re-sending the target execution instruction to the machine station, and re-recording a test execution instruction of the machine station to respond to the operation steps of the operator under the second control operation until the fourth signal of preset times is received.
With reference to the first aspect, an embodiment of the present application provides a fifth possible implementation manner of the first aspect, where after receiving the target control instruction sent by the server, the method further includes:
sending a disabling instruction to an operating system in the machine; the disabling instruction is used for forbidding the target execution instruction corresponding to the first control operation to be changed by using input equipment on the machine;
when the machine executes the target execution instruction corresponding to the first control operation, sending a release instruction to an operating system in the machine; the release instruction is used for enabling the input equipment on the machine.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present application provides a sixth possible implementation manner of the first aspect, where after the sequentially sending the target execution instructions to the machine station according to the recording order of the target execution instructions for each target execution instruction corresponding to the first control operation, the method further includes:
receiving a pause instruction sent by the machine station, and stopping sending the target execution instruction to the machine station; the pause instruction is generated by the machine when the operator triggers a shortcut key on the machine.
In a second aspect, an embodiment of the present application further provides a device for controlling a machine, where the device resides on the machine, and the device includes:
the recording module is used for recording an execution instruction of the machine responding to an operation step of an operator under the control operation aiming at each control operation of the machine;
the first determining module is used for receiving a target control instruction sent by a server and determining a first control operation carried in the target control instruction;
the first query module is used for querying a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
and the control module is used for controlling the machine to execute the target execution instruction.
With reference to the second aspect, an embodiment of the present application provides a first possible implementation manner of the second aspect, where the control module, when being configured to control the machine to execute the target execution instruction, is specifically configured to:
and for each target execution instruction corresponding to the first control operation, sequentially sending the target execution instruction to the machine according to the recording sequence of the target execution instruction, so that the machine executes the target execution instruction.
With reference to the first possible implementation manner of the second aspect, an embodiment of the present application provides a second possible implementation manner of the second aspect, where when the control module is configured to, for each target execution instruction corresponding to the first control operation, sequentially send the target execution instructions to the machine according to a recording order of the target execution instructions, specifically:
for each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending a first query signal to the machine;
when a first signal which is used for indicating that the target execution instruction response succeeds is received when the machine station responds to the first query signal, sending a next target execution instruction of the target execution instruction to the machine station until a first signal that the last target execution instruction response succeeds is received, and determining that the first control operation is executed;
and sending a second signal that the machine executes to complete the first control operation to the server.
With reference to the second possible implementation manner of the second aspect, the present embodiment provides a third possible implementation manner of the second aspect, where the execution instruction corresponding to each control operation is provided with a corresponding response time; the device further comprises:
a second determining module, configured to start timing when a first query signal is sent to the machine after the control module sends the target execution instruction to the machine for each target execution instruction corresponding to the first control operation, and determine that the target execution instruction fails to respond if the first query signal indicating that the response of the machine to the first query signal is successful is not received within the response time corresponding to the target execution instruction;
and the first sending module is used for sending a third signal of response failure to the server.
With reference to the second aspect, embodiments of the present application provide a fourth possible implementation manner of the second aspect, where the apparatus further includes:
a third determining module, configured to receive the test instruction sent by the server and determine a second control operation carried in the test instruction before the first determining module receives the target control instruction sent by the server and determines the first control operation carried in the target control instruction;
the second query module is used for querying the test execution instruction corresponding to the second control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
a second sending module, configured to send, for each test execution instruction corresponding to the second control operation, the test execution instruction to the machine and send a second query signal to the machine;
and the third sending module is used for sending the target execution instruction to the machine again when a fourth signal that the response of the machine to the second query signal fails is received, and recording the test execution instruction of the machine responding to the operation steps of the operator under the second control operation again until the fourth signal of preset times is received.
In combination with the second aspect, embodiments of the present application provide a fifth possible implementation manner of the second aspect, where the apparatus further includes:
a fourth sending module, configured to send a disabling instruction to an operating system in the machine after the first determining module receives the target control instruction sent by the server; the disabling instruction is used for forbidding the target execution instruction corresponding to the first control operation to be changed by using input equipment on the machine;
a fifth sending module, configured to send a release instruction to an operating system in the machine when the machine executes the target execution instruction corresponding to the first control operation; the release instruction is used for enabling the input equipment on the machine.
In combination with the first possible implementation manner of the second aspect, this application provides a sixth possible implementation manner of the second aspect, where the apparatus further includes:
a receiving module, configured to receive a pause instruction sent by the machine after the control module sends the target execution instructions to the machine in sequence according to the recording sequence of the target execution instructions for each target execution instruction corresponding to the first control operation, and stop sending the target execution instructions to the machine; the pause instruction is generated by the machine when the operator triggers a shortcut key on the machine.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions being executable by the processor to perform the steps of any one of the possible implementations of the first aspect.
In a fourth aspect, this application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in any one of the possible implementation manners of the first aspect.
According to the machine control method, the machine control device, the electronic equipment and the computer readable storage medium, an execution instruction of a machine responding to an operation step of an operator under each control operation of the machine is recorded in the machine; when the machine receives a target control instruction sent by a server, determining a first control operation carried in the target control instruction; inquiring a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each control operation; and controlling the machine to execute the target execution instruction. In the application, the machine is recorded in the machine through the execution instruction of the machine responding to the operation steps of the operator, after the target control instruction sent by the server is received, the machine can be controlled to work according to the execution instruction recorded in the machine, the operator is not required to remotely control the machine through the server, the labor cost is reduced, and the operation efficiency of the machine is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 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 for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a machine control method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another apparatus control method according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a machine control apparatus provided in an embodiment of the present application;
fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In view of the problems of high operation repetition rate of operators, labor cost waste and low operation efficiency of the machine when the machine is controlled by using the method in the prior art, embodiments of the present application provide a machine control method, apparatus, electronic device and computer-readable storage medium to reduce labor cost and improve operation efficiency of the machine, which is described below by embodiments.
The first embodiment is as follows:
to facilitate understanding of the embodiment, a machine control method disclosed in the embodiment of the present application will be described in detail first, and the method is applied to a machine. Fig. 1 shows a flowchart of a machine control method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
s101: and recording an execution instruction of the machine station responding to the operation steps of the operator under the control operation aiming at each control operation of the machine station.
The machine station refers to a machine device for production processing. The control operation refers to a control operation on the machine, such as a power-on operation, a power-off operation, a machining operation, and the like.
The operation step refers to an operation step of an operator on the machine, for example, when the control operation is a power-on operation for the machine, the operation step of the operator may be to trigger a power-on key on the machine. Each control operation corresponds to at least one operation step.
The execution instruction refers to an operation instruction generated when the machine station responds to the operation after the operator performs the operation on the machine station. For example, when the operation step is an operation of an operator moving a mouse on a machine, the execution step may be a mouse moving instruction generated in the machine when the machine responds to the movement of the mouse. Each control operation corresponds to at least one execution instruction.
In a specific embodiment, an object program is preset in a machine, and the object program can be specifically placed in an independent file directory of a non-system logical disk in the machine. And recording an execution instruction of each control operation lower machine station responding to the operation steps of the operator through the target program.
S102: and receiving a target control instruction sent by the server, and determining a first control operation carried in the target control instruction.
The target control instruction carries a first control operation, and the first control operation contained in the target control instruction is obtained by analyzing the target control instruction. The first control operation is one of the control operations. Illustratively, the target control command may be a power-on command, a power-off command, a machining and production command, and the like. When the target control instruction is a boot instruction, the first control operation is a boot operation.
In a specific embodiment, the application receives a target control instruction sent by a server through a target program, and determines a first control operation carried in the target control instruction.
Specifically, the server includes a control application. The machine comprises an object program and an original program, wherein the object program is preset in the machine, and the original program is an original control program in the machine. When receiving the target control instruction sent by the server, the target control instruction may be specifically received by the target program and sent by the control application program. The target program and the control application program are communicated through a shared network.
In consideration of the prior art, when an operator operates the server to remotely control the machine, the remote communication interface needs to be installed on the machine, and the server sends control operation to the machine through the remote communication interface installed on the machine. However, when the machine is not equipped with the remote communication interface, the server cannot issue the control operation to the machine through the remote communication interface in the process of controlling the machine to work, and further the machine cannot be controlled automatically in a remote manner.
In the application, the target control instruction sent by the server is received through the shared network, the machine can be controlled to work through the execution instruction corresponding to the operation step recorded in the machine, and the control operation sent by the server does not need to be received through a remote communication interface.
S103: and inquiring a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each control operation.
When the machine station records the execution instruction of the machine station responding to the operation steps of the operator under each control operation, each recorded control operation and the execution instruction corresponding to each recorded control operation can be stored in a list, and all recorded control operations and the execution instruction corresponding to each recorded control operation are stored in the list. After the first control operation carried in the target control instruction is determined, a target execution instruction corresponding to the first control operation is inquired in a list stored in the machine station.
In a specific embodiment, the target program queries a target execution instruction corresponding to the first control operation in a list stored in the machine.
For example, when the control operation is a machining operation, the operation steps of the operator on the machine are to determine a machined product, to select a machined material, and to start a production process. The execution instructions of the processing operation are a determined processing product instruction, a selected processing material instruction and a processing starting instruction respectively.
S104: and controlling the machine to execute the target execution instruction.
After the target execution instruction corresponding to the first control operation is inquired in the machine, the target execution instruction recorded and completed in the machine can be directly used for controlling the machine to work. In a specific embodiment, the target execution instruction is sent to an original program in the machine by the target program, and the original program controls the machine to execute the target execution instruction.
In the application, the machine is recorded in the machine through the execution instruction of the machine responding to the operation steps of the operator, after the target control instruction sent by the server is received, the machine can be controlled to work according to the execution instruction recorded in the machine, the operator is not required to remotely control the machine through the server, the labor cost is reduced, and the operation efficiency of the machine is improved.
In a possible implementation manner, when the machine is controlled to execute the target execution instruction in step S104, the following steps may be specifically performed:
s1041: and aiming at each target execution instruction corresponding to the first control operation, sequentially sending the target execution instructions to the machine according to the recording sequence of the target execution instructions so that the machine executes the target execution instructions.
The first control operation corresponds to at least one target execution instruction. In the embodiment of the application, for each target execution instruction corresponding to the first control operation, the target execution instructions are sequentially sent to the original program through the target program according to the recording sequence of the target execution instructions, so that the original program executes the target execution instructions.
In a possible implementation manner, fig. 2 shows a flowchart of another machine control method provided in this embodiment of the application, and when step S1041 is executed, and for each target execution instruction corresponding to the first control operation, according to a recording sequence of the target execution instructions, the target execution instructions are sequentially sent to the machine, as shown in fig. 2, the method may specifically be executed according to the following steps:
s10411: and aiming at each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending a first query signal to the machine.
After at least one target execution instruction corresponding to the first control operation is inquired, the first target execution instruction is sent to the machine according to the recording sequence of the target execution instructions, and a first inquiry signal is sent to the machine after the first target execution instruction is sent to the machine, wherein the first inquiry signal is used for inquiring the response condition of the machine responding to the target execution instruction corresponding to the first inquiry signal.
In a specific embodiment, for each target execution instruction corresponding to the first control operation, after the target execution instruction is sent to the original program by the target program, the original program sends a first query signal to the original program by the target program, and after the original program receives the first query signal, the original program queries a response condition of the machine station in response to the target execution instruction. The target program and the original program in the machine station realize information transmission through message driving in the machine station.
S10412: and when a first signal which is used for indicating that the target execution instruction response succeeds is received when the machine station responds to the first query signal, sending a next target execution instruction of the target execution instruction to the machine station until a first signal that the last target execution instruction response succeeds is received, and determining that the first control operation is executed.
For example, after the machine station completes the first target execution instruction in response, the first signal sent by the machine station and used for indicating that the first target execution instruction is successfully responded is received, and at this time, the second target execution instruction is sent to the machine station. And when a first signal which is sent by the machine station and used for indicating that the response of the second target execution instruction is successful is received, sending a third target execution instruction to the machine station. And repeating the steps until a first signal that the last target execution instruction responds successfully is received, and determining that the execution completes the first control operation.
In a specific embodiment, when a first signal sent by an original program is received by a target program, a next target execution instruction of the target execution instructions is sent to the original program by the target program until a first signal that a last target execution instruction sent by the original program responds successfully is received by the target program, and it is determined that a first control operation is completed.
S10413: and sending a second signal for the machine to execute and complete the first control operation to the server.
And when the machine station completes the first control operation, sending a second signal for indicating that the machine station completes the first control operation to the server. In a specific embodiment, after the server receives the second signal, the server may send another control instruction to the machine.
In a specific embodiment, the target program sends a second signal to the control application program in the server that the machine executes the first control operation.
In a possible implementation manner, after the step S1041 is executed, sending the target execution instruction to the machine station and sending the first query signal to the machine station for each target execution instruction corresponding to the first control operation, the following steps may also be executed:
s10414: and when a fifth signal which is used for indicating that the response of the target execution instruction fails is received when the machine station responds to the first query signal, the target execution instruction is sent to the machine station again, and a sixth signal that the machine station does not execute the first control operation is sent to the server until the fifth signal of the preset times is received. The sixth signal includes an operation step corresponding to the target execution instruction with failed response.
In a specific embodiment, when the fifth signal sent by the original program is received by the target program, the target execution instruction is sent to the original program again by the target program, and until the fifth signal sent by the original program for the preset number of times is received by the target program, a sixth signal that the machine station does not execute the first control operation is sent to the control application program in the server by the target program.
In a possible implementation manner, the execution instruction corresponding to each control operation is provided with a corresponding response time;
after the step S10411 is executed, for each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending the first query signal to the machine, the following steps may be further specifically executed:
s10415: and starting timing when the first query signal is sent to the machine, and determining that the response of the target execution instruction fails if the first signal that the response of the machine to the first query signal is successful is not received within the response time corresponding to the target execution instruction.
In a specific embodiment, the timing is started when the first query signal is sent to the machine, and if the first signal that the response of the machine to the first query signal is successful is not received through the target program within the response time corresponding to the target execution instruction, it is determined that the response of the target execution instruction is failed.
S10416: and sending a third signal of response failure to the server.
In a specific embodiment, when the target execution instruction fails to respond, a third signal of failing to respond is sent to the control application program in the server through the target program, wherein the third signal includes an operation step corresponding to the target execution instruction failing to respond.
In a possible implementation manner, before the step S102 is executed to receive the target control instruction sent by the server and determine the first control operation carried in the target control instruction, the following steps may be further executed:
s1011: and receiving a test instruction sent by the server, and determining a second control operation carried in the test instruction.
After the execution instruction of each control operation lower machine responding to the operation steps of the operator is recorded, the execution instruction corresponding to each recorded control operation needs to be tested, so that the response success of the machine is ensured when the machine is controlled to work through the execution instruction corresponding to each control operation.
And after receiving the test instruction sent by the server, analyzing the test instruction to obtain a second control operation carried in the test instruction.
The second control operation is one of the control operations. In a specific embodiment, at least one test is performed for each control operation.
S1012: and inquiring a test execution instruction corresponding to the second control operation according to each recorded control operation and the execution instruction corresponding to each control operation.
In the embodiment of the application, after the second control operation carried in the test instruction is determined, the test execution instruction corresponding to the second control operation is inquired in a list stored in the machine station.
S1013: and aiming at each test execution instruction corresponding to the second control operation, sending the test execution instruction to the machine and sending a second query signal to the machine.
Sending the test execution instruction to a machine station aiming at each test execution instruction corresponding to the second control operation, and sending a second query signal to the machine station after sending the test execution instruction to the machine station; the second query signal is used for querying the response condition of the machine station responding to the test execution instruction corresponding to the second query signal.
S1014: and when a fourth signal that the response of the machine station to the second query signal fails is received, re-sending the target execution instruction to the machine station, and re-recording a test execution instruction of the machine station to respond to the operation steps of the operator under the second control operation until the fourth signal of the preset times is received.
For example, if the preset number of times is 2, when a fourth signal that the response of the machine station in response to the second query signal fails is received through the target program, the target program resends the target execution instruction to the original program in the machine station, and when a fourth signal that the response of the machine station in response to the second query signal fails is received again, a test execution instruction of the machine station in response to the operation step of the operator under the second control operation is recorded through the target program again.
And after the test execution instruction of the lower machine responding to the operation steps of the operator is recorded again, updating the test execution instruction corresponding to the second control operation recorded last time by using the recorded test execution instruction again. Specifically, the re-recorded test execution instruction may replace the test execution instruction corresponding to the second control operation recorded last time, and delete the test execution instruction corresponding to the second control operation recorded last time.
In a possible implementation manner, after the step S102 is executed to receive the target control instruction sent by the server, the following steps may be further executed:
s1021: sending a forbidden instruction to an operating system in a machine; the disabling instruction is used for forbidding the target execution instruction corresponding to the first control operation from being changed by using the input equipment on the machine.
When the machine station responds to the target execution instruction, the condition that the operation of the machine station is influenced is prevented from being accidentally touched by an operator by input equipment on the machine station. In the application, after the target control instruction sent by the server is received through the target program, the target program sends the disabling instruction to the operating system in the machine, so that the operating system disables the input device on the machine according to the received disabling instruction, and at this time, the operator cannot change the target execution instruction corresponding to the first control operation through the input device. The input device may be one or more of a touch screen, a mouse, and a keyboard on the machine. The operating system is an operating system in the machine station, and comprises a target program and an original program.
S1022: when the machine executes a target execution instruction corresponding to the first control operation, sending a release instruction to an operating system in the machine; the release command is used to enable an input device on the machine.
When the machine executes a target execution instruction corresponding to the first control operation, a release instruction is sent to an operating system in the machine through a target program, so that the operating system starts input equipment on the machine according to the received release instruction, and at the moment, an operator can control the machine to work through the input equipment.
In a possible implementation manner, after executing step S1041, for each target execution instruction corresponding to the first control operation, sequentially sending the target execution instructions to the machine station according to the recording order of the target execution instructions, the method further includes:
s1042: receiving a pause instruction sent by the machine station, and stopping sending a target execution instruction to the machine station; the pause command is generated by the machine when the operator triggers the shortcut key on the machine.
In a specific embodiment, in the process of executing the target execution instruction by the machine, when an emergency occurs and the machine needs to pause to operate, the machine can be controlled to stop operating through a preset corresponding relationship between a shortcut key and the pause instruction. Specifically, when an operator triggers a shortcut key on a machine, an original program on the machine generates a pause instruction, when the pause instruction sent by the original program is received by a target program, the target program stops sending a target execution instruction to the original program, and when the original program cannot receive the target execution instruction, the original program controls the machine to stop running.
Example two:
based on the same technical concept, an embodiment of the present application further provides a machine control device residing on a machine, fig. 3 shows a schematic structural diagram of the machine control device provided in the embodiment of the present application, and as shown in fig. 3, the device includes:
a recording module 301, configured to record, for each control operation of a machine, an execution instruction of the machine in response to an operation step of an operator in the control operation;
a first determining module 302, configured to receive a target control instruction sent by a server, and determine a first control operation carried in the target control instruction;
a first query module 303, configured to query, according to each recorded control operation and the execution instruction corresponding to each recorded control operation, a target execution instruction corresponding to the first control operation;
a control module 304, configured to control the machine to execute the target execution instruction.
Optionally, when the control module 304 is configured to control the machine to execute the target execution instruction, the control module is specifically configured to:
and for each target execution instruction corresponding to the first control operation, sequentially sending the target execution instruction to the machine according to the recording sequence of the target execution instruction, so that the machine executes the target execution instruction.
Optionally, when the control module 304 is configured to, for each target execution instruction corresponding to the first control operation, sequentially send the target execution instruction to the console according to the recording order of the target execution instruction, specifically:
for each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending a first query signal to the machine;
when a first signal which is used for indicating that the target execution instruction response succeeds is received when the machine station responds to the first query signal, sending a next target execution instruction of the target execution instruction to the machine station until a first signal that the last target execution instruction response succeeds is received, and determining that the first control operation is executed;
and sending a second signal that the machine executes to complete the first control operation to the server.
Optionally, the execution instruction corresponding to each control operation is provided with a corresponding response time; the device further comprises:
a second determining module, configured to start timing when a first query signal is sent to the machine after the control module 304 sends the target execution instruction to the machine for each target execution instruction corresponding to the first control operation and sends the target execution instruction to the machine, and determine that the target execution instruction fails to respond if the first signal indicating that a response of the machine to the first query signal is successful is not received within the response time corresponding to the target execution instruction;
and the first sending module is used for sending a third signal of response failure to the server.
Optionally, the apparatus further comprises:
a third determining module, configured to receive the test instruction sent by the server and determine a second control operation carried in the test instruction before the first determining module 302 receives the target control instruction sent by the server and determines the first control operation carried in the target control instruction;
the second query module is used for querying the test execution instruction corresponding to the second control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
a second sending module, configured to send, for each test execution instruction corresponding to the second control operation, the test execution instruction to the machine and send a second query signal to the machine;
and the third sending module is used for sending the target execution instruction to the machine again when a fourth signal that the response of the machine to the second query signal fails is received, and recording the test execution instruction of the machine responding to the operation steps of the operator under the second control operation again until the fourth signal of preset times is received.
Optionally, the apparatus further comprises:
a fourth sending module, configured to send a disabling instruction to an operating system in the machine after the first determining module 302 receives the target control instruction sent by the server; the disabling instruction is used for forbidding the target execution instruction corresponding to the first control operation to be changed by using input equipment on the machine;
a fifth sending module, configured to send a release instruction to an operating system in the machine when the machine executes the target execution instruction corresponding to the first control operation; the release instruction is used for enabling the input equipment on the machine.
Optionally, the apparatus further comprises:
a receiving module, configured to receive a pause instruction sent by the machine after the control module 304 sequentially sends the target execution instructions to the machine according to the recording sequence of the target execution instructions for each target execution instruction corresponding to the first control operation, and stop sending the target execution instructions to the machine; the pause instruction is generated by the machine when the operator triggers a shortcut key on the machine.
For the specific implementation steps and principles, reference is made to the description of the first embodiment, which is not repeated herein.
Example three:
based on the same technical concept, an embodiment of the present application further provides an electronic device, and fig. 4 shows a schematic structural diagram of the electronic device provided in the embodiment of the present application, and as shown in fig. 4, the electronic device 400 includes: a processor 401, a memory 402 and a bus 403, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device is operated, the processor 401 and the memory 402 communicate with each other through the bus 403, and the processor 401 executes the machine-readable instructions to execute the method steps described in the first embodiment.
For the specific implementation steps and principles, reference is made to the description of the first embodiment, which is not repeated herein.
Example four:
based on the same technical concept, a computer-readable storage medium is further provided in a fourth embodiment of the present application, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the method steps in the first embodiment.
For the specific implementation steps and principles, reference is made to the description of the first embodiment, which is not repeated herein.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, 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.
The 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.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A machine control method is applied to a machine, and comprises the following steps:
recording an execution instruction of the machine responding to an operation step of an operator under the control operation aiming at each control operation of the machine;
receiving a target control instruction sent by a server, and determining a first control operation carried in the target control instruction;
inquiring a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each control operation;
and controlling the machine to execute the target execution instruction.
2. The machine control method of claim 1, wherein controlling the machine to execute the target execution instruction comprises:
and for each target execution instruction corresponding to the first control operation, sequentially sending the target execution instruction to the machine according to the recording sequence of the target execution instruction, so that the machine executes the target execution instruction.
3. The machine control method according to claim 2, wherein the sequentially sending the target execution instructions to the machine according to the recording order of the target execution instructions for each target execution instruction corresponding to the first control operation comprises:
for each target execution instruction corresponding to the first control operation, sending the target execution instruction to the machine, and then sending a first query signal to the machine;
when a first signal which is used for indicating that the target execution instruction response succeeds is received when the machine station responds to the first query signal, sending a next target execution instruction of the target execution instruction to the machine station until a first signal that the last target execution instruction response succeeds is received, and determining that the first control operation is executed;
and sending a second signal that the machine executes to complete the first control operation to the server.
4. The machine control method according to claim 3, wherein the execution instruction corresponding to each control operation is provided with a corresponding response time;
after sending the target execution instruction to the machine and sending a first query signal to the machine for each target execution instruction corresponding to the first control operation, the method further includes:
starting timing when the first query signal is sent to the machine, and determining that the response of the target execution instruction fails if the first signal that the machine responds to the first query signal successfully is not received within the response time corresponding to the target execution instruction;
sending a third signal to the server that the response failed.
5. The machine control method according to claim 1, wherein before receiving the target control instruction sent by the server and determining the first control operation carried in the target control instruction, the method further comprises:
receiving a test instruction sent by the server, and determining a second control operation carried in the test instruction;
inquiring a test execution instruction corresponding to the second control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
sending the test execution instruction to the machine station and sending a second query signal to the machine station aiming at each test execution instruction corresponding to the second control operation;
and when a fourth signal that the response of the machine station to the second query signal fails is received, re-sending the target execution instruction to the machine station, and re-recording a test execution instruction of the machine station to respond to the operation steps of the operator under the second control operation until the fourth signal of preset times is received.
6. The machine control method according to claim 1, further comprising, after receiving the target control command sent by the server:
sending a disabling instruction to an operating system in the machine; the disabling instruction is used for forbidding the target execution instruction corresponding to the first control operation to be changed by using input equipment on the machine;
when the machine executes the target execution instruction corresponding to the first control operation, sending a release instruction to an operating system in the machine; the release instruction is used for enabling the input equipment on the machine.
7. The machine control method according to claim 2, wherein after the target execution instructions are sequentially sent to the machine according to the recording order of the target execution instructions for each target execution instruction corresponding to the first control operation, the method further comprises:
receiving a pause instruction sent by the machine station, and stopping sending the target execution instruction to the machine station; the pause instruction is generated by the machine when the operator triggers a shortcut key on the machine.
8. A machine control apparatus, the apparatus residing on a machine, the apparatus comprising:
the recording module is used for recording an execution instruction of the machine responding to an operation step of an operator under the control operation aiming at each control operation of the machine;
the first determining module is used for receiving a target control instruction sent by a server and determining a first control operation carried in the target control instruction;
the first query module is used for querying a target execution instruction corresponding to the first control operation according to each recorded control operation and the execution instruction corresponding to each recorded control operation;
and the control module is used for controlling the machine to execute the target execution instruction.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202111638040.5A 2021-12-29 2021-12-29 Machine control method, device, electronic equipment and computer readable storage medium Active CN114326507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111638040.5A CN114326507B (en) 2021-12-29 2021-12-29 Machine control method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111638040.5A CN114326507B (en) 2021-12-29 2021-12-29 Machine control method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114326507A true CN114326507A (en) 2022-04-12
CN114326507B CN114326507B (en) 2023-10-31

Family

ID=81016340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111638040.5A Active CN114326507B (en) 2021-12-29 2021-12-29 Machine control method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114326507B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114887936A (en) * 2022-04-15 2022-08-12 北京兆维智能装备有限公司 Control method based on product flow direction, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020068984A1 (en) * 2000-12-06 2002-06-06 Bruce Alexander System and method for implementing open-protocol remote device control
US20060218529A1 (en) * 2005-03-24 2006-09-28 Matsushita Electric Industrial Co., Ltd. Systems and methods for common workspace interface
CN201623726U (en) * 2010-03-31 2010-11-03 长城信息产业股份有限公司 Communication device based on avionic bus ARINC429 protocol
CN107608225A (en) * 2017-09-29 2018-01-19 深圳市艾特智能科技有限公司 Control method, system, storage medium and the computer equipment of intelligent home device
CN108806115A (en) * 2018-08-21 2018-11-13 北京极智嘉科技有限公司 Nobody self-service operating system, method and operation door
CN109324572A (en) * 2018-01-05 2019-02-12 竹阩智能数据(合肥)有限公司 Machine automation management system and method thereof
CN111638672A (en) * 2020-06-05 2020-09-08 昆山艾控智能科技有限公司 Automatic control system of industrial machine table
CN113805487A (en) * 2020-07-23 2021-12-17 荣耀终端有限公司 Control instruction generation method and device, terminal equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020068984A1 (en) * 2000-12-06 2002-06-06 Bruce Alexander System and method for implementing open-protocol remote device control
US20060218529A1 (en) * 2005-03-24 2006-09-28 Matsushita Electric Industrial Co., Ltd. Systems and methods for common workspace interface
CN201623726U (en) * 2010-03-31 2010-11-03 长城信息产业股份有限公司 Communication device based on avionic bus ARINC429 protocol
CN107608225A (en) * 2017-09-29 2018-01-19 深圳市艾特智能科技有限公司 Control method, system, storage medium and the computer equipment of intelligent home device
CN109324572A (en) * 2018-01-05 2019-02-12 竹阩智能数据(合肥)有限公司 Machine automation management system and method thereof
CN108806115A (en) * 2018-08-21 2018-11-13 北京极智嘉科技有限公司 Nobody self-service operating system, method and operation door
CN111638672A (en) * 2020-06-05 2020-09-08 昆山艾控智能科技有限公司 Automatic control system of industrial machine table
CN113805487A (en) * 2020-07-23 2021-12-17 荣耀终端有限公司 Control instruction generation method and device, terminal equipment and readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NOSAL K Z: "Linking job performers to their work processes: A workshop strategy", 《PERFORMANCE + INSTRUCTION》 *
丁泉;朱来强;胡道徐;蒋衍君;江慧;: "变电站程序化操作及远动装置执行", 电力自动化设备, no. 08 *
徐沈利;毛林华;: "机床联网对生产管理的影响", 装备制造, no. 04 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114887936A (en) * 2022-04-15 2022-08-12 北京兆维智能装备有限公司 Control method based on product flow direction, computer equipment and storage medium
CN114887936B (en) * 2022-04-15 2024-02-27 北京兆维智能装备有限公司 Control method based on product flow direction, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114326507B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN110442426B (en) Password resetting method, device and storage medium
CN110838953A (en) Test method, test system, electronic equipment and storage medium
CN105512000B (en) Operating system abnormal information collection method and device and computer
CN105760289A (en) Debugging method and device of embedded system
CN114326507A (en) Machine control method and device, electronic equipment and computer readable storage medium
JP7155454B1 (en) Programmable logic controller, terminal device, program management system, program management method and program
KR102302843B1 (en) Control system, control device, and program
CN103139066A (en) Source switching method, main control equipment and node equipment
CN100504776C (en) Multi-mode computer system and its operation method
CN110968852A (en) Virtual machine password management method, system, equipment and computer storage medium
US20230050723A1 (en) Device testing arrangement
EP4187335A1 (en) Program, computer-readable recording medium, method, and system
CN114945104B (en) Television software probability problem reproduction method and device and television
US20240012654A1 (en) Electronic device and demo program execution method thereof
CN113641524B (en) Reset method, device and equipment for single board starting overtime and readable storage medium
CN115372803B (en) Motherboard test system, method, device and storage medium
WO2023286176A1 (en) Teaching operation panel, robot system and robot control device
US20220365686A1 (en) Evaluation system for evaluating resource operation of information system by user
CN112272955B (en) Control device and signal control method
JP7103804B2 (en) User interface control device, user interface control method, and user interface control program
CN107544781B (en) System installation method and device
CN106157573B (en) Alarm assembly and programming key thereof
JP6008400B2 (en) Information processing apparatus, information processing apparatus control method, program, and maintenance management system
KR101591968B1 (en) Method for auto recovery of symbolic link using integrity check and terminal using the same

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
CB02 Change of applicant information

Address after: 215000 unit g2-2101, artificial intelligence Industrial Park, No. 88, Jinjihu Avenue, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Applicant after: SeMet Technology Co.,Ltd.

Address before: 215000 unit g2-2101, artificial intelligence Industrial Park, No. 88, Jinjihu Avenue, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Applicant before: Suzhou saimeite Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant