CN113507387A - Master-slave station protocol-based control system and method - Google Patents

Master-slave station protocol-based control system and method Download PDF

Info

Publication number
CN113507387A
CN113507387A CN202110742395.2A CN202110742395A CN113507387A CN 113507387 A CN113507387 A CN 113507387A CN 202110742395 A CN202110742395 A CN 202110742395A CN 113507387 A CN113507387 A CN 113507387A
Authority
CN
China
Prior art keywords
module
target
mode
working mode
master
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
CN202110742395.2A
Other languages
Chinese (zh)
Other versions
CN113507387B (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.)
Shenzhen Just Motion Control Electromechanics Co ltd
Original Assignee
Shenzhen Just Motion Control Electromechanics 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 Shenzhen Just Motion Control Electromechanics Co ltd filed Critical Shenzhen Just Motion Control Electromechanics Co ltd
Priority to CN202110742395.2A priority Critical patent/CN113507387B/en
Publication of CN113507387A publication Critical patent/CN113507387A/en
Application granted granted Critical
Publication of CN113507387B publication Critical patent/CN113507387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a master-slave station protocol-based control system and a master-slave station protocol-based control method, and belongs to the technical field of automatic control. The mode determining module determines a target working mode and sends the target working mode to the data acquiring module; the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module; and the task execution module executes the corresponding target task according to the target data. By the mode, the corresponding working mode is selected according to the actual condition, the slave station in the control system based on the EtherCat master-slave station protocol can realize the function of the EtherCat standard slave station module and can also be used as independent equipment to execute tasks, the defects of the prior art are overcome, and the safety problem caused by the fact that the master station breaks down and the slave station stops running is avoided.

Description

