A control method and system of an industrial controller with cascading expansion function

By employing a four-step method for industrial controllers to achieve automatic identification and dynamic resource allocation, the problem of control software adaptation in cascading expansion is solved, improving the system's flexibility and stability and shortening the development cycle.

CN121635010BActive Publication Date: 2026-11-24SHENZHEN SOLID TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202511820198.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-04
Publication Date
2026-11-24
Estimated Expiration
2045-12-04

AI Technical Summary

Technical Problem

When existing industrial controllers are cascaded and expanded, differences in communication protocols, resource allocation logic, and interface definitions prevent the control software from being directly adapted. This requires developers to reconstruct the entire set of new code, resulting in a long development cycle and affecting system stability.

Method used

The system employs a four-step approach: startup and self-test of the core controller, identification and configuration of functional modules, cascade expansion settings and collaborative control, and operation and maintenance. This approach enables automatic identification, dynamic resource allocation, data interaction and status monitoring, supports self-healing mechanisms and energy consumption optimization for cascaded devices, and utilizes a standardized cascade architecture and compatible control software.

Benefits of technology

It shortens the development cycle, improves the flexibility and scalability of industrial control systems, ensures the real-time performance and stability of cascaded systems, and allows users to flexibly add or remove cascaded devices, avoiding software and hardware compatibility issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121635010B_ABST
    Figure CN121635010B_ABST
Patent Text Reader

Abstract

This invention discloses a control method and system for an industrial controller with cascading expansion capabilities. The method includes hardware initialization and basic configuration, powering on the industrial controller, startup and self-testing of the core controller, detection of installed functional module boards via multiple male and female interfaces by the main control motherboard, parameter adaptation of custom functional modules, cascading expansion settings and collaborative control, enabling physical connection and identification of cascaded devices, and dynamic allocation and task scheduling by the main controller based on the total resources of the cascaded system. This invention, through the cooperation of the main control motherboard and multiple interfaces, and through a standardized cascading architecture and compatible control software, avoids the need for developing new code from scratch for each expansion, thus shortening the development cycle. Furthermore, it enhances the flexibility and scalability of the industrial control system, ensures the real-time performance and stability of the cascaded system, and provides strong support for the rapid deployment in complex industrial scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial controllers, and in particular to a control method and system for an industrial controller with cascading expansion capabilities. Background Technology

[0002] Industrial controllers are core devices used in industrial automation to control equipment, schedule processes, and facilitate data interaction. They typically integrate hardware units such as microprocessors, communication interfaces, and control modules, and can drive peripherals such as motors, sensors, and actuators to work collaboratively through preset programs or real-time commands. They are widely used in intelligent manufacturing, robot control, and precision machining.

[0003] Industrial controllers can typically be cascaded for expanded operation. However, the hardware architecture of existing industrial controllers is usually deeply integrated with the control software. When it is necessary to expand the control scale through cascading, such as expanding from a single E3000 controller to a multi-controller cascaded system of E6000, the existing control software cannot be directly adapted to the cascading scenario due to differences in communication protocols, resource allocation logic, and interface definitions among different controllers. This forces developers to develop a completely new set of code for the new cascading topology, including reconstructing communication links, designing cross-device resource scheduling algorithms, and adapting multi-controller collaborative logic. This results in a long development cycle and affects the use of industrial controllers. Summary of the Invention

[0004] The purpose of this invention is to provide a control method and system for an industrial controller with cascading expansion capabilities, so as to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a control method for an industrial controller with cascading expansion function, comprising the following specific steps: Step 1: Hardware initialization and basic configuration. Connect the industrial controller power supply. The core controller RK3588 starts up and performs a self-test, and the communication interface is activated and parameters are configured. Step 2: Functional module identification and configuration. The main control motherboard detects the installed functional module boards through multiple male and female interfaces, automatically identifies the functional module boards, and adapts the parameters of custom functional modules. Step 3: Cascade expansion settings and collaborative control enable physical connection and identification of cascaded devices. The main controller dynamically allocates and schedules tasks based on the total resources of the cascaded system, then performs data interaction and status monitoring, and sets up dynamic energy consumption control and predictive maintenance, as well as cross-level data compression and self-healing mechanisms. Step 4: Operation and maintenance, including real-time control and logic execution, fault diagnosis and redundancy switching, and parameter optimization and function upgrades.

[0006] Preferably, the startup and self-test of the core controller RK3588 in step one specifically includes: The core processor boots the pre-installed Linux system, while the microcontroller performs a real-time control module self-test, automatically detecting the connection status between the PCIe 3.0 interface and the programming logic chip to ensure smooth high-speed communication. If a hardware anomaly is detected, including loose interfaces and chip failures, an error message will be output via the ETH0 Ethernet interface or the USB 3.0 debug port.

[0007] Preferably, the communication interface activation and parameter configuration in step one specifically includes automatically activating all communication interfaces and loading default parameters, initializing the HDMI 2.1 interface to 1080P and 60Hz output mode for connecting to the monitoring screen to display device status, configuring the RS485 / RS232 interface to the industry standard mode of 9600 baud rate and 8 data bits, setting up four independent Ethernet interfaces ETH0, ETH1, ETH2 and ETH3, assigning static IPs by default, and supporting wired network connections for expanding network topology.

