Multi-machine synchronous operation method
By establishing communication networking and control logic in a multi-machine system, using the communication control connection between the host and the controller, and setting the bus to the IO flip mode, the problem of poor synchronization in multi-machine synchronization operation is solved, and efficient multi-machine synchronization operation is achieved.
Patent Information
- Application Number
- CN202411927010.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-25
AI Technical Summary
The prior art has the problem of poor synchronization in multi-machine synchronization operations, especially in non-parallel systems, it is difficult to achieve synchronization using communication lines to form a network.
By establishing communication networking and control logic, selecting a machine as the host to establish a communication control connection with the controller, issuing control instructions and setting the bus to IO flip mode, achieving synchronous triggering of all machines.
It improves the synchronization of multi-machine synchronous operation and can realize synchronous operation within us, and is suitable for multiple parallel machines and non-parallel systems.
Smart Images

Figure CN119892281A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multi-machine synchronization, and in particular to a multi-machine synchronous operation method. Background Art
[0002] Multi-machine synchronous operation is in some environments where multiple machines are operated in parallel and it is necessary to ensure synchronous operation between multiple machines in order to achieve specific operating requirements or production needs.
[0003] When multiple machines are connected in parallel, they must be operated synchronously, otherwise the entire system will be abnormal. However, there are also many requirements for synchronous operation in some non-parallel systems. If the current solution uses communication lines to form a network, it is basically impossible to synchronize.
[0004] To this end, the present invention proposes a method for synchronous operation of multiple machines. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a method for synchronous operation of multiple machines.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A method for synchronous operation of multiple machines comprises the following steps:
[0008] S1: Communication is established, and communication networking is established among all machines and controllers;
[0009] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0010] Preferably, the controller is a PC or a control button.
[0011] Preferably: the step S1 comprises the following steps:
[0012] S11: Establish a communication network connection among all the machines through the network bus;
[0013] S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC or control button as the controller.
[0014] Preferably: in the step S2, the control execution logic includes the following steps:
[0015] S21: Sending control instructions to the host through the PC as a controller or control buttons;
[0016] S22: After receiving the command from the PC or the control button, the host puts the command parameters into the register;
[0017] S23: At the same time, the host sends the command parameters to all machines through the networking bus;
[0018] S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode;
[0019] S25: Then set the networking bus to IO flip mode;
[0020] S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
[0021] Preferably: in the step S25, the bus receiving pins of all machines are no longer used as data receiving pins, but are converted into IO trigger input pins.
[0022] The beneficial effects of the present invention are:
[0023] 1. The present invention first issues the instructions to be executed, makes preparations, and then converts the bus into an IO line. All machines can directly execute the previous instructions by the hardware terminal inside the single-chip microcomputer at the moment of receiving the IO port flip, and its synchronization will be greatly improved, and synchronization within the us can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A host flow chart of a method for synchronous operation of multiple machines proposed by the present invention;
[0025] Figure 2 This is a slave machine flow chart of a multi-machine synchronous operation method proposed by the present invention. DETAILED DESCRIPTION
[0026] The technical solution of the present invention is further described in detail below in conjunction with specific implementation methods.
[0027] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "set" should be understood in a broad sense, for example, they can be fixedly connected or set, or detachably connected or set, or integrally connected or set. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0028] Embodiment 1:
[0029] A method for synchronous operation of multiple machines comprises the following steps:
[0030] S1: Communication is established, and communication networking is established among all machines and controllers;
[0031] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0032] The controller is a PC.
[0033] The step S1 comprises the following steps:
[0034] S11: Establish a communication network connection among all the machines through the network bus;
[0035] S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC serving as the controller.
[0036] Embodiment 2:
[0037] A method for synchronous operation of multiple machines comprises the following steps:
[0038] S1: Communication is established, and communication networking is established among all machines and controllers;
[0039] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0040] The controller is a control button.
[0041] The step S1 comprises the following steps:
[0042] S11: Establish a communication network connection among all the machines through the network bus;
[0043] S12: Select one of the machines as the host, and establish a communication control connection between the host and the control button as the controller.
[0044] Embodiment 3:
[0045] A method for synchronous operation of multiple machines comprises the following steps:
[0046] S1: Communication is established, and communication networking is established among all machines and controllers;
[0047] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0048] The controller is a PC or a control button.
[0049] The step S1 comprises the following steps:
[0050] S11: Establish a communication network connection among all the machines through the network bus;
[0051] S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC or control button as the controller.
[0052] In the step S2, the control execution logic includes the following steps:
[0053] S21: Sending control instructions to the host through the PC as a controller or control buttons;
[0054] S22: After receiving the command from the PC or the control button, the host puts the command parameters into the register;
[0055] S23: At the same time, the host sends the command parameters to all machines through the networking bus;
[0056] S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode;
[0057] S25: Then set the networking bus to IO flip mode;
[0058] S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
[0059] Embodiment 4:
[0060] A method for synchronous operation of multiple machines comprises the following steps:
[0061] S1: Communication is established, and communication networking is established among all machines and controllers;
[0062] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0063] The controller is a PC or a control button.
[0064] The step S1 comprises the following steps:
[0065] S11: Establish a communication network connection among all the machines through the network bus;
[0066] S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC or control button as the controller.
[0067] In the step S2, the control execution logic includes the following steps:
[0068] S21: Sending control instructions to the host through the PC as a controller or control buttons;
[0069] S22: After receiving the command from the PC or the control button, the host puts the command parameters into the register;
[0070] S23: At the same time, the host sends the command parameters to all machines through the networking bus;
[0071] S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode;
[0072] S25: Then set the networking bus to IO flip mode;
[0073] S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
[0074] In the step S25, the bus receiving pins of all machines no longer function as data receiving pins, but are converted into IO trigger input pins.
[0075] Embodiment 5:
[0076] A method for synchronous operation of multiple machines comprises the following steps:
[0077] S1: Communication is established, and communication networking is established among all machines and controllers;
[0078] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0079] The controller is a PC.
[0080] The step S1 comprises the following steps:
[0081] S11: Establish a communication network connection among all the machines through the network bus;
[0082] S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC serving as the controller.
[0083] In the step S2, the control execution logic includes the following steps:
[0084] S21: Sending control instructions to the host through the PC as a controller;
[0085] S22: After receiving the instruction from the PC, the host puts the instruction parameters into the register;
[0086] S23: At the same time, the host sends the command parameters to all machines through the networking bus;
[0087] S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode;
[0088] S25: Then set the networking bus to IO flip mode;
[0089] S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
[0090] In the step S25, the bus receiving pins of all machines no longer function as data receiving pins, but are converted into IO trigger input pins.
[0091] Embodiment 6:
[0092] A method for synchronous operation of multiple machines comprises the following steps:
[0093] S1: Communication is established, and communication networking is established among all machines and controllers;
[0094] S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
[0095] The controller is a control button.
[0096] The step S1 comprises the following steps:
[0097] S11: Establish a communication network connection among all the machines through the network bus;
[0098] S12: Select one of the machines as the host, and establish a communication control connection between the host and the control button as the controller.
[0099] In the step S2, the control execution logic includes the following steps:
[0100] S21: Sending control instructions to the host through the control button of the controller;
[0101] S22: After receiving the command from the control button, the host puts the command parameters into the register;
[0102] S23: At the same time, the host sends the command parameters to all machines through the networking bus;
[0103] S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode;
[0104] S25: Then set the networking bus to IO flip mode;
[0105] S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
[0106] In the step S25, the bus receiving pins of all machines no longer function as data receiving pins, but are converted into IO trigger input pins.
[0107] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for synchronous operation of multiple machines, characterized in that: The following steps are involved: S1: Communication is established, and communication networking is established among all machines and controllers; S2: Control logic establishment and execution: establish the control execution logic of all machines relative to the controller, and the machines execute according to the execution logic.
2. A method for synchronous operation of multiple machines according to claim 1, characterized in that: The controller is a PC or a control button.
3. A method for synchronous operation of multiple machines according to claim 1, characterized in that: The step S1 comprises the following steps: S11: Establish a communication network connection among all the machines through the network bus; S12: Select one of the machines as the host, and establish a communication control connection between the host and the PC or control button as the controller.
4. A method for synchronous operation of multiple machines according to claim 1, characterized in that: In the step S2, the control execution logic includes the following steps: S21: Sending control instructions to the host through the PC as a controller or control buttons; S22: After receiving the command from the PC or the control button, the host puts the command parameters into the register; S23: At the same time, the host sends the command parameters to all machines through the networking bus; S24: After receiving the control instruction parameters, all machines do not execute them but only store them in registers, and after receiving the synchronization instruction, all machines enter the waiting trigger mode; S25: Then set the networking bus to IO flip mode; S26: When the host turns over the bus battery, all machines are synchronously triggered to start executing the instruction parameters in the register.
5. A method for synchronous operation of multiple machines according to claim 4, characterized in that: In the step S25, the bus receiving pins of all machines no longer function as data receiving pins, but are converted into IO trigger input pins.