IO module and control method thereof

By configuring port 0 and port 1 as standard communication interfaces, cascade connection and flexible power supply management of IO modules are achieved, solving the problem of existing IO module cascade relying on proprietary protocols, improving compatibility and versatility, and expanding the application scenarios of the modules.

CN120652887APending Publication Date: 2025-09-16XIAN HUICHUAN TECHNOLOGY R&D CENTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510859297.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-25
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

The existing IO module cascading method relies on proprietary protocols, resulting in poor compatibility and versatility.

Method used

Port 0 is configured as a slave communication interface for communicating with the upper-level master station, and port 1 is designed as a cascade communication interface to support standard communication protocols. Through flexible power supply switching between port 0 and port 1, cascade connection and power supply management of multi-level modules are realized.

Benefits of technology

It improves the compatibility and versatility of the IO module, expands the module's load capacity, adapts to diverse application scenarios, and avoids equipment failures caused by insufficient power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120652887A_ABST
    Figure CN120652887A_ABST
Patent Text Reader

Abstract

The IO module comprises a port 0 and a slave station communication interface configured to communicate with a superior master station, the port 0 is connected with a slave station communication physical layer, a system side and an actuator side, and the port 0 is used for supplying power to the system side and / or the actuator side; the port 1 is connected with the port 0 and is configured to be a cascade communication interface communicating with a lower-level IO module, the port 1 is connected with the port 0, the master station communication physical layer and the actuator side, the port 1 is used for transmitting power supplied by the port 0 to the system side and / or the actuator side to the lower-level IO module, and the port 1 is used for being connected with an external power source to supply power to the actuator side. Therefore, the standard communication protocol of the master station and the slave station can be used for replacing a conventional cascaded special protocol between the ports 1, and the compatibility and universality of the IO module can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of industrial automation technology, and in particular to an IO module and a control method thereof. Background Art

[0002] Currently, in the field of industrial automation technology, IO modules typically have Port 0 and Port 1. Port 0 and Port 1 are the core interfaces in the module design. Port 0 serves as the communication port, used for communication between the master station and the IO module to transmit data and control signals. Port 1 serves as the power and expansion port, used to connect to an external power supply to enhance power supply capacity and support cascading expansion of other IO modules. Existing IO modules can connect to the master station through Port 0 to communicate with the master station, realizing the communication functions of ordinary IO modules. Remote IO modules can also connect to an external power supply through Port 1, increasing the module's load capacity through external power supply and achieving high-load functions. When the customer site requires cascading expansion of IO points, the IO module can also connect to Port 1 of another IO module through Port 1 to realize the module's cascading expansion of IO points.

[0003] However, when existing IO modules implement the cascade function, they are connected through port 1 of two adjacent IO modules. This method can only use the proprietary protocols developed by each manufacturer and cannot be applied to standard IO module communication protocols, resulting in poor compatibility and versatility. Summary of the Invention

[0004] An embodiment of the present invention provides an IO module and a control method thereof to solve the problem that the existing IO module cascading method relies on a proprietary protocol, resulting in poor compatibility and poor versatility.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following aspects:

[0006] In a first aspect, the present invention provides an IO module, comprising:

[0007] Port 0 is configured as a slave communication interface for communicating with the upper-level master station. Port 0 is connected to the slave communication physical layer, the system side, and the actuator side, respectively. Port 0 is used to supply power to the system side and / or the actuator side.

[0008] Port 1 is connected to port 0 and is configured as a cascade communication interface for communicating with a lower-level IO module. Port 1 is respectively connected to port 0, the master station communication physical layer, and the actuator side. Port 1 is used to transmit the power supply from port 0 to the system side and / or the actuator side to the lower-level IO module.

[0009] Optionally, the port 1 is used to access an external power supply to power the actuator side.

[0010] Optionally, also include:

[0011] A first switch is provided between the port 0 and the actuator side, and the first switch is used to turn on or off the power supply from the port 0 to the actuator side;

[0012] The second switch is provided between the port 1 and the actuator side, and is used to turn on or off the power supply from the port 1 to the actuator side.

[0013] Optionally, also include:

[0014] A system-side power supply protection circuit, wherein the port 0 is connected to the system side through the system-side power supply protection circuit;

[0015] and / or,

[0016] an actuator-side power supply primary protection circuit and an actuator-side power supply secondary protection circuit, wherein the port 0 is connected to the actuator side through the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit in sequence, and the first switch is provided between the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit;

[0017] The port 1 is connected to the actuator side through the actuator side power supply secondary protection circuit, and the second switch is provided between the port 1 and the actuator side power supply secondary protection circuit.

[0018] Optionally, it further includes: an actuator-side three-times power supply protection circuit, and the actuator-side three-times power supply protection circuit is arranged between the port 1 and the second switch.

[0019] Optionally, the port 1 is connected to the port 0 of the lower-level IO module, and is used to transmit the power supply from the port 0 to the actuator side to the lower-level IO module when the first switch and the second switch are both closed, and to supply power to the actuator side through the external power supply when the second switch is closed and the first switch is open.

[0020] In a second aspect, the present invention provides a method for controlling an IO module, the method being applied to the IO module described in the first aspect, the method comprising:

[0021] Determine whether the current power supply mode of the IO module meets the high-power load working conditions;

[0022] If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access high-power load equipment;

[0023] If not, the current power supply mode of the IO module is switched from the high-power load mode to the low-power load mode, and it is re-determined whether the current power supply mode meets the low-power load working condition of the IO module;

[0024] If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access a low-power load device.

[0025] Optionally, determining whether the current power supply mode of the IO module meets the high-power load working condition includes:

[0026] Controlling the second switch in the IO module to close and the first switch to open;

[0027] Detecting whether the current power state of the actuator side meets a first preset condition;

