Component implementation method and device of remote IO function module

By splitting the functional modules of remote IO into minimum functional units and adapting to industrial communication protocols, the problems of low hardware reuse, waste of resources and insufficient flexibility of the functional modules of existing remote IO are solved, and the effects of improving hardware reuse, unified firmware management and flexible response to requirements are achieved.

CN119988263AActive Publication Date: 2025-05-13SHENZHEN MATRIBOX TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510474160.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-05-13
Estimated Expiration
2045-04-16

AI Technical Summary

Technical Problem

The existing remote IO functional modules have problems such as hardware design redundant, production and inventory pressure, complex software adaptation and insufficient flexibility, resulting in waste of resources, high production costs and difficulty in responding to market demand.

Method used

By splitting the functional modules of the original remote IO into multiple minimum functional units, and designing independent hardware circuits for each minimum functional unit, including shift registers for generating hardware IDs. These minimum functional units are combined into the functional modules of the new remote IO in the target form and generate a unique identifier through the cascade shift registers. Then, according to the analysis results, the industrial communication protocol is adapted to realize the modular configuration structure, and the user configuration instructions are received to dynamically enable or close the minimum functional unit.

Benefits of technology

It has achieved the improvement of hardware reuse rate, simplified software adaptation, and supported flexible combinations, reduced R&D and production costs, shortened hardware R&D cycle and inventory costs, and improved the flexibility and maintainability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119988263A_ABST
    Figure CN119988263A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a modularization implementation method and device for a remote IO function module. The method comprises the steps that the original remote IO function module is split into a plurality of minimum function units; designing an independent hardware circuit for each minimum function unit; combining the plurality of minimum function units into a new remote IO function module according to a target form, and generating unique identifiers of hardware IDs of all minimum function units in the new remote IO function module through a cascade shift register; reading the unique identifier, and analyzing the function type and number of each minimum function unit to obtain an analysis result; according to an analysis result, adapting to a modular configuration structure of an industrial communication protocol, and mapping all minimum function units into protocol sub-modules; receiving a configuration instruction input by a user, and dynamically starting or closing the specified minimum function unit; an industrial communication protocol is operated based on a configuration result, data interaction of a remote IO function module is achieved, the hardware reuse rate is increased, software adaptation is simplified, and flexible combination is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of industrial automation control technology and related technical fields, and in particular, to a component-based implementation method and device for a functional module applicable to a remote IO. Background Art

[0002] With the rapid development of industrial automation technology, remote IO plays an increasingly important role in industrial control systems and is widely used in data acquisition, equipment monitoring, and automation control. Remote IO connects sensors, actuators and other devices to the control system, realizing real-time collection and transmission of industrial field data, greatly improving production efficiency and system reliability.

[0003] However, in the existing technology, remote IO is mainly divided into two forms: blade type and integrated type. Blade type remote IO meets customer needs by combining different blade modules, while integrated remote IO adapts to different sensor types by producing different models of products. Although these two forms meet the diverse needs to a certain extent, the following problems still exist in the research and development and production process: Hardware design redundancy: For different functional combinations, a large number of PCBs with duplicated functions need to be designed, resulting in a waste of circuit design resources. In addition, the arrangement and combination of different functional units produces a large number of circuit board models, which increases the design complexity.

[0004] Production and inventory pressure: Various circuit board models need to be produced and maintained separately, which brings many inconveniences to inventory management, material preparation and production processes, and increases production costs and management difficulties.

[0005] Complex software adaptation: Each circuit board requires independent firmware for adaptation, resulting in a large number of firmware, high maintenance costs, and unnecessary trouble for R&D and production.

[0006] Lack of flexibility: Faced with flexible and changeable demands in the market, especially for customers with special needs, it is often necessary to redesign circuit boards and develop software, resulting in a long development cycle and an inability to quickly respond to market demand.

[0007] Therefore, there is an urgent need for a component-based implementation method for the functional modules of remote IO to solve the problems of low hardware reuse rate, waste of resources, production complexity and lack of flexibility of the functional modules of existing remote IO in the prior art. Summary of the invention

[0008] The embodiments described herein provide a component-based implementation method, apparatus, device, and storage medium for a remote IO functional module to solve the problems existing in the prior art.

[0009] According to a first aspect of the present disclosure, a component-based implementation method of a remote IO functional module is provided, comprising: Split the original remote IO function module into multiple minimum function units according to preset rules; Designing an independent hardware circuit for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID for identifying the function of the minimum functional unit; Combining a plurality of the minimum functional units into a functional module of a new remote IO according to a target form, and generating a unique identifier including the hardware IDs of all the minimum functional units in the functional module of the new remote IO by cascading the shift registers; Read the unique identifier, analyze the function type and quantity of each of the minimum functional units, and obtain the analysis result; Adapting the modular configuration structure of the industrial communication protocol according to the analysis result, mapping all the minimum functional units into protocol submodules; Receive a configuration instruction input by a user, and dynamically enable or disable the specified minimum functional unit; The industrial communication protocol is run based on the configuration result to realize data interaction of the functional modules of the new remote IO.

[0010] In some embodiments of the present disclosure, the step of splitting the original remote IO functional module into a plurality of minimum functional units according to a preset rule includes: For different types of sensors, the functional module of the original remote IO is split into a plurality of the minimum functional units; For the functional groups that can work independently in the same type of sensors, the minimum number of groups is taken to split them into multiple minimum functional units.

[0011] In some embodiments of the present disclosure, the step of combining the plurality of the minimum functional units into a functional module of a new remote IO according to a target form includes: In physical arrangement, the minimum functional unit of the input function is placed first, followed by the minimum functional unit of the output function, then the minimum functional unit of the digital quantity function, then the minimum functional unit of the analog quantity function, and finally the minimum functional unit of other functions; The power supply and communication interface of each of the minimum functional units are connected in a unified manner through the combined motherboard, and the minimum functional units are fixed by a card slot type plug-in structure.