[0008] Preferably, the functional module board in step two includes an encoding module, an I / O module, and an ADDA module. The automatic identification of the functional module board in step two specifically includes reading the ID information and function identifier built into the functional module board, and performing two-way authentication, including hardware authentication and protocol authentication. After successful authentication, the module communication port is automatically allocated, and a visual icon is generated on the control interface. Then, resources are automatically allocated according to the module type. The parameter adaptation of the custom functional module in step two specifically includes importing the driver program of the custom functional module through software, automatically parsing the function instructions supported by the custom functional module, and the function instructions include the signal acquisition frequency of special sensors and the control logic of custom actuators.

[0009] Preferably, the physical connection and identification of cascaded devices in step three specifically includes connecting a new control motherboard through the ETH0-ETH3 Ethernet interface when cascading expansion is required. After enabling cascading mode, the master controller sends a handshake signal to the slave controller based on the custom SLD-BUS protocol. After the slave controller responds, the master controller automatically reads its hardware configuration, including the number of interfaces and the core processor model, and assigns a unique slave address.

[0010] Preferably, the dynamic allocation and task scheduling in step three specifically include the main controller being responsible for visual control and global logic scheduling, and the slave controller focusing on multi-axis motion control. The main controller uses a programming logic chip to parse the mixed protocol data sent by the slave in real time, convert it into a unified internal data frame format, and then distribute it to the corresponding functional modules to build a distributed resource pool system. The core resources of the main and slave controllers, including the real-time computing power of the microcontroller, the inference capability of the core processor, and the axis control channel of the AXIS interface, are set as dynamically allocated resource units. When a surge in visual tasks is detected, the main controller automatically incorporates part of the core processor computing power of the slave into the resource pool, realizes distributed loading of model parameters through the PCIe 3.0 high-speed link, and in the multi-axis control scenario, the axis control tasks are split into the AXIS interfaces of different slaves according to the complexity of the motion trajectory, and nanometer-level synchronization of cross-device axis groups is realized through the fly-read and fly-write mechanism of the ECAT protocol. The data interaction and status monitoring in step three specifically include enabling a two-way data transmission mechanism, with the main controller sending control commands to the slave controller via WiFi or Ethernet, the slave controller providing real-time feedback on the execution status, all data being processed at high speed through a programming logic chip, and the cascaded system topology diagram, load rate of each module, and fault alarm information being viewed on an HDMI screen. The predictive maintenance in step three includes deploying a federated learning framework on the main controller, with the core processors of each slave device acting as edge nodes to analyze local sensor data in real time. This includes multi-axis linkage scenarios and time-series prediction of the communication quality of cascaded links. In the multi-axis linkage scenario, abnormal vibration characteristics are identified through a transfer learning model, triggering an early warning 5-10 minutes before a fault occurs. The main controller automatically adjusts motion parameters. For time-series prediction of the communication quality of cascaded links, if it is determined that the failure rate of a certain link exceeds 5% within the next 3 minutes, dynamic topology reconstruction is initiated in advance, and data transmission is switched to a backup channel.

[0011] Preferably, the energy consumption control in step three specifically includes the main controller collecting the power consumption data of each slave device in real time, and generating an energy consumption optimization scheme based on the task load intensity, specifically including: When the system is under light load, it automatically switches the core processor of the idle slave device to hibernation core mode and shuts down the power supply of unused ETH interface and USB port; When a slave device is detected to have no task interaction for 10 consecutive minutes, deep power saving is triggered. The microcontroller cuts off the power supply to non-core modules, retaining only the wake-up channels of ETH0 and RS485. At the same time, the resource information of the slave device is marked as awake and stored in the resource pool.

[0012] Preferably, the self-healing mechanism in step three specifically includes a three-level self-healing process triggered when a slave device is detected to be offline. This process includes level one, level two, and level three self-healing. Level one self-healing involves enabling the slave device's backup communication interface and quickly restoring the connection through real-time interruption of the microcontroller. Level two self-healing involves migrating the slave device's task to a hot standby device by the master controller if interface switching fails, achieving seamless takeover through dynamic reallocation of resources. Level three self-healing involves automatically updating the topology mapping table for unrecoverable faults, removing the faulty device from the resource pool, and issuing audible and visual alarms via the HDMI screen and remote terminal, while simultaneously pushing fault location information.

[0013] Preferably, the real-time control and logic execution in step four specifically includes a microcontroller responsible for the real-time control algorithm, driving the actuator through the ECAT or AXIS interface, a core processor processing complex logic, and adjusting the control strategy according to preset rules. When the vision module detects workpiece offset, the main controller immediately sends a compensation command to the slave controller to correct the position through multi-axis collaborative correction. The fault diagnosis and redundancy switching in step four specifically includes monitoring the operating status of each module and cascaded device. If a slave controller goes offline, the master controller automatically enables the redundant path by switching to the backup Ethernet interface. If an I / O module fails, the master controller blocks the fault channel and alarms. Detailed fault logs are read through the RS232 debugging port. The parameter optimization and function upgrade in step four specifically include supporting online modification of control parameters, with the changes taking effect immediately, and updating the controller firmware and module drivers via USB 3.0 to expand new functions.