Master-slave station protocol-based control system and method
Technical Field
The invention relates to the technical field of automation control, in particular to a master-slave station protocol-based control system and a master-slave station protocol-based control method.
Background
The existing mainstream control system based on the EtherCat architecture adopts a master-slave communication method, a network consists of a master station and a plurality of slave stations, and the whole network is initiated by the master station. All control must be initiated by the master device and the slave processes the response. Regardless of the number of slave devices, even one device must be equipped with a master device. Each slave station device cannot be operated independently off line, and corresponding tasks need to be completed through the master station device. The master station takes over all control tasks and the slave station only passively executes the master station's commands. The more complex the functionality the higher the performance requirements of the master station. When the master station breaks down, all the slave stations stop operating, and the safety problem exists.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a master-slave station protocol-based control system and a master-slave station protocol-based control method, and aims to solve the technical problem that a slave station cannot operate independently of a master station in the prior art.
In order to achieve the above object, the present invention provides a master-slave protocol-based control system, including: the system comprises a mode determining module, a data acquiring module and a task executing module which are connected in sequence;
the mode determination module: the data acquisition module is used for determining a target working mode and sending the target working mode to the data acquisition module;
the data acquisition module: the system comprises a task execution module, a target data acquisition module and a target data processing module, wherein the target data acquisition module is used for acquiring target data according to the target working mode and sending the target data to the task execution module;
the task execution module: and executing the corresponding target task according to the target data.
Optionally, the mode determining module includes an instruction receiving module, a mode switching module, and a mode sending module;
the instruction receiving module: for receiving a mode switching instruction;
the mode switching module: the system is used for switching the current working mode to a target working mode according to the mode switching instruction;
the mode sending module: and the data acquisition module is used for sending the target working mode to the data acquisition module.
Optionally, the mode determining module includes a time obtaining module, a time comparing module and a mode switching module;
the time acquisition module: the method comprises the steps of obtaining the current standby time;
the time comparison module: the system is used for comparing whether the current standby time exceeds a preset standby time threshold value or not and sending a comparison result to the mode switching module;
the mode switching module: and the comparison result is received, when the current standby duration exceeds the preset standby threshold, the current working mode is switched to an independent working mode, and the independent working mode is taken as the target working mode.
Optionally, the task execution module includes a task determination module, an equipment determination module, and a task execution module;
the task determination module: the system is used for determining a corresponding target task according to the target data;
the device determination module: the target equipment is used for determining a corresponding execution task according to the target number data and the target task;
the task execution module: for executing the target task based on the target data and the target device.
Optionally, the mode determining module includes a configuration obtaining module and a configuration changing module;
the configuration acquisition module: the configuration change module is used for acquiring configuration information of a master station and sending a configuration time period in the configuration information to the configuration change module;
the configuration change module: and the system is used for carrying out synchronous matching according to the configuration time period.
Further, to achieve the above object, the present invention also provides a master-slave protocol-based control method, which is applied to the master-slave protocol-based control system as described above, and the master-slave protocol-based control system includes: the control method based on the master-slave station protocol comprises a mode determination module, a data acquisition module and a task execution module which are connected in sequence, wherein the control method based on the master-slave station protocol comprises the following steps:
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module;
the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module;
and the task execution module executes the corresponding target task according to the target data.
Optionally, the mode determining module includes an instruction receiving module, a mode switching module, and a mode sending module;
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps:
the instruction receiving module receives a mode switching instruction;
the mode switching module switches the current working mode to a target working mode according to the mode switching instruction;
and the mode sending module sends the target working mode to the data acquisition module.
Optionally, the mode determining module includes a time obtaining module, a time comparing module and a mode switching module;
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps:
the time acquisition module acquires the current standby time;
the time comparison module compares whether the current standby time exceeds a preset standby time threshold and sends a comparison result to the mode switching module;
and the mode switching module receives the comparison result, switches the current working mode to an independent working mode when the current standby time exceeds the preset standby threshold value, and takes the independent working mode as the target working mode.
Optionally, the task execution module includes a task determination module, an equipment determination module, and a task execution module;
the task execution module executes a corresponding target task according to the target data;
the task determination module determines a corresponding target task according to the target data;
and the equipment determining module determines corresponding target equipment for executing the task according to the target number data and the target task.
Optionally, the mode determining module includes a configuration obtaining module and a configuration changing module;
before the mode determining module determines the target working mode and sends the target working mode to the data acquiring module, the method further includes:
the configuration acquisition module acquires configuration information of a master station and sends a configuration time period in the configuration information to the configuration change module;
and the configuration change module carries out synchronous matching according to the configuration time period.
The mode determining module determines a target working mode and sends the target working mode to the data acquiring module; the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module; and the task execution module executes the corresponding target task according to the target data. By the mode, the corresponding working mode is selected according to the actual condition, the slave station in the control system based on the EtherCat master-slave station protocol can not only realize the function of the EtherCAT standard slave station module, but also can be used as independent equipment to execute tasks, the defects of the prior art are overcome, and the safety problem caused by the fact that the master station breaks down and the slave station stops running is avoided.
Drawings
Fig. 1 is a block diagram of a first embodiment of a master-slave station protocol-based control system according to the present invention;
FIG. 2 is a flowchart illustrating an overall process of an embodiment of a control system based on master and slave station protocols according to the present invention;
fig. 3 is a block diagram of a second embodiment of the master-slave station protocol-based control system according to the present invention;
fig. 4 is a flowchart illustrating a first embodiment of a master-slave station protocol-based control method according to the present invention;
fig. 5 is a flowchart illustrating a master-slave station protocol-based control method according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a block diagram illustrating a first embodiment of a master-slave station protocol-based control system according to the present invention.
In this embodiment, the master-slave station protocol-based control system includes: the system comprises a mode determining module 10, a data acquiring module 20 and a task executing module 30 which are connected in sequence; the mode determination module 10: the data acquisition module is used for determining a target working mode and sending the target working mode to the data acquisition module; the data acquisition module 20: the system comprises a task execution module, a target data acquisition module and a target data processing module, wherein the target data acquisition module is used for acquiring target data according to the target working mode and sending the target data to the task execution module; the task execution module 30: and executing the corresponding target task according to the target data.
It should be noted that EtherCat is an open real-time ethernet communication protocol, is a fieldbus system based on ethernet, and is mainly composed of an EtherCat master station, a plurality of EtherCat slave stations, and an EtherCat bus.
It can be understood that the slave station has two operation modes, one is a standard slave station operation mode, the other is an independent operation mode, and the master station and the slave station have preset control programs to enable the slave station to realize the switching of the two modes.
In a specific implementation, the mode determining module 10 is configured to determine a current working mode of a slave station, and obtain corresponding working data based on the current working mode, for example, if the current working mode of the slave station is a standard slave station working mode, the working data sent from the master station needs to be received, complex motions, single-axis motions, multi-axis motions, and data interaction, input and output need to be performed through a bus, if the current working mode of the slave station is an independent working mode, a PLC task that needs to be performed needs to be obtained from a user side, a motor motion is controlled, data of other slave stations is obtained, other slave stations are controlled, or a task issued by the master station is performed.
Further, in order to improve the working efficiency of the master station and the slave station while not causing waste of resources, the mode determining module 10 includes an instruction receiving module, a mode switching module and a mode transmitting module; the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps: the instruction receiving module receives a mode switching instruction; the mode switching module switches the current working mode to a target working mode according to the mode switching instruction; and the mode sending module sends the target working mode to the data acquisition module.
It should be noted that the instruction receiving module in the mode determining module is used to receive a mode switching instruction sent by the master station or the user, the master station may change the current working mode of the slave station in real time according to the current working requirement to meet the current working requirement, and the user sends the mode switching instruction in a dial mode according to the current working requirement to implement mode switching on hardware.
In a specific implementation, after the mode switching module receives the mode switching instruction, the current working mode is switched according to the mode switching instruction, a target working mode is obtained after switching, and then the mode sending module sends the target working mode to the data acquisition module, so that the data acquisition module acquires corresponding working data according to the target working mode.
It should be noted that, after obtaining the target working mode, the data obtaining module 20 obtains the corresponding target working data according to the target working mode, for example, if the current working mode is the standard slave station mode, data sent by the master station through the communication network needs to be received as the target data, and if the current working mode is the independent working mode, the target data sent by the user end and needing to be executed can be directly received.
It should be noted that, after the task execution module 30 acquires the target data, the corresponding target task is determined and further executed according to the content information included in the target data.
Further, in order to perform a task more accurately and improve efficiency, the task performing module 30 includes a task determining module, a device determining module, and a task performing module; the task determination module: the system is used for determining a corresponding target task according to the target data; the device determination module: the target equipment is used for determining a corresponding execution task according to the target number data and the target task; the task execution module: for executing the target task based on the target data and the target device.
It should be noted that the task determining module in the task executing module 30 is configured to determine the current target task according to the current target data, i.e. the target working data, for example, the current target working data is directly obtained from the user side, and the current task is identified by the target working data and programmed according to the PLC program in the target working data.
It is understood that the device determining module in the task performing module 30 may determine the corresponding target device according to the current target work data and the target task. For example, the currently acquired working data is data received from the master station when the slave station is in a standard slave station mode, the current target task of the slave station is to insert related user data from the received target work, and then the inserted data is sent to the next slave station device, so that the device determination module determines the corresponding target device according to the current target data and the target task, that is, the next slave station device receiving the inserted data.
In a specific implementation, the task execution module 30 executes the target task based on the current target data and the corresponding target device after the current target task and the corresponding target device are both determined.
As shown in fig. 2, in the control system based on the master-slave station protocol, the current target working mode of the slave station is determined, one working mode is selected from two working modes, namely, an EtherCat standard slave station mode and an independent working mode, and then corresponding target data is obtained according to different modes and corresponding tasks are executed.
In the embodiment, a target working mode is determined by a mode determining module and is sent to the data acquiring module; the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module; and the task execution module executes the corresponding target task according to the target data. Through the mode, the corresponding working mode is selected according to the actual condition, the slave station in the control system based on the EtherCat master-slave station protocol can realize the function of the EtherCat standard slave station module, is networked with other EtherCat equipment, can also be used as independent equipment to execute tasks, can be communicated with other equipment under the condition without the EtherCat master station, the defects of the prior art are overcome, and the safety problem caused by the fact that the master station breaks down and the slave station stops running is avoided.
Referring to fig. 3, fig. 3 is a block diagram illustrating a structure of a master-slave protocol control system according to a second embodiment of the present invention.
In this embodiment, the mode determining module 10 includes a time obtaining module 101, a time comparing module 102, and a mode switching module 103;
it should be noted that, after the slave station starts, the working and standby time periods of the slave station are monitored in real time, and the time obtaining module 101 in the mode determining module 10 obtains the current standby time period of the slave station.
It should be noted that, after the time obtaining module 101 in the mode determining module 10 obtains the current standby time, the time comparing module 102 compares the current standby time with a preset standby time threshold to obtain a comparison result. For example, if the current standby time of the slave station is 26 minutes and the preset standby time threshold is 25 minutes, the comparison result is that the current standby time exceeds the preset standby time threshold, and the comparison result is sent to the mode switching module 103 in the mode determining module 10.
It should be noted that when the current standby time exceeds the preset standby time threshold, the mode switching module 103 is triggered to start, and the slave station is changed into the independent working mode, and if the current standby time does not exceed the preset standby time threshold, the current working mode of the slave station is maintained, and the mode switching module 103 is not started.
Further, in order to enable the slave station and the master station to be normally connected and communicate through a network, the mode determining module 10 includes a configuration obtaining module and a configuration changing module; before the mode determining module determines the target working mode and sends the target working mode to the data acquiring module, the method further includes: the configuration acquisition module: the configuration change module is used for acquiring configuration information of a master station and sending a configuration time period in the configuration information to the configuration change module; the configuration change module: and the system is used for carrying out synchronous matching according to the configuration time period.
Before determining the current target operation mode, the configurations of the slave station and the master station need to be synchronized to enable the master station and the slave station to be connected normally. The configuration obtaining module in the mode determining module 10 is used to obtain the configuration information of the master station, search the configuration time period in the configuration information, and send the configuration time period to the configuration changing module, and the configuration changing module in the mode determining module 10 performs synchronous matching on the configuration information of the slave station according to the configuration time period, so that the configuration information between the slave station and the master station is kept consistent.
In this embodiment, the current standby duration is obtained by the time obtaining module; the time comparison module compares whether the current standby time exceeds a preset standby time threshold and sends a comparison result to the mode switching module; and the mode switching module receives the comparison result, switches the current working mode to an independent working mode when the current standby time exceeds the preset standby threshold value, and takes the independent working mode as the target working mode. By monitoring the standby time of the slave station, the working mode of the slave station can be converted in real time, so that the resources of the slave station can be fully utilized, the working efficiency is improved, and the system is more intelligent and automatic.
Referring to fig. 4, fig. 4 is a flowchart illustrating a primary and secondary station protocol-based control method according to a first embodiment of the present invention, where the primary and secondary station protocol-based control method is applied to a primary and secondary station protocol-based control system, and the primary and secondary station protocol-based control system includes: the control method based on the master-slave station protocol comprises a mode determination module, a data acquisition module and a task execution module which are connected in sequence, wherein the control method based on the master-slave station protocol comprises the following steps:
step S10: and the mode determining module determines a target working mode and sends the target working mode to the data acquiring module.
It should be noted that the execution subject of this embodiment is a slave station device that can operate independently based on Ethernet for Control Automation Technology (Ethernet for Ethernet Control Automation Technology).
It can be understood that EtherCat is an open real-time ethernet communication protocol, and is an ethernet-based field bus system, which mainly comprises an EtherCat master station, a plurality of EtherCat slave stations and an EtherCat bus.
It can be understood that the slave station has two operation modes, one is a standard slave station operation mode, the other is an independent operation mode, and the master station and the slave station have preset control programs to enable the slave station to realize the switching of the two modes.
In a specific implementation, the mode determining module is configured to determine a current working mode of the slave station, and obtain corresponding working data based on the current working mode, for example, if the current working mode of the slave station is a standard slave station working mode, the working data sent from the master station needs to be received, complex motions, single-axis motions, multi-axis motions are performed through a bus, and data interaction, input and output are performed, if the current working mode of the slave station is an independent working mode, a PLC task to be performed needs to be obtained from a user side, motor motion is controlled, data of other slave stations is obtained, and other slave stations are controlled, or tasks issued by the master station are performed.
Further, in order to improve the working efficiency of the master station and the slave station without causing resource waste, the mode determining module comprises an instruction receiving module, a mode switching module and a mode sending module; the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps: the instruction receiving module receives a mode switching instruction; the mode switching module switches the current working mode to a target working mode according to the mode switching instruction; and the mode sending module sends the target working mode to the data acquisition module.
It should be noted that the instruction receiving module in the mode determining module is used to receive a mode switching instruction sent by the master station or the user, the master station may change the current working mode of the slave station in real time according to the current working requirement to meet the current working requirement, and the user sends the mode switching instruction in a dial mode according to the current working requirement to implement mode switching on hardware.
In a specific implementation, after the mode switching module receives the mode switching instruction, the current working mode is switched according to the mode switching instruction, a target working mode is obtained after switching, and then the mode sending module sends the target working mode to the data acquisition module, so that the data acquisition module acquires corresponding working data according to the target working mode.
Step S20: and the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module.
It should be noted that, after obtaining the target working mode, the data obtaining module obtains the corresponding target working data according to the target working mode, for example, if the current working mode is the standard slave station mode, data sent by the master station through the communication network needs to be received as the target data, and if the current working mode is the independent working mode, the data can directly receive the target data sent by the user end and needed to be executed.
Step S30: and the task execution module executes the corresponding target task according to the target data.
It should be noted that, after the task execution module acquires the target data, the task execution module determines and further executes the corresponding target task according to the content information included in the target data.
Further, in order to enable the task to be executed more accurately and improve the efficiency, the task execution module comprises a task determination module, an equipment determination module and a task execution module; the task determination module determines a corresponding target task according to the target data; the equipment determining module determines corresponding target equipment for executing the task according to the target number data and the target task; the task execution module executes the target task based on the target data and the target device.
It should be noted that the task determining module in the task executing module is configured to determine the current target task according to the current target data, that is, the target working data, for example, the current target working data is directly obtained from the user side, and the current task is identified through the target working data and programmed according to the PLC program in the target working data.
It can be understood that the device determining module in the task executing module may determine the corresponding target device according to the current target work data and the target task. For example, the currently acquired working data is data received from the master station when the slave station is in a standard slave station mode, the current target task of the slave station is to insert related user data from the received target work, and then the inserted data is sent to the next slave station device, so that the device determination module determines the corresponding target device according to the current target data and the target task, that is, the next slave station device receiving the inserted data.
In a specific implementation, the task execution module executes the target task based on the current target data and the corresponding target device after the current target task and the corresponding target device are both determined.
In the embodiment, a target working mode is determined by a mode determining module and is sent to the data acquiring module; the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module; and the task execution module executes the corresponding target task according to the target data. Through the mode, the corresponding working mode is selected according to the actual condition, the slave station in the control system based on the EtherCat master-slave station protocol can realize the function of the EtherCat standard slave station module, is networked with other EtherCat equipment, can also be used as independent equipment to execute tasks, can be communicated with other equipment under the condition without the EtherCat master station, the defects of the prior art are overcome, and the safety problem caused by the fact that the master station breaks down and the slave station stops running is avoided.
Fig. 5 is a flowchart illustrating a control method based on master-slave station protocols according to a second embodiment of the present invention, which is proposed based on the first embodiment.
In this embodiment, the mode determining module includes a time obtaining module, a time comparing module and a mode switching module, and the step S10 includes:
step S101: the time obtaining module obtains the current standby time length.
It should be noted that, after the slave station is started, the working and standby time lengths of the slave station are monitored in real time, and the event obtaining module in the mode determining module obtains the current standby time length of the slave station.
Step S102: the time comparison module compares whether the current standby time exceeds a preset standby time threshold value or not, and sends a comparison result to the mode switching module.
It should be noted that, after the time obtaining module in the mode determining module obtains the current standby time, the current standby time is compared with the preset standby time threshold to obtain a comparison result. For example, if the current standby time of the slave station is 26 minutes and the preset standby time threshold is 25 minutes, the comparison result is that the current standby time exceeds the preset standby time threshold, and the comparison result is sent to the mode switching module in the mode switching module.
Step S103: and the mode switching module receives the comparison result, switches the current working mode to an independent working mode when the current standby time exceeds the preset standby threshold value, and takes the independent working mode as the target working mode.
It should be noted that when the current standby time exceeds the preset standby time threshold, the mode switching module is triggered to start, the slave station is changed into the independent working mode, and if the current standby time does not exceed the preset standby time threshold, the current working mode of the slave station is maintained, and the mode switching module is not started.
Further, in order to enable the slave station and the master station to be normally connected, communication is performed through a network, and the mode determining module comprises a configuration obtaining module and a configuration changing module; before the mode determining module determines the target working mode and sends the target working mode to the data acquiring module, the method further includes: the configuration acquisition module acquires configuration information of a master station and sends a configuration time period in the configuration information to the configuration change module; and the configuration change module carries out synchronous matching according to the configuration time period.
Before determining the current target operation mode, the configurations of the slave station and the master station need to be synchronized to enable the master station and the slave station to be connected normally. The configuration acquisition module in the mode determination module is used for acquiring the configuration information of the master station, searching the configuration time period in the configuration information and sending the configuration time period to the configuration change module, and the configuration change module in the mode determination module performs synchronous matching on the configuration information of the slave station according to the configuration time period so as to keep the configuration information between the slave station and the master station consistent.
In this embodiment, the current standby duration is obtained by the time obtaining module; the time comparison module compares whether the current standby time exceeds a preset standby time threshold and sends a comparison result to the mode switching module; and the mode switching module receives the comparison result, switches the current working mode to an independent working mode when the current standby time exceeds the preset standby threshold value, and takes the independent working mode as the target working mode. By monitoring the standby time of the slave station, the working mode of the slave station can be converted in real time, so that the resources of the slave station can be fully utilized, the working efficiency is improved, and the system is more intelligent and automatic.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A master-slave protocol-based control system, the master-slave protocol-based control system comprising: the system comprises a mode determining module, a data acquiring module and a task executing module which are connected in sequence;
the mode determination module: the data acquisition module is used for determining a target working mode and sending the target working mode to the data acquisition module;
the data acquisition module: the system comprises a task execution module, a target data acquisition module and a target data processing module, wherein the target data acquisition module is used for acquiring target data according to the target working mode and sending the target data to the task execution module;
the task execution module: and executing the corresponding target task according to the target data.
2. The master-slave station protocol-based control system of claim 1, wherein the mode determining module comprises an instruction receiving module, a mode switching module and a mode transmitting module;
the instruction receiving module: for receiving a mode switching instruction;
the mode switching module: the system is used for switching the current working mode to a target working mode according to the mode switching instruction;
the mode sending module: and the data acquisition module is used for sending the target working mode to the data acquisition module.
3. The master-slave station protocol-based control system of claim 1, wherein the mode determination module comprises a time acquisition module, a time comparison module and a mode switching module;
the time acquisition module: the method comprises the steps of obtaining the current standby time;
the time comparison module: the system is used for comparing whether the current standby time exceeds a preset standby time threshold value or not and sending a comparison result to the mode switching module;
the mode switching module: and the comparison result is received, when the current standby duration exceeds the preset standby threshold, the current working mode is switched to an independent working mode, and the independent working mode is taken as the target working mode.
4. The master-slave station protocol-based control system of claim 1, wherein the task execution module comprises a task determination module, a device determination module, and a task execution module;
the task determination module: the system is used for determining a corresponding target task according to the target data;
the device determination module: the target equipment is used for determining a corresponding execution task according to the target number data and the target task;
the task execution module: for executing the target task based on the target data and the target device.
5. The master-slave station protocol based control system of claim 1, wherein the mode determination module comprises a configuration acquisition module and a configuration change module;
the configuration acquisition module: the configuration change module is used for acquiring configuration information of a master station and sending a configuration time period in the configuration information to the configuration change module;
the configuration change module: and the system is used for carrying out synchronous matching according to the configuration time period.
6. A master-slave protocol control method, applied to the master-slave protocol control system according to any one of claims 1 to 5, wherein the master-slave protocol control system comprises: the control method based on the master-slave station protocol comprises a mode determination module, a data acquisition module and a task execution module which are connected in sequence, wherein the control method based on the master-slave station protocol comprises the following steps:
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module;
the data acquisition module acquires target data according to the target working mode and sends the target data to the task execution module;
and the task execution module executes the corresponding target task according to the target data.
7. The master-slave station protocol-based control method of claim 6, wherein the mode determination module comprises an instruction receiving module, a mode switching module and a mode transmitting module;
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps:
the instruction receiving module receives a mode switching instruction;
the mode switching module switches the current working mode to a target working mode according to the mode switching instruction;
and the mode sending module sends the target working mode to the data acquisition module.
8. The master-slave station protocol-based control method of claim 6, wherein the mode determination module comprises a time acquisition module, a time comparison module and a mode switching module;
the mode determining module determines a target working mode and sends the target working mode to the data acquiring module, and the method comprises the following steps:
the time acquisition module acquires the current standby time;
the time comparison module compares whether the current standby time exceeds a preset standby time threshold and sends a comparison result to the mode switching module;
and the mode switching module receives the comparison result, switches the current working mode to an independent working mode when the current standby time exceeds the preset standby threshold value, and takes the independent working mode as the target working mode.
9. The master-slave station protocol-based control method of claim 6, wherein the task execution module comprises a task determination module, a device determination module and a task execution module;
the task execution module executes a corresponding target task according to the target data;
the task determination module determines a corresponding target task according to the target data;
and the equipment determining module determines corresponding target equipment for executing the task according to the target number data and the target task.
10. The master-slave station protocol-based control method according to any one of claims 6 to 9, wherein the mode determination module comprises a configuration acquisition module and a configuration change module;
before the mode determining module determines the target working mode and sends the target working mode to the data acquiring module, the method further includes:
the configuration acquisition module acquires configuration information of a master station and sends a configuration time period in the configuration information to the configuration change module;
and the configuration change module carries out synchronous matching according to the configuration time period.
CN202110742395.2A 2021-06-30 2021-06-30 Master-slave station protocol-based control system and method Active CN113507387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110742395.2A CN113507387B (en) 2021-06-30 2021-06-30 Master-slave station protocol-based control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110742395.2A CN113507387B (en) 2021-06-30 2021-06-30 Master-slave station protocol-based control system and method

