Method and device for synchronizing subsystem commands
A subsystem and command technology, applied in the direction of program synchronization, multi-program device, general control system, etc., can solve problems such as unpredictable program operation results, reduce complexity and avoid program errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] figure 1 It is a schematic flowchart of a method for synchronizing subsystem commands provided in Embodiment 1 of the present invention. The method in this embodiment is applicable to the situation of synchronizing subsystem commands in a numerical control system including multiple subsystems. It can be executed by a synchronization device commanded by the subsystem, which device can be realized by means of hardware and / or software, and generally can be applied to the main system of the numerical control system.
[0055] see figure 1 , the synchronization method of the subsystem command, comprising:
[0056] S110. When sending a command to each subsystem, select a formal parameter corresponding to each command and pass it into the corresponding command. The formal parameter corresponding to each command is different, and the formal parameter is used for transmission.
[0057] In a control system, it usually includes a main system and a subsystem. Among them, the main...
Embodiment 2
[0072] figure 2 It is a schematic flowchart of a method for synchronizing subsystem commands provided by Embodiment 2 of the present invention. This embodiment is optimized based on the foregoing embodiments, and specifically optimizes the formal parameter corresponding to the command as: a pointer to a response processing function of the command. Correspondingly, after judging whether the response corresponds to the command, the following steps are added before waking up the calling thread: taking out the pointer of the response processing function of the command from the verification parameter queue, and using the response to process The function judges whether the response is normal; correspondingly, when the response corresponds to the command, wake up the calling thread, specifically optimized as: when the response corresponds to the command and is normal, wake up The calling thread.
[0073] see figure 2 , the synchronization method of the subsystem command, compris...
Embodiment 3
[0085] image 3 A schematic flowchart of a method for synchronizing subsystem commands provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments, and the response processing thread is blocked in the thread queue. The specific optimization is as follows: setting the maximum response duration of the blocked termination trigger condition; correspondingly, the following steps are added: at the maximum When no response is received within the response duration, the calling thread is woken up to output an error.
[0086] see image 3 , the synchronization method of the subsystem command, including:
[0087] S310. When sending a command to the subsystem, select a formal parameter corresponding to the command and pass it into the corresponding command. The formal parameter corresponding to each command is different, and the formal parameter is used for transmission.
[0088] S320. Insert the formal parameter into a preset f...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com