[0014] A control system for an industrial controller with cascading expansion capabilities includes: The core control module includes a main processor unit, a real-time control unit, and a programming logic unit. The main processor unit is the core and is responsible for the system's global logic, human-computer interaction, complex algorithms, running the Linux system, and providing API interfaces. The real-time control unit is a microcontroller used to process real-time tasks and communicate with the main processor through an internal bus. The programming logic unit is a programming logic chip used to implement high-speed data forwarding, hardware synchronization, and signal conditioning, and supports user-defined logic. The communication interface module includes an industrial bus submodule, a general communication submodule, and a high-speed interface submodule. The industrial bus submodule includes an ECAT master interface and an SLD-BUS protocol controller. The general communication submodule includes integrated HDMI 2.1, RS485 / 232, four Ethernet interfaces, and WiFi to provide diverse data interaction channels. The high-speed interface submodule includes PCIe 3.0, USB 3.0, and USB 2.0 for high-speed peripherals of the vision module and storage devices. The functional expansion module includes a motion control submodule, an I / O control submodule, and a customized submodule. The motion control submodule supports multi-axis linkage and linear sensor interfaces, and is compatible with pulse-type and bus-type drivers. The I / O control submodule includes 16 digital inputs and 16 digital outputs, supports dry contact and wet contact switching, and has optically isolated inputs. The customized submodule is an expansion unit based on male and female interfaces and supports self-developed driver programs. The cascading management module includes a topology management unit, a resource scheduling unit, and a synchronization and redundancy unit. The topology management unit is responsible for the discovery, authentication, and topology drawing of cascading devices, and supports a maximum of 32 levels of cascading. The resource scheduling unit is used to implement global resource pooling management and dynamically allocate computing power, interface, and bandwidth resources. The synchronization and redundancy unit is used to provide high-precision spatiotemporal synchronization and multi-path redundancy switching. The human-machine interaction and operation and maintenance module includes a local interaction unit, a remote operation and maintenance unit, and a log and diagnostic unit. The local interaction unit includes an HDMI display interface and an RS232 debugging port for on-site configuration and troubleshooting. The remote operation and maintenance unit supports a web server and monitors system status and updates firmware through a cloud platform. The log and diagnostic unit records device operating data and provides a fault code library, and supports one-click export of diagnostic reports.

[0015] The technical effects and advantages of this invention are as follows: This invention, through the cooperation of a main control motherboard and multiple interfaces, and through a standardized cascading architecture and compatible control software, avoids the need to develop new code from scratch for each expansion, thereby shortening the development cycle. On the other hand, it enhances the flexibility and scalability of the industrial control system. Users can flexibly add or remove cascading devices according to production needs without worrying about software and hardware compatibility issues. At the same time, it ensures the real-time performance and stability of the cascading system, providing strong support for the rapid implementation in complex industrial scenarios. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the industrial controller control method of the present invention.

[0017] Figure 2 This is a block diagram of the industrial controller control system of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] This invention provides, for example Figure 1-2 The control method of an industrial controller with cascading expansion function shown includes: Step 1: Hardware Initialization and Basic Configuration. Connect the industrial controller power supply. The core processor is an RK3588, an ARM architecture multi-core design supporting the entire system. The microcontroller is an STM32F429IIT6, responsible for real-time control and data algorithm processing. The programming logic chip is a PG2L50H. The core controller RK3588 performs startup and self-test, including a first-level check. The RK3588 boots the Linux system kernel. Linux is an open-source Unix-like operating system with multi-user, multi-tasking, multi-threading, and multi-CPU support. As the pre-installed system on the RK3588 processor, Linux provides the underlying operating environment for the industrial controller and manages the hardware. Resources (such as CPU, memory, storage, and interfaces) are used to coordinate the orderly operation of various components, support the running of complex control software and applications, and handle the global logic in industrial control, such as task scheduling, data aggregation and analysis, and human-machine interface operation. With its multi-tasking capabilities, it can simultaneously handle multiple tasks such as visual recognition, network communication, and equipment monitoring, ensuring the efficient operation of the industrial controller in complex scenarios. Its open-source nature allows for customized modifications and optimizations based on specific industrial control needs, adapting to different hardware modules and communication protocols, enhancing the controller's flexibility and scalability. Simultaneously, the microcontroller uses an internal timer to perform hardware reset and secondary verification of the real-time control module. The FPGA (PG2L50H) communicates with the RK3588 via a PCIe 3.0 interface. The system sends link detection frames to verify the bit error rate of the high-speed communication channel. A three-level verification process is performed, traversing all physical interfaces (HDMI 2.1, RS485 / 232, ETH0-ETH3, etc.). Interfaces without connected devices are marked as dormant. For connected devices, the system reads their EDID information or device descriptor and activates the communication interface and configures parameters. If any step fails verification, the system issues a tiered alarm via a buzzer (a long beep indicates a core fault, intermittent beeps indicate an interface abnormality) and writes the fault code to the microcontroller's non-volatile memory. Based on the first-level verification result, the system performs interface parameter initialization. This includes forcibly loading preset parameters (ECAT period 1ms, axis control pulse frequency 1MHz) for deterministic interfaces (such as ECAT and AXIS00-5), and using default and adaptive modes for general interfaces (such as ETH and WiFi): ETH0 is assigned a management IP by default, other ETH interfaces automatically obtain addresses via DHCP, and WiFi prioritizes connection to pre-configured industrial-grade APs. Configurable interfaces (such as RS485) allow users to lock parameters via control software, generating a parameter verification code after locking to prevent unauthorized modification. Step 2: Functional module identification and configuration. The main control motherboard detects the installed functional module boards through multiple male and female interfaces, automatically identifies the functional module boards, and adapts the parameters of custom functional modules. Step 3: Cascade expansion settings and collaborative control enable physical connection and identification of cascaded devices. The main controller dynamically allocates and schedules tasks based on the total resources of the cascaded system, then performs data interaction and status monitoring, and sets up dynamic energy consumption control and predictive maintenance, as well as cross-level data compression and self-healing mechanisms. Step 4: Operation and maintenance, including real-time control and logic execution, fault diagnosis and redundancy switching, and parameter optimization and function upgrades.

