CN117234993A - Parameter synchronization method, device, equipment and storage medium - Google Patents

Parameter synchronization method, device, equipment and storage medium Download PDF

Info

Publication number
CN117234993A
CN117234993A CN202311521294.8A CN202311521294A CN117234993A CN 117234993 A CN117234993 A CN 117234993A CN 202311521294 A CN202311521294 A CN 202311521294A CN 117234993 A CN117234993 A CN 117234993A
Authority
CN
China
Prior art keywords
target
slave station
system parameter
parameter synchronization
station equipment
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
CN202311521294.8A
Other languages
Chinese (zh)
Other versions
CN117234993B (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.)
ZHEJIANG HECHUAN TECHNOLOGY CO LTD
Original Assignee
ZHEJIANG HECHUAN 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 ZHEJIANG HECHUAN TECHNOLOGY CO LTD filed Critical ZHEJIANG HECHUAN TECHNOLOGY CO LTD
Priority to CN202311521294.8A priority Critical patent/CN117234993B/en
Publication of CN117234993A publication Critical patent/CN117234993A/en
Application granted granted Critical
Publication of CN117234993B publication Critical patent/CN117234993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

The application discloses a parameter synchronization method, a device, equipment and a storage medium, which relate to the technical field of computers and are used for solving the defects of low efficiency, long time and easy error of the current parameter setting mode, and comprise the following steps: determining target slave station equipment of network parameters to be synchronized selected by a user; when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment; and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment. According to the application, through presetting the system parameter synchronization table, when the slave station equipment starts the field bus, corresponding parameter information in the system parameter synchronization table is automatically acquired for synchronization, so that the synchronization efficiency and accuracy are improved, and the stability and timeliness of data transmission are ensured.

Description

