A hardware module configuration method and device based on ECN bus

CN115774691BActive Publication Date: 2026-08-11ZHEJIANG SUPCON RES
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

但是这种方案不仅会增加PLC启动的时间,造成CPU内存与计算机资源的浪费,还会因为硬件模块的修改,导致软件的反复更改,增加了软件维护的成本

Benefits of technology

[0017]1、本发明ECN总线的传输报文包含通信链路上的设备定义信息,可以直接被嵌入式软件获取与识别。嵌入式软件通过获得的信息完成模块通道内数据获取、重定向与数据值的转换。当硬件开发人员对设备的信息进行修改时,只需要对设备模型的信息重新赋值,ECN通讯总线依然会通过设备模型传送给嵌入式软件,而嵌入式软件不需要修改程序便可以完成对模块内数据的获取、重定向与数据值的转换。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115774691B_ABST
    Figure CN115774691B_ABST
Patent Text Reader

Abstract

This invention discloses a hardware module configuration method based on the ECN bus, comprising the following steps: scanning all hardware modules in the current hardware configuration using hardware configuration software, parsing and configuring all hardware modules to obtain configuration information; mapping the configuration information to the CPU memory address of the PLC module to establish communication with all the hardware modules; and downloading the programming software's executable program based on the configuration information to realize the configuration of the PLC system based on trusted hardware module information. This method, based on the hierarchical and loosely coupled management of PLC programming software, embedded software, communication bus, and hardware modules, achieves a single definition of hardware modules that is universally applicable throughout the system, reducing the workload of engineering configuration and effectively improving work efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial automation technology, and in particular relates to a hardware module configuration method, apparatus, device and storage medium based on ECN bus. Background Technology

[0002] The ECN (Equipment Common Net) bus was developed based on the existing international standard EPA, specifically for the application characteristics of special equipment. The ECN bus is also developed based on the mature and reliable ZC series PLC bus, specifically for different application scenarios. The ECN bus is used not only for data communication between different PLC racks, but also for data communication between other types of equipment.

[0003] Currently, PLC systems based on the ECN bus include not only hardware modules and embedded software, but also PLC programming and configuration software, PLC monitoring software, PLC hardware configuration software, and the ECN bus itself. The PLC hardware configuration software primarily configures the current module topology, allocates addresses, and generates resource files. The PLC programming and configuration software mainly provides program editing, compilation, configuration, debugging, monitoring, and fault diagnosis services for PLC control devices. The PLC monitoring software mainly configures and monitors the monitoring screen. The ECN bus primarily enables communication between modules and racks. The variables used in the PLC programming and configuration software must match the channel locations in the hardware modules. Currently, the method used is for PLC programming and configuration engineers to determine the module's location information based on the manufacturer's instructions, and then define and use variables in the program accordingly. This process is labor-intensive and prone to errors. For third-party devices, the difference between the hardware module's design concept and the documentation makes determining the location locations more difficult.

[0004] To address these issues as much as possible, the existing solution involves embedded software matching the current hardware module configuration information with predefined module model information according to the module name, calculating the module's starting address based on certain rules, and fixing the point information in the software. However, this approach not only increases PLC startup time, wasting CPU, memory, and computer resources, but also leads to repeated software modifications due to hardware module changes, increasing software maintenance costs. Summary of the Invention

[0005] To address the aforementioned issues, the present invention aims to provide a hardware module configuration method and apparatus based on the ECN bus. This method and apparatus, by achieving hierarchical and low-coupling management of PLC programming software, embedded software, communication bus, and hardware modules, realizes the function of defining hardware modules once and making them universally applicable throughout the entire system, reducing the workload of engineering configuration and effectively improving work efficiency and accuracy.

[0006] To achieve the above objectives, the technical solution of the present invention is as follows: a hardware module configuration method based on ECN bus, comprising the following steps: scanning all hardware modules in the current hardware configuration using hardware configuration software, parsing and configuring all hardware modules to obtain configuration information; mapping the configuration information to the CPU memory address of the PLC module to establish communication with all the hardware modules; downloading the programming software to execute the program based on the configuration information to realize the configuration of the PLC system based on trusted hardware module information.