[0028] If so, it is determined that the current power supply mode of the IO module meets the high-power load working conditions;

[0029] If not, switching the current power supply mode of the IO module from the high-power load mode to the low-power load mode, and re-determining whether the current power supply mode meets the low-power load working condition of the IO module includes:

[0030] controlling the first switch to be closed;

[0031] Detecting whether the current power state of the actuator side meets a second preset condition;

[0032] If so, it is determined that the current power supply mode of the IO module meets the low-power load working condition.

[0033] Optionally, if the condition is not satisfied, switching the current power supply mode of the IO module from the high-power load mode to the low-power load mode, and re-determining whether the current power supply mode meets the low-power load working condition of the IO module, the method further includes:

[0034] If not, the output function of the IO module is restricted and the diagnostic information of the IO module is reported.

[0035] Optionally, if the conditions are met, retaining the output and input functions of the IO module and allowing the actuator to access a high-power load device, the method further includes:

[0036] Establishing a communication connection between the IO module and a lower-level IO module cascaded with the IO module;

[0037] Controlling the second switch in the lower-level IO module to close and the first switch to open;

[0038] Detecting whether a current power state of the actuator side of the lower-level IO module meets a first preset condition;

[0039] If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a high-power load device;

[0040] If not, controlling the first switch of the IO module and the lower-level IO module to close, and re-detecting whether the current power supply status of the actuator side of the lower-level IO module meets the second preset condition;

[0041] If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device;

[0042] If not, the output function of the lower-level IO module is restricted, and the diagnostic information of the lower-level IO module is reported.

[0043] Optionally, if the conditions are met, retaining the output and input functions of the IO module and allowing the actuator to access a low-power load device, the method further includes:

[0044] Establishing a communication connection between the IO module and a lower-level IO module cascaded with the IO module;

[0045] Controlling the second switch in the lower-level IO module to close and the first switch to open;

[0046] Detecting whether a current power state of the actuator side of the lower-level IO module meets a first preset condition;

[0047] If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side is allowed to access high-power load equipment;

[0048] If not, controlling the first switch of the lower-level IO module to close, and re-detecting whether the current power supply status of the actuator side of the lower-level IO module meets the second preset condition;

[0049] If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device;

[0050] If not, the output function of the lower-level IO module is restricted, and the diagnostic information of the lower-level IO module is reported.

[0051] Optionally, establishing a communication connection between the IO module and a lower-level IO module cascaded with the IO module includes:

[0052] Obtaining identification information of the lower-level IO modules to which the IO module is cascaded;

[0053] Determining whether the identification information matches preset information;

[0054] If they match, a communication connection between the IO module and the lower-level IO module is established.

[0055] In a third aspect, the present invention provides an IO module control device, the IO module control device comprising:

[0056] a judgment module, configured to judge whether the current power supply mode of the IO module satisfies the high-power load working condition; and to judge whether the current power supply mode of the IO module satisfies the low-power load working condition of the IO module;

[0057] a control module configured to retain the output and input functions of the IO module and allow the actuator side to access a high-power load device when the current power supply mode meets the high-power load operating conditions of the IO module; to switch the current power supply mode of the IO module from a high-power load mode to a low-power load mode when the current power supply mode does not meet the high-power load operating conditions of the IO module; and to retain the output and input functions of the IO module and allow the actuator side to access a low-power load device when the current power supply mode meets the low-power load operating conditions of the IO module.

[0058] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of a method for controlling an IO module as described in the second aspect are implemented.

[0059] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of an IO module as described in the second aspect are implemented.

[0060] In a sixth aspect, an embodiment of the present invention provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of a method for controlling an IO module as described in the second aspect.

[0061] The present invention configures Port 0 as a slave communication interface for communicating with the upper-level master station, and designs Port 1 as a cascade communication interface to connect to Port 0 of the lower-level IO module. As the master communication port, Port 0 generally follows a unified protocol standard. Therefore, devices connected to Port 0 can use the same communication protocol for data exchange, rather than relying on proprietary protocols customized by each manufacturer. As a result, the standard communication protocol between the master and slave stations can replace the proprietary protocol for cascading between Port 1, thereby improving the compatibility and versatility of the IO module.

[0062] The present invention also offers the following technical benefits: Port 0 not only transmits data but also provides power to local actuators (such as relays and sensors); Port 1 transfers power from Port 0 to lower-level modules, effectively enabling cascading of I / O modules. Overall, this improves the versatility, scalability, and application flexibility of I / O modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:

[0064] Figure 1 A circuit structure block diagram of an IO module provided according to an embodiment of the present invention is shown;

[0065] Figure 2 A circuit structure block diagram of an IO module provided according to an embodiment of the present invention is shown;

[0066] Figure 3 A circuit structure block diagram of an IO module provided according to an embodiment of the present invention is shown;

[0067] Figure 4 A schematic diagram of ports of an IO module according to an embodiment of the present invention is shown;

[0068] Figure 5 A schematic diagram showing an IO module provided by an embodiment of the present invention that can cascade multiple modules of the same type to expand the number of IO points;

[0069] Figure 6 A schematic diagram showing an IO module provided according to an embodiment of the present invention in cascade mode, in which the actuator power supply of the lower-level module can be provided by an independent external power supply;

[0070] Figure 7 A flow chart of a method for controlling an IO module according to an embodiment of the present invention is shown;

[0071] Figure 8 A flow chart of a method for controlling an IO module according to an embodiment of the present invention is shown;

[0072] Figure 9 A flow chart of a method for controlling an IO module according to an embodiment of the present invention is shown;

[0073] Figure 10 A flow chart of a method for controlling an IO module according to an embodiment of the present invention is shown;

[0074] Figure 11 A structural block diagram of a control device for an IO module provided in an embodiment of the present invention is shown;