[0020] Furthermore, the startup and self-test of the core controller RK3588 in step one specifically includes the core processor RK3588 starting the pre-installed Linux system, while the microcontroller F429IIT6 performs a real-time control module self-test, automatically detecting the connection status between the PCIe 3.0 interface and the programming logic chip PG2L50H to ensure the high-speed communication link is unobstructed. If a hardware abnormality is detected, including loose interface and chip failure, an error message is output through the ETH0 Ethernet interface or USB 3.0 debug port.

[0021] Furthermore, the communication interface activation and parameter configuration in step one specifically includes automatically activating all communication interfaces and loading default parameters. The HDMI 2.1 interface is initialized to 1080P and 60Hz output mode for connecting to the monitoring screen to display device status. The RS485 / RS232 interface is configured to the industrial standard mode of 9600 baud rate and 8 data bits. Four independent Ethernet interfaces, ETH0, ETH1, ETH2 and ETH3, are set up and assigned static IPs by default, and wired network connections are supported for expanding network topology. At the same time, users can modify the interface parameters through the control software to adapt to the needs of specific industrial scenarios.

[0022] Specifically, the functional module boards in step two include encoding modules, I / O modules, and ADDA modules. Automatic identification of these functional module boards in step two involves reading their built-in ID information and function identifiers, and performing two-way authentication. This two-way authentication includes hardware authentication and protocol authentication. Hardware authentication verifies whether the module's electrical characteristics (such as operating voltage and maximum current) match the motherboard's power supply capabilities. Protocol authentication, for SLD-BUS custom modules, verifies module legitimacy through an encrypted handshake (based on AES-128). Modules that fail authentication are restricted to read-only mode (only providing status feedback, not receiving control commands). After successful authentication, a communication port is automatically assigned to the module, and a visual icon is generated on the control interface. Resources are then automatically allocated according to the module type. If a motion control module is detected, the ECAT interface is activated and a real-time Ethernet protocol is configured. To achieve high-precision synchronization with the bus driver, if the vision control module is detected, a 5Gbps bandwidth is allocated via the USB 3.0 interface for high-speed image data transmission. Step two involves parameter adaptation of the custom function module, specifically importing the driver program for the custom function module into the software, automatically parsing the function instructions supported by the custom function module, including the signal acquisition frequency of special sensors and the control logic of customized actuators. For SLD-BUS protocol extension modules, the communication baud rate and address code need to be manually configured in the software to ensure compatibility with other modules from the system. After configuration, the system generates a module function list and stores it in the local database, dynamically allocating system resources according to the module type, including the ECAT space occupied by the motion control module. Channels 0-3 are reserved with AXIS00-2 interfaces, which are bound to the microcontroller's timer. The vision control module has exclusive access to the USB 3.0 controller, allocates two NPU cores of the RK3588 (2 TOPS computing power), and locks the HDMI 2.1 output buffer (for real-time image display). The extended I / O module is mapped to the virtual I / O space of the master controller through address offset (e.g., the IN0 of slave 1 is mapped to the master address 0x4000), and supports cross-module linkage (e.g., the master OUT1 triggers the slave IN3 interrupt).