[0012] In some embodiments of the present disclosure, the steps of reading the unique identifier, parsing the function type and quantity of each of the minimum functional units, and obtaining the parsing result include: Pulling down the enable signal of the shift register of each of the minimum functional units to activate the clock signal; Writing the hardware ID of each of the minimum functional units into the corresponding shift register through a parallel loading signal; Inputting continuous clock pulses into the shift register, and reading the cascaded unique identifier from the output end of the last stage of the shift register; The unique identifier is split into multiple sub-IDs by bytes, and a non-zero sub-ID represents a function type of a valid minimum functional unit.

[0013] In some embodiments of the present disclosure, the step of adapting the modular configuration structure of the industrial communication protocol according to the parsing result and mapping the minimum functional unit into a protocol submodule includes: For the Profinet protocol, the function module corresponding to the unique identifier is mapped to a Module, the minimum functional unit is mapped to a SubModule, and parameters are configured through a Record data structure; For the EtherCAT protocol, the function module corresponding to the unique identifier is mapped to a Module, and the parameters of the minimum function unit are configured through a CoE dictionary object.

[0014] In some embodiments of the present disclosure, the step of receiving a configuration instruction input by a user and dynamically enabling or disabling the specified minimum functional unit includes: Providing a visual configuration interface, the user selects the minimum functional unit by checking or dragging; Generate the configuration instruction according to the user selection, the configuration instruction including the hardware ID and the enabled or disabled state of the minimum functional unit; The configuration instruction is written into a parameter storage area corresponding to the industrial communication protocol.

[0015] In some embodiments of the present disclosure, the cascade connection mode of the shift registers is: Connecting the shift register output end of the first minimum functional unit to the shift register input end of the next minimum functional unit to form a chain cascade structure; The shift registers of all the minimum functional units share the same set of control signals, wherein the control signals include a clock signal, an enable signal and a parallel load signal; The output terminal of the shift register of the minimum functional unit at the final stage is used as a reading point of the unique identifier.

[0016] According to a second aspect of the present disclosure, a component-based implementation device of a remote IO functional module is provided, comprising: A splitting module is used to split the original remote IO function module into multiple minimum function units according to preset rules; A design module, used for designing an independent hardware circuit for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID for identifying the function of the minimum functional unit; A combining module, used for combining a plurality of the minimum functional units into a functional module of a new remote IO according to a target form, and generating a unique identifier containing the hardware IDs of all the minimum functional units in the functional module of the new remote IO by cascading the shift registers; A parsing module, used for reading the unique identifier, parsing the function type and quantity of each of the minimum functional units, and obtaining a parsing result; An adaptation module, used for adapting the modular configuration structure of the industrial communication protocol according to the analysis result, and mapping the minimum functional unit into a protocol submodule; A configuration module, used to receive configuration instructions input by a user, and dynamically enable or disable the specified minimum functional unit; The communication module is used to run the industrial communication protocol based on the configuration results to realize the data interaction of the functional modules of the new remote IO.

[0017] In some embodiments of the present disclosure, the splitting module is specifically used to split the functional module of the original remote IO into a plurality of the independent minimum functional units for different types of sensors; For the functional groups that can work independently in the same type of sensors, the minimum number of groups is taken to split them into multiple minimum functional units.

[0018] In some embodiments of the present disclosure, the combination module is specifically used to place the minimum functional unit of the input function first, then the minimum functional unit of the output function, then the minimum functional unit of the digital function, then the minimum functional unit of the analog function, and finally the minimum functional unit of other functions during physical arrangement; the power supply and communication interface of each minimum functional unit are uniformly connected through the combined motherboard, and the minimum functional units are fixed by a card slot type plug-in structure.

[0019] In some embodiments of the present disclosure, the parsing module is specifically used to pull down the enable signal of the shift register of each of the minimum functional units to activate the clock signal; write the hardware ID of each of the minimum functional units into the corresponding shift register through a parallel loading signal; input continuous clock pulses to the shift register, and read the cascaded unique identifier from the output end of the last stage shift register; split the unique identifier into multiple sub-IDs by byte, and the non-zero sub-ID represents the functional type of the valid minimum functional unit.

[0020] In some embodiments of the present disclosure, the adaptation module is specifically used to map the functional module corresponding to the unique identifier to a Module for the Profinet protocol, map the minimum functional unit to a SubModule, and configure parameters through a Record data structure; for the EtherCAT protocol, map the functional module corresponding to the unique identifier to a Module, and configure the parameters of the minimum functional unit through a CoE dictionary object.

[0021] In some embodiments of the present disclosure, the configuration module is specifically used to provide a visual configuration interface, and the user selects the minimum functional unit by checking or dragging; the configuration instruction is generated according to the user's selection, and the configuration instruction includes the hardware ID and enabled or disabled status of the minimum functional unit; and the configuration instruction is written into the parameter storage area corresponding to the industrial communication protocol.

[0022] In some embodiments of the present disclosure, the cascade connection mode of the shift registers is: Connecting the shift register output end of the first minimum functional unit to the shift register input end of the next minimum functional unit to form a chain cascade structure; The shift registers of all the minimum functional units share the same set of control signals, wherein the control signals include a clock signal, an enable signal and a parallel load signal; The output terminal of the shift register of the minimum functional unit at the final stage is used as a reading point of the unique identifier.

[0023] According to a third aspect of the present disclosure, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method in any one of the above embodiments are implemented.

[0024] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.