[0075] Figure 12 This is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0076] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0077] Figure 1 FIG. 4 shows a structural block diagram of an IO module provided according to an embodiment of the present invention. Figure 1 Shown, including:

[0078] Port 0 is configured as a slave communication interface for communicating with the upper-level master station. Port 0 is connected to the slave communication physical layer, the system side, and the actuator side respectively. Port 0 is used to supply power to the system side and / or the actuator side.

[0079] Port 1 is connected to port 0 and is configured as a cascade communication interface for communicating with the lower-level IO module. Port 1 is connected to port 0, the master station communication physical layer, and the actuator side respectively. Port 1 is used to transmit the power supply from port 0 to the system side and / or actuator side to the lower-level IO module.

[0080] It's important to note that Port 0 is configured as the slave communication interface for communicating with the upper-level master. It's responsible for exchanging data with the master, ensuring efficient information transfer. Port 0 is connected to the slave communication physical layer, the system side, and the actuator side. The system side refers to the module's system operations, such as the power supply for the MCU (Microcontroller Unit) and the communication chip, while the actuator side refers to the power supply for the DO (Digital Output) and DI (Digital Input). This connection method allows Port 0 to handle both data communication and power supply. Port 0 is not only used for data transmission but also provides power to the system and actuator sides. This allows Port 0 to provide the necessary power to connected devices, ensuring their proper operation.

[0081] Port 1, connected to Port 0, functions as a cascade communication interface for communicating with lower-level I / O modules. It connects to Port 0 of a lower-level I / O module to enable cascade connections between multiple I / O modules. Port 1 connects to the master communication physical layer and the actuator side, effectively transmitting data and control signals to lower-level I / O modules. In addition to data transmission, Port 1 also transmits power from Port 0 to the system and / or actuator sides to lower-level I / O modules.

[0082] In other words, Port 0 is configured as a slave communication interface for point-to-point / bus communication, responsible for communicating with the upper-level master station, while also providing system-side power supply and optional actuator-side power input. Port 1 is configured as a cascade communication interface for point-to-point / bus communication, supporting communication cascades with lower-level modules and having the following functions: transmitting the system power supply and actuator power supply from Port 0 to the lower-level modules.

[0083] In summary, by configuring port 0 as a slave communication interface for communicating with the upper-level master station, and designing port 1 as a cascade communication interface to connect to port 0 of the lower-level module, port 0, as the main communication port, usually follows a unified protocol standard. Therefore, devices connected to port 0 can use the same communication protocol for data exchange, and no longer rely on proprietary protocols customized by each manufacturer. Therefore, the standard communication protocol between the master station and the slave station can be used to replace the proprietary protocol for the traditional cascade between port 1, which can improve the compatibility and versatility of the IO module.

[0084] In one possible implementation, port 1 is used to connect to an external power source to power the actuator. That is, port 1 allows access to an external power source to provide additional power to the actuator, enhancing the module's load capacity and addressing high-power load requirements.

[0085] In one possible implementation, Figure 2 As shown, it also includes:

