NC System Program Compilation Using Fixed External Input Signals
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Numerical controllers generate unnecessary source code and symbols due to varying system configurations, and existing optimization methods fail to account for detailed external input signals, leading to inefficiencies in system program optimization.
Innovation Solution
A system program optimization device and system that acquires constant values for external input signals and uses them to optimize system programs through a compiler, reducing unnecessary code and improving execution efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If conventional optimization methods are used to analyze system programs, then some optimization can be achieved, but external input signals cannot be properly determined and detailed optimization is impossible
Solution Approach 1:
The patent applies preliminary action by acquiring constant values for external input signals before the compilation and optimization process. The optimization information generation unit creates optimization information based on these pre-acquired constant values, enabling the compiler to perform targeted optimizations on specific code segments that depend on these signals, rather than attempting to analyze all possible signal variations during compilation.
Solution Approach 2:
The patent changes parameters by introducing constant values for external input signals as fixed parameters during optimization. Instead of treating external input signals as variable unknowns, the system assigns them specific constant values (0 or 1) based on actual usage patterns, allowing the compiler to optimize code paths conditionally based on these fixed parameter values.
2Productivity
If the system program is optimized for specific configurations, then execution efficiency improves, but the program becomes less adaptable to different configurations
Solution Approach 1:
The patent applies dynamics by making the optimization level adjustable based on external input. The system includes an optimization information generation unit that creates different optimization information based on constant values of external input signals. This allows the compilation system to dynamically adjust the degree of optimization - generating highly optimized code when external inputs are known to be constant, while maintaining broader compatibility when they are not.
Solution Approach 2:
The system changes parameters by using constant values of external input signals as control parameters for optimization. When external input signals have determined constant values, the compiler applies aggressive optimizations for those specific configuration paths. When constant values are not available, the compiler generates more generic code that can adapt to different configurations, thus balancing execution efficiency with configurability.
Data Source
AI summary
This system program optimization system is provided with an information processing device and a system program optimization device. The information processing device receives a setting of a constant value with respect to an external input signal inputted from an external device connected to a numerical control device, and outputs the constant value to a system program optimization device. The system program optimization device acquires the constant value set to the external input signal inputted from the external device connected to the numerical control device, compiles a source code of a system program into an object program which can be executed by the numerical control device, and optimizes the system program by the constant value of the external input signal in the compilation.


