Task Synchronization for Seamless Mode Switching in PACs
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Multitask processes in Programmable Automation Controllers (PACs) face difficulties in mode switching due to differing task cycles, leading to incomplete or inaccurate control of industrial machines when switching between operation and program modes.
Innovation Solution
A control device with a task executing unit that synchronizes tasks across different cycles, allowing seamless mode switching between operation and program modes, ensuring uninterrupted execution of user programs and efficient task processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If multitask processes are executed with different task cycles, then task processing efficiency is improved, but mode switching accuracy deteriorates
Solution Approach 1:
The system performs preliminary detection of task execution states before mode switching occurs. The control device checks whether all tasks have completed their current execution cycles and are in a synchronized state before allowing mode transition, preventing incomplete task execution during mode switching.
Solution Approach 2:
The system implements feedback mechanisms to monitor task execution status continuously. The control device receives feedback signals from each task indicating completion status, and uses this feedback to determine the appropriate timing for mode switching, ensuring all tasks are synchronized before transition.
2Loss of time
If mode switching is performed during task execution, then response time is reduced, but task execution completeness deteriorates
Solution Approach 1:
The system checks task completion status before initiating mode switching. The control device waits for a predetermined condition indicating all tasks have completed their current cycle before executing the mode switch, ensuring task execution completeness while maintaining reasonable response time.
Solution Approach 2:
The system prepares for mode switching by monitoring task states in advance and only allows switching when tasks are in a safe state. This cushioning approach prevents harmful interruptions by ensuring tasks are complete before mode transition occurs.
Data Source
AI summary
A control device capable of appropriately switching operating modes when multitasking is being performed is provided. A CPU unit is provided with a task executing unit for executing a plurality of tasks in parallel, and for executing each task in cycles based on each task; and a mode switching unit for switching operating modes. The task executing unit is configured in such a manner that when in operation mode, a user program is executed for each task, and when in program mode, a user program is not executed for each task. The mode switching unit is configured in such a manner that the operating mode is switched when a plurality of tasks being executed by the task executing unit are synchronized