[0025] The componentized implementation method, device, equipment and storage medium of the functional module of the remote IO provided by the embodiment of the present disclosure are as follows: the functional module of the original remote IO is split into multiple minimum functional units according to preset rules; an independent hardware circuit is designed for each of the minimum functional units, and the independent hardware circuit includes a shift register for generating a hardware ID that identifies the function of the minimum functional unit; multiple minimum functional units are combined into a functional module of a new remote IO according to the target form, and a unique identifier containing the hardware IDs of all minimum functional units in the functional module of the new remote IO is generated by cascading the shift register; the unique identifier is read, the functional type and quantity of each minimum functional unit are parsed, and the parsing result is obtained; the modular configuration structure of the industrial communication protocol is adapted according to the parsing result, and all the minimum functional units are mapped to protocol submodules; the configuration instruction input by the user is received, and the specified minimum functional unit is dynamically enabled or disabled; the industrial communication protocol is run based on the configuration result to realize the data interaction of the functional module of the new remote IO. The hardware reuse rate is improved, the software adaptation is simplified, and the flexible combination is supported. By splitting the functional modules of traditional remote IO into the smallest functional units, combined with the ID combination mechanism based on shift registers and the protocol adaptation logic, the technical effects of improving hardware reuse rate, unified firmware management, and flexible response to demand are achieved. The modular splitting principle is adopted at the hardware level, and the software level dynamically analyzes the functional combination through UniqueID to adapt to the modular configuration requirements of various industrial protocols (such as Profinet and EtherCAT). The present invention significantly reduces the R&D and production costs, supports user-defined configuration of functional units, and can optimize real-time performance through parameterized control. The hardware reuse rate is increased by more than 80%, and the PCB model is reduced to 1 / 5 of the prototype; the firmware is unified, and the maintenance cost is reduced by 60%; the special demand response cycle is shortened to less than 3 days; users can adjust the functional modules in real time to optimize the real-time performance of the system. The present invention has been successfully applied to the remote IO product line of an industrial PLC manufacturer, realizing flexible configuration functions, shortening the hardware R&D cycle, and reducing inventory costs.

[0026] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein: Figure 1It is a flowchart of a component-based implementation method of a remote IO functional module provided by an embodiment of the present disclosure; Figure 2 It is a structural diagram of the connection of four minimum functional units provided in an embodiment of the present disclosure; Figure 3 It is a structural diagram of a component-based implementation device of a remote IO functional module provided by an embodiment of the present disclosure; Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.

[0028] In the drawings, reference numerals with the same last two digits correspond to the same elements. It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.

[0030] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0031] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0032] Furthermore, in all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).

[0033] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0035] At present, the functional modules of remote IO are widely used in the field of industrial automation, but the existing technology has the following problems: the hardware design is complex and the modularization is low, resulting in a long R&D cycle and high production costs; the software firmware needs to be developed separately for different functional modules, resulting in high maintenance costs. The module combination flexibility is poor and it is difficult to meet the diverse market needs; the resource utilization rate is low and the module function cannot be dynamically adjusted according to actual needs.

[0036] Based on the problems existing in the existing technology, Figure 1 is a flow chart of a component-based implementation method of a remote IO functional module provided by an embodiment of the present disclosure, such as Figure 1 As shown, the specific process of the component implementation method of the remote IO functional module includes: S110 , splitting the original remote IO functional module into multiple minimum functional units according to preset rules.

[0037] In a specific implementation, the preset rule is, for example, splitting by sensor type, functional independence or performance requirements; the sensor type is, for example, digital input (DI), digital output (DO), analog input (AI), etc.

[0038] For different types of sensors, the original remote IO functional modules are split into independent minimum functional units; For the functional groups that can work independently in the same type of sensor, the minimum number of groups is directly taken to split into multiple minimum functional units. For example, every 8 of the 16DI can work independently, so the minimum number of groups is directly taken to split into 2 8DI units.

[0039] S120, designing an independent hardware circuit (sub-PCB) for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID for identifying a function of the minimum functional unit.

[0040] In a specific implementation manner, each minimum functional unit has a built-in 74HC165D serial-input and parallel-output 8-bit shift register, and the input is a hardware ID, which represents the ID of the minimum functional unit.

[0041] S130, combining the plurality of minimum functional units into a new remote IO functional module according to a target form, and generating a unique identifier including the hardware IDs of all the minimum functional units in the new remote IO functional module by cascading the shift registers.

[0042] Optionally, the target form includes a blade form or an integrated form.

[0043] Optionally, each new remote IO function module can accommodate 2 to 6 minimum function units, with a maximum of 6 minimum function units. For example, after 4 minimum function units are combined, the shift registers are connected together, and the 32-bit unique identifier UniqueID of the combination of the 4 minimum function units is read out through software shifting.

[0044] The ID length of each minimum functional unit is 8 bits. Excluding the default state of all 0s, there can be 255 types of minimum functional units.

[0045] The structural diagram of the connection of the four minimum functional units is as follows Figure 2 shown.

[0046] In a specific implementation, the functional module of the remote IO of the target form is combined into multiple minimum functional units according to preset rules, and the structural layout follows the hierarchical rules of input priority and digital quantity priority, specifically including: In the physical arrangement, the minimum functional unit of the input function is placed first, and the minimum functional unit of the output function is placed second; the physical arrangement, for example, the input functional unit is placed on the left, and the output functional unit is placed on the right; the minimum functional unit of the digital quantity function is placed next, and the minimum functional unit of the analog quantity function is placed, and finally the minimum functional units of other functions are placed; The power supply and communication interface of each minimum functional unit are uniformly connected through the combined motherboard, and the minimum functional units are fixed by a card slot type plug-in structure; the "card slot type plug-in structure" is specifically described, such as a guide rail type, a snap-on type, and the like.

[0047] Optionally, the shift registers are cascaded in the following manner: Connecting the shift register serial output terminal (Q7) of the first minimum functional unit to the shift register serial input terminal (DS) of the next minimum functional unit to form a chain cascade structure; The shift registers of all the minimum functional units share the same set of control signals, wherein the control signals include a clock signal CLK, an enable signal CE and a parallel load signal PL; The shift register output terminal (Q7) of the minimum functional unit at the final stage is used as a reading point of the unique identifier.

[0048] S140: The software system reads the unique identifier UniqueID and analyzes the function type and quantity of each of the minimum functional units.

[0049] In a specific implementation, it specifically includes: 1. Hardware triggers reading of UniqueID: The system triggers the shift register through control signals (CE, PL, CP) to read the cascaded 32-bit UniqueID. The specific process is as follows: In a specific implementation, the step of cascading shift registers includes: Pull down the shift register enable signal (CE) of all minimum functional units and activate the clock signal (CLK); Pull down the shift register load signal (PL) of all minimum functional units, then pull up the shift register load signal (PL) of all minimum functional units, and write the hardware ID of each minimum functional unit into the corresponding shift register through the parallel load signal (PL); Input continuous clock pulses (input 32 CP rising edges) to the CP pin of the shift register, read the combined 32-bit UniqueID, read the output of the last group of Q7 pins (i.e., ID_DO) from the output end (Q7) of the final shift register, and obtain the combined 32-bit unique identifier UniqueID; UniqueID example: If Slot1=8DI(ID=0x0), Slot2=8DO(ID=0x02), then UniqueID=0x00000102.