Parameter synchronization method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for parameter synchronization.
Background
In a conventional field bus network system based on a PLC (Programmable Logic Controller ), several tens of hundreds of slave station devices may be mounted on a bus, and in different application scenarios, system parameters of settings required by the slave station devices may be different from each other. Generally, upper computer software or HMI (Human Machine Interface, human-machine interface) is used to set system parameters one by one and download the system parameters to the target slave station device, so as to ensure that the whole PLC-based fieldbus network system can normally operate. When many identical PLC-based field bus network systems need to be built, the secondary station equipment system parameter setting mode in the traditional PLC-based field bus network is low in efficiency, long in time and easy to make mistakes.
Disclosure of Invention
Accordingly, the present application is directed to a method, apparatus, device and storage medium for parameter synchronization, which can improve synchronization efficiency and accuracy, and ensure stability and timeliness of data transmission. The specific scheme is as follows:
in a first aspect, the present application discloses a parameter synchronization method, including:
determining target slave station equipment of network parameters to be synchronized selected by a user;
when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment;
and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment.
Optionally, before determining the target slave station device of the network parameter to be synchronized selected by the user, the method further includes:
sequentially setting user-defined network parameters for the to-be-set slave station equipment corresponding to the target line through upper computer software in the master control equipment to obtain set slave station equipment;
correspondingly, the target secondary station device for determining the network parameters to be synchronized selected by the user comprises:
the same device as the set requirement of the set slave station device is determined from all slave station devices which have never set network parameters to obtain the target slave station device.
Optionally, before downloading the system parameter synchronization table after filling the target pre-stored in the software engineering in the master control device to the target slave station device, the method further includes:
acquiring parameter number information of a system to be synchronized in each slave station device through the upper computer software in the master control device;
generating an initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding secondary station equipment; the initial system parameter synchronization table contains the equipment number of each slave station equipment and the association relation between the slave station equipment and all corresponding system parameter number information to be synchronized.
Optionally, after generating the initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding secondary station device, the method further includes:
selecting preset number of table information meeting the user requirements from the initial system parameter synchronization table to obtain a target initial system parameter synchronization table;
and downloading the target initial system parameter synchronization table from the upper computer software to a programmable logic controller through a universal serial bus or Ethernet.
Optionally, after the downloading the target initial system parameter synchronization table from the upper computer software to the programmable logic controller through a universal serial bus or ethernet, the method further includes:
determining the system parameter number information to be synchronized in the target initial system parameter synchronization table and the equipment number;
controlling the programmable logic controller to determine the set slave station equipment based on the equipment number through field bus non-periodic service, and acquiring preset target parameter information from the set slave station equipment based on the system parameter number information to be synchronized;
and uploading the target parameter information from the programmable logic controller to the upper computer software through the universal serial bus or the Ethernet.
Optionally, after the uploading the target parameter information from the programmable logic controller to the upper computer software through the universal serial bus or the ethernet, the method further includes:
filling the target parameter information into the target initial system parameter synchronization table through the upper computer software to obtain the target filled system parameter synchronization table;
and storing the system parameter synchronization table after the target filling into the software engineering.
Optionally, the downloading the system parameter synchronization table after filling the target pre-stored in the software engineering in the master control device to the target slave station device includes:
and downloading the pre-stored system parameter synchronization table after target filling in the software engineering in the master control equipment to the target slave station equipment through the universal serial bus or the Ethernet.
In a second aspect, the present application discloses a parameter synchronization device, including:
the secondary station equipment determining module is used for determining target secondary station equipment of network parameters to be synchronized selected by a user;
the system parameter synchronization table downloading module is used for downloading a system parameter synchronization table after filling of a pre-stored target in a software project in the master control equipment to the target slave station equipment when the master control equipment starts a field bus;
the target filling parameter determining module is used for determining target filling parameters from the system parameter synchronization table after target filling based on the equipment numbers corresponding to the target slave station equipment;
and the parameter synchronization module is used for automatically synchronizing the target filling parameters to the target secondary station equipment so as to obtain updated secondary station equipment.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the parameter synchronization method as previously disclosed.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the parameter synchronization method as previously disclosed.
It can be seen that the present application provides a parameter synchronization method, comprising: determining target slave station equipment of network parameters to be synchronized selected by a user; when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment; and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment. Therefore, the application automatically acquires the corresponding parameter information in the system parameter synchronization table when the secondary station equipment starts the field bus by presetting the system parameter synchronization table, and synchronizes the parameter information to the corresponding secondary station equipment, thereby improving the synchronization efficiency and accuracy and ensuring the stability and timeliness of data transmission.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a parameter synchronization method disclosed in the present application;
FIG. 2 is a flowchart of a specific parameter synchronization method disclosed in the present application;
FIG. 3 is a schematic diagram illustrating the generation of a parameter synchronization table according to the present disclosure;
FIG. 4 is a schematic diagram of communication between the PLC and the upper computer software and between the PLC and the slave station equipment;
FIG. 5 is a schematic diagram of a parameter synchronization device according to the present application;
fig. 6 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Currently, in a conventional PLC-based fieldbus network system, several tens or hundreds of slave devices may be mounted on a bus, and in different application scenarios, system parameters required by the slave devices may be different from each other. The system parameter setting mode in the traditional PLC-based field bus network is low in efficiency, long in time and easy to make mistakes when a plurality of identical PLC-based field bus network systems are required to be built. Therefore, the application provides a parameter synchronization method, which can improve the synchronization efficiency and accuracy and ensure the stability and timeliness of data transmission.
The embodiment of the application discloses a parameter synchronization method, which is shown in fig. 1 and comprises the following steps:
step S11: and determining the target secondary station equipment of the network parameters to be synchronized selected by the user.
In this embodiment, the host computer software in the master control device sequentially sets the user-defined network parameters for the to-be-set slave station devices corresponding to the target line, so as to obtain the set slave station devices; the same device as the set requirement of the set slave station device is determined from all slave station devices which have never set network parameters to obtain the target slave station device. It will be appreciated that the upper computer software sets network parameters of the slave station device system to be synchronized, and one slave station device can set a plurality of custom network parameters. Because the master control device may be connected to multiple identical or different lines, after the user-defined network parameters are set for the slave station device in one line, the network parameters are not required to be set for the slave station devices in other identical lines again, and the slave station devices in other lines are synchronized according to the parameters in the set slave station devices. When the master control device acquires the parameter values, the master control device can read the parameter values specified by the system from the set slave station device, and can acquire the parameter values set by the user.
Step S12: and when the master control equipment starts the field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control equipment to the target slave station equipment.
In this embodiment, after determining a target slave station device of a network parameter to be synchronized selected by a user, when a master control device starts a field bus, a system parameter synchronization table after filling of a target pre-stored in a software project in the master control device is downloaded to the target slave station device. It can be understood that the PLC in the fieldbus network system downloads the target post-filling system parameter synchronization table pre-stored in the software engineering in the master device to the target slave device through the universal serial bus or the ethernet every time the fieldbus is started. Because the upper computer software selects the system parameters to be synchronized to generate the system parameter synchronization table after target filling, when the PLC is powered down, the system parameters after target filling can be kept not to be deleted by the system parameter synchronization table after target filling, and when the target slave station equipment starts the bus each time, the system parameters are automatically obtained from the system parameter synchronization table after target filling and are synchronized to the corresponding positions. The master control device automatically downloads the latest parameters each time the field bus is started.
Step S13: and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment.
In this embodiment, after downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to the target slave station device, determining a target filling parameter from the target post-filling system parameter synchronization table based on a device number corresponding to the target slave station device, and automatically synchronizing the target filling parameter to the target slave station device to obtain updated slave station device. It can be understood that, because the system parameter synchronization table after target filling stores a plurality of parameter information corresponding to a plurality of secondary station devices, all filling parameters corresponding to the devices are determined from the system parameter synchronization table after target filling according to the device numbers of the target secondary station devices, then corresponding target filling parameters are determined from all the filling parameters according to the parameter number information to be filled in the target secondary station devices, the target filling parameters are automatically synchronized to the corresponding secondary station devices according to the system parameter synchronization table after target filling, and the operations are repeatedly executed until all the filling parameters are synchronized to obtain updated secondary station devices.
Furthermore, the architecture of the field bus network system is unchanged after one operation, and the synchronization of system parameters is not affected when the target slave station equipment is replaced. And a device which can communicate with the upper computer and the slave station device can replace the PLC to finish the parameter synchronization operation.
The application synchronizes the system parameters to each slave station device through the PLC so as to rapidly realize the system parameter configuration of the specific field bus network system, and realize the rapid and automatic synchronization of the system parameters, and the operation is simple and accurate. The application relates to a system parameter synchronization method based on a PLC network, which is a comprehensive communication technology integrating an upper computer software technology, a PLC technology and an Ethernet/USB (Universal Serial Bus )/field bus technology. In addition, the present application is not limited to application to the PLC-based fieldbus network system, but may be applied to a similar communication network system.
It can be seen that the present application provides a parameter synchronization method, comprising: determining target slave station equipment of network parameters to be synchronized selected by a user; when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment; and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment. Therefore, the application automatically acquires the corresponding parameter information in the system parameter synchronization table when the secondary station equipment starts the field bus by presetting the system parameter synchronization table, and synchronizes the parameter information to the corresponding secondary station equipment, thereby improving the synchronization efficiency and accuracy and ensuring the stability and timeliness of data transmission.
Referring to fig. 2, an embodiment of the present application discloses a parameter synchronization method, and compared with the previous embodiment, the present embodiment further describes and optimizes a technical solution.
Step S21: and acquiring the parameter number information of the system to be synchronized in each slave station device through the upper computer software in the master control device.
In this embodiment, the information of the system parameter number to be synchronized in each slave station device is obtained through the upper computer software in the master control device. As shown in fig. 3, there are multiple parameter number information in each slave station device, and the user may select any number of parameter number information from all parameter number information as current parameter number information of the system to be synchronized, and upload the parameter number information of the system to be synchronized to the upper computer software.
Step S22: and generating an initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding secondary station equipment.
In this embodiment, after the upper computer software in the master control device obtains the parameter number information of the system to be synchronized in each slave station device, as shown in fig. 3, an initial system parameter synchronization table is generated based on all the parameter number information of the system to be synchronized and the corresponding slave station device, where no specific parameter information exists in the initial system parameter synchronization table and only parameter number information exists; the initial system parameter synchronization table contains the equipment number of each slave station equipment and the association relation between the slave station equipment and all corresponding system parameter number information to be synchronized.
Further, after generating an initial system parameter synchronization table, selecting preset number of table information meeting the user requirement from the initial system parameter synchronization table to obtain a target initial system parameter synchronization table; downloading the target initial system parameter synchronization table from the upper computer software to a programmable logic controller through a universal serial bus or Ethernet; determining the system parameter number information to be synchronized in the target initial system parameter synchronization table and the equipment number; controlling the programmable logic controller to determine the set slave station equipment based on the equipment number through field bus non-periodic service, and acquiring preset target parameter information from the set slave station equipment based on the system parameter number information to be synchronized; and uploading the target parameter information from the programmable logic controller to the upper computer software through the universal serial bus or the Ethernet. Filling the target parameter information into the target initial system parameter synchronization table through the upper computer software to obtain the target filled system parameter synchronization table; and storing the system parameter synchronization table after the target filling into the software engineering.
It will be understood that, as shown in fig. 4, the upper computer software downloads the initial system parameter synchronization table to the PLC through USB/Ethernet, the PLC generates a complete target post-filling system parameter synchronization table based on the system parameter number information to be synchronized and the device number information in the target initial system parameter synchronization table through a fieldbus aperiodic service (for example, etherCAT Mailbox (Ether Control Automation Technology Mailbox, ethernet control automation technology Mailbox mode), cappen SDO (Controller Area Network OPEN Service Data Objects, high-level communication protocol service data object configured on the control local area network)), and then acquires the slave station device parameter value (i.e., target parameter information), and the PLC uploads the target parameter information to the upper computer software through USB/Ethernet, and the upper computer software generates a complete target post-filling system parameter synchronization table based on the system parameter number information to be synchronized, the target parameter information acquired from the device, and the initial system parameter synchronization table, and stores the target post-filling system parameter synchronization table in the software engineering. And selecting a field bus network system needing to synchronize system parameters, opening a stored software project, and downloading the system parameter synchronization table after the target filling to a PLC in the field bus network system through USB/Ethernet.
Step S23: and determining the target secondary station equipment of the network parameters to be synchronized selected by the user.
Step S24: and when the master control equipment starts the field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control equipment to the target slave station equipment.
Step S25: and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment.
The application sets the system parameters of the slave station equipment needing to be synchronized through the PC upper computer software, the PC communicates with the PLC through the Ethernet/USB, the PLC acquires or synchronizes the system parameters of the slave station equipment through the field bus, and the bus technology defines the standard physical layer and the data link layer, thereby ensuring the stability and timeliness of communication data transmission in a complex environment.
For the specific content of the steps S23 to S25, reference may be made to the corresponding content disclosed in the foregoing embodiment, and a detailed description is omitted herein.
It can be seen that, in the embodiment of the present application, the parameter number information of the system to be synchronized in each slave station device is obtained through the upper computer software in the master control device; generating an initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding secondary station equipment; determining target slave station equipment of network parameters to be synchronized selected by a user; when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment; and determining target filling parameters from the system parameter synchronization table after target filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment, so that the synchronization efficiency and accuracy are improved, and the stability and timeliness of data transmission are ensured.
Referring to fig. 5, the embodiment of the present application further correspondingly discloses a parameter synchronization device, including:
a secondary station device determining module 11, configured to determine a target secondary station device of the network parameter to be synchronized selected by the user;
a system parameter synchronization table downloading module 12, configured to download a system parameter synchronization table after filling of a target pre-stored in a software project in a master device to the target slave device when the master device starts a fieldbus;
a target filling parameter determining module 13, configured to determine a target filling parameter from the system parameter synchronization table after target filling based on a device number corresponding to the target slave station device;
and the parameter synchronization module 14 is used for automatically synchronizing the target filling parameter to the target slave station equipment so as to obtain updated slave station equipment.
It can be seen that the present application includes: determining target slave station equipment of network parameters to be synchronized selected by a user; when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment; and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment. Therefore, the application automatically acquires the corresponding parameter information in the system parameter synchronization table when the secondary station equipment starts the field bus by presetting the system parameter synchronization table, and synchronizes the parameter information to the corresponding secondary station equipment, thereby improving the synchronization efficiency and accuracy and ensuring the stability and timeliness of data transmission.
In some specific embodiments, the secondary station device determining module 11 specifically includes:
the secondary station equipment parameter setting unit is used for sequentially setting the user-defined network parameters for the secondary station equipment to be set corresponding to the target line through the upper computer software in the master control equipment so as to obtain the set secondary station equipment;
and the target slave station equipment determining unit is used for determining equipment which is the same as the setting requirement of the set slave station equipment from all slave station equipment which is not set with the network parameters so as to obtain the target slave station equipment.
In some specific embodiments, before the secondary station device determining module 11, the method specifically further includes:
the system parameter number information to be synchronized acquisition unit is used for acquiring the system parameter number information to be synchronized in each slave station device through the upper computer software in the master control device;
an initial system parameter synchronization table generating unit, configured to generate an initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding slave station device; the initial system parameter synchronization table comprises the equipment number of each slave station equipment and the association relation between the slave station equipment and all corresponding system parameter number information to be synchronized;
the system comprises a target initial system parameter synchronization table determining unit, a target initial system parameter synchronization table determining unit and a target system parameter synchronization unit, wherein the target initial system parameter synchronization table determining unit is used for selecting preset number of table information meeting user requirements from the initial system parameter synchronization table so as to obtain a target initial system parameter synchronization table;
the system comprises a target initial system parameter synchronization table downloading unit, a programmable logic controller and a target initial system parameter synchronization table downloading unit, wherein the target initial system parameter synchronization table is used for downloading the target initial system parameter synchronization table from the upper computer software to the programmable logic controller through a universal serial bus or an Ethernet;
a number determining unit, configured to determine the system parameter number information to be synchronized and the device number in the target initial system parameter synchronization table;
a set slave device determining unit for controlling the programmable logic controller to determine the set slave device based on the device number through a fieldbus aperiodic service;
a target parameter information acquisition unit, configured to acquire preset target parameter information from the set slave station device based on the system parameter number information to be synchronized;
the target parameter information uploading unit is used for uploading the target parameter information from the programmable logic controller to the upper computer software through the universal serial bus or the Ethernet;
and the target parameter information filling unit is used for filling the target parameter information into the target initial system parameter synchronization table through the upper computer software so as to obtain the target system parameter synchronization table after filling.
In some embodiments, the system parameter synchronization table downloading module 12 specifically includes:
and the system parameter synchronization table downloading unit is used for downloading the target pre-stored system parameter synchronization table after filling in the software engineering in the master control equipment to the target slave station equipment through the universal serial bus or the Ethernet when the master control equipment starts the field bus.
In some specific embodiments, the target filling parameter determining module 13 specifically includes:
and the target filling parameter determining unit is used for determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment.
In some embodiments, the parameter synchronization module 14 specifically includes:
and the target filling parameter synchronization unit is used for automatically synchronizing the target filling parameters to the target secondary station equipment so as to obtain updated secondary station equipment.
Further, the embodiment of the application also provides electronic equipment. Fig. 6 is a block diagram of an electronic device 20, according to an exemplary embodiment, and is not intended to limit the scope of use of the present application in any way.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the parameter synchronization method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the parameter synchronization method performed by the electronic device 20 disclosed in any of the previous embodiments.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the steps of the parameter synchronization method disclosed in any embodiment are realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the parameter synchronization method, device, apparatus and storage medium provided by the present application applies specific examples to illustrate the principles and embodiments of the present application, and the above examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for parameter synchronization, comprising:
determining target slave station equipment of network parameters to be synchronized selected by a user;
when a master control device starts a field bus, downloading a target post-filling system parameter synchronization table pre-stored in a software project in the master control device to target slave station equipment;
and determining target filling parameters from the target system parameter synchronization table after filling based on the equipment numbers corresponding to the target slave station equipment, and automatically synchronizing the target filling parameters to the target slave station equipment to obtain updated slave station equipment.
2. The method for synchronizing parameters according to claim 1, wherein prior to determining the target slave station device of the user-selected network parameters to be synchronized, further comprising:
sequentially setting user-defined network parameters for the to-be-set slave station equipment corresponding to the target line through upper computer software in the master control equipment to obtain set slave station equipment;
correspondingly, the target secondary station device for determining the network parameters to be synchronized selected by the user comprises:
the same device as the set requirement of the set slave station device is determined from all slave station devices which have never set network parameters to obtain the target slave station device.
3. The method for synchronizing parameters according to claim 2, wherein before downloading the target post-filling system parameter synchronization table pre-stored in the software engineering in the master device to the target slave device, the method further comprises:
acquiring parameter number information of a system to be synchronized in each slave station device through the upper computer software in the master control device;
generating an initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding secondary station equipment; the initial system parameter synchronization table contains the equipment number of each slave station equipment and the association relation between the slave station equipment and all corresponding system parameter number information to be synchronized.
4. The parameter synchronization method according to claim 3, wherein after generating the initial system parameter synchronization table based on all the system parameter number information to be synchronized and the corresponding slave station apparatus, further comprising:
selecting preset number of table information meeting the user requirements from the initial system parameter synchronization table to obtain a target initial system parameter synchronization table;
and downloading the target initial system parameter synchronization table from the upper computer software to a programmable logic controller through a universal serial bus or Ethernet.
5. The method of claim 4, wherein after downloading the target initial system parameter synchronization table from the host computer software to the programmable logic controller via a universal serial bus or ethernet, further comprising:
determining the system parameter number information to be synchronized in the target initial system parameter synchronization table and the equipment number;
controlling the programmable logic controller to determine the set slave station equipment based on the equipment number through field bus non-periodic service, and acquiring preset target parameter information from the set slave station equipment based on the system parameter number information to be synchronized;
and uploading the target parameter information from the programmable logic controller to the upper computer software through the universal serial bus or the Ethernet.
6. The parameter synchronization method according to claim 5, wherein after the uploading the target parameter information from the programmable logic controller to the upper computer software via the universal serial bus or the ethernet, further comprising:
filling the target parameter information into the target initial system parameter synchronization table through the upper computer software to obtain the target filled system parameter synchronization table;
and storing the system parameter synchronization table after the target filling into the software engineering.
7. The method according to any one of claims 4 to 6, wherein downloading the target post-filling system parameter synchronization table pre-stored in the software engineering in the master device to the target slave device includes:
and downloading the pre-stored system parameter synchronization table after target filling in the software engineering in the master control equipment to the target slave station equipment through the universal serial bus or the Ethernet.
8. A parameter synchronization device, comprising:
the secondary station equipment determining module is used for determining target secondary station equipment of network parameters to be synchronized selected by a user;
the system parameter synchronization table downloading module is used for downloading a system parameter synchronization table after filling of a pre-stored target in a software project in the master control equipment to the target slave station equipment when the master control equipment starts a field bus;
the target filling parameter determining module is used for determining target filling parameters from the system parameter synchronization table after target filling based on the equipment numbers corresponding to the target slave station equipment;
and the parameter synchronization module is used for automatically synchronizing the target filling parameters to the target secondary station equipment so as to obtain updated secondary station equipment.
9. An electronic device, comprising:
a memory for storing a computer program;
processor for executing the computer program to carry out the steps of the parameter synchronization method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program, when executed by a processor, implements the parameter synchronization method of any one of claims 1 to 7.
CN202311521294.8A 2023-11-15 2023-11-15 Parameter synchronization method, device, equipment and storage medium Active CN117234993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311521294.8A CN117234993B (en) 2023-11-15 2023-11-15 Parameter synchronization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311521294.8A CN117234993B (en) 2023-11-15 2023-11-15 Parameter synchronization method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117234993A true CN117234993A (en) 2023-12-15
CN117234993B CN117234993B (en) 2024-02-13

