CNC Interrupt Task Control for Accurate System Data Capture
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing numerical control devices face challenges in accurately capturing system data values during interrupt conditions, as tasks like machining programs, ladder applications, and background applications are suspended, leading to potential inaccuracies in system data updates.
Innovation Solution
A numerical control device with a task management unit, interrupt notification unit, and interrupt processing unit that suspends tasks and executes a designated interrupt program, allowing for accurate system data capture by managing and prioritizing tasks, and enabling user-defined interrupt conditions and programs through a user interface.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If the interrupt processing program is executed by suspending only the machining program task, then the machining program can be interrupted accurately, but the background tasks (ladder and application) continue to execute which causes system data to become inaccurate
Solution Approach 1:
The system segments tasks into different priority levels: machining program tasks, ladder application tasks, and other background tasks. The interrupt processing unit selectively suspends only the necessary task segments (machining and ladder tasks) while allowing other background tasks to continue, thereby capturing accurate system data without requiring complete system suspension.
Solution Approach 2:
The interrupt monitoring unit continuously monitors system data and preemptively detects interrupt conditions before they affect data accuracy. When an interrupt condition is detected, the system preliminarily suspends the relevant tasks and executes the interrupt processing program to capture accurate system data at the precise moment the interrupt condition occurs.
2Measurement precision
If all tasks are suspended to execute the interrupt processing program, then accurate system data can be captured, but the productivity and responsiveness of the system decreases
Solution Approach 1:
The interrupt processing unit selectively suspends only the machining program task and ladder application task when an interrupt condition is detected, while allowing other background tasks to continue executing. This segmented approach ensures accurate system data capture at the interrupt moment while maintaining overall system productivity and responsiveness.
Solution Approach 2:
The system applies partial suspension action by selectively stopping only the necessary tasks (machining and ladder) rather than suspending all tasks. This partial action is sufficient to capture accurate system data while minimizing the impact on overall system productivity and allowing non-critical background tasks to continue running.
3Speed
If the interrupt processing program is executed without suspending background tasks, then system responsiveness is maintained, but the system data values may be inaccurate due to concurrent updates
Solution Approach 1:
The system segments task suspension based on priority and data criticality. When an interrupt condition is detected, the interrupt processing unit suspends only the machining program task and ladder application task which are directly related to the interrupt condition, while allowing other background tasks to continue. This ensures both system responsiveness and accurate system data capture.
Solution Approach 2:
The interrupt monitoring unit continuously monitors system data and preemptively detects interrupt conditions. Upon detection, it preliminarily suspends the relevant tasks before the interrupt processing program executes, ensuring that system data remains accurate and unchanged during the interrupt processing period, thereby maintaining both responsiveness and data accuracy.
Data Source
AI summary
A numerical control device that suspends tasks related to a machining process when designated conditions are satisfied to execute a designated program as an interrupt. A numerical control device includes: a task management unit that manages tasks that execute a machining program and tasks executed on the background of the tasks that execute the machining program; an interrupt notification unit that monitors system data set to an interrupt condition designated in advance and outputs an interrupt command upon detecting that the interrupt condition is satisfied; and an interrupt processing unit that suspends the tasks being executed at a time point when the interrupt command was received to execute a predetermined interrupt program as an interrupt on the basis of the interrupt command output by the interrupt notification unit.