[0050] If Slot3=8AI(ID=0x03), Slot4=Counter(ID=0x0), then UniqueID=0x03040102.

[0051] 2. Parsing UniqueID Byte splitting: Split the 32-bit UniqueID into four 8-bit sub-IDs (Byte1-Byte4) by byte. A non-zero sub-ID represents the functional type of the valid minimum functional unit. For example: UniqueID=0x03040102 → Byte1=0x03, Byte2=0x04, Byte3=0x01, Byte4=0x02.

[0052] Function type identification: Look up the predefined hardware ID mapping table based on the sub-ID value to identify the type of the smallest functional unit. For example: 0x01 → 8DI 0x02 → 8DO 0x03 → 8AI 0x04 → Counter If the sub-ID = 0x00, it means that the slot is vacant.

[0053] Quantity Statistics: Count the number of non-zero sub-IDs to determine the total number of enabled minimum functional units. For example: UniqueID = 0x03040102 → 4 minimum functional units (8AI, counter, 8DI, 8DO).

[0054] UniqueID=0x00000101 → 2 minimum functional units (8DI, 8DO).

[0055] S150 . Adapt the modular configuration structure of the industrial communication protocol according to the analysis result, and map the minimum functional unit into a protocol submodule.

[0056] For the remote IO communication function, the software combines the combined module or integrated product with the remote IO communication protocol stack function and presents it to the user in a componentized form. The user can enable or disable each component individually.

[0057] In a specific implementation: 1. Profinet protocol adaptation: The concepts of Slot and Subslot exist in the Profinet protocol, and the corresponding Profinet modules can be represented by Module and SubModule.

[0058] In the componentization solution of the present application, the function module represented by the read UniqueID may correspond to the Module concept of Profinet, and the minimum functional unit may correspond to the SubModule concept. The software may be configured according to the configuration rules of Profinet.

[0059] Map the function module corresponding to the UniqueID to the Profinet module. For example, UniqueID = 0x00000101 (two 8DO minimum function units) is mapped to 1 module (Slot 1).

[0060] Map each minimum functional unit to a SubModule under the Module. For example: SubModule 1: 8DO minimum functional unit (Slot 1), data address 0x1000-0x1001.

[0061] SubModule 2: 8DO minimum functional unit (Slot2), data address 0x2000-0x2001.

[0062] In the Profinet protocol, each SubModule has a corresponding parameter configuration (called Record). Through Record, each minimum functional unit can be easily parameterized, including enabling or disabling the minimum functional unit module.

[0063] Through Record configuration parameters, including: Enable status: The enable / disable status of the SubModule is configured through Record 0x8000:01.

[0064] Function parameters: such as sampling rate (Record 0x8000:02), de-jitter time (Record 0x8000:03).

[0065] Configuration process: The user modifies the Record value through the TIA Portal, and the system synchronizes the value to the remote IO module and updates the hardware configuration.

[0066] 2. EtherCAT protocol adaptation: The concepts of Slot and Module exist in the EtherCAT protocol. In the componentized solution of the present application, the function module represented by the read UniqueID can correspond to the Module concept of EtherCAT, and a corresponding data entity is created and configured according to the configuration rules of EtherCAT.

[0067] In the EtherCAT protocol, each module also has its own parameter configuration, which is stored in the CoE (CANopen over EtherCAT) dictionary object. When the EtherCAT master is connected to the slave, it can parameterize the module by reading and writing the CoE dictionary object of the module, including enabling or disabling the corresponding minimum functional unit.

[0068] Map the function module corresponding to the UniqueID to the EtherCAT module. For example, UniqueID = 0x03040102 (8DI + 8AI + 8AO + counter) is mapped to 4 independent modules.

[0069] Dynamically adjust the PDO entries based on the smallest functional unit enabled. For example: Enable the 8DI minimum functional unit: add RxPDO 0x1600 to map 8-channel input status.

[0070] Enable 8AO minimum functional unit: add TxPDO 0x1A00 and map 8-way output control.

[0071] The minimum functional unit parameters, including enable / disable status, are configured through the CoE dictionary object. The user modifies the CoE dictionary object through the EtherCAT master tool, and the system updates the hardware configuration.

[0072] 3Optional, user scenario examples are as follows: Profinet scenario: Configuration: Enable the 8DI minimum functional unit and set the de-bounce time to 10ms.

[0073] Process: Modify the value of Record 0x8000:03 to 10. The system updates the GPIO configuration and filters the jitter signal.

[0074] EtherCAT Scenario: Configuration: Enable the 8AO minimum functional unit and set the output voltage range to 0-10V.

[0075] Process: Modify the value of CoE 0x8000:02 to 0-10V, and the system updates the DAC chip configuration.

[0076] By mapping the smallest functional unit into a protocol submodule and combining Profinet's Record with EtherCAT's CoE configuration mechanism, efficient adaptation of remote IO modules and industrial communication protocols is achieved, significantly improving the flexibility, real-time performance and maintainability of the system.

[0077] For the Profinet protocol, map the function module corresponding to the UniqueID to the Profinet Module. For example, UniqueID = 0x00000101 (two 8DO minimum function units) is mapped to one Module (Slot 1). Map each minimum function unit to a SubModule under the Module. For example: SubModule 1: 8DO minimum function unit (Slot 1), data address 0x1000-0x1001. SubModule 2: 8DO minimum function unit (Slot 2), data address 0x2000-0x2001. And configure the parameters through Record, parameter type: Enable status: The enable / disable status of the SubModule is configured through Record 0x8000:01.

[0078] Function parameters: such as sampling rate (Record 0x8000:02), de-jitter time (Record 0x8000:03).

[0079] Configuration process: The user modifies the Record value through the TIA Portal, and the system synchronizes it to the function module of the remote IO and updates the hardware configuration.