[0007] In one embodiment of the present invention, the step of scanning all hardware modules in the current hardware configuration through hardware configuration software, parsing and configuring all hardware modules to obtain configuration information includes: calculating the configuration information and allocating resources based on the configuration information of the PLC module's CPU.

[0008] In one embodiment of the present invention, the step of obtaining the configuration information mapped to the CPU memory address of the PLC module to establish communication with all the hardware modules further includes: sending the allocated configuration information to the host computer; and updating the program based on the allocated configuration information.

[0009] In one embodiment of the present invention, the hardware module configuration method further includes, when updating or adding hardware in the current hardware configuration, the hardware configuration software rescans the current hardware configuration.

[0010] In one embodiment of the present invention, after parsing, all hardware modules are configured to obtain configuration information, wherein the configuration information includes: description information, resource information, and channel parameter information; the description information includes module name ID, board type, module alias, and module length description; the resource information includes channel name, address definition, channel type, channel variable type, and channel variable description; the channel parameter information includes hardware module type, channel name, channel type, default value, and parameter definition method.

[0011] In one embodiment of the present invention, the module length description further includes the number of DI channels, the number of AI channels, the number of RI channels, the number of PI channels, the number of DO channels, the number of AO channels, and the number of custom types.

[0012] In one embodiment of the present invention, the configuration information further includes basic hardware module information consisting of ModuleTypeID / SizeInfo, communication information starting address, configuration method, data link method, and parameter information.

[0013] Based on the same concept, the present invention also provides a hardware module identification device based on an ECN bus, and a method for implementing the hardware module identification based on the ECN bus, comprising: an information acquisition module, used to scan all hardware modules in the current hardware configuration through hardware configuration software, and configure all hardware modules after parsing to obtain configuration information; a synchronization module, used to obtain the configuration information and map it to the CPU memory address of the PLC module to establish communication with all the hardware modules; and a configuration module, used to download the execution program of the programming software based on the configuration information to realize the configuration of the PLC system based on the trusted hardware module information.

[0014] Based on the same concept, the present invention also provides an electronic device, comprising: a memory for storing a processing program; and a processor for implementing the ECN bus-based hardware module configuration method when executing the processing program.

[0015] Based on the same concept, the present invention also provides a readable storage medium storing a processing program, which, when executed by a processor, implements the hardware module configuration method based on the ECN bus.

[0016] By adopting the above technical solution, the present invention can achieve the following beneficial effects:

[0017] 1. The ECN bus transmission messages of this invention contain device definition information on the communication link, which can be directly acquired and identified by embedded software. The embedded software uses this information to complete data acquisition, redirection, and data value conversion within the module channel. When hardware developers modify the device information, they only need to reassign the device model information; the ECN communication bus will still transmit data to the embedded software through the device model. The embedded software can then complete data acquisition, redirection, and data value conversion within the module without requiring program modifications.

[0018] 2. In this invention, when a new module is added to the hardware configuration or a third-party device is connected to the PLC system, it is only necessary to scan the hardware configuration via the ECN bus to obtain information on all modules in the current configuration. This information is then sent to the logic programming software via ECN messages. The logic programming software parses the message information according to the hardware module's definition model, obtaining the module's starting address, mapping method, channel parameter settings, etc., and generates the module's resource file, which is then sent to the embedded software. This completes the identification and information interaction between the embedded software and the hardware module.

[0019] 3. If hardware modules are added or module information is modified, this invention can complete the definition, control and communication of hardware modules normally without notifying embedded software developers and ECN communication bus developers to modify the program. Attached Figure Description

[0020] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings, wherein:

[0021] Figure 1 This is a flowchart of the hardware module configuration method based on the ECN bus of the present invention;

[0022] Figure 2 This is a system schematic diagram of the hardware module identification device based on the ECN bus of the present invention. Detailed Implementation