Family

ID=89091619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311521294.8A Active CN117234993B (en) 2023-11-15 2023-11-15 Parameter synchronization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117234993B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0787049A (en) * 1993-09-10 1995-03-31 Toshiba Corp Tdma communication system
JP2006148774A (en) * 2004-11-24 2006-06-08 Nippon Telegr & Teleph Corp <Ntt> Synchronizing device
CN101883149A (en) * 2010-07-07 2010-11-10 杭州海康威视数字技术股份有限公司 Method, system, network keyboard and monitoring platform for parameter synchronization
US20100287253A1 (en) * 2008-01-21 2010-11-11 Huawei Technologies Co., Ltd. Method, apparatus, and system for data synchronization
KR101771612B1 (en) * 2016-07-12 2017-08-25 한국전기연구원 Synchronization error compensating system and method for EtherCAT
CN109343453A (en) * 2018-11-02 2019-02-15 合肥保得工业自动化有限公司 A kind of method of data synchronization of CANopen
CN109587215A (en) * 2018-11-02 2019-04-05 合肥保得工业自动化有限公司 A kind of method of data synchronization of the main website of CANopen to slave station
US20190347590A1 (en) * 2014-03-12 2019-11-14 Bahwan CyberTek Private Limited Intelligent Decision Synchronization in Real Time for both Discrete and Continuous Process Industries
CN111444281A (en) * 2020-04-16 2020-07-24 中国银行股份有限公司 Method and system for synchronizing database parameters
CN112566221A (en) * 2020-12-14 2021-03-26 深圳创维数字技术有限公司 Information synchronization method, device, equipment and readable storage medium
CN113407252A (en) * 2021-05-28 2021-09-17 威胜集团有限公司 Method, device and equipment for configuring parameters of electric energy meter and storage medium
CN115378761A (en) * 2022-09-27 2022-11-22 傲拓科技股份有限公司 EtherCAT master station system rapid implementation method based on PLC

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0787049A (en) * 1993-09-10 1995-03-31 Toshiba Corp Tdma communication system
JP2006148774A (en) * 2004-11-24 2006-06-08 Nippon Telegr & Teleph Corp <Ntt> Synchronizing device
US20100287253A1 (en) * 2008-01-21 2010-11-11 Huawei Technologies Co., Ltd. Method, apparatus, and system for data synchronization
CN101883149A (en) * 2010-07-07 2010-11-10 杭州海康威视数字技术股份有限公司 Method, system, network keyboard and monitoring platform for parameter synchronization
US20190347590A1 (en) * 2014-03-12 2019-11-14 Bahwan CyberTek Private Limited Intelligent Decision Synchronization in Real Time for both Discrete and Continuous Process Industries
KR101771612B1 (en) * 2016-07-12 2017-08-25 한국전기연구원 Synchronization error compensating system and method for EtherCAT
CN109343453A (en) * 2018-11-02 2019-02-15 合肥保得工业自动化有限公司 A kind of method of data synchronization of CANopen
CN109587215A (en) * 2018-11-02 2019-04-05 合肥保得工业自动化有限公司 A kind of method of data synchronization of the main website of CANopen to slave station
CN111444281A (en) * 2020-04-16 2020-07-24 中国银行股份有限公司 Method and system for synchronizing database parameters
CN112566221A (en) * 2020-12-14 2021-03-26 深圳创维数字技术有限公司 Information synchronization method, device, equipment and readable storage medium
CN113407252A (en) * 2021-05-28 2021-09-17 威胜集团有限公司 Method, device and equipment for configuring parameters of electric energy meter and storage medium
CN115378761A (en) * 2022-09-27 2022-11-22 傲拓科技股份有限公司 EtherCAT master station system rapid implementation method based on PLC

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
袁彬悠, 肖炎, 蒋梁中, 何涛: "环境在线监控系统主从站配置参数同步的一种方法", 机电工程技术, no. 03 *
袁彬悠, 肖炎, 蒋梁中, 何涛: "环境在线监控系统主从站配置参数同步的一种方法", 机电工程技术, no. 03, 30 March 2005 (2005-03-30) *