[0080] In a specific embodiment, it includes: For the EtherCAT protocol, the function module corresponding to the UniqueID is mapped to the EtherCAT module. For example, UniqueID = 0x03040102 (8DI + 8AI + 8AO + counter) is mapped to 4 independent modules. Dynamically adjust the PDO entry according to the enabled minimum functional unit. For example: Enable the 8DI minimum functional unit: add RxPDO 0x1600 to map the 8-way input status. Enable the 8AO minimum functional unit: add TxPDO 0x1A00 to map the 8-way output control. And configure the minimum functional unit parameters through the CoE dictionary object, that is, configure the enable / disable status of the module. The user modifies the CoE dictionary object through the EtherCAT master tool, and the system updates the minimum functional unit hardware configuration.

[0081] Optional, user scenario example: 1. Profinet scenario Configuration: Enable the 8DI minimum functional unit and set the de-bounce time to 10ms.

[0082] Process: Modify the value of Record 0x8000:03 to 10. The system updates the GPIO configuration and filters the jitter signal.

[0083] 2. EtherCAT Scenario Configuration: Enable the 8AO minimum functional unit and set the output voltage range to 0-10V.

[0084] Process: Modify the value of CoE 0x8000:02 to 0-10V, and the system updates the DAC chip configuration.

[0085] By mapping the smallest functional unit into a protocol submodule and combining Profinet's Record with EtherCAT's CoE configuration mechanism, efficient adaptation of remote IO's functional modules and industrial communication protocols is achieved, significantly improving the system's flexibility, real-time performance, and maintainability.

[0086] S160: Receive a configuration instruction input by a user, and dynamically enable or disable a specified minimum functional unit.

[0087] In a specific embodiment, it includes: Providing a visual configuration interface, the user selects the minimum functional unit by checking or dragging; Generate the configuration instruction according to the user selection, the configuration instruction including the hardware ID and the enabled or disabled state of the minimum functional unit; Writing the configuration instruction into a parameter storage area corresponding to the industrial communication protocol; Write the configuration instructions into the parameter storage area corresponding to the industrial protocol (Record for Profinet or CoE dictionary for EtherCAT).

[0088] Optionally, the configuration instructions include but are not limited to various instruction forms such as parameterized configuration and interface operation.

[0089] Optionally, develop a visual configuration interface based on Web or desktop applications to support users to manage the functions of the smallest functional unit through graphical operations. The interface mainly includes the following elements: Module topology diagram: Displays the hardware composition of the current remote IO function module in a tree structure or grid layout (such as Slot1: 8DI, Slot2: 8DO).

[0090] Function list: Lists the function types (such as digital input, analog output, counter, etc.) and current status (enabled / disabled) of all minimum functional units.

[0091] Operation controls: Provide interactive components such as check boxes, drag areas, and slide switches to enable users to intuitively select the smallest functional unit to enable.

[0092] User Interaction: Checking method: The user clicks the check box corresponding to the smallest functional unit to switch its enabled state (such as checking the 8DI function of Slot1).

[0093] Drag-and-drop method: The user drags the smallest functional unit icon from the "Not Enabled" area to the "Enabled" area, and the system automatically updates the configuration.

[0094] Batch operation: supports users to select multiple minimum functional units and enable or disable them with one click.

[0095] Optionally, based on user selection, the system generates a configuration instruction containing the following information: Hardware ID of the target minimum functional unit: uniquely identifies the type and location of the minimum functional unit (such as the 8DI minimum functional unit of Slot 1, ID = 0x01).

[0096] Enable / disable state: Boolean value (True / False) indicates the functional state of the smallest functional unit.

[0097] Additional parameters: such as the sampling rate of the minimum functional unit of analog quantity, the de-jitter time of the minimum functional unit of digital quantity, etc.

[0098] Optional, write industrial protocol parameter storage area Profinet protocol: Record data block: write the configuration instructions into the Record area corresponding to the SubModule. For example: Enable the 8DI minimum functional unit: Set the value of Record 0x8000:01 to True.

[0099] Configure the sampling rate: Set the value of Record 0x8000:02 to 10000 (10kHz).

[0100] Real-time update: Synchronize Record data to PLC via PNIO protocol stack to trigger hardware status change.

[0101] EtherCAT Protocol: CoE dictionary object: writes the configuration command to the corresponding sub-index of the CoE dictionary. For example: Enable the 8DO minimum functional unit: set the value of the 0x8000:01 sub-index to 1.

[0102] Configure the output range: Set the value of the 0x8000:02 sub-index to 0-10V.

[0103] PDO mapping update: Dynamically adjust the PDO mapping table according to the configuration to ensure that data interaction is consistent with the hardware status.

[0104] Exception handling: Write failure: If the target storage area is not writable (such as the minimum functional unit is offline), the system prompts an error and records a log.

[0105] Status readback: Read the storage area value after writing to verify whether the configuration is effective.

[0106] Optionally, dynamically enable / disable the smallest functional unit: Enable process: Load the firmware driver of the smallest functional unit and initialize the hardware registers (such as ADC and DAC configuration).

[0107] Update the module configuration of the protocol stack (such as the SubModule list of Profinet or the PDO mapping of EtherCAT).

[0108] Start data acquisition and control tasks (such as reading input status at regular intervals and responding to output instructions).

[0109] Closing process: Stop the data collection and control tasks of the smallest functional unit.

[0110] Release the occupied protocol resources (such as the IO data area of ​​Profinet or the PDO entry of EtherCAT).

[0111] Put the smallest functional unit into low-power mode to reduce system load.

[0112] Optional, user scenario example: Scenario 1: Flexible Configuration The user disables the 8AO minimum functional unit to reduce power consumption, and the system automatically releases the communication bandwidth occupied by it and writes the configuration into the Profinet Record.

[0113] Scenario 2: Real-time adjustment The user enables the minimum functional unit of the counter and sets the trigger conditions. The system dynamically updates the EtherCAT CoE dictionary to ensure real-time data interaction.

[0114] Through the above process, the dynamic configuration and management of the minimum functional unit functions of the functional module of the remote IO are realized, which significantly improves the flexibility and maintainability of the system. Users can dynamically adjust the functions of the minimum functional unit to meet diverse needs. The delay between configuration instruction writing and hardware status change is <10ms. It supports multiple industrial protocols such as Profinet and EtherCAT and has strong adaptability.