[0023] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer from the following description and claims. It should be noted that the drawings are all in a very simplified form and use non-precise ratios, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.

[0024] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0025] Example 1

[0026] like Figure 1 and 2 As shown, the technical solution of the present invention is: a hardware module configuration method based on ECN bus, comprising the following steps:

[0027] S100: Scans all hardware modules in the current hardware configuration using hardware configuration software, parses and configures all hardware modules to obtain configuration information;

[0028] S200: Obtain the configuration information and map it to the CPU memory address of the PLC module to establish communication with all the hardware modules;

[0029] S300: Download the programming software execution program based on the configuration information to realize the configuration of the PLC system based on the trusted hardware module information.

[0030] The ECN bus transmission messages of this invention contain device definition information on the communication link, which can be directly acquired and identified by embedded software. The embedded software uses this information to complete data acquisition, redirection, and data value conversion within the module channel. When hardware developers modify the device information, they only need to reassign the device model information; the ECN communication bus will still transmit data to the embedded software through the device model. The embedded software can then complete data acquisition, redirection, and data value conversion within the module without requiring program modifications.

[0031] Preferably, the step of scanning all hardware modules in the current hardware configuration through hardware configuration software, parsing and configuring all hardware modules to obtain configuration information includes: calculating the configuration information and allocating resources based on the configuration information of the PLC module's CPU.

[0032] Preferably, after obtaining the configuration information mapped to the CPU memory address of the PLC module to establish communication with all the hardware modules, the process further includes: sending the allocated configuration information to the host computer; and updating the program based on the allocated configuration information.

[0033] Preferably, the hardware module configuration method further includes, when updating or adding hardware in the current hardware configuration, the hardware configuration software rescans the current hardware configuration.

[0034] When a new module is added to the hardware configuration or a third-party device is connected to the PLC system, the system only needs to scan the hardware configuration via the ECN bus to obtain information on all modules within the current configuration. This information is then sent to the logic programming software via ECN messages. The logic programming software parses the message information according to the hardware module's definition model, obtaining the module's starting address, mapping method, channel parameter settings, etc., and generates the module's resource file, which is then sent to the embedded software. This completes the identification and information exchange between the embedded software and the hardware module. If a hardware module is added or its information is modified, there is no need to notify the embedded software developer or the ECN communication bus developer to modify the program; the definition, control, and communication of the hardware module can be completed normally.

[0035] Preferably, after parsing, all hardware modules are configured to obtain configuration information, wherein the configuration information includes: description information, resource information, and channel parameter information; the description information includes module name ID, board type, module alias, and module length description; the resource information includes channel name, address definition, channel type, channel variable type, and channel variable description; the channel parameter information includes hardware module type, channel name, channel type, default value, and parameter definition method.

[0036] Preferably, the module length description further includes the number of DI channels, the number of AI channels, the number of RI channels, the number of PI channels, the number of DO channels, the number of AO channels, and the number of custom types.

[0037] Preferably, the configuration information also includes basic hardware module information consisting of ModuleTypeID / SizeInfo, communication information starting address, configuration method, data link method, and parameter information.

[0038] Specifically, the following is the configuration table for the configuration information:

[0039] ModuleInformation description information:

[0040]

[0041] Sizeinfo is a hardware module length description type:

[0042]

[0043]

[0044] ModuleResource module resource information definition:

[0045]

[0046] ChannelParameters Definition:

[0047]

[0048] ParameterType parameter definition method:

[0049]

[0050] Embedded interactive file definition:

[0051]

[0052] Example 2

[0053] Based on the same concept, this embodiment provides a hardware module identification device based on the ECN bus, and a method for identifying the hardware module based on the ECN bus, comprising: an information acquisition module, used to scan all hardware modules in the current hardware configuration through hardware configuration software, parse and configure all hardware modules to obtain configuration information; a synchronization module, used to obtain the configuration information and map it to the CPU memory address of the PLC module to establish communication with all the hardware modules; and a configuration module, used to download the programming software to execute the program based on the configuration information, so as to realize the configuration of the PLC system based on the trusted hardware module information.

