Industrial PLC Code Merge Resolution with AI Summaries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Industrial control programs face challenges in accurately summarizing changes and resolving merge conflicts due to vague commit messages, unfamiliar domain-specific languages, and graphical user interfaces that hinder understanding of code changes, especially when multiple entities work concurrently.

Innovation Solution

An automated system utilizing artificial intelligence and machine learning generates plain language summaries of code changes and resolves merge conflicts by analyzing formal language constructs, considering entity roles and vernacular, and providing options based on historical data and context.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If commit messages are created manually by entities editing the program, then version tracking is maintained, but the summaries may be vague, confusing, or inaccurate

Engineering Contradiction:
Improveaccuracy of change summaryVSAvoidtime to review and understand changes
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The system automatically generates commit summaries by analyzing the actual code changes and comparing them with the provided commit message, allowing the system to self-evaluate and identify discrepancies without manual intervention

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system provides feedback to entities about the accuracy and clarity of their commit messages by comparing them with the actual changes, enabling continuous improvement of summary quality

Inventive Principle:
Principle #23Feedback

2Ease of operation

If entities interact with program code via graphical user interface, then ease of operation is improved, but ability to discern code changes is reduced

Engineering Contradiction:
Improveease of code editingVSAvoiddifficulty of discerning code changes
Core Design Contradiction:
Ease of operationVSDifficulty of detecting and measuring

Solution Approach 1:

The system acts as an intermediary that translates between the graphical interface interactions and the underlying code changes, providing a bridge that makes changes visible and understandable

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system replaces manual visual inspection of code changes with automated AI analysis that can detect and explain changes regardless of the interface used

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Productivity

If multiple entities work concurrently on the same program code, then productivity is improved, but merge conflicts occur

Engineering Contradiction:
Improvecollaboration efficiencyVSAvoidcode merge reliability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system provides automated feedback about potential conflicts before they occur, allowing entities to adjust their changes to avoid merge issues

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary analysis of proposed changes against existing code and other pending changes to predict and prevent merge conflicts before they occur

Inventive Principle:
Principle #10Preliminary action

4Manufacturing precision

If domain specific language is used for program code, then manufacturing precision is improved, but ease of operation is reduced

Engineering Contradiction:
Improveprecision of control logicVSAvoidease of understanding code
Core Design Contradiction:
Manufacturing precisionVSEase of operation

Solution Approach 1:

The system acts as an intermediary that translates between the domain-specific language and plain language explanations, making precise code understandable without losing its technical accuracy

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentEP4610814A1Automated system for resolving version control merge conflicts
Publication Date: 2025.09.03 ROCKWELL AUTOMATION TECH INC
  • EP4610814A1 patent drawingFigure 1
  • EP4610814A1 patent drawingFigure 2
  • EP4610814A1 patent drawingFigure 3

AI summary

Various systems and methods are presented regarding using generative artificial intelligence/machine language (AI/ML) to resolve a merge conflict between two or more versions of a program code. The program code can be industrial automation software utilized to control one or more PLCs in an industrial environment. Interaction with the program code can be via a programming tool that presents the program code in a human readable format, while the AI/ML can be applied to the underlying source code. Hence, while the source code is applied to the PLC, the programming tool enables interaction various human readable summaries of the program code and respective options available to resolve the merge conflict. Accordingly, a process engineer, or suchlike, does not have to be familiar with the source code format to readily understand a summary of the merge conflict or one or more options available to correct the conflict.