[0086] First switch ( Figure 2 S0 in the figure is provided between port 0 and the actuator side, and the first switch is used to turn on or off the power supply from port 0 to the actuator side;

[0087] The second switch ( Figure 2 S1 in the figure) is provided between port 1 and the actuator side, and the second switch is used to turn on or off the power supply from port 1 to the actuator side.

[0088] It's important to note that the first switch, located between Port 0 and the actuator, primarily controls the power supply from Port 0 to the actuator. Closing the first switch allows power from Port 0 to be transferred to the actuator, ensuring the connected actuator receives the necessary power for operation. The user can choose whether to close the first switch based on their needs. When closed, Port 0's power supply is activated, providing power to the actuator. Conversely, if the first switch is open, the actuator loses power from Port 0.

[0089] The second switch, located between port 1 and the actuator, controls the power supply from port 1 to the actuator. Closing the second switch allows port 1 to deliver power to the actuator, providing the necessary electrical support. Users can adjust the state of the second switch based on their needs. When closed, port 1's power supply is activated, and the actuator receives power from port 1 (from an external power source). If the second switch is open, the actuator receives no power from port 1.

[0090] By configuring the first and second switches, the system can flexibly control the power source for the actuator. Users can choose to draw power from either port 0 or port 1, optimizing resource utilization based on different application scenarios and needs. Furthermore, when the second switch is closed, powering the actuator from an external power source, the first switch can be disconnected to prevent current from flowing to port 0 and minimizing the risk of burnout.

[0091] In one possible implementation, Figure 3 As shown, it also includes:

[0092] System side power supply protection circuit, port 0 is connected to the system side through the system side power supply protection circuit;

[0093] and / or,

[0094] An actuator-side power supply primary protection circuit and an actuator-side power supply secondary protection circuit, wherein port 0 is connected to the actuator side through the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit in sequence, and the first switch is provided between the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit;

[0095] The port 1 is connected to the actuator side through the actuator side power supply secondary protection circuit, and the second switch is provided between the port 1 and the actuator side power supply secondary protection circuit.

[0096] It should be noted that port 0 is connected to the system side through a system-side power protection circuit. This system-side power protection circuit primarily protects the power supplied from port 0 to the system side, preventing damage to the system due to overcurrent, short circuits, or other electrical faults. This system-side power protection circuit typically includes components such as fuses and overvoltage protectors to ensure safe and stable system operation.

[0097] Port 0 is connected to the actuator side through the primary protection circuit and the secondary protection circuit. The primary protection circuit provides primary protection on the actuator side, typically preventing large current surges or transient voltages. The secondary protection circuit provides further protection, ensuring that potential electrical faults can still prevent damage to the actuator even if the primary protection circuit fails to provide complete protection. A first switch is located between the primary and secondary protection circuits. When the first switch is closed, the current output from port 0 flows through the primary and secondary protection circuits to the actuator side. When the first switch is open, port 0 cannot supply power to the actuator side.

[0098] Port 1 is connected to the actuator side through the actuator side power supply secondary protection circuit. The actuator side power supply secondary protection circuit can prevent circuit damage caused by excessive current when port 1 supplies power to the actuator side.

[0099] In a possible implementation, the device further includes: an actuator-side tertiary power supply protection circuit, which is arranged between the port 1 and the second switch.

[0100] It's important to note that the actuator-side tertiary power protection circuit, located between port 1 and the second switch, specifically protects the external power input path. When external power is connected through port 1, the actuator-side tertiary power protection circuit performs a final layer of surge filtering and abnormal voltage interception before power enters the second switch, preventing circuit damage and improving circuit stability.

[0101] In one possible implementation, port 1 is connected to port 0 of a lower-level IO module and is used to transmit the power supplied from port 0 to the actuator side to the lower-level IO module when both the first switch and the second switch are closed, and to supply power to the actuator side through an external power supply when the second switch is closed and the first switch is open.

[0102] It should be noted that port 1 can achieve flexible power supply through the coordinated control of two switches (the first switch and the second switch). When the first switch and the second switch are turned on at the same time, the device not only powers its own actuator through the power supply of port 0, but also transmits power to the lower-level IO module through port 1, forming a series power supply chain; if the first switch is disconnected and the second switch remains on, the external power supply can directly power the actuator through port 1. In this way, port 0 not only transmits data, but also supplies power to the local actuator side (such as relays and sensors); port 1 transmits the power supply of port 0 to the lower-level module, and supports direct connection of external power to the actuator side to meet the needs of high-power loads. The power supply source (internal cascade power supply or external power supply) can be selected by switching the switch. The power supply method of the actuator side can be flexibly selected according to actual needs to adapt to various scenarios.

[0103] It should be noted that the IO module also includes: ports 2 to 9 (such as Figure 4 As shown): Digital IO interface, connected to field actuators or sensors. This has the following technical effects: When the power demand of the customer's field actuator exceeds the power supply capacity of the master station, the actuator side (ports 2 to 9) can be directly powered by the external power supply through port 1, without relying on the power supply of the master station, significantly improving the load capacity. Multiple modules of the same type can be cascaded through port 1 to expand the number of IO points (such as Figure 5 As shown), and in cascade mode, the actuator power supply of the lower module can be transmitted by the upper module or an independent external power supply (such as Figure 6 (as shown) to avoid power supply attenuation caused by cascading.

[0104] It's important to note that the actuator-side power supply can be intelligently switched (input from port 0 or port 1) to adapt to different scenarios. For example, when operating a single module, port 0 is prioritized for power supply; in cascaded or high-power scenarios, power is switched to port 1 for external power. This allows high-power devices such as industrial heaters and high-power motors to be directly driven by an external power supply via port 1. In automated production lines, cascading allows for rapid expansion of the number of I / O modules without interfering with each other's power supply.

[0105] In summary, the present invention optimizes the cascade design of the IO module. Through the flexible configuration of port 0 and port 1, it achieves the following effects: allowing access to an external power supply through port 1, expanding the module's load capacity to meet high-power requirements; controlling the power supply path through the switch, flexibly selecting the power supply method on the actuator side to adapt to diverse scenarios. Overall, it takes into account versatility, scalability, and application flexibility, and overcomes the limitations of traditional cascades.

[0106] Figure 7 FIG. 1 shows a flow chart of a method for controlling an IO module according to an embodiment of the present invention. Figure 7 As shown, the method includes:

[0107] Step S701: Determine whether the current power supply mode of the IO module meets the high-power load working conditions; if yes, execute step S702; if not, execute step S703;

[0108] Step S702: retain the output and input functions of the IO module and allow the actuator side to access high-power load equipment;

[0109] Step S703: Switch the current power supply mode of the IO module from the high-power load mode to the low-power load mode;

[0110] Step S704: re-determine whether the current power supply mode meets the low-power load working conditions of the IO module; if yes, execute step S705;

[0111] Step S705: retain the output and input functions of the IO module, and allow the actuator side to access a low-power load device.

[0112] It should be noted that the IO module can automatically determine whether the current power supply mode can support the operation of high-power loads. When a high-power load device (such as a large motor) needs to be connected, it will first check whether the voltage and current of the current power supply line are stable enough. For example, it will try to use an external dedicated power supply (connected through port 1). If sufficient power is detected, the output and input functions of the IO module will be retained to keep all control functions normal, and the actuator side will be allowed to connect high-power load devices to allow high-power load devices to be connected and work. However, if it is found that the external power supply is insufficient (such as unstable voltage or insufficient power), the IO module will immediately switch back to low-power load mode (powered through port 0) and automatically reduce the power supply scale. If the current power supply mode meets the low-power load working conditions of the IO module, it will allow the connection of low-power devices (such as sensors or indicator lights).

[0113] In summary, the module prioritizes external power. If sufficient power is available, it supports high-power loads. If insufficient, it automatically switches back to the module's internal power supply to ensure normal operation of low-power devices. This allows for real-time power status monitoring to prevent device failures caused by insufficient power. It also automatically matches high- and low-power loads, expanding the use cases of the I / O module.

[0114] In one possible implementation, determining whether a current power supply mode of the IO module meets the high-power load operating condition includes: controlling a second switch in the IO module to close and a first switch to open; detecting whether a current power supply state on the actuator side meets a first preset condition; and if so, determining that the current power supply mode of the IO module meets the high-power load operating condition;

[0115] If not, the current power supply mode of the IO module is switched from high-power load mode to low-power load mode, and whether the current power supply mode meets the low-power load working conditions of the IO module is re-judged, including: controlling the first switch to close; detecting whether the current power supply status of the actuator side meets the second preset condition; if so, determining that the current power supply mode of the IO module meets the low-power load working conditions.

[0116] It should be noted that when verifying the ability to support high-power loads, an independent external power supply path is first established. That is, the second switch is closed (activating the external power supply input at port 1) and the first switch is opened (disconnecting the main power input at port 0). At this point, the actuator side is fully powered by the external power supply. Key parameters of this path (such as the supply voltage fluctuation range and peak current carrying capacity) are continuously monitored. If all detection values ​​continuously meet the first preset condition (for example, all parameters are stable) within a preset time period, the current power supply mode is determined to be capable of driving high-power loads. If the detection is abnormal, it is determined that the current power supply mode does not meet the high-power load operating conditions. The current power supply mode of the IO module can be switched from high-power load mode to low-power load mode, and the current power supply mode is re-evaluated to determine whether it meets the low-power load operating conditions of the IO module. Specifically, the first switch is closed to enable the main power supply path, and the power quality assessment is re-performed, but the second preset condition is used (the detection indicators of various parameters meet the requirements of the low-power load mode, which can be set according to actual needs). If the second preset condition is met, it is determined that the current power supply mode of the IO module meets the low-power load operating conditions, and the low-power load mode is locked.

[0117] Therefore, the main power supply and external power supply are isolated by alternating between two switches. Strict testing is first performed when using the external power supply, and only high-power devices are allowed to be connected if they meet the standards. If the test fails, the main power supply is automatically switched back. At this time, the test standard is changed, and only low-power devices are allowed to be connected. This can not only ensure power safety, but also flexibly adapt to the power needs of different devices. It is particularly suitable for application scenarios that need to control high-power machines and low-power sensors at the same time.

[0118] In one possible implementation, if the conditions are not met, the current power supply mode of the IO module is switched from a high-power load mode to a low-power load mode, and whether the current power supply mode meets the low-power load working conditions of the IO module is re-determined. The method also includes: if the conditions are not met, limiting the output function of the IO module and reporting diagnostic information of the IO module.

[0119] It should be noted that when it is detected that the current power supply mode of the IO module does not meet the low-power load working conditions, the adaptive protection mechanism will be triggered, that is, the output function of the IO module will be limited, and the module's diagnostic information (which may include voltage anomalies, load status, fault codes, etc.) will be actively uploaded to avoid equipment damage or safety hazards.

[0120] In a possible implementation, if the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to be connected to a high-power load device, such as Figure 8 As shown, the method further includes:

[0121] Step S801: establishing a communication connection between an IO module and a lower-level IO module in the IO module cascade;

[0122] Step S802: Control the second switch in the lower-level IO module to be closed and the first switch to be open;

[0123] Step S803: Detect whether the current power state of the actuator side of the lower-level IO module meets the first preset condition; if so, execute step S804; if not, execute step S805;

[0124] Step S804: retain the output and input functions of the lower-level IO module, and allow the actuator side of the lower-level IO module to be connected to a high-power load device;

[0125] Step S805: Control the first switches of the IO module and the lower-level IO module to be closed, and re-detect whether the current power status of the actuator side of the lower-level IO module meets the second preset condition; if so, execute step S806; if not, execute step S807;

[0126] Step S806: retain the output and input functions of the lower-level IO module, and allow the actuator side of the lower-level IO module to be connected to a low-power load device;

[0127] Step S807: restrict the output function of the lower-level IO module and report the diagnostic information of the lower-level IO module.

[0128] It should be noted that Figure 8 The cascade control mechanism shown in the figure is that after the upper IO module completes its own power supply verification, it actively establishes a communication connection with the lower IO module. The lower IO module enables the external power path (closes its second switch and opens the first switch) and monitors in real time whether the voltage / current parameters on the actuator side of the lower IO module meet the high-power load standard. If the detection meets the standard, the lower IO module can be connected to the high-power device and maintain full functional operation (retain the output and input functions of the lower IO module); if the detection is abnormal, the upper IO module and the lower IO module are controlled to switch to the main power path for power supply at the same time (close the first switches of both sides), and Verify whether the current power status of the actuator side of the lower-level IO module meets the second preset condition (the detection indicators of various parameters meet the requirements of the low-power load mode and can be set according to actual needs). If it does, it means that it supports low-power loads, then the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to access low-power load devices. If it does not meet the requirements, the adaptive protection mechanism is triggered to limit the output function of the lower-level IO module, and at the same time actively upload the diagnostic information of the lower-level IO module (which may include voltage anomalies, load status, fault codes, etc.) to avoid equipment damage or safety hazards.

[0129] This design achieves unified management of power supply strategies for multiple modules. Upper-level I / O modules coordinate the power status of lower-level I / O modules, creating a master-slave power supply strategy within the cascaded system. If the external power supply to a particular I / O module fails, the upper-level master power supply quickly takes over. This isolates the impact of single-point failures while maintaining minimum system functionality through dynamic degradation (from high-power load mode to low-power load mode). Furthermore, if an I / O module fails to meet either high-power or low-power load operating conditions, an automatic protection mechanism is triggered to prevent equipment damage or safety hazards.

[0130] In one possible implementation, Figure 9 As shown, if the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access a low-power load device. The method further includes:

[0131] Step S901: establishing a communication connection between an IO module and a lower-level IO module in the IO module cascade;

[0132] Step S902: Control the second switch in the lower-level IO module to be closed and the first switch to be open;

[0133] Step S903: Detect whether the current power state of the actuator side of the lower-level IO module meets the first preset condition; if so, execute step S904; if not, execute step S905;

[0134] Step S904: retain the output and input functions of the lower-level IO module and allow the actuator side to access high-power load equipment;

[0135] Step S905: Control the first switch of the lower-level IO module to close, and re-detect whether the current power status of the actuator side of the lower-level IO module meets the second preset condition; if so, execute step S906; if not, execute step S907;

[0136] Step S906: retain the output and input functions of the lower-level IO module, and allow the actuator side of the lower-level IO module to be connected to a low-power load device;

[0137] Step S907: restrict the output function of the lower-level IO module and report the diagnostic information of the lower-level IO module.

[0138] It should be noted that Figure 9 The cascade control mechanism shown in the figure is that after the upper-level IO module completes its own power supply verification, it actively establishes a communication connection with the lower-level IO module. The lower-level IO module enables the external power path (closes its second switch and opens the first switch) and monitors in real time whether the voltage / current parameters on the actuator side of the lower-level IO module meet the high-power load standard. If the detection meets the standard, the lower-level IO module can be connected to the high-power device and maintain full functional operation (retaining the output and input functions of the lower-level IO module); if the detection is abnormal, the lower-level IO module is triggered to switch to the main power path (close the first switch) and verify the lower-level IO module. Whether the current power status of the actuator side of the block meets the second preset condition (the detection indicators of various parameters meet the requirements of the low-power load mode and can be set according to actual needs). If it does, it means that it supports low-power load, then the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to access the low-power load device. If it does not meet the requirements, the adaptive protection mechanism is triggered to limit the output function of the lower-level IO module, and at the same time actively upload the diagnostic information of the lower-level IO module (which may include voltage anomalies, load status, fault codes, etc.) to avoid equipment damage or safety hazards.

[0139] And it needs to be explained that, Figure 8 The method shown is the same as Figure 9 The difference between the methods shown is that the execution conditions of the two are different. Figure 8The execution condition of the method shown is: after the actuator side of the IO module at this level is allowed to connect to the high-power load device, Figure 9 The execution conditions of the method shown are: after the actuator side of the IO module at this level is allowed to access the low-power load device, and Figure 8 In the method shown, when the current power state of the actuator side of the lower-level IO module does not meet the first preset condition, it is necessary to control the first switch of the IO module (the IO module at this level) and the lower-level IO module to be closed, and re-detect whether the current power state of the actuator side of the lower-level IO module meets the second preset condition, and Figure 9 In the method shown, since the IO module at this level is already in low-power load mode and its first switch is already closed, when the current power status of the actuator side of the lower-level IO module does not meet the first preset condition, it is only necessary to control the first switch of the lower-level IO module to be closed and re-check whether the current power status of the actuator side of the lower-level IO module meets the second preset condition.

[0140] As a result, the design achieves unified management of the power supply strategy of multi-level modules. The upper-level IO module can coordinate the power status of the lower-level IO modules, forming a master-slave power supply strategy synchronization in the cascade system. When the external power supply of a certain level of IO module fails, the upper-level main power supply can quickly take over the power supply, which can not only isolate the impact of single point failures, but also maintain the minimum functional operation of the system through dynamic degradation (reducing high-power load mode to low-power load mode).

[0141] In one possible implementation, establishing a communication connection between an IO module and a lower-level IO module cascaded with the IO module includes: obtaining identification information of the lower-level IO module cascaded with the IO module; determining whether the identification information matches preset information; and if so, establishing a communication connection between the IO module and the lower-level IO module.

[0142] It should be noted that the IO module will actively send a wake-up signal to the lower-level IO module, triggering the lower-level IO module to self-check and feedback relevant identification information. The IO module will compare and verify the received identification information with the preset information. After confirming that the lower-level IO module is legal, it will establish a communication connection between the IO module and the lower-level IO module. Therefore, through identity authentication, system risks caused by illegal device access can be prevented, ensuring the security and reliability of the system.

[0143] Figure 10 A control method for an IO module according to an embodiment of the present invention is shown. Figure 10 As shown, the method includes the following steps:

[0144] 0: Initialize the system and peripherals;

[0145] 1: Closed Figure 1 or Figure 2Turn on switch S1 in the circuit and open S0 to ensure that the external power supply takes priority.

[0146] 2: Initialize the slave protocol stack to ensure that the slave protocol stack can establish communication with the master;

[0147] 3: Initialize the master station protocol stack to ensure communication with the next level cascade module;

[0148] 4: Get the power supply status of the actuator side of the module (detection voltage);

[0149] 5: Determine whether the power supply on the module actuator side meets the normal use requirements of the module;

[0150] 6: The module voltage meets the normal use requirements, so the module load at this time depends on the load provided by the external power supply, and high-power loads can be connected;

[0151] 7: The module does not meet normal use requirements. In this case, it can be determined that the external power supply is invalid and it is necessary to switch to the power supply provided by the master station. That is, close switch S0. At this time, the module cannot perform high-power load output function.

[0152] 8: Re-check whether the power supply on the actuator side is normal. The power supply tested at this time is the actuator power supply status provided by the master station side;

[0153] 9: The power supply is normal, that is, the power supply on the actuator side comes from the master station, so only low-power loads can be connected at this time, and high-power loads cannot be connected;

[0154] 10: The power supply test on the module actuator side fails. In this case, the module needs to alarm and report diagnostic information.

[0155] 11: Limit the scope of use of the module, that is, the output function cannot be executed and only the normal input function of the module can be satisfied;

[0156] 12: The cascade port master is enabled and sends a wake-up signal to actively obtain the identification information of the cascade module;

[0157] 13: Determine whether the obtained cascade module identification information matches the set information;

[0158] 14: The cascade module identification information is successfully judged, and normal communication with the cascade module can be achieved. At the same time, the actuator side power supply status of the cascade module can be read;

[0159] 15: Determine whether the actuator-side power supply of the cascade module meets normal usage requirements;

[0160] 16: The power supply of the expansion module does not meet normal use requirements and needs to be supplied by the expansion module. Therefore, switch S0 needs to be closed at this time.

[0161] 17: The expansion module power supply is normal. No expansion module needs to provide power. The detection process ends.

[0162] In summary, the present invention optimizes the cascade design of the IO module. Through the flexible configuration of port 0 and port 1, it achieves the following effects: allowing access to an external power supply through port 1, expanding the module's load capacity to meet high-power requirements; controlling the power supply path through the switch, flexibly selecting the power supply method on the actuator side to adapt to diverse scenarios. Overall, it takes into account versatility, scalability, and application flexibility, and overcomes the limitations of traditional cascades.

[0163] Figure 11 An IO module control device is shown, such as Figure 11 As shown, the device 110 includes:

[0164] The judgment module 1101 is used to judge whether the current power supply mode of the IO module meets the high-power load working condition; and to judge whether the current power supply mode of the IO module meets the low-power load working condition of the IO module;

[0165] Control module 1102 is configured to retain the output and input functions of the IO module and allow the actuator side to access a high-power load device when the current power supply mode meets the high-power load operating conditions of the IO module; to switch the current power supply mode of the IO module from a high-power load mode to a low-power load mode when the current power supply mode does not meet the high-power load operating conditions of the IO module; and to retain the output and input functions of the IO module and allow the actuator side to access a low-power load device when the current power supply mode meets the low-power load operating conditions of the IO module.

[0166] In one possible implementation, the judgment module 1101 is further configured to control the second switch in the IO module to be closed and the first switch to be open; detect whether the current power supply state on the actuator side meets a first preset condition; and if the first preset condition is met, determine that the current power supply mode of the IO module meets the high-power load operating condition;

[0167] The control module 1102 is further configured to control the first switch to be closed; detect whether the current power supply state of the actuator side meets a second preset condition; if the second preset condition is met, determine whether the current power supply mode of the IO module meets the low-power load working condition.

[0168] In a possible implementation, the control module 1102 is further configured to limit the output function of the IO module and report diagnostic information of the IO module after the current power supply mode does not meet the low-power load working condition of the IO module.

[0169] In one possible implementation, the control module 1102 is further configured to, when the current power supply mode satisfies the high-power load operating conditions of the IO module, retain the output and input functions of the IO module, and establish a communication connection between the IO module and a lower-level IO module in the cascaded IO module after allowing the actuator side to access the high-power load device;

[0170] Control the second switch in the lower-level IO module to close and the first switch to open;

[0171] Detecting whether the current power state of the actuator side of the lower-level IO module meets the first preset condition;

[0172] If the first preset condition is met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a high-power load device;

[0173] If the first preset condition is not met, the first switches of the control IO module and the lower-level IO module are closed, and the current power supply status of the actuator side of the lower-level IO module is re-detected to see whether it meets the second preset condition;

[0174] If the second preset condition is met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device;

[0175] If the second preset condition is not met, the output function of the lower-level IO module is restricted, and diagnostic information of the lower-level IO module is reported.

[0176] In one possible implementation, the control module 1102 is further configured to, when the current power supply mode satisfies the low-power load operating conditions of the IO module, retain the output and input functions of the IO module, and establish a communication connection between the IO module and a lower-level IO module in the cascaded IO module after allowing the actuator side to access the low-power load device;

[0177] Control the second switch in the lower-level IO module to close and the first switch to open;

[0178] Detecting whether the current power state of the actuator side of the lower-level IO module meets the first preset condition;

[0179] If the first preset condition is met, the output and input functions of the lower-level IO module are retained, and the actuator side is allowed to connect to high-power load equipment;

[0180] If the first preset condition is not met, controlling the first switch of the lower-level IO module to close, and re-detecting whether the current power supply status of the actuator side of the lower-level IO module meets the second preset condition;

[0181] If the second preset condition is met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device;

[0182] If the second preset condition is not met, the output function of the lower-level IO module is restricted, and diagnostic information of the lower-level IO module is reported.

[0183] In a possible implementation, the control module 1102 is further configured to obtain identification information of a lower-level IO module to which the IO module is cascaded; determine whether the identification information matches preset information; and if so, establish a communication connection between the IO module and the lower-level IO module.

[0184] In summary, the module prioritizes external power. If sufficient power is available, it supports high-power loads. If insufficient, it automatically switches back to the module's internal power supply to ensure normal operation of low-power devices. This allows for real-time power status monitoring to prevent device failures caused by insufficient power. It also automatically matches high- and low-power loads, expanding the use cases of the I / O module.

[0185] The embodiment of the present invention further provides an electronic device 120, such as Figure 12 As shown, the electronic device 120 includes: a processor 1201, a memory 1202, and a program stored in the memory 1202 and executable on the processor 1201. When the program is executed by the processor 1201, the steps of a control method of an IO module as shown in the above embodiment are implemented.

[0186] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the computer program implements the steps of the method for controlling an IO module shown in the above method embodiment and can achieve the same technical effect. To avoid repetition, the details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0187] An embodiment of the present invention further provides a computer program product comprising computer instructions that, when executed by a processor, implement the steps of the method for controlling an IO module as described in the above method embodiment. The same technical effects can be achieved, and to avoid repetition, they are not described here.