[0023] Furthermore, the physical connection and identification of cascaded devices in step three specifically includes the following: When cascading expansion is required, such as expanding an E3000 to an E6000, a new control motherboard is connected via the ETH0-ETH3 Ethernet interface. After enabling cascading mode, the master controller sends a handshake signal to the slave controller based on a custom SLD-BUS protocol. After the slave controller responds, the master controller automatically reads its hardware configuration, including the number of interfaces and the core processor model, and assigns a unique slave address. After enabling cascading mode, the master controller executes a three-step process of discovery, handshake, and configuration. In the discovery phase, a timestamped probe frame (TTL=3) is broadcast via ETH. When the slave controller responds, it carries its own capability vector (including the number of axis controllers, the number of I / O points, and the computing power value). In the handshake phase, the master controller sorts the slaves according to their capabilities, generates a cascading priority (slaves with stronger capabilities are assigned core tasks first), and communicates this priority via SLD-BUS. The protocol exchanges keys, establishes an encrypted communication channel, and during the configuration phase, automatically generates a topology table (including physical connection paths, communication delays, and redundant nodes). It supports hybrid topologies of star, chain, and tree topologies. Users can drag and drop to adjust the topology diagram via the HDMI interface. The dynamic allocation and task scheduling in step three specifically include the master controller being responsible for vision control and global logic scheduling, while the slave controllers focus on multi-axis motion control. The master controller uses the FPGA programming logic chip to parse the hybrid protocol data sent by the slave devices in real time, converts it into a unified internal data frame format, and then distributes it to the corresponding functional modules, constructing a distributed resource pool system. The core resources of the master and slave controllers, including the real-time computing power of the microcontroller, the inference capability of the core controller RK3588, and the axis control channels of the AXIS interface, are set as dynamically allocated resource units. When a surge in vision tasks is detected, the master controller automatically incorporates part of the core controller RK3588 computing power of the slave devices into the resource pool via PCIe3.A high-speed link enables distributed loading of model parameters. Furthermore, in multi-axis control scenarios, based on the complexity of the motion trajectory, axis control tasks are split across the AXIS interfaces of different slave devices, via ECAT. The protocol's fly-read / fly-write mechanism achieves nanometer-level synchronization across device axis groups. Step three, data interaction and status monitoring, specifically includes enabling a bidirectional data transmission mechanism. The master controller sends control commands to the slave controllers via WiFi or Ethernet, and the slave controllers provide real-time feedback on the execution status. All data is processed at high speed through the PG2L50H programming logic chip. The cascaded system topology diagram, load rate of each module, and fault alarm information are viewed on the HDMI screen. Predictive maintenance in step three includes deploying a federated learning framework on the master controller. The core processors of each slave device, RK3588, act as edge nodes, analyzing local sensor data in real time, including multi-axis linkage scenarios and time-series prediction of communication quality for cascaded links. In multi-axis linkage scenarios, abnormal vibration characteristics are identified through a transfer learning model, triggering an early warning 5-10 minutes before a fault occurs. The master controller automatically adjusts motion parameters. Time-series prediction of communication quality for cascaded links involves initiating dynamic topology reconstruction in advance when the failure rate of a link exceeds 5% within the next 3 minutes, switching data transmission to a backup channel. Energy consumption control in step three specifically includes the master controller collecting data from each slave device in real time. The power consumption data, combined with the task load intensity, generates an energy consumption optimization scheme. Specifically, when the system is under light load, it automatically switches the idle slave's core processor RK3588 to sleep core mode, shuts down the power supply to unused ETH interfaces and USB ports, and triggers deep power saving when a slave is detected to have no task interaction for 10 consecutive minutes. The microcontroller cuts off the power supply to non-core modules, retaining only the wake-up channels of ETH0 and RS485, and marks the slave's resource information as awake and stores it in the resource pool. The self-healing mechanism in step three specifically includes a three-level self-healing process when a slave is detected to be offline, including level one, level two, and level three self-healing. Level one self-healing is to enable the slave's backup communication interface and quickly restore the connection through the microcontroller's real-time interrupt. Level two self-healing is to migrate the slave's task to a hot standby device if the interface switching fails, and achieve seamless takeover through dynamic reallocation of the resource pool. Level three self-healing is to automatically update the topology mapping table for unrecoverable faults, remove the faulty device from the resource pool, and issue an audible and visual alarm through the HDMI screen and remote terminal, while pushing fault location information. .

[0024] Furthermore, the real-time control and logic execution in step four specifically include a microcontroller responsible for the real-time control algorithm, driving the actuator through the ECAT or AXIS interface, a core processor RK3588 processing complex logic, and adjusting the control strategy according to preset rules. When the vision module detects workpiece offset, the main controller immediately sends a compensation command to the slave controller to correct the position through multi-axis collaborative correction. The fault diagnosis and redundancy switching in step four specifically include monitoring the operating status of each module and cascaded device. If a slave controller goes offline, the main controller automatically enables the redundant path by switching to the backup Ethernet interface. If an I / O module fails, the main controller blocks the fault channel and issues an alarm. Detailed fault logs are read through the RS232 debugging port. The parameter optimization and function upgrade in step four specifically include supporting online modification of control parameters, which takes effect immediately after modification, and updating the controller firmware and module drivers via USB 3.0 to expand new functions.