[0115] S170. Run the industrial communication protocol based on the configuration result to realize data interaction of the functional modules of the remote IO.

[0116] In a specific implementation, after the user completes the component configuration of the remote IO functional module, the system will dynamically load and run the industrial communication protocol stack according to the configuration results to achieve efficient data interaction with the master station or other control devices. This process covers core links such as protocol initialization, data mapping, real-time communication and exception handling, and is specifically implemented as follows: (1) Load the Profinet, EtherCAT and other protocol stacks according to the configuration, and write the user configuration into the protocol storage area; (2) Dynamically allocate memory buffers to optimize communication cycles and bandwidth usage; (3) Realize efficient data interaction with the master station or other control devices through the protocol stack, including input data acquisition and output control distribution; (4) Support hot plug and exception handling to ensure continuous operation of the system.

[0117] The componentized implementation method of the functional module of the remote IO provided in the embodiment of the present disclosure is as follows: the functional module of the original remote IO is split into multiple minimum functional units according to preset rules; an independent hardware circuit is designed for each of the minimum functional units, and the independent hardware circuit includes a shift register for generating a hardware ID that identifies the function of the minimum functional unit; multiple minimum functional units are combined into a functional module of a new remote IO according to the target form, and a unique identifier containing the hardware IDs of all minimum functional units in the functional module of the new remote IO is generated by cascading the shift register; the unique identifier is read, and the functional type and quantity of each minimum functional unit are parsed to obtain the parsing result; the modular configuration structure of the industrial communication protocol is adapted according to the parsing result, and all the minimum functional units are mapped to the protocol submodules; the configuration instruction input by the user is received, and the specified minimum functional unit is dynamically enabled or disabled; the industrial communication protocol is run based on the configuration result to realize the data interaction of the functional module of the new remote IO. The hardware reuse rate is improved, the software adaptation is simplified, and the flexible combination is supported.

[0118] On the basis of the above embodiments, the present disclosure also provides a component-based implementation device for a remote IO functional module, such as Figure 3 As shown, the componentized implementation device of the functional module of remote IO includes: A splitting module 310 is used to split the original remote IO function module into multiple minimum function units according to a preset rule; A design module 320, configured to design an independent hardware circuit for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID identifying a function of the minimum functional unit; A combining module 330, used for combining a plurality of the minimum functional units into a functional module of a new remote IO according to a target form, and generating a unique identifier of the functional module including the new remote IO by cascading the shift registers; The parsing module 340 is used to read the unique identifier, parse the function type and quantity of each of the minimum functional units, and obtain a parsing result; An adaptation module 350, used to adapt the modular configuration structure of the industrial communication protocol according to the analysis result, and map the minimum functional unit to a protocol submodule; The configuration module 360 ​​is used to receive the configuration instruction input by the user and dynamically enable or disable the specified minimum functional unit; The communication module 370 is used to run the industrial communication protocol based on the configuration result to realize the data interaction of the functional modules of the new remote IO.

[0119] In a specific implementation, the splitting module 330 is specifically used to split the functional module of the original remote IO into multiple minimum functional units for different types of sensors; for the functional groups that can work independently in the same type of sensors, the minimum number of groups is taken to split them into multiple minimum functional units.

[0120] In a specific implementation, the combination module 330 is specifically used to place the minimum functional unit of the input function first, then the minimum functional unit of the output function, then the minimum functional unit of the digital function, then the minimum functional unit of the analog function, and finally the minimum functional unit of other functions during physical arrangement; the power supply and communication interface of each minimum functional unit are uniformly connected through the combined motherboard, and the minimum functional units are fixed by a card slot type plug-in structure.

[0121] In a specific implementation, the parsing module 340 is specifically used to pull down the enable signal of the shift register of all minimum functional units to activate the clock signal; write the hardware ID of each minimum functional unit into the corresponding shift register through a parallel loading signal; input continuous clock pulses to the shift register, and read the cascaded unique identifier from the output end of the last stage shift register; split the unique identifier into multiple sub-IDs by byte, and the non-zero sub-ID represents the functional type of the valid minimum functional unit.

[0122] In a specific implementation, the adaptation module 350 is specifically used to map the functional module corresponding to the unique identifier to a Module for the Profinet protocol, map the minimum functional unit to a SubModule, and configure parameters through a Record data structure; for the EtherCAT protocol, map the functional module corresponding to the unique identifier to a Module, and configure the parameters of the minimum functional unit through a CoE dictionary object.

[0123] In a specific implementation, the configuration module 360 ​​is specifically used to provide a visual configuration interface, and the user selects the minimum functional unit by checking or dragging; generates the configuration instruction according to the user's selection, and the configuration instruction includes the hardware ID and enabled or disabled status of the minimum functional unit; writes the configuration instruction into the parameter storage area corresponding to the industrial communication protocol.

[0124] In a specific implementation, the cascade connection mode of the shift registers is: Connecting the shift register output end of the first minimum functional unit to the shift register input end of the next minimum functional unit to form a chain cascade structure; The shift registers of all the minimum functional units share the same set of control signals, wherein the control signals include a clock signal, an enable signal and a parallel load signal; The output terminal of the shift register of the minimum functional unit at the final stage is used as a reading point of the unique identifier.

[0125] The component-based implementation device of the remote IO functional module provided in the embodiment of the present disclosure improves the hardware reuse rate, simplifies software adaptation, and supports flexible combination.

[0126] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0127] The following three specific embodiments are used to illustrate the component-based implementation method of the remote IO functional module of the present application.

[0128] Example 1: 16DO module (consisting of 2 groups of 8DO) 1. Hardware splitting and minimum functional unit design Splitting principle: Split the 16-channel digital output (16DO) module into two independent 8DO minimum functional units, each of which processes 8 outputs.

[0129] Minimum functional unit design: Minimum functional unit 1 (8DO): Hardware ID = 0x01 (binary 00000001), using 74HC165D shift register, the input end is connected to the fixed encoding circuit.

[0130] The output drive circuit uses a ULN2003 Darlington array, and each channel is equipped with an LED status indicator.

[0131] Minimum functional unit 2 (8DO): Hardware ID = 0x01 (same as the minimum functional unit 1), but the logical functions are distinguished by the physical slot positions on the motherboard (Slot 1 and Slot 2).