[0188] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0189] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0190] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.

Claims

1. An IO module, characterized in that: include: Port 0 is configured as a slave communication interface for communicating with the upper-level master station. Port 0 is connected to the slave communication physical layer, the system side, and the actuator side, respectively. Port 0 is used to supply power to the system side and / or the actuator side. Port 1 is configured as a cascade communication interface for communicating with the lower-level IO module. Port 1 is connected to port 0, the master station communication physical layer and the actuator side respectively. Port 1 is used to transmit the power supply from port 0 to the system side and / or the actuator side to the lower-level IO module.

2. The IO module according to claim 1, wherein: The port 1 is used to connect to an external power supply to supply power to the actuator side.

3. The IO module according to claim 2, wherein: Also includes: A first switch is provided between the port 0 and the actuator side, and the first switch is used to turn on or off the power supply from the port 0 to the actuator side; The second switch is provided between the port 1 and the actuator side, and is used to turn on or off the power supply from the port 1 to the actuator side.

4. The IO module according to claim 3, wherein: Also includes: A system-side power supply protection circuit, wherein the port 0 is connected to the system side through the system-side power supply protection circuit; and / or, an actuator-side power supply primary protection circuit and an actuator-side power supply secondary protection circuit, wherein the port 0 is connected to the actuator side through the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit in sequence, and the first switch is provided between the actuator-side power supply primary protection circuit and the actuator-side power supply secondary protection circuit; The port 1 is connected to the actuator side through the actuator side power supply secondary protection circuit, and the second switch is provided between the port 1 and the actuator side power supply secondary protection circuit.