[0025] A control system for an industrial controller with cascading expansion capabilities includes: The core control module includes a main processor unit, a real-time control unit, and a programming logic unit. The main processor unit is the core, based on the RK3588, and is responsible for the system's global logic, human-computer interaction, complex algorithms, running the Linux system, and providing API interfaces. The real-time control unit is a microcontroller used to process real-time tasks and communicate with the main processor through an internal bus. The programming logic unit is a programming logic chip PG2L50H used to achieve high-speed data forwarding, hardware synchronization, and signal conditioning, and supports user-defined logic. The communication interface module includes an industrial bus submodule, a general communication submodule, and a high-speed interface submodule. The industrial bus submodule includes an ECAT master interface and an SLD-BUS protocol controller. The general communication submodule includes integrated HDMI 2.1, RS485 / 232, four ETH Ethernet interfaces, and WiFi to provide diverse data interaction channels. The high-speed interface submodule includes PCIe 3.0, USB 3.0, and USB 2.0 for high-speed peripherals of the vision module and storage devices. The functional expansion module includes a motion control submodule, an I / O control submodule, and a customized submodule. The motion control submodule supports multi-axis linkage and linear sensor interfaces, and is compatible with pulse-type and bus-type drivers. The I / O control submodule includes 16 digital inputs and 16 digital outputs, supports dry contact and wet contact switching, and the inputs are optically isolated. The customized submodule is an expansion unit based on male and female interfaces and supports the development of custom drivers. The cascading management module includes a topology management unit, a resource scheduling unit, and a synchronization and redundancy unit. The topology management unit is responsible for the discovery, authentication, and topology drawing of cascading devices, supporting a maximum of 32 levels of cascading. The resource scheduling unit is used to implement global resource pooling management and dynamically allocate computing power, interface, and bandwidth resources. The synchronization and redundancy unit is used to provide high-precision spatiotemporal synchronization and multi-path redundancy switching. The Human-Machine Interaction and Maintenance Module includes a local interaction unit, a remote maintenance unit, and a log and diagnostic unit. The local interaction unit includes an HDMI display interface and an RS232 debugging port for on-site configuration and troubleshooting. The remote maintenance unit supports a web server and monitors system status and updates firmware through a cloud platform. The log and diagnostic unit records device operating data and provides a fault code library, and supports one-click export of diagnostic reports.

[0026] The RK3588, also known as the Rockchip 3588, is a multi-core ARM processor that supports the entire system of a device. It is responsible for booting the Linux kernel, global logic processing, human-machine interaction, and complex algorithms (such as visual recognition), making it the core processing unit of an industrial controller. The STM32F429IIT6, from STMicroelectronics, is a microcontroller responsible for real-time control and data algorithm processing. It uses an internal timer to reset the hardware of the real-time control module and handles real-time tasks such as PID regulation and pulse output. The PG2L50H, from Ziguang, is a programmable logic device (FPGA) that enables high-speed communication with the RK3588 via a PCIe 3.0 interface. It performs high-speed data forwarding, hardware synchronization, and signal conditioning, and also supports Verilog... The code includes custom logic. PCIe 3.0, or Third Generation Peripheral Component Fast Interconnect, is a high-speed serial computer expansion bus standard. Its function is to establish a high-speed communication channel between the FPGA (PG2L50H) and RK3588 for high-speed data transmission, ensuring efficient data interaction. HDMI 2.1, or High Definition Multimedia Interface 2.1, is used for high-definition audio and video signal transmission and can connect to a monitoring screen to display device status, allowing users to intuitively understand the controller's operation. RS485, a serial communication standard, supports multi-point communication, has strong anti-interference capabilities, and is commonly used for data transmission between devices in industrial control. It allows users to lock parameters through control software to ensure communication stability. RS232, a serial communication interface standard, is used for point-to-point short-distance device connections (such as debugging terminals) to achieve data transmission between devices, providing interface support for controller debugging and data interaction. ETH0-ETH3, or Ethernet interfaces 0 to 3, support wired network connections. ETH0... The system assigns a default management IP address, while others automatically obtain addresses via DHCP. Its multi-port design allows for scalable network topology, suitable for gateway or switch applications, ensuring network communication between the controller and other devices. ECAT, or Ethernet Control Automation Technology, is a real-time industrial Ethernet protocol. Its function is to achieve high-precision synchronous control, suitable for connecting bus drivers, ensuring the synchronization of equipment actions in motion control scenarios. Its preset cycle is 1ms. AXIS00-5, or Multi-Axis Motion Control Interface 0 to 5, supports precision motion control. Its axis control pulse frequency is preset to 1MHz, used to connect actuators such as motors to achieve precise control of multi-axis motion. SLD-BUS, or SLD Bus, is a custom network port-based motion controller protocol.The functions of USB 3.0 and USB 2.0 are for expanding other modules of the Eplink controller, playing a role in functional module authentication and cascaded device communication, ensuring normal communication between custom modules and cascaded devices. USB 3.0 provides high-speed data transmission, connecting high-speed peripherals such as vision modules, allocating bandwidth in the vision control module to ensure high-speed image data transmission, and can also be used to update controller firmware and module drivers. USB 2.0 is used for connecting medium- and low-speed peripherals (such as keyboards and mice), providing the controller with a universal peripheral expansion interface for easy user operation and device connection. IP addresses are used to identify devices in the network. ETH0 is assigned a management IP by default, while other ETH interfaces automatically obtain IPs via DHCP, ensuring the controller's unique identification and normal communication in the network. DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses to ETH interfaces, simplifying the network configuration process and allowing other ETH interfaces to access the network without manual IP configuration, improving network efficiency. The convenience of placement; WiFi, or Wireless Fidelity, is a wireless network technology that provides wireless networking capabilities, suitable for IoT or remote control scenarios. It prioritizes connection to pre-configured industrial-grade APs to ensure the controller's wireless communication function; AES-128, or 128-bit Advanced Encryption Standard, is used in the protocol authentication of SLD-BUS custom modules to confirm the module's legitimacy through an encrypted handshake, ensuring the security of module communication and preventing unauthorized access; NPU, or Neural Processing Unit, is used in vision control modules. The RK3588's NPU core handles complex algorithms such as visual recognition, improving the efficiency and speed of visual data processing; TTL, or Time to Live, is used during the cascaded device discovery phase. The TTL of the probe frame broadcast by ETH is set to 3 to limit the propagation range of the probe frame in the network, avoiding broadcast storms and ensuring stable network operation; CRC, or Cyclic Redundancy Check, is used to check the status code when the slave device executes the command, detecting whether errors occur during data transmission and ensuring data integrity and accuracy.

