Ladder Program Conversion With Circuit Mapping for Readability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The conversion of programs from a ladder language to a procedural language often results in decreased program readability, leading to lower work efficiency during development and editing.

Innovation Solution

A programming support program that converts a ladder language program into an intermediate language and then into a procedural language, while generating circuit display components to enhance readability, by analyzing each block and determining the necessity of displaying these components based on predetermined conditions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a program described in a ladder language is converted into a program described in a procedural language, then the program can be described in a more flexible programming language, but the program readability decreases

Engineering Contradiction:
Improveprogramming language flexibilityVSAvoidprogram readability
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

An intermediate representation is introduced as a mediator between the ladder language and procedural language. The conversion process occurs in two stages: first converting the ladder program to an intermediate representation that preserves the original program's structure and semantics, then converting this intermediate representation to the target procedural language. This intermediary step allows the system to maintain readability information while achieving language flexibility.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The conversion process is segmented into distinct stages: analysis of the original ladder program, generation of intermediate representation, and conversion to procedural language. Additionally, the system identifies and segments important program blocks that require special handling to maintain readability, applying different conversion strategies to different segments of the program.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If a program described in a ladder language is converted into a program described in a procedural language, then the program can be described in a more flexible programming language, but the work efficiency decreases

Engineering Contradiction:
Improveprogramming language flexibilityVSAvoidwork efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The system performs preliminary analysis of the ladder program structure before conversion, identifying important blocks and relationships in advance. This preliminary action allows the conversion process to proceed more efficiently by pre-planning the transformation strategy, reducing the overall conversion time and maintaining work efficiency despite the language transition.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If the structure of the blocks of the program before conversion is more complicated, then the program functionality is more advanced, but the program readability decreases

Engineering Contradiction:
Improveprogram functionalityVSAvoidprogram readability
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system applies different conversion strategies to different parts of the program based on local characteristics. Important blocks with complex structures are identified and handled specially to preserve their readability, while simpler blocks undergo standard conversion. This local quality approach ensures that functionality is maintained while minimizing readability loss in critical sections.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The conversion process is made dynamic by adapting the conversion strategy based on the complexity and type of each program block. The system dynamically adjusts its approach, applying more conservative conversion methods to complex blocks and more aggressive methods to simpler blocks, thereby maintaining readability where needed while achieving functionality elsewhere.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS12032937B2Programming support program for preventing work efficiency from lowering as a result of conversion
Publication Date: 2024.07.09 MITSUBISHI ELECTRIC CORP
  • US12032937B2 patent drawing
  • US12032937B2 patent drawing
  • US12032937B2 patent drawing

AI summary

A programming support program causes an electronic computer to execute: a first conversion step of converting a first program described in a ladder language into a second program described in an intermediate language; a second conversion step of converting the second program into a third program described in a procedural language; a circuit display component generation step of, when a result of analysis of each block of the second program satisfies a predetermined condition, generating a circuit display component representing a content of a block satisfying the condition; and a display step of displaying the third program and the circuit display component in a format enabling recognition of correspondence between the circuit display component and a block of the third program.