Publications (2)

Publication Number Publication Date
CN113507387A true CN113507387A (en) 2021-10-15
CN113507387B CN113507387B (en) 2022-07-01

Family

ID=78009887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110742395.2A Active CN113507387B (en) 2021-06-30 2021-06-30 Master-slave station protocol-based control system and method

Country Status (1)

Country Link
CN (1) CN113507387B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203936A1 (en) * 2002-06-27 2004-10-14 Minoru Ogino Communication terminal, communication system, and computer program product
CN1798377A (en) * 2004-12-21 2006-07-05 中兴通讯股份有限公司 Method for automatic building mode of binding communication in base station
CN108306804A (en) * 2018-01-26 2018-07-20 中科新松有限公司 A kind of Ethercat main station controllers and its communication means and system
CN210129113U (en) * 2019-07-24 2020-03-06 成都乐创自动化技术股份有限公司 EtherCAT control structure with main line control and independent control
CN110928243A (en) * 2019-12-02 2020-03-27 珠海格力电器股份有限公司 Method for configuring EtherCAT bus configuration through demonstrator
CN111026016A (en) * 2019-12-10 2020-04-17 深圳市英威腾自动控制技术有限公司 Programmable controller based on double FPGA (field programmable Gate array) framework and industrial control system
CN111245697A (en) * 2020-01-07 2020-06-05 深圳市蓝海华腾技术股份有限公司 Communication method and system of parallel bus, master station and slave station
CN111478834A (en) * 2020-03-25 2020-07-31 武汉迈信电气技术有限公司 EtherCAT master station synchronization method based on non-real-time system
CN112647992A (en) * 2020-12-22 2021-04-13 华夏天信智能物联股份有限公司 Hydraulic support electrohydraulic control method based on EtherCAT bus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203936A1 (en) * 2002-06-27 2004-10-14 Minoru Ogino Communication terminal, communication system, and computer program product
CN1798377A (en) * 2004-12-21 2006-07-05 中兴通讯股份有限公司 Method for automatic building mode of binding communication in base station
CN108306804A (en) * 2018-01-26 2018-07-20 中科新松有限公司 A kind of Ethercat main station controllers and its communication means and system
CN210129113U (en) * 2019-07-24 2020-03-06 成都乐创自动化技术股份有限公司 EtherCAT control structure with main line control and independent control
CN110928243A (en) * 2019-12-02 2020-03-27 珠海格力电器股份有限公司 Method for configuring EtherCAT bus configuration through demonstrator
CN111026016A (en) * 2019-12-10 2020-04-17 深圳市英威腾自动控制技术有限公司 Programmable controller based on double FPGA (field programmable Gate array) framework and industrial control system
CN111245697A (en) * 2020-01-07 2020-06-05 深圳市蓝海华腾技术股份有限公司 Communication method and system of parallel bus, master station and slave station
CN111478834A (en) * 2020-03-25 2020-07-31 武汉迈信电气技术有限公司 EtherCAT master station synchronization method based on non-real-time system
CN112647992A (en) * 2020-12-22 2021-04-13 华夏天信智能物联股份有限公司 Hydraulic support electrohydraulic control method based on EtherCAT bus