Also Published As

Publication number Publication date
CN117234993B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US10754329B2 (en) Automatic distribution of device parameters for commissioning portions of a disconnected process control loop
RU2692521C2 (en) Method for configuring master device and process control system
US10552144B2 (en) Method for updating firmware of devices
US20130096695A1 (en) Method for configuring a control device
CN108989382A (en) Method for replacing and/or cloning at least some equipment of machine
CN112130528A (en) Method for configuring an industrial automation system
CN113711511B (en) Industrial equipment supporting multi-time synchronization protocol
CN117234993B (en) Parameter synchronization method, device, equipment and storage medium
KR101619923B1 (en) Gateway apparatus for supporting the connection of electric power devices
US11601494B2 (en) Method for transferring data from a device to a data management means, switching unit, device and system
US10776536B2 (en) Method for generating a Petri Net simulation model of an industrial control system
CN111817820B (en) Equipment coding method and device and coding system based on two buses
CN113626266A (en) Embedded serial port testing method and device
EP4134764A1 (en) A method for configuring an automation device
CN112702247B (en) Hybrid control method and device for FF field bus system and storage medium
CN115396303B (en) Method, device, equipment and medium for constructing server
CN116467104A (en) Cluster abnormity problem inspection method, device, equipment and storage medium
CN117424816A (en) Configuration parameter scanning method, device, equipment and medium of EtherCAT slave station equipment
de Sousa The Beremiz PLC: Adding Support for Industrial Communication Protocols
KR101658129B1 (en) Script editor for gateway apparatus supporting the connection of electric power devices
CN117452913A (en) Guidance control assembly testing method, device, equipment and storage medium
CN114168683A (en) Data exchange task optimization method and device based on DataX and application thereof
CN116233221A (en) Method, device, equipment and medium for deploying domain name system cloud resolution service
CN115319750A (en) Method and device for configuring post-processing program of robot
CN117971778A (en) File merging method, device, equipment and computer readable storage medium

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