[0027] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A control method for an industrial controller with cascading expansion function, characterized in that, The specific steps include the following: Step 1: Hardware initialization and basic configuration. Connect the industrial controller power supply. The core controller starts up and performs a self-test, and the communication interface is activated and parameters are configured. Step 2: Functional module identification and configuration. The main control motherboard detects the installed functional module boards through multiple male and female interfaces, automatically identifies the functional module boards, and adapts the parameters of custom functional modules. Step 3: Cascading Expansion Setup and Collaborative Control. This enables physical connection and identification of cascaded devices. The main controller dynamically allocates and schedules tasks based on the total resources of the cascaded system. Specifically, the main controller handles visual control and global logic scheduling, while the slave controllers focus on multi-axis motion control. The main controller uses a programmable logic chip to parse the mixed protocol data sent by the slave devices in real time, converting it into a unified internal data frame format before distributing it to the corresponding functional modules. This constructs a distributed resource pool system. The core resources of the main and slave controllers, including the real-time computing power of the microcontroller, the inference capability of the core controller, and the axis control channels of the AXIS interface, are set as dynamically allocated resource units. When a surge in visual tasks is detected, the main controller automatically incorporates some of the core controller computing power of the slave devices into the resource pool. Distributed loading of model parameters is achieved through a PCIe 3.0 high-speed link. In multi-axis control scenarios, axis control tasks are split across the AXIS interfaces of different slave devices based on the complexity of the motion trajectory, using ECAT. The protocol's fly-read / fly-write mechanism enables nanometer-level synchronization across device axis groups, followed by data interaction and status monitoring. It also includes dynamic energy consumption control and predictive maintenance, as well as cross-level data compression and a self-healing mechanism. Specifically, when a slave device is detected to be offline, the system triggers a three-level self-healing process: Level 1, Level 2, and Level 3. Level 1 self-healing involves activating the slave device's backup communication interface and quickly restoring the connection via real-time interruption by the microcontroller. Level 2 self-healing involves the master controller migrating the slave device's tasks to a hot standby device if interface switching fails, achieving seamless takeover through dynamic resource pool reallocation. Level 3 self-healing involves automatically updating the topology mapping table for unrecoverable faults, removing the faulty device from the resource pool, and issuing audible and visual alarms via the HDMI screen and remote terminal, while simultaneously pushing fault location information. Step 4: Operation and maintenance, including real-time control and logic execution, fault diagnosis and redundancy switching, and parameter optimization and function upgrades.

2. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The startup and self-test of the core controller in step one specifically includes: The core processor boots the pre-installed Linux system, while the microcontroller performs a real-time self-test of the control module, automatically detecting the connection status between the PCIe 3.0 interface and the programming logic chip to ensure smooth high-speed communication. If a hardware anomaly is detected, including loose interfaces and chip failures, an error message will be output via the ETH0 Ethernet interface or the USB 3.0 debug port.

3. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The communication interface activation and parameter configuration in step one specifically includes automatically activating all communication interfaces and loading default parameters. The HDMI 2.1 interface is initialized to 1080P and 60Hz output mode for connecting to the monitoring screen to display device status. The RS485 / RS232 interface is configured to the industrial standard mode of 9600 baud rate and 8 data bits. Four independent Ethernet interfaces, ETH0, ETH1, ETH2 and ETH3, are set up and assigned static IPs by default, and wired network connections are supported for expanding network topology.

4. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The functional module board in step two includes an encoding module, an I / O module, and an ADDA module. The automatic identification of the functional module board in step two specifically includes reading the ID information and function identifier built into the functional module board, and performing two-way authentication, including hardware authentication and protocol authentication. After successful authentication, the module communication port is automatically allocated, and a visual icon is generated on the control interface. Then, resources are automatically allocated according to the module type. The parameter adaptation of the custom functional module in step two specifically includes importing the driver program of the custom functional module through software, automatically parsing the function instructions supported by the custom functional module, and the function instructions include the signal acquisition frequency of special sensors and the control logic of custom actuators.

5. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The physical connection and identification of cascaded devices in step three specifically includes connecting a new control motherboard through the ETH0-ETH3 Ethernet interface when cascading expansion is required. After enabling cascading mode, the master controller sends a handshake signal to the slave controller based on the custom SLD-BUS protocol. After the slave controller responds, the master controller automatically reads its hardware configuration, including the number of interfaces and the core processor model, and assigns a unique slave address.

6. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The data interaction and status monitoring in step three specifically include enabling a two-way data transmission mechanism, with the main controller sending control commands to the slave controller via WiFi or Ethernet, the slave controller providing real-time feedback on the execution status, all data being processed at high speed through a programming logic chip, and the cascaded system topology diagram, load rate of each module, and fault alarm information being viewed on an HDMI screen. The predictive maintenance in step three includes deploying a federated learning framework on the main controller, with the core processors of each slave device acting as edge nodes to analyze local sensor data in real time. This includes multi-axis linkage scenarios and time-series prediction of the communication quality of cascaded links. In the multi-axis linkage scenario, abnormal vibration characteristics are identified through a transfer learning model, triggering an early warning 5-10 minutes before a fault occurs. The main controller automatically adjusts motion parameters. For time-series prediction of the communication quality of cascaded links, if it is determined that the failure rate of a certain link exceeds 5% within the next 3 minutes, dynamic topology reconstruction is initiated in advance, and data transmission is switched to a backup channel.

7. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The energy consumption control in step three specifically includes the main controller collecting power consumption data from each slave device in real time and generating an energy consumption optimization scheme based on the task load intensity, specifically including: When the system is under light load, it automatically switches the core processor of the idle slave device to hibernation core mode and shuts down the power supply of unused ETH interface and USB port; When a slave device is detected to have no task interaction for 10 consecutive minutes, deep power saving is triggered. The microcontroller cuts off the power supply to non-core modules, retaining only the wake-up channels of ETH0 and RS485. At the same time, the resource information of the slave device is marked as awake and stored in the resource pool.

8. The control method for an industrial controller with cascading expansion function according to claim 1, characterized in that, The real-time control and logic execution in step four specifically includes a microcontroller responsible for the real-time control algorithm, driving the actuator through the ECAT or AXIS interface, a core processor processing complex logic, and adjusting the control strategy according to preset rules. When the vision module detects workpiece offset, the main controller immediately sends a compensation command to the slave controller to correct the position through multi-axis collaborative correction. The fault diagnosis and redundancy switching in step four specifically includes monitoring the operating status of each module and cascaded device. If a slave controller goes offline, the master controller automatically enables the redundant path by switching to the backup Ethernet interface. If an I / O module fails, the master controller blocks the fault channel and alarms. Detailed fault logs are read through the RS232 debugging port. The parameter optimization and function upgrade in step four specifically include supporting online modification of control parameters, with the changes taking effect immediately, and updating the controller firmware and module drivers via USB 3.0 to expand new functions.

9. A control system for an industrial controller with cascading expansion function, used to implement the control method for an industrial controller with cascading expansion function as described in claim 1, characterized in that, include: The core control module includes a main processor unit, a real-time control unit, and a programming logic unit. The main processor unit is the core and is responsible for the system's global logic, human-computer interaction, complex algorithms, running the Linux system, and providing API interfaces. The real-time control unit is a microcontroller used to process real-time tasks and communicate with the main processor through an internal bus. The programming logic unit is a programming logic chip used to implement high-speed data forwarding, hardware synchronization, and signal conditioning, and supports user-defined logic. The communication interface module includes an industrial bus submodule, a general communication submodule, and a high-speed interface submodule. The industrial bus submodule includes an ECAT master interface and a protocol controller. The general communication submodule includes integrated HDMI 2.1, RS485 / 232, four Ethernet interfaces, and WiFi to provide diverse data interaction channels. The high-speed interface submodule includes PCIe 3.0, USB 3.0, and USB 2.0 for high-speed peripherals of the vision module and storage devices. The functional expansion module includes a motion control submodule, an I / O control submodule, and a customized submodule. The motion control submodule supports multi-axis linkage and linear sensor interfaces, and is compatible with pulse-type and bus-type drivers. The I / O control submodule includes 16 digital inputs and 16 digital outputs, supports dry contact and wet contact switching, and has optically isolated inputs. The customized submodule is an expansion unit based on male and female interfaces and supports self-developed driver programs. The cascading management module includes a topology management unit, a resource scheduling unit, and a synchronization and redundancy unit. The topology management unit is responsible for the discovery, authentication, and topology drawing of cascading devices, and supports a maximum of 32 levels of cascading. The resource scheduling unit is used to implement global resource pooling management and dynamically allocate computing power, interface, and bandwidth resources. The synchronization and redundancy unit is used to provide high-precision spatiotemporal synchronization and multi-path redundancy switching. The human-machine interaction and operation and maintenance module includes a local interaction unit, a remote operation and maintenance unit, and a log and diagnostic unit. The local interaction unit includes an HDMI display interface and an RS232 debugging port for on-site configuration and troubleshooting. The remote operation and maintenance unit supports a web server and monitors system status and updates firmware through a cloud platform. The log and diagnostic unit records device operating data and provides a fault code library, and supports one-click export of diagnostic reports.

Citation Information

Patent Citations

  • Synchronous serial time division multiplexing bus method applied to high-voltage cascade equipment

    CN115001618A

  • Expandable PLC controller control method, equipment and medium

    CN118605372A

  • Bus connecting device for backboard of PLC (Programmable Logic Controller) module

    CN118783145A