Componentization Implementation Method and Device for Function Modules of Remote IO
By splitting the functional modules of remote IO into the smallest functional units and designing independent hardware circuits, combining the ID combination mechanism of shift registers and protocol adaptation logic, the problems of low hardware reuse rate, waste of resources and insufficient flexibility of existing remote IO functional modules are solved, and the effects of improving hardware reuse rate, unified firmware management and flexible response to requirements are achieved.
Patent Information
- Application Number
- CN202510474160.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2045-04-16
AI Technical Summary
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 long R&D cycle.
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 minimal 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, the modular configuration structure of the industrial communication protocol is adapted according to the parsing results, and the minimum functional unit is enabled or turned off dynamically to achieve data interaction.
It has achieved the improvement of hardware reuse rate, simplified software adaptation, and supported flexible combinations, reducing R&D and production costs, and shortening the hardware R&D and response cycles.
Smart Images

Figure CN119988263B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of industrial automation control technology and related technical fields. Specifically, it relates to a component-based implementation method and device for a function 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 fields such as data acquisition, equipment monitoring, and automation control. Remote IO connects devices such as sensors and actuators to the control system, enabling real-time acquisition and transmission of industrial field data, greatly improving production efficiency and system reliability.
[0003] However, in the prior art, remote IO mainly comes in two forms: blade type and integrated type. Blade-type remote IO meets customer needs through the combination of different blade modules, while integrated remote IO adapts to different sensor types by producing different models of products. Although these two forms meet diverse needs to a certain extent, there are still the following problems in the R & D and production processes:
[0004] Redundant hardware design: For different function combinations, a large number of PCBs with partially repeated functions need to be designed, resulting in waste of circuit design resources. Moreover, the permutations and combinations of different functional units generate a very large number of circuit board models, increasing the design complexity.
[0005] Production and inventory pressure: Multiple circuit board models need to be produced and maintained separately, bringing many inconveniences to inventory management, material preparation, and production processes, increasing production costs and management difficulties.
[0006] Complex software adaptation: Each circuit board requires an independent firmware for adaptation, resulting in a large number of firmwares, high maintenance costs, and unnecessary troubles for R & D and production.
[0007] Lack of flexibility: Facing the flexible and changeable demands in the market, especially for customers with special requirements, it is often necessary to redesign the circuit board and develop software, resulting in a long development cycle and inability to quickly respond to market demands.
[0008] Therefore, there is an urgent need for a component-based implementation method for the function module of remote IO to solve the problems existing in the prior art, such as low hardware reuse rate, resource waste, production complexity, and lack of flexibility of the function module of existing remote IO. Summary of the Invention
[0009] Embodiments described herein provide a component-based implementation method and device, equipment, and storage medium for a function module of remote IO, which solve the problems existing in the prior art.
[0010] According to a first aspect of the present disclosure, a method for component implementation of a functional module of a remote IO is provided, including:
[0011] Splitting the original functional module of the remote IO into multiple minimum functional units according to a preset rule;
[0012] Designing an independent hardware circuit for each of the minimum functional units, where the minimum functional unit includes a shift register for generating a hardware ID identifying the function of the minimum functional unit;
[0013] Combining multiple of the minimum functional units into a functional module of a new remote IO in 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;
[0014] Reading the unique identifier, parsing the function types and quantities of the minimum functional units to obtain a parsing result;
[0015] Adapting the modular configuration structure of the industrial communication protocol according to the parsing result, and mapping all the minimum functional units to protocol sub-modules;
[0016] Receiving a configuration instruction input by a user, and dynamically enabling or disabling a specified minimum functional unit;
[0017] Running the industrial communication protocol based on the configuration result to implement data interaction of the functional module of the new remote IO.
[0018] In some embodiments of the present disclosure, the step of splitting the original functional module of the remote IO into multiple minimum functional units includes:
[0019] For different types of sensors, splitting the original functional module of the remote IO into multiple minimum functional units;
[0020] For functional groups that can work independently among sensors of the same type, splitting them into multiple minimum functional units by taking the minimum number of groups.
[0021] In some embodiments of the present disclosure, the step of combining multiple minimum functional units into a functional module of a new remote IO in a target form includes:
[0022] During physical arrangement, first place the minimum functional units with input functions, then place the minimum functional units with output functions, then place the minimum functional units with digital quantity functions, then place the minimum functional units with analog quantity functions, and finally place the minimum functional units with other functions;
[0023] The power supply and communication interface of each of the minimum functional units are uniformly connected through the combined motherboard, and the minimum functional units are fixed through a card slot plug-in structure.
[0024] In some embodiments of the present disclosure, the step of reading the unique identifier, parsing the function types and quantities of the minimum functional units, and obtaining the parsing result includes:
[0025] Pull down the enable signal of the shift register of each minimum functional unit to activate the clock signal;
[0026] Write the hardware ID of each minimum functional unit into the corresponding shift register through the parallel load signal;
[0027] Input continuous clock pulses into the shift register, and read the cascaded unique identifier from the output end of the last-stage shift register;
[0028] Split the unique identifier into multiple sub-IDs by byte, and the non-zero sub-IDs represent the function types of valid minimum functional units.
[0029] 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 units to protocol sub-modules includes:
[0030] For the Profinet protocol, map the function module corresponding to the unique identifier to Module, map the minimum functional unit to SubModule, and configure the parameters through the Record data structure;
[0031] For the EtherCAT protocol, map the function module corresponding to the unique identifier to Module, and configure the parameters of the minimum functional unit through the CoE dictionary object.
[0032] In some embodiments of the present disclosure, the step of receiving the configuration instruction input by the user and dynamically enabling or disabling the specified minimum functional unit includes:
[0033] Provide a visual configuration interface, and the user selects the minimum functional unit by checking or dragging;
[0034] Generate the configuration instruction according to the user's selection, and the configuration instruction includes the hardware ID and the enabled or disabled state of the minimum functional unit;
[0035] Write the configuration instruction into the parameter storage area corresponding to the industrial communication protocol.
[0036] In some embodiments of the present disclosure, the cascading method of the shift register is:
[0037] Connect the output terminal of the shift register of the first said minimum functional unit to the input terminal of the shift register of the next said minimum functional unit to form a chain cascade structure;
[0038] The shift registers of all the said minimum functional units share the same set of control signals, and the control signals include a clock signal, an enable signal, and a parallel load signal;
[0039] Take the output terminal of the shift register of the last-stage said minimum functional unit as the reading point of the unique identifier.
[0040] According to a second aspect of the present disclosure, there is provided an apparatus for componentized implementation of a functional module of a remote IO, including:
[0041] A splitting module, configured to split the original functional module of the remote IO into multiple minimum functional units according to a preset rule;
[0042] A design module, configured to design an independent hardware circuit for each said minimum functional unit, and the minimum functional unit includes a shift register for generating a hardware ID identifying the function of the minimum functional unit;
[0043] A combining module, configured to combine multiple said minimum functional units into a new functional module of the remote IO in a target form, and generate a unique identifier including the hardware IDs of all the minimum functional units in the new functional module of the remote IO by cascading the shift registers;
[0044] An analysis module, configured to read the unique identifier, analyze the function types and quantities of the respective said minimum functional units, and obtain an analysis result;
[0045] An adaptation module, configured 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 sub-module;
[0046] A configuration module, configured to receive a configuration instruction input by a user, and dynamically enable or disable a specified said minimum functional unit;
[0047] A communication module, configured to run an industrial communication protocol based on a configuration result to implement data interaction of the new functional module of the remote IO.
[0048] In some embodiments of the present disclosure, the splitting module is specifically configured to, for different types of sensors, split the original functional module of the remote IO into multiple said independent minimum functional units;
[0049] For a functional group that can work independently in the same type of sensor, split it into multiple said minimum functional units by taking the minimum number of units.
[0050] In some embodiments of the present disclosure, the combination module is specifically configured to, during physical arrangement, first place the minimum functional unit with input function, then place the minimum functional unit with output function, then place the minimum functional unit with digital quantity function, then place the minimum functional unit with analog quantity function, and finally place the minimum functional unit with other functions; the power supplies and communication interfaces of each minimum functional unit are uniformly connected through the combined motherboard, and the minimum functional units are fixed through a card slot plug-in structure.
[0051] In some embodiments of the present disclosure, the parsing module is specifically configured to pull down the enable signal of the shift register of each minimum functional unit to activate the clock signal; write the hardware ID of each minimum functional unit into the corresponding shift register through the parallel load 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-IDs represent the function types of valid minimum functional units.
[0052] In some embodiments of the present disclosure, the adaptation module is specifically configured to, for the Profinet protocol, map the functional module corresponding to the unique identifier to Module, map the minimum functional unit to SubModule, and configure parameters through the Record data structure; for the EtherCAT protocol, map the functional module corresponding to the unique identifier to Module, and configure the parameters of the minimum functional unit through the CoE dictionary object.
[0053] In some embodiments of the present disclosure, the configuration module is specifically configured to provide a visual configuration interface, and the user selects the minimum functional unit by checking or dragging; generate the configuration instruction according to the user's selection, and the configuration instruction includes the hardware ID and the enabled or disabled state of the minimum functional unit; write the configuration instruction into the parameter storage area corresponding to the industrial communication protocol.
[0054] In some embodiments of the present disclosure, the cascading method of the shift register is as follows:
[0055] Connect the output end of the shift register of the first minimum functional unit to the input end of the shift register of the next minimum functional unit to form a chain cascading structure;
[0056] The shift registers of all minimum functional units share the same set of control signals, and the control signals include a clock signal, an enable signal, and a parallel load signal;
[0057] Take the output end of the shift register of the last-stage minimum functional unit as the reading point of the unique identifier.
[0058] According to a third aspect of the present disclosure, a computer device is provided, including a memory and a processor. 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.
[0059] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0060] The method, device, equipment and storage medium for componentizing the functional modules of the remote IO provided by the embodiments of the present disclosure split the original functional modules of the remote IO into multiple minimum functional units according to preset rules; design independent hardware circuits for each of the minimum functional units, and the independent hardware circuits include shift registers for generating hardware IDs that identify the functions of the minimum functional units; combine the multiple minimum functional units into a functional module of a new remote IO according to a target form, and generate 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 types and quantities of the minimum functional units to obtain an analysis result; adapt the modular configuration structure of the industrial communication protocol according to the analysis result, and map all the minimum functional units to protocol sub-modules; receive a configuration instruction input by a user, and dynamically enable or disable a specified minimum functional unit; run the industrial communication protocol based on the configuration result to implement data interaction of the functional module of the new remote IO. It realizes the improvement of hardware reuse rate, the simplification of software adaptation, and the support for flexible combination. By splitting the functional modules of the traditional remote IO into minimum functional units, combining the ID combination mechanism based on shift registers and the protocol adaptation logic, the technical effects of improving the hardware reuse rate, unified firmware management, and flexible response to requirements are achieved. At the hardware level, the modular splitting principle is adopted, and at the software level, the functional combination is dynamically analyzed through UniqueID to adapt to the modular configuration requirements of various industrial protocols (such as Profinet, EtherCAT). The present invention significantly reduces the R & D and production costs, supports users to customize functional units, and can optimize the real-time performance through parametric 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 response cycle for special requirements is shortened to within 3 days; users can adjust the functional modules in real time to optimize the system real-time performance. The present invention has been successfully applied to the remote IO product line of an industrial PLC manufacturer to achieve flexible configuration functions, shorten the hardware R & D cycle, and reduce the inventory cost.
[0061] The above description is only an overview of the technical solution of the embodiment of the present application. In order to understand the technical means of the embodiment of the present application more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and understandable, the specific implementation manners of the present application are hereinafter specifically exemplified. Description of the Drawings
[0062] 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 understood that the following described drawings only relate to some embodiments of the present disclosure and do not limit the present disclosure, where:
[0063] Figure 1 is a schematic flowchart of a method for component implementation of a functional module of a remote IO provided by an embodiment of the present disclosure;
[0064] Figure 2 is a schematic structural diagram of the connection of 4 minimum functional units provided by an embodiment of the present disclosure;
[0065] Figure 3 is a schematic structural diagram of a device for component implementation of a functional module of a remote IO provided by an embodiment of the present disclosure;
[0066] Figure 4 is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure.
[0067] In the drawings, labels 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 of the Embodiments
[0068] In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of the present disclosure without creative efforts also belong to the scope of protection of the present disclosure.
[0069] Reference to "embodiment" in this text means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
[0070] In this text, the term "and / or" is merely a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: the existence of A, the simultaneous existence of A and B, and the existence of B. Additionally, in this text, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0071] Furthermore, in all embodiments of the present disclosure, terms such as "first" and "second" are only used to distinguish one component (or a part of the component) from another component (or another part of the component).
[0072] In the description of this application, unless otherwise specified, the meaning of "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups).
[0073] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings.
[0074] Currently, the functional modules of remote I / O are widely used in the field of industrial automation. However, the existing technologies have the following problems: the hardware design is complex and the modularity 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, and the maintenance cost is high. The flexibility of module combination is poor, making it difficult to meet the diverse market demands; the resource utilization rate is low, and the module functions cannot be dynamically adjusted according to actual needs.
[0075] Based on the problems existing in the prior art, Figure 1 is a schematic flowchart of a component-based implementation method for a functional module of remote I / O provided by an embodiment of the present disclosure. As Figure 1 shown, the specific process of the component-based implementation method for the functional module of remote I / O includes:
[0076] S110. Split the original functional module of remote I / O into multiple minimum functional units according to a preset rule.
[0077] In a specific implementation manner, the preset rule is, for example, to split according to the sensor type, functional independence, or performance requirements; the sensor type, for example, digital input (DI), digital output (DO), analog input (AI), etc.
[0078] For different types of sensors, split the original functional module of remote I / O into independent minimum functional units;
[0079] For the functional groups that can work independently among the same type of sensors, directly split into multiple said minimum functional units by taking the minimum group quantity. For example, in 16DI, every 8 can work independently, and directly take the minimum group quantity to split into 2 units of 8DI.
[0080] S120. Design an independent hardware circuit (sub-PCB) for each of the said minimum functional units, where the minimum functional unit includes a shift register for generating a hardware ID identifying the function of the minimum functional unit.
[0081] In a specific embodiment, each minimum functional unit incorporates a 74HC165D serial-in parallel-out 8-bit shift register, and the input is the hardware ID representing the ID of the minimum functional unit.
[0082] S130. Combine multiple said minimum functional units into a new remote I / O functional module in a target form, and generate a unique identifier containing the hardware IDs of all the minimum functional units in the new remote I / O functional module by cascading the shift registers.
[0083] Optionally, the target form includes a blade form or an integrated form.
[0084] Optionally, each new remote I / O functional module can accommodate 2 to 6 minimum functional units, with a maximum of 6 minimum functional units. For example: after combining 4 minimum functional units, the shift registers are connected together, and through software shifting, the 32-bit unique identifier UniqueID after combining the 4 minimum functional units is read out.
[0085] 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.
[0086] The schematic diagram of the connection of 4 minimum functional units is as Figure 2 shown.
[0087] In a specific embodiment, when combining multiple minimum functional units into a remote I / O functional module in a target form according to a preset rule, the structural layout follows a hierarchical rule of input first and digital quantity first, specifically including:
[0088] When arranging physically, first place the minimum functional units with input functions, and then place the minimum functional units with output functions; for the physical arrangement, for example, the input functional units are on the left and the output functional units are on the right; then place the minimum functional units with digital quantity functions, then place the minimum functional units with analog quantity functions, and finally place the said minimum functional units with other functions;
[0089] The power supply and communication interfaces of each minimum functional unit are uniformly connected through the combined motherboard, and the minimum functional units are fixed through a card slot type plug-in structure; a specific description of the "card slot type plug-in structure" is given, such as implementation methods like rail type and snap type.
[0090] Optionally, the cascading method of the shift registers is:
[0091] Connect the serial output terminal (Q7) of the shift register of the first minimum functional unit to the serial input terminal (DS) of the shift register of the next minimum functional unit to form a chain cascade structure;
[0092] The shift registers of all the minimum functional units share the same set of control signals, and the control signals include a clock signal CLK, an enable signal CE, and a parallel load signal PL;
[0093] Take the output terminal (Q7) of the shift register of the last-stage minimum functional unit as the reading point of the unique identifier.
[0094] S140. The software system reads the unique identifier UniqueID and analyzes the functional types and quantities of all the minimum functional units.
[0095] In a specific embodiment, it specifically includes:
[0096] 1. Hardware-triggered reading of UniqueID:
[0097] 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:
[0098] In a specific embodiment, the step of cascading the shift registers includes:
[0099] Pull down the enable signal (CE) of the shift register of all the minimum functional units to activate the clock signal (CLK);
[0100] Pull down the load signal (PL) of the shift register of all the minimum functional units, and then pull up the load signal (PL) of the shift register of all the minimum functional units. Write the hardware ID of each minimum functional unit into the corresponding shift register through the parallel load signal (PL);
[0101] Input continuous clock pulses (input 32 CP rising edges) to the CP pin of the shift register, read the combined 32-bit UniqueID, and read the output of the last group of Q7 pins (i.e., ID_DO) from the output terminal (Q7) of the last-stage shift register to obtain the combined 32-bit unique identifier UniqueID;
[0102] UniqueID example:
[0103] If Slot1 = 8DI (ID = 0x0), Slot2 = 8DO (ID = 0x02), then UniqueID = 0x00000102.
[0104] If Slot3 = 8AI (ID = 0x03) and Slot4 = Counter (ID = 0x0), then UniqueID = 0x03040102.
[0105] 2. Analyze UniqueID
[0106] Byte splitting: Split the 32-bit UniqueID into 4 8-bit sub-IDs (Byte1 - Byte4) by byte. The non-zero sub-IDs represent the function types of the effective minimum functional units. For example:
[0107] UniqueID = 0x03040102 → Byte1 = 0x03, Byte2 = 0x04, Byte3 = 0x01, Byte4 = 0x02.
[0108] Function type identification:
[0109] Find the predefined hardware ID mapping table according to the sub-ID value to identify the type of the minimum functional unit. For example:
[0110] 0x01 → 8DI
[0111] 0x02 → 8DO
[0112] 0x03 → 8AI
[0113] 0x04 → Counter
[0114] If the sub-ID = 0x00, it means the slot is vacant.
[0115] Quantity statistics:
[0116] Count the number of non-zero sub-IDs to determine the total number of enabled minimum functional units. For example:
[0117] UniqueID = 0x03040102 → 4 minimum functional units (8AI, Counter, 8DI, 8DO).
[0118] UniqueID = 0x00000101 → 2 minimum functional units (8DI, 8DO).
[0119] S150. Adapt the modular configuration structure of the industrial communication protocol according to the analysis result, and map the minimum functional unit to the protocol sub-module.
[0120] For the communication function of remote I / O, on the software, combine the modular or integrated product with the remote I / O communication protocol stack function and present it to the user in a componentized form. The user can enable or disable each component separately.
[0121] In a specific implementation:
[0122] 1. Profinet Protocol Adaptation:
[0123] In the Profinet protocol, there are concepts of Slot and Subslot, and the corresponding Profinet modules can be represented by Module and SubModule.
[0124] In the componentization solution of this application, the function module represented by the read UniqueID can correspond to the Profinet Module concept, and the minimum function unit can correspond to the SubModule concept. Software can be configured according to the Profinet configuration rules.
[0125] 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).
[0126] Map each minimum function unit to a SubModule under the Module. For example:
[0127] SubModule 1: 8DO minimum function unit (Slot 1), data address 0x1000 - 0x1001.
[0128] SubModule 2: 8DO minimum function unit (Slot2), data address 0x2000 - 0x2001.
[0129] In the Profinet protocol, each SubModule has corresponding parameter configuration (called Record). Through the Record, it is convenient to perform parameterized configuration on each minimum function unit, including enabling or disabling the minimum function unit module.
[0130] Configure parameters through the Record, including:
[0131] Enable status: Configure the enable / disable status of the SubModule through Record 0x8000:01.
[0132] Function parameters: Such as sampling rate (Record 0x8000:02), debounce time (Record 0x8000:03).
[0133] Configuration process: The user modifies the Record value through the TIA Portal, and the system synchronizes it to the remote IO module and updates the hardware configuration.
[0134] 2. EtherCAT Protocol Adaptation:
[0135] In the EtherCAT protocol, there are the concepts of Slot and Module. In the componentization solution of this application, the functional module represented by the read UniqueID can correspond to the Module concept of EtherCAT, and the corresponding data entity is created and configured according to the configuration rules of EtherCAT.
[0136] 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 station connects to the slave station, 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.
[0137] Map the functional module corresponding to the UniqueID to the Module of EtherCAT. For example, UniqueID = 0x03040102 (8DI + 8AI + 8AO + counter) is mapped to 4 independent Modules.
[0138] Dynamically adjust the PDO entries according to the enabled minimum functional unit. For example:
[0139] Enable the 8DI minimum functional unit: Add RxPDO 0x1600 to map the 8-channel input status.
[0140] Enable the 8AO minimum functional unit: Add TxPDO 0x1A00 to map the 8-channel output control.
[0141] Configure the parameters of the minimum functional unit through the CoE dictionary object, including the enable / disable status. The user modifies the CoE dictionary object through the EtherCAT master station tool, and the system updates the hardware configuration.
[0142] Optionally, the user scenario example is as follows:
[0143] Profinet scenario:
[0144] Configuration: Enable the 8DI minimum functional unit and set the debounce time to 10 ms.
[0145] Process: Modify the value of Record 0x8000:03 to 10, and the system updates the GPIO configuration and filters the jitter signal.
[0146] EtherCAT scenario:
[0147] Configuration: Enable the 8AO minimum functional unit and set the output voltage range to 0 - 10V.
[0148] Procedure: Modify the value of CoE 0x8000:02 to 0 - 10V, and the system updates the DAC chip configuration.
[0149] By mapping the minimum functional unit to the protocol sub-module and combining the Record of Profinet and the CoE configuration mechanism of EtherCAT, the efficient adaptation of the remote IO module to the industrial communication protocol is achieved, significantly improving the flexibility, real-time performance, and maintainability of the system.
[0150] For the Profinet protocol, map the functional module corresponding to the UniqueID to the Module of Profinet. For example, UniqueID = 0x00000101 (two 8DO minimum functional units) is mapped to 1 Module (Slot 1). 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. SubModule 2: 8DO minimum functional unit (Slot2), data address 0x2000 - 0x2001. And through the Record configuration parameters, parameter type:
[0151] Enable status: Configure the enable / disable status of the SubModule through Record 0x8000:01.
[0152] Functional parameters: such as sampling rate (Record 0x8000:02), debounce time (Record 0x8000:03).
[0153] Configuration process: The user modifies the Record value through the TIA Portal, and the system synchronizes it to the functional module of the remote IO and updates the hardware configuration.
[0154] In the specific implementation, it includes:
[0155] For the EtherCAT protocol, map the functional modules corresponding to the UniqueID to the EtherCAT Modules. For example, UniqueID = 0x03040102 (8DI + 8AI + 8AO + counter) is mapped to 4 independent Modules. Dynamically adjust the PDO entries according to the enabled minimum functional units. For example: Enable the 8DI minimum functional unit: Add RxPDO 0x1600 and map the 8-channel input status. Enable the 8AO minimum functional unit: Add TxPDO 0x1A00 and map the 8-channel output control. And configure the minimum functional unit parameters through the CoE dictionary object, that is, configure the enabled / disabled 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.
[0156] Optionally, a user scenario example:
[0157] 1. Profinet scenario
[0158] Configuration: Enable the 8DI minimum functional unit and set the debounce time to 10 ms.
[0159] Process: Modify the value of Record 0x8000:03 to 10, and the system updates the GPIO configuration and filters the jitter signal.
[0160] 2. EtherCAT scenario
[0161] Configuration: Enable the 8AO minimum functional unit and set the output voltage range to 0 - 10V.
[0162] Process: Modify the value of CoE 0x8000:02 to 0 - 10V, and the system updates the DAC chip configuration.
[0163] By mapping the minimum functional units to protocol sub-modules and combining the Profinet Record and EtherCAT CoE configuration mechanisms, the functional modules of remote IO are efficiently adapted to the industrial communication protocol, significantly improving the flexibility, real-time performance, and maintainability of the system.
[0164] S160. Receive user input configuration instructions and dynamically enable or disable the specified minimum functional units.
[0165] In a specific implementation manner, it includes:
[0166] Provide a visual configuration interface, and the user selects the minimum functional units by checking or dragging and dropping;
[0167] Generate the configuration instructions according to the user's selection, and the configuration instructions include the hardware ID of the minimum functional unit and the enabled or disabled status;
[0168] Write the configuration instruction to the parameter storage area corresponding to the industrial communication protocol;
[0169] Write the configuration instruction to the parameter storage area corresponding to the industrial protocol (Record of Profinet or CoE dictionary of EtherCAT).
[0170] Optionally, the configuration instruction includes but is not limited to various instruction forms such as parametric configuration and interface operation.
[0171] Optionally, develop a visualization configuration interface based on Web or desktop applications, which supports users to manage the functions of the minimum functional units through graphical operations. The interface mainly includes the following elements:
[0172] Module topology diagram: Display the hardware composition of the functional modules of the current remote IO in a tree structure or grid layout (such as Slot1: 8DI, Slot2: 8DO).
[0173] Function list: List all function types (such as digital input, analog output, counter, etc.) and current status (enabled / disabled) of the minimum functional units.
[0174] Operation controls: Provide interactive components such as check boxes, drag-and-drop areas, and slide switches to support users to intuitively select the enabled minimum functional units.
[0175] User interaction:
[0176] Check box method: The user clicks the check box corresponding to the minimum functional unit to switch its enabled status (such as checking the 8DI function of Slot1).
[0177] Drag-and-drop method: The user drags the minimum functional unit icon from the "not enabled" area to the "enabled" area, and the system automatically updates the configuration.
[0178] Batch operation: Support the user to select multiple minimum functional units and enable or disable them with one click.
[0179] Optionally, according to the user's selection, the system generates a configuration instruction containing the following information:
[0180] Hardware ID of the target minimum functional unit: Uniquely identify the type and location of the minimum functional unit (such as the 8DI minimum functional unit of Slot1, ID = 0x01).
[0181] Enabled / disabled status: A boolean value (True / False) represents the functional status of the minimum functional unit.
[0182] Additional parameters: Such as the sampling rate of the analog minimum functional unit, the debounce time of the digital minimum functional unit, etc.
[0183] Optionally, write to the industrial protocol parameter storage area
[0184] Profinet protocol:
[0185] Record data block: Write the configuration instructions to the corresponding Record area of the SubModule. For example:
[0186] Enable the 8DI minimum functional unit: Set the value of Record 0x8000:01 to True.
[0187] Configure the sampling rate: Set the value of Record 0x8000:02 to 10000 (10kHz).
[0188] Real-time update: Synchronize the Record data to the PLC through the PNIO protocol stack to trigger a hardware status change.
[0189] EtherCAT protocol:
[0190] CoE dictionary object: Write the configuration instructions to the corresponding sub-index of the CoE dictionary. For example:
[0191] Enable the 8DO minimum functional unit: Set the value of the 0x8000:01 sub-index to 1.
[0192] Configure the output range: Set the value of the 0x8000:02 sub-index to 0 - 10V.
[0193] PDO mapping update: Dynamically adjust the PDO mapping table according to the configuration to ensure data interaction is consistent with the hardware status.
[0194] Exception handling:
[0195] Write failure: If the target storage area is not writable (e.g., the minimum functional unit is offline), the system prompts an error and records a log.
[0196] Status readback: Read the value of the storage area after writing to verify whether the configuration takes effect.
[0197] Optionally, dynamically enable / disable the minimum functional unit:
[0198] Enable process:
[0199] Load the firmware driver of the minimum functional unit and initialize the hardware registers (such as ADC and DAC configurations).
[0200] Update the module configuration of the protocol stack (such as the SubModule list of Profinet or the PDO mapping of EtherCAT).
[0201] Start data acquisition and control tasks (such as periodically reading input status and responding to output instructions).
[0202] Shutdown process:
[0203] Stop the data acquisition and control tasks of the minimum functional unit.
[0204] Release the occupied protocol resources (such as the IO data area of Profinet or the PDO entries of EtherCAT).
[0205] Put the minimum functional unit into the low-power mode to reduce the system load.
[0206] Optionally, user scenario examples:
[0207] Scenario 1: Flexible configuration
[0208] The user disables the 8AO minimum functional unit to reduce power consumption. The system automatically releases the occupied communication bandwidth and writes the configuration to the Profinet Record.
[0209] Scenario 2: Real-time adjustment
[0210] The user enables the counter minimum functional unit and sets the trigger condition. The system dynamically updates the EtherCAT CoE dictionary to ensure the real-time nature of data interaction.
[0211] Through the above process, the dynamic configuration and management of the functions of the minimum functional unit of the remote IO function module are realized, significantly improving the flexibility and maintainability of the system. The user can dynamically adjust the functions of the minimum functional unit to meet diverse requirements. The delay between writing the configuration instruction and changing the hardware state is <10 ms, supporting multiple industrial protocols such as Profinet and EtherCAT, with strong adaptability.
[0212] S170. Run the industrial communication protocol based on the configuration result to achieve data interaction of the remote IO function module.
[0213] In a specific implementation, after the user completes the component-based configuration of the remote IO function module, the system will dynamically load and run the industrial communication protocol stack according to the configuration result 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 the specific implementation is as follows:
[0214] (1) Load protocol stacks such as Profinet and EtherCAT according to the configuration, and write the user configuration to the protocol storage area;
[0215] (2) Dynamically allocate memory buffers to optimize the communication cycle and bandwidth occupancy;
[0216] (3) Achieve efficient data interaction with the master station or other control devices through the protocol stack, including input data acquisition and output control distribution;
[0217] (4) Support hot plugging and exception handling to ensure continuous operation of the system.
[0218] The component implementation method of the functional module of the remote IO provided by the embodiments of the present disclosure splits the original functional module of the remote IO into multiple minimum functional units according to preset rules; designs independent hardware circuits for each of the minimum functional units, and the independent hardware circuits include shift registers for generating hardware IDs that identify the functions of the minimum functional units; combines the multiple minimum functional units into a new functional module of the remote IO according to the target form, and generates a unique identifier including the hardware IDs of all the minimum functional units in the new functional module of the remote IO by cascading the shift registers; reads the unique identifier, parses the function types and quantities of the minimum functional units to obtain a parsing result; adapts the modular configuration structure of the industrial communication protocol according to the parsing result, and maps all the minimum functional units to protocol sub-modules; receives a configuration instruction input by a user, and dynamically enables or disables the specified minimum functional units; runs the industrial communication protocol based on the configuration result to achieve data interaction of the new functional module of the remote IO. It realizes improving the hardware reuse rate, simplifying software adaptation, and supporting flexible combination.
[0219] On the basis of the above embodiments, the embodiments of the present disclosure also provide a component implementation device for the functional module of the remote IO, as Figure 3 shown. The component implementation device for the functional module of the remote IO includes:
[0220] A splitting module 310, configured to split the original functional module of the remote IO into multiple minimum functional units according to preset rules;
[0221] A design module 320, configured to design an independent hardware circuit for each of the minimum functional units, and the minimum functional unit includes a shift register for generating a hardware ID that identifies the function of the minimum functional unit;
[0222] A combining module 330, configured to combine the multiple minimum functional units into a new functional module of the remote IO according to the target form, and generate a unique identifier of the new functional module of the remote IO by cascading the shift registers;
[0223] An analysis module 340, configured to read the unique identifier, analyze the function types and quantities of the minimum functional units to obtain an analysis result;
[0224] An adaptation module 350, configured to adapt the modular configuration structure of the industrial communication protocol according to the analysis result, and map the minimum functional units to protocol sub-modules;
[0225] A configuration module 360, configured to receive a configuration instruction input by a user, and dynamically enable or disable a specified one of the minimum functional units;
[0226] A communication module 370, configured to run an industrial communication protocol based on a configuration result, and implement data interaction of functional modules of a new remote IO.
[0227] In a specific embodiment, the splitting module 330 is specifically configured to split the functional module of the original remote IO into a plurality of the minimum functional units for different types of sensors; for functional groups that can work independently in the same type of sensor, split them into a plurality of the minimum functional units by taking the smallest number of groups.
[0228] In a specific embodiment, the combining module 330 is specifically configured to, when arranging physically, first place the minimum functional units with input functions, then place the minimum functional units with output functions, then place the minimum functional units with digital quantity functions, then place the minimum functional units with analog quantity functions, and finally place the minimum functional units with other functions; the power supply and communication interfaces of each minimum functional unit are uniformly connected through a combined motherboard, and the minimum functional units are fixed through a card slot type plug-in structure.
[0229] In a specific embodiment, the parsing module 340 is specifically configured 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 load 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 a plurality of sub-IDs by bytes, and non-zero sub-IDs represent the functional types of valid minimum functional units.
[0230] In a specific embodiment, the adaptation module 350 is specifically configured to, for the Profinet protocol, map the functional module corresponding to the unique identifier to a Module, 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.
[0231] In a specific embodiment, the configuration module 360 is specifically configured to provide a visual configuration interface, and a user selects the minimum functional units by ticking or dragging; generate the configuration instruction according to the user selection, where the configuration instruction includes the hardware ID and the enabled or disabled state of the minimum functional unit; write the configuration instruction into the parameter storage area corresponding to the industrial communication protocol.
[0232] In a specific embodiment, the cascading manner of the shift register is as follows:
[0233] Connect the output end of the shift register of the first minimum functional unit to the input end of the shift register of the next minimum functional unit to form a chain cascading structure;
[0234] The shift registers of all the minimum functional units share the same set of control signals, and the control signals include a clock signal, an enable signal, and a parallel load signal;
[0235] Take the output end of the shift register of the last-stage minimum functional unit as the reading point of the unique identifier.
[0236] The component implementation device of the function module of the remote IO provided by the embodiments of the present disclosure realizes the improvement of hardware reuse rate, simplifies software adaptation, and supports flexible combination.
[0237] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial descriptions of the method embodiments. The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0238] The following uses three specific embodiments to specifically illustrate the component implementation method of the function module of the remote IO of the present application.
[0239] Example 1: 16DO module (composed of 2 groups of 8DO)
[0240] 1. Hardware splitting and minimum functional unit design
[0241] Splitting principle: Split the 16-channel digital output (16DO) module into two independent 8DO minimum functional units, and each minimum functional unit processes 8 outputs.
[0242] Minimum functional unit design:
[0243] Minimum functional unit 1 (8DO):
[0244] Hardware ID = 0x01 (binary 00000001), using a 74HC165D shift register, and the input end is connected to a fixed coding circuit.
[0245] The output drive circuit uses the ULN2003 Darlington array, and each path is equipped with an LED status indicator.
[0246] Minimum functional unit 2 (8DO):
[0247] The hardware ID = 0x01 (the same as the minimum functional unit 1), but the logical functions are distinguished by the physical slot positions (Slot 1 and Slot 2) on the motherboard.
[0248] An overcurrent protection circuit is added, supporting a maximum load current of 2A per path.
[0249] 2. Hardware combination and UniqueID generation
[0250] Structural combination:
[0251] Insert the minimum functional unit 1 and the minimum functional unit 2 into Slot 1 and Slot 2 of the blade motherboard, and arrange them according to the digital output priority.
[0252] The minimum functional units are connected through a cascaded shift register: Q7 terminal of the minimum functional unit 1 → DS terminal of the minimum functional unit 2.
[0253] UniqueID generation process:
[0254] Pull down the CE enable signal to activate the CLK clock;
[0255] Pull down the PL signal to load the hardware ID (minimum functional unit 1 = 0x01, minimum functional unit 2 = 0x01);
[0256] Input 32 rising edges of CP, and read the UniqueID = 0x00000101 output by the last-stage Q7.
[0257] 3. Software parsing and protocol adaptation
[0258] Parsing result: The UniqueID is split into 4 bytes (0x00, 0x00, 0x01, 0x01), and is recognized as two 8DO sub-modules.
[0259] Profinet adaptation:
[0260] It is mapped to 1 Module (Slot 1), which contains two SubModules (Sub1 and Sub2).
[0261] The user configures the SubModule parameters through the TIA Portal, for example, disables Sub2 to turn off the 8-way output on the right.
[0262] EtherCAT adaptation:
[0263] Mapped to two independent Modules (Module 1 and Module 2), and the output enable bit is set through the CoE dictionary.
[0264] 4. User Configuration and Performance Testing
[0265] Scenario 1: All functions enabled
[0266] All 16 channels of output are normal, the total load current is 3.2 A (0.2 A per channel), and the communication cycle is 2 ms.
[0267] Scenario 2: Disable the minimum functional unit 2
[0268] The 8 channels of output on the right side are turned off, the power consumption is reduced by 48%, and the communication cycle is shortened to 1.5 ms.
[0269] Example 2: 8DIO Module (consisting of 1 group of 8DI and 1 group of 8DO)
[0270] 1. Hardware Splitting and Design of Minimum Functional Unit
[0271] Splitting principle: Split the 8-channel digital input / output (8DIO) module into two independent minimum functional units, 8DI and 8DO.
[0272] Design of minimum functional unit:
[0273] Minimum functional unit 1 (8DI):
[0274] Hardware ID = 0x02, the input circuit uses optocoupler isolation (TLP281-4), and supports 24V industrial level input.
[0275] The input terminal of 74HC165D is connected to the ID coding circuit (A = 1, B = 0, and the rest are fixed to ground).
[0276] Minimum functional unit 2 (8DO):
[0277] Hardware ID = 0x03, the output circuit uses MOSFET drive (IRF540N), and supports high-speed switching (response time < 1 ms).
[0278] 2. Hardware Combination and UniqueID Generation
[0279] Structural combination:
[0280] According to the "input first" rule, place the 8DI minimum functional unit (Slot 1) on the left side and the 8DO minimum functional unit (Slot2) on the right side.
[0281] Cascaded connection: Q7 terminal of the 8DI minimum functional unit → DS terminal of the 8DO minimum functional unit.
[0282] UniqueID Generation Process:
[0283] Load the hardware ID (8DI = 0x02, 8DO = 0x03).
[0284] Read UniqueID = 0x00000203.
[0285] 3. Software Parsing and Protocol Adaptation
[0286] Parsing result: Identify Slot 1 as 8DI (0x02) and Slot 2 as 8DO (0x03).
[0287] Profinet Adaptation:
[0288] Map to 1 Module (Slot 1), which contains two SubModules:
[0289] SubModule 1 (8DI): Data address 0x1000, length 1 byte (8-bit input status).
[0290] SubModule 2 (8DO): Data address 0x2000, length 1 byte (8-bit output control).
[0291] EtherCAT Adaptation:
[0292] Allocate independent PDOs (Process Data Objects) for 8DI and 8DO respectively:
[0293] RxPDO (input): Map the 8DI status to 0x1600.
[0294] TxPDO (output): Map the 8DO control to 0x1A00.
[0295] 4. User Configuration and Function Verification
[0296] Scenario 1: Synchronization of Input Acquisition and Output Control
[0297] After the input signal changes, the output response delay < 2ms, meeting the real-time control requirements.
[0298] Scenario 2: Disable the 8DO function
[0299] The minimum functional unit of 8DO enters the low-power mode, and the system only monitors the 8DI input. The power consumption drops from 5W to 2.8W.
[0300] Example 3: 8AIO and Counter Hybrid Module (composed of 4 minimum functional units)
[0301] 1. Hardware Split and Design of Minimum Functional Unit
[0302] Split principle:
[0303] The 8-channel analog input / output (8AIO) is split into 8AI (ID = 0x04) and 8AO (ID = 0x05).
[0304] The counter module is split into two minimum functional units:
[0305] Minimum functional unit 3 (8DI): Hardware ID = 0x02, collecting 8-channel digital inputs.
[0306] Minimum functional unit 4 (counter): Hardware ID = 0x06, supporting 2 high-speed counters (maximum frequency 1MHz).
[0307] 2. Hardware combination and UniqueID generation
[0308] Structural combination:
[0309] Slot 1: 8DI minimum functional unit (ID = 0x02).
[0310] Slot 2: 8AI minimum functional unit (ID = 0x04).
[0311] Slot 3: 8AO minimum functional unit (ID = 0x05).
[0312] Slot 4: Counter minimum functional unit (ID = 0x06).
[0313] UniqueID generation:
[0314] The cascaded read result is 0x02040506.
[0315] 3. Software parsing and protocol adaptation
[0316] Parsing result:
[0317] Slot 1: 8DI (0x02)
[0318] Slot 2: 8AI (0x04)
[0319] Slot 3: 8AO (0x05)
[0320] Slot 4: Counter (0x06)
[0321] Profinet adaptation:
[0322] Mapped to 1 Module (Slot 1), containing 4 SubModules:
[0323] SubModule 1 (8DI): Configured for input monitoring.
[0324] SubModule 2 (8AI): Set the sampling rate to 10 kHz.
[0325] SubModule 3 (8AO): Configure the output voltage range from 0 to 10 V.
[0326] SubModule 4 (Counter): Set the counting mode to cumulative addition.
[0327] EtherCAT Adaptation:
[0328] Create independent Modules for each minimum functional unit:
[0329] Module 1 (8DI): Map to PDO 0x1600.
[0330] Module 2 (8AI): Configure the filtering parameters (low-pass filter, cut-off frequency 1 kHz) in the CoE dictionary.
[0331] Module 4 (Counter): Set the trigger condition (valid for rising edge).
[0332] 4. User Configuration and Real-time Optimization
[0333] Scenario 1: Multi-module Collaboration
[0334] The 8AI acquires temperature signals, the 8DO controls the heater, and the counter counts the device operation cycles.
[0335] The system period is 4 ms and the CPU load is 65%.
[0336] Scenario 2: Disable Non-critical Modules
[0337] Turn off the 8AO and counter modules, the system period is shortened to 2.5 ms, and the CPU load is reduced to 42%.
[0338] Through the above examples, the complete processes in aspects such as the hardware design, software parsing, user configuration, and protocol operation of this application are demonstrated, reflecting the significant advantages of this application in improving the hardware reuse rate, simplifying software adaptation, and supporting flexible combination, and can quickly respond to the requirements of diverse industrial scenarios.
[0339] The embodiment of this application also provides a computer device. For details, please refer to Figure 4 , Figure 4 which is the basic structural block diagram of the computer device in this embodiment.
[0340] The computer device includes a memory 410 and a processor 420 that are communicatively connected to each other via a system bus. It should be noted that only the computer device with components 410 - 420 is shown in the figure, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Among them, those skilled in the art of the present technology 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 (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0341] The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer device can interact with the user through a keyboard, a mouse, a remote control, a touchpad or a voice control device and other means.
[0342] The memory 410 includes at least one type of readable storage medium. The readable storage medium includes non-volatile memory or volatile memory, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. The RAM can include static RAM or dynamic RAM. In some embodiments, the memory 410 can be an internal storage unit of the computer device, such as the hard disk or memory of the computer device. In other embodiments, the memory 410 can also be an external storage device of the computer device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device. Of course, the memory 410 can also include both the internal storage unit and the external storage device of the computer 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 can also be used to temporarily store various data that have been output or will be output.
[0343] The processor 420 is generally used to execute the overall operations of the computer device. In this embodiment, the memory 410 is used to store program code or instructions. The program code includes computer operation instructions. The processor 420 is used to execute the program code or instructions stored in the memory 410 or process data, such as running the program code of the above method.
[0344] In this text, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. This bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0345] Another embodiment of the present application further provides a computer-readable medium, which can be a computer-readable signal medium or a computer-readable storage medium. The processor in the computer reads the computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or the combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or the combination of blocks in the block diagram.
[0346] The computer-readable medium includes but is not limited to electronic, magnetic, optical, electromagnetic, infrared memories or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing. The memory is used to store program code or instructions, and the program code includes computer operation instructions. The processor is used to execute the program code or instructions of the above method stored in the memory.
[0347] For the definitions of the memory and the processor, reference can be made to the description of the foregoing computer device embodiments, which will not be elaborated here.
[0348] In several embodiments provided by 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 illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, 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 displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in an electrical, mechanical, or other form.
[0349] In each embodiment of the present application, each functional unit or module can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0350] When 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 this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0351] Unless the context clearly indicates otherwise, the singular form of the words used in this specification and the appended claims includes the plural, and vice versa. Thus, when referring to the singular, the plural of the corresponding term is generally included. Similarly, the terms "comprising" and "including" will be interpreted as including rather than exclusively. Likewise, the term "including" and "or" should be interpreted as inclusive, unless such an interpretation is explicitly prohibited in this specification. Where the term "example" is used in this specification, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or extensive.
[0352] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that the various aspects of this application can be implemented alone or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are for illustrative purposes only and are not intended to limit the scope of this application.
[0353] The above has described several embodiments of the present disclosure in detail. However, obviously, 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 appended 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, specifically comprising: placing the minimum functional units with different functions in sequence; 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 includes: mapping the function module corresponding to the unique identifier to the module Module of the industrial communication protocol, mapping all minimum functional units to protocol submodules SubModule, and configuring their parameters; or, mapping the function module corresponding to the unique identifier to the module Module of the industrial communication protocol, and configuring its parameters; 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 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 includes: For the Profinet protocol, the function module corresponding to the unique identifier is mapped to the Module corresponding to the Profinet protocol, the minimum functional unit is mapped to the SubModule, and its parameters are configured through the Record data structure; For the EtherCAT protocol, the function module corresponding to the unique identifier is mapped to the Module corresponding to the EtherCAT protocol, and its parameters are configured through the 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: Splitting module, used to split the original remote IO function module into multiple minimum function units; 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 combination module, used to combine the plurality of the minimum functional units into a functional module of a new remote IO according to a target form, specifically comprising: placing the minimum functional units with different functions in sequence, 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, including: mapping the function module corresponding to the unique identifier to the module Module of the industrial communication protocol, mapping the minimum functional unit to the protocol submodule SubModule, and configuring its parameters; or, mapping the function module corresponding to the unique identifier to the module Module of the industrial communication protocol, and configuring its parameters; 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