[0132] An overcurrent protection circuit is added to support a maximum load current of 2A / channel.

[0133] 2. Hardware combination and UniqueID generation Structural combination: The minimum function unit 1 and the minimum function unit 2 are inserted into Slot 1 and Slot 2 of the blade motherboard and arranged according to the digital quantity output priority.

[0134] The minimum functional units are connected through cascade shift registers: Q7 terminal of minimum functional unit 1 → DS terminal of minimum functional unit 2.

[0135] UniqueID generation process: Pull down the CE enable signal to activate the CLK clock; Pull down the PL signal to load the hardware ID (minimum functional unit 1 = 0x01, minimum functional unit 2 = 0x01); Input 32 CP rising edges and read the UniqueID = 0x00000101 output by the final stage Q7.

[0136] 3. Software analysis and protocol adaptation Parsing result: UniqueID is split into 4 bytes (0x00, 0x00, 0x01, 0x01) and identified as two 8DO sub-modules.

[0137] Profinet Adaptation: Mapped as 1 Module (Slot 1), containing two SubModules (Sub1 and Sub2).

[0138] The user configures the SubModule parameters through the TIA Portal, for example, disabling Sub2 to turn off the 8 outputs on the right.

[0139] EtherCAT Adaptation: Mapped into two independent modules (Module 1 and Module 2), the output enable bit is set through the CoE dictionary.

[0140] 4. User configuration and performance testing Scenario 1: Fully functional All 16 outputs are normal, with a total load current of 3.2A (0.2A per output) and a communication cycle of 2ms.

[0141] Scenario 2: Disabling Minimum Functional Unit 2 The 8 outputs on the right are turned off, power consumption is reduced by 48%, and the communication cycle is shortened to 1.5ms.

[0142] Example 2: 8DIO module (consisting of 1 group of 8DI and 1 group of 8DO) 1. Hardware splitting and minimum functional unit design Split principle: Split the 8-channel digital input and output (8DIO) module into two independent minimum functional units: 8DI and 8DO.

[0143] Minimum functional unit design: Minimum functional unit 1 (8DI): Hardware ID = 0x02, the input circuit uses optocoupler isolation (TLP281-4) and supports 24V industrial level input.

[0144] The input end of 74HC165D is connected to the ID coding circuit (A=1, B=0, and the rest are fixed to ground).

[0145] Minimum functional unit 2 (8DO): Hardware ID = 0x03, the output circuit uses MOSFET driver (IRF540N), supporting high-speed switching (response time < 1ms).

[0146] 2. Hardware combination and UniqueID generation Structural combination: According to the "input priority" rule, the 8DI minimum functional unit (Slot 1) is placed on the left and the 8DO minimum functional unit (Slot 2) is placed on the right.

[0147] Cascade connection: Q7 terminal of 8DI minimum functional unit → DS terminal of 8DO minimum functional unit.

[0148] UniqueID generation process: Load the hardware ID (8DI=0x02, 8DO=0x03).

[0149] Read UniqueID = 0x00000203.

[0150] 3. Software analysis and protocol adaptation Parsing result: Slot 1 is identified as 8DI (0x02) and Slot 2 is identified as 8DO (0x03).

[0151] Profinet Adaptation: Mapped to 1 Module (Slot 1), containing two SubModules: SubModule 1 (8DI): data address 0x1000, length 1 byte (8-bit input status).

[0152] SubModule 2 (8DO): data address 0x2000, length 1 byte (8-bit output control).

[0153] EtherCAT Adaptation: Assign separate PDOs (Process Data Objects) to 8DI and 8DO respectively: RxPDO (input): 8DI status is mapped to 0x1600.

[0154] TxPDO (output): 8DO control mapped to 0x1A00.

[0155] 4. User configuration and function verification Scenario 1: Synchronous input acquisition and output control After the input signal changes, the output response delay is <2ms, meeting real-time control requirements.

[0156] Scenario 2: Disabling 8DO function The 8DO minimum functional unit enters low power mode, the system only monitors the 8DI input, and the power consumption is reduced from 5W to 2.8W.

[0157] Example 3: 8AIO and counter hybrid module (consisting of 4 minimum functional units) 1. Hardware splitting and minimum functional unit design Split principle: The 8-channel analog input and output (8AIO) is divided into 8AI (ID=0x04) and 8AO (ID=0x05).

[0158] The counter module is divided into two minimum functional units: Minimum functional unit 3 (8DI): Hardware ID = 0x02, collects 8 digital inputs.

[0159] Minimum functional unit 4 (counter): Hardware ID = 0x06, supports 2-way high-speed counters (maximum frequency 1MHz).

[0160] 2. Hardware combination and UniqueID generation Structural combination: Slot 1: 8DI minimum functional unit (ID=0x02).

[0161] Slot 2: 8AI minimum functional unit (ID=0x04).

[0162] Slot 3: 8AO minimum functional unit (ID=0x05).

[0163] Slot 4: Counter minimum functional unit (ID=0x06).

[0164] UniqueID generation: The cascade read result is 0x02040506.

[0165] 3. Software analysis and protocol adaptation Parsing results: Slot 1: 8DI (0x02) Slot 2: 8AI (0x04) Slot 3: 8AO (0x05) Slot 4: Counter (0x06) Profinet Adaptation: Mapped to 1 Module (Slot 1), containing 4 SubModules: SubModule 1 (8DI): Configured for input monitoring.

[0166] SubModule 2 (8AI): Set the sampling rate to 10kHz.

[0167] SubModule 3 (8AO): Configure the output voltage range 0-10V.

[0168] SubModule 4 (Counter): Set the counting mode to accumulation.

[0169] EtherCAT Adaptation: Create an independent Module for each minimum functional unit: Module 1 (8DI): mapped to PDO 0x1600.

[0170] Module 2 (8AI): Configure the filter parameters in the CoE dictionary (low-pass filter, cutoff frequency 1 kHz).

[0171] Module 4 (Counter): Set the trigger condition (rising edge is valid).

[0172] 4. User configuration and real-time optimization Scenario 1: Multi-module collaboration 8AI collects temperature signals, 8DO controls the heater, and the counter counts the equipment operation cycle.