5. The IO module according to claim 3, wherein: Also includes: The actuator side power supply tertiary protection circuit is provided between the port 1 and the second switch.

6. The IO module according to claim 3, characterized in that: The port 1 is connected to the port 0 of the lower-level IO module and is used to transmit the power supplied from the port 0 to the actuator side to the lower-level IO module when the first switch and the second switch are both closed, and to supply power to the actuator side through the external power supply when the second switch is closed and the first switch is open.

7. A control method for an IO module, characterized in that: The control method of the IO module is applied to the IO module according to any one of claims 1 to 6, and the method includes: Determine whether the current power supply mode of the IO module meets the high-power load working conditions; If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access high-power load equipment; If not, the current power supply mode of the IO module is switched from the high-power load mode to the low-power load mode, and it is re-determined whether the current power supply mode meets the low-power load working condition of the IO module; If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access a low-power load device.

8. The control method of the IO module according to claim 7, characterized in that: The determining whether the current power supply mode of the IO module meets the high-power load working condition includes: Controlling the second switch in the IO module to close and the first switch to open; Detecting whether the current power state of the actuator side meets a first preset condition; If so, it is determined that the current power supply mode of the IO module meets the high-power load working conditions; If not, switching the current power supply mode of the IO module from the high-power load mode to the low-power load mode, and re-determining whether the current power supply mode meets the low-power load working condition of the IO module includes: controlling the first switch to be closed; Detecting whether the current power state of the actuator side meets a second preset condition; If so, it is determined that the current power supply mode of the IO module meets the low-power load working condition.