[0054] The ECN bus transmission messages of this invention contain device definition information on the communication link, which can be directly acquired and identified by embedded software. The embedded software uses this information to complete data acquisition, redirection, and data value conversion within the module channel. When hardware developers modify the device information, they only need to reassign the device model information; the ECN communication bus will still transmit data to the embedded software through the device model. The embedded software can then complete data acquisition, redirection, and data value conversion within the module without requiring program modifications.

[0055] Example 3

[0056] Based on the same concept, the present invention also provides an electronic device, comprising: a memory for storing a processing program; and a processor for implementing the ECN bus-based hardware module configuration method when executing the processing program.

[0057] Based on the same concept, the present invention also provides a readable storage medium storing a processing program, which, when executed by a processor, implements the hardware module configuration method based on the ECN bus.

[0058] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they shall still fall within the protection scope of the present invention.

Claims

1. A hardware module configuration method based on ECN bus, characterized in that, Includes the following steps: The hardware configuration software scans all hardware modules within the current hardware configuration, parses and configures all hardware modules to obtain configuration information; the configuration information includes a channel parameter definition model determined by index values ​​and self-index values; wherein, the step of scanning all hardware modules within the current hardware configuration, parsing and configuring all hardware modules to obtain configuration information includes: calculating the configuration information, and allocating resources based on the CPU of the PLC module; By transmitting messages containing device definition information via the ECN bus, embedded software can become aware of hardware module changes. The configuration information is mapped to the CPU memory address of the PLC module to establish communication with all the hardware modules. The allocated configuration information is sent to the host computer; the program is updated based on the allocated configuration information. The programming software is downloaded and executed based on the configuration information to enable the PLC system to be configured based on the trusted hardware module information, and to achieve hierarchical and low-coupling management between the PLC programming software, embedded software, communication bus and hardware modules. It also includes the hardware configuration software rescanning the current hardware configuration when updating or adding hardware within the current hardware configuration; When hardware developers modify the device information, they only need to reassign the information of the device model. The ECN communication bus will still transmit data to the embedded software through the device model. The embedded software can complete the acquisition, redirection and conversion of data values ​​within the module without modifying the program.

2. The hardware module configuration method based on the ECN bus according to claim 1, characterized in that, After parsing, all hardware modules are configured to obtain configuration information, which includes: description information, resource information, and channel parameter information; the description information includes module name ID, board type, module alias, and module length description; the resource information includes channel name, address definition, channel type, channel variable type, and channel variable description; the channel parameter information includes hardware module type, channel name, channel type, default value, and parameter definition method.

3. The hardware module configuration method based on the ECN bus according to claim 2, characterized in that, The module length description further includes the number of DI channels, AI channels, RI channels, PI channels, DO channels, AO channels, and the number of custom types.

4. The hardware module configuration method based on the ECN bus according to claim 1 or 2, characterized in that, The configuration information also includes basic hardware module information consisting of ModuleTypeID / SizeInfo, communication information starting address, configuration method, data link method, and parameter information.

5. A hardware module identification device based on ECN bus, characterized in that, The method for identifying hardware modules based on the ECN bus as described in any one of claims 1 to 4 includes: The information acquisition module is used to scan all hardware modules in the current hardware configuration through hardware configuration software, parse them, and then configure all hardware modules to obtain configuration information. A synchronization module is used to obtain the configuration information and map it to the CPU memory address of the PLC module in order to establish communication with all the hardware modules. The configuration module is used to download the programming software's execution program based on the configuration information, so as to realize the configuration of the PLC system based on the trusted hardware module information.

6. An electronic device, characterized in that, include: The memory is used to store the processing program; A processor, which, when executing the processing program, implements the hardware module configuration method based on the ECN bus as described in any one of claims 1 to 4.

7. A readable storage medium, characterized in that, The readable storage medium stores a processing program, which, when executed by a processor, implements the hardware module configuration method based on the ECN bus as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Hardware configuration method, system and device of PLC control system and medium

    CN112241141A