[0173] System cycle 4ms, CPU load 65%.

[0174] Scenario 2: Disabling non-critical modules By disabling 8AO and counter modules, the system cycle is shortened to 2.5ms and the CPU load is reduced to 42%.

[0175] Through the above examples, the complete process of hardware design, software analysis, user configuration and protocol operation of this application is demonstrated, reflecting the significant advantages of this application in improving hardware reuse rate, simplifying software adaptation, and supporting flexible combination, and can quickly respond to diversified industrial scenario needs.

[0176] The present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0177] The computer device includes a memory 410 and a processor 420 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 410-420, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0178] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.

[0179] The memory 410 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, for example, a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 410 may be an internal storage unit of a computer device, for example, a hard disk or a memory of the computer device. In other embodiments, the memory 410 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card or a flash card (FlashCard) equipped on the computer device. Of course, the memory 410 may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the memory 410 is generally used to store the operating system and various application software installed on the computer device, such as the program code of the above method. In addition, the memory 410 may also be used to temporarily store various data that have been output or are to be output.

[0180] The processor 420 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 410 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 420 is used to execute the program codes or instructions stored in the memory 410 or process data, such as running the program code of the above method.

[0181] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0182] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.

[0183] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.

[0184] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.

[0185] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0186] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0187] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0188] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.

[0189] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.

[0190] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.

Claims

1. A component-based implementation method for a remote IO functional module, characterized in that: include: Split the original remote IO functional module into multiple minimum functional units; Designing an independent hardware circuit for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID for identifying the function of the minimum functional unit; Combining a plurality of the minimum functional units into a functional module of a new remote IO according to a target form, and generating a unique identifier of the functional module of the new remote IO by cascading the shift registers; Read the unique identifier, analyze the function type and quantity of each of the minimum functional units, and obtain the analysis result; Adapting the modular configuration structure of the industrial communication protocol according to the analysis result, mapping all the minimum functional units into protocol submodules; Receive a configuration instruction input by a user, and dynamically enable or disable the specified minimum functional unit; The industrial communication protocol is run based on the configuration result to realize data interaction of the functional modules of the new remote IO.

2. The method according to claim 1, characterized in that: The step of splitting the original remote IO functional module into multiple minimum functional units according to preset rules includes: For different types of sensors, the functional module of the original remote IO is split into a plurality of the minimum functional units; For the functional groups that can work independently in the same type of sensors, the minimum number of groups is taken to split them into multiple minimum functional units.

3. The method according to claim 1, characterized in that The step of combining the plurality of the minimum functional units into a new remote IO functional module according to the target form comprises: In physical arrangement, the minimum functional unit of the input function is placed first, followed by the minimum functional unit of the output function, then the minimum functional unit of the digital quantity function, then the minimum functional unit of the analog quantity function, and finally the minimum functional unit of other functions; The power supply and communication interface of each of the minimum functional units are connected in a unified manner through the combined motherboard, and the minimum functional units are fixed by a card slot type plug-in structure.

4. The method according to claim 1, characterized in that: The step of reading the unique identifier, parsing the function type and quantity of each of the minimum functional units, and obtaining the parsing result includes: Pulling down the enable signal of the shift register of each of the minimum functional units to activate the clock signal; Writing the hardware ID of each of the minimum functional units into the corresponding shift register through a parallel loading signal; Inputting continuous clock pulses into the shift register, and reading the cascaded unique identifier from the output end of the last stage of the shift register; The unique identifier is split into multiple sub-IDs by bytes, and a non-zero sub-ID represents a function type of a valid minimum functional unit.

5. The method according to claim 1, characterized in that The step of adapting the modular configuration structure of the industrial communication protocol according to the analysis result and mapping the minimum functional unit into a protocol submodule comprises: For the Profinet protocol, the function module corresponding to the unique identifier is mapped to a Module, the minimum functional unit is mapped to a SubModule, and parameters are configured through a Record data structure; For the EtherCAT protocol, the function module corresponding to the unique identifier is mapped to a Module, and the parameters of the minimum function unit are configured through a CoE dictionary object.

6. The method according to claim 1, characterized in that The step of receiving a configuration instruction input by a user and dynamically enabling or disabling the specified minimum functional unit includes: Providing a visual configuration interface, the user selects the minimum functional unit by checking or dragging; Generate the configuration instruction according to the user selection, the configuration instruction including the hardware ID and the enabled or disabled state of the minimum functional unit; The configuration instruction is written into a parameter storage area corresponding to the industrial communication protocol.

7. The method according to claim 1, characterized in that The cascade connection mode of the shift register is: Connecting the shift register output end of the first minimum functional unit to the shift register input end of the next minimum functional unit to form a chain cascade structure; The shift registers of all the minimum functional units share the same set of control signals, wherein the control signals include a clock signal, an enable signal and a parallel load signal; The output terminal of the shift register of the minimum functional unit at the final stage is used as a reading point of the unique identifier.

8. A component-based implementation device for a remote IO functional module, characterized in that: include: A splitting module is used to split the original remote IO function module into multiple minimum function units according to preset rules; A design module, used for designing an independent hardware circuit for each of the minimum functional units, wherein the minimum functional unit includes a shift register for generating a hardware ID for identifying the function of the minimum functional unit; A combining module, used for combining a plurality of the minimum functional units into a functional module of a new remote IO according to a target form, and generating a unique identifier containing the hardware IDs of all the minimum functional units in the functional module of the new remote IO by cascading the shift registers; A parsing module, used for reading the unique identifier, parsing the function type and quantity of each of the minimum functional units, and obtaining a parsing result; An adaptation module, used for adapting the modular configuration structure of the industrial communication protocol according to the analysis result, and mapping the minimum functional unit into a protocol submodule; A configuration module, used to receive configuration instructions input by a user, and dynamically enable or disable the specified minimum functional unit; The communication module is used to run the industrial communication protocol based on the configuration results to realize the data interaction of the functional modules of the new remote IO.

9. A computer device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Virtual IO module communication control method and device, equipment and storage medium

    CN119166556A

  • Simplified remote interface device and method for determining a failure at an optical fiber link terminated with a remote interface device

    US20070014570A1