9. The method for controlling an IO module according to claim 7 or 8, wherein: If the condition is not satisfied, switching the current power supply mode of the IO module from the high-power load mode to the low-power load mode, and re-determining whether the current power supply mode meets the low-power load working condition of the IO module, the method further includes: If not, the output function of the IO module is restricted and the diagnostic information of the IO module is reported.

10. The control method of the IO module according to claim 7, characterized in that: If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access a high-power load device. The method further includes: Establishing a communication connection between the IO module and a lower-level IO module cascaded with the IO module; Controlling the second switch in the lower-level IO module to close and the first switch to open; Detecting whether a current power state of the actuator side of the lower-level IO module meets a first preset condition; If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a high-power load device; If not, controlling the first switch of the IO module and the lower-level IO module to close, and re-detecting whether the current power supply status of the actuator side of the lower-level IO module meets the second preset condition; If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device; If not, the output function of the lower-level IO module is restricted, and the diagnostic information of the lower-level IO module is reported.

11. The method for controlling an IO module according to claim 7, wherein: If the conditions are met, the output and input functions of the IO module are retained, and the actuator side is allowed to access a low-power load device. The method further includes: Establishing a communication connection between the IO module and a lower-level IO module cascaded with the IO module; Controlling the second switch in the lower-level IO module to close and the first switch to open; Detecting whether a current power state of the actuator side of the lower-level IO module meets a first preset condition; If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side is allowed to access high-power load equipment; If not, controlling the first switch of the lower-level IO module to close, and re-detecting whether the current power supply status of the actuator side of the lower-level IO module meets the second preset condition; If the conditions are met, the output and input functions of the lower-level IO module are retained, and the actuator side of the lower-level IO module is allowed to be connected to a low-power load device; If not, the output function of the lower-level IO module is restricted, and the diagnostic information of the lower-level IO module is reported.

12. The method for controlling an IO module according to claim 10 or 11, wherein: The establishing of a communication connection between the IO module and a lower-level IO module cascaded with the IO module includes: Obtaining identification information of the lower-level IO modules to which the IO module is cascaded; Determining whether the identification information matches preset information; If they match, a communication connection between the IO module and the lower-level IO module is established.

13. An IO module control device, characterized in that: The IO module control device includes: a judgment module, configured to judge whether the current power supply mode of the IO module satisfies the high-power load working condition; and to judge whether the current power supply mode of the IO module satisfies the low-power load working condition of the IO module; A control module is configured to retain the output and input functions of the IO module and allow the actuator side to access a high-power load device when the current power supply mode meets the high-power load operating conditions of the IO module; to switch the current power supply mode of the IO module from a high-power load mode to a low-power load mode when the current power supply mode does not meet the high-power load operating conditions of the IO module; and to retain the output and input functions of the IO module and allow the actuator side to access a low-power load device when the current power supply mode meets the low-power load operating conditions of the IO module.

14. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of a method for controlling an IO module according to any one of claims 7 to 12 are implemented.

15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling an IO module according to any one of claims 7 to 12 are implemented.

16. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of a method for controlling an IO module as claimed in any one of claims 7 to 12.