NC Condition Wait Block Analysis for Real-Time Control
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing numerical control devices face increased analysis processing load during condition wait programs with infinite loops, limiting their ability to handle conditions requiring real-time computation and reducing available processing time for other operations.
Innovation Solution
The numerical control device includes an analysis processing unit that analyzes condition wait blocks before determining satisfaction of conditional expressions, reducing analysis load by analyzing only one block per cycle and ensuring sufficient processing capacity for other operations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If the numerical control device repeatedly analyzes all blocks in the condition wait program during each cycle, then the condition can be accurately determined, but the analysis processing load increases and available time for other processing decreases
Solution Approach 1:
The patent segments the condition wait program into two parts: blocks that are analyzed only once (including the conditional expression and subsequent blocks) and blocks that are repeatedly executed (the infinite loop portion). This segmentation allows the system to determine conditions accurately while reducing redundant analysis processing in subsequent cycles.
Solution Approach 2:
The patent performs preliminary analysis of the condition wait blocks before entering the repeated execution phase. By analyzing and storing the results of block analysis in advance, the system prepares the necessary data structures and condition evaluations beforehand, reducing the processing load during repeated cycles.
2Speed
If the numerical control device stores analysis results for repeated use, then processing speed improves, but the ability to handle dynamic conditions requiring real-time computation decreases
Solution Approach 1:
The patent implements a dynamic approach where the system distinguishes between static analysis results (blocks analyzed once) and dynamic condition evaluation (conditional expressions re-evaluated each cycle). This allows the system to maintain processing speed through cached analysis while preserving adaptability for conditions requiring real-time computation such as external signal comparisons and variable value evaluations.
3Reliability
If the numerical control device executes comprehensive block analysis in each cycle, then processing accuracy is maintained, but the time available for other operations such as screen updates and external communication is reduced
Solution Approach 1:
The patent extracts the conditional expression evaluation from the comprehensive block analysis process. By separating the condition determination (which requires real-time accuracy) from the block analysis (which can be cached), the system maintains processing accuracy for condition evaluation while reducing overall analysis processing load, thereby freeing up time for screen updates, external communication, and other operations.
Data Source
AI summary
A numerical control device includes an analysis processing unit that reads a block indicated by a program counter from a numerical control program and analyzes the block and a control processing unit that generates, on the basis of an analysis result from the analysis processing unit, a command that drives a control target. When a condition wait block describing a conditional expression that indicates a condition for advancing execution of the numerical control program is read, the analysis processing unit repeatedly determines whether or not the condition is satisfied until the condition is satisfied. Until the condition is satisfied, the analysis processing unit analyzes the condition wait block before making first and subsequent determinations of whether or not the condition is satisfied.