Also Published As

Publication number Publication date
CN113507387B (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN109347884B (en) Method and device for converting real-time Ethernet to field bus and storage medium
CN111031034A (en) Multi-protocol convergence edge computing gateway
CN111865736B (en) Equipment control method and device
Dürkop et al. Towards autoconfiguration of industrial automation systems: A case study using Profinet IO
CN112764410B (en) Vehicle-mounted controller testing device, system and method
CN112804124B (en) Test bed and test method for time-sensitive network equipment
CN112491675A (en) Data communication method, device, equipment and computer readable storage medium
CN113507387B (en) Master-slave station protocol-based control system and method
CN111818127B (en) Data synchronization method and device
CN106130787B (en) Service processing system based on software defined network
CN110430110B (en) On-site bus gateway and protocol conversion method thereof
CN116955232A (en) Hardware identification method and device based on control system
CN112261512B (en) Master station remote control method, device, storage medium and equipment of unbalanced polling protocol
CN109245979B (en) CANopen master-slave station reliability control method and overall management device thereof
CN116232796A (en) EtherCAT master station based on Ruihua operating system and implementation method
EP2677693B1 (en) Communication system
CN106598599B (en) A kind of execution method and apparatus of program
CN113194124B (en) Distributed real-time database-based DCS background multi-node directory synchronization method
CN107147552A (en) The method and apparatus that letter reading is returned in a kind of remote control
CN107453903B (en) Method and system for identifying communication slave station and storage device
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
CN116527793B (en) Protocol connection method, device, equipment and storage medium
CN112019491A (en) Message processing method and system
CN116069445A (en) Virtualized service deployment method, device, equipment and storage medium
CN112738245B (en) Method and device for determining equipment response information, storage medium and electronic device

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