PLC program automatic debugging method based on ant colony optimization algorithm

By adopting an automatic debugging method for PLC programs based on ant colony optimization algorithm, the problems of breakpoint mishitting, interlock logic destruction, and communication bottlenecks in the parallel collaborative debugging of multiple PLC controllers are solved. This method achieves efficient and safe multi-target consistency debugging, and improves the safety compliance and consistency verification pass rate of the debugging scheme.

CN121613813BActive Publication Date: 2026-06-05HEFEI YIFENG INTELLIGENT TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HEFEI YIFENG INTELLIGENT TECHNOLOGY CO LTD
Filing Date
2025-12-15
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

The existing parallel collaborative debugging process of multiple PLC controller programs suffers from issues such as misaligned breakpoints, disrupted interlocking logic, communication bottlenecks, and conflicts arising from concurrent operations by multiple engineers. This results in low debugging efficiency and poor project controllability, and fails to effectively solve the problems of multi-objective global consistency and optimal scheduling of multi-constraint resources.

Method used

An automatic debugging method for PLC programs based on ant colony optimization algorithm is adopted. By constructing a collaborative operation diagram and constraint set for debugging actions of multiple PLC controllers, a discrete debugging action sequence is generated. An improved discrete ant colony optimization algorithm and tabu search algorithm are used to perform state encoding of debugging actions, pheromone matrix initialization, time axis swapping, port rearrangement, and network bandwidth reallocation, so as to ensure the consistency and safety of the debugging process.

Benefits of technology

In large-scale parallel debugging scenarios, dynamic analysis and explicit constraints on interlock conflicts, communication bandwidth bottlenecks, and security level compliance issues improve the security compliance and consistency verification pass rate of the debugging process, reduce concurrent conflicts and security risks, and enhance the security compliance and consistency verification pass rate of the debugging solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121613813B_ABST
    Figure CN121613813B_ABST
Patent Text Reader

Abstract

The application discloses a PLC program automatic debugging method based on an ant colony optimization algorithm, parses information and constructs a multi-PLC controller debugging action collaborative work graph and a constraint set; generates a discrete debugging action sequence; generates a first candidate parallel debugging scheme; performs a debugging action exchange, a debugging port rearrangement and a network bandwidth redistribution operation based on a time axis; inputs a second candidate parallel debugging scheme into a consistency and safety checker for checking, deploys a shadow breakpoint and a shadow forced write in a corresponding controller to construct a minimum disturbance debugging environment; updates a pheromone matrix and a tabu attribute table according to collected debugging data to form an adaptively adjusted third candidate parallel debugging scheme; and a debugging terminal condition is satisfied and a final parallel PLC controller collaborative debugging scheme is output. The application greatly improves the ability of the scheme to jump out of a local optimum and cope with multiple constraint field disturbances.
Need to check novelty before this filing date? Find Prior Art