Data asynchronization storage and access mechanism applied to industrial control system
An industrial control system and data technology, applied in memory systems, electrical digital data processing, special data processing applications, etc., can solve the problems of reduced database access efficiency, inability to be suitable and competent, etc., to achieve enhanced fault tolerance, improved system efficiency, The effect of high access efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0035] Example 1:
[0036] The invention provides a data asynchronous storage and access mechanism applied to industrial control systems, solves the asynchronous data access problems of data exchange and buffering in large-scale industrial control systems, and provides higher system data exchange efficiency and fault tolerance.
[0037] The present invention includes the real-time data caching step of the industrial control system and the data reading step of the industrial control system. Both the real-time data caching step of the industrial control system and the data reading step of the industrial control system adopt a memory database. The real-time data structure is a first-in, first-out circular queue. The data structure of the circular queue is as figure 1 Shown. The data item in the circular queue adopts a variable length method, and a head pointer and a tail pointer are set. The head pointer points to the first byte of the data to be read at the head of the circular queue...
Example Embodiment
[0063] The present invention provides the following three implementation solutions for synchronization and mutual exclusion:
[0064] The pseudo-code flow diagram of synchronous mutual exclusion implementation method 1 is as follows Figure 4 As shown, a mutual exclusion lock mutexWrite is set in the memory database, and two semaphores used and free, where the value of the semaphore used corresponds to the size of the space used, and the value of the semaphore free corresponds to the size of the free space, and used+ free==size–1. This model is a typical producer-consumer model. The producer is the enqueue process. First, the P operation of the semaphore free identifying the number of bytes of free resources is performed, and 4+data_size resources are subtracted, and then protected by a mutex lock Write, update the tail pointer position after writing. After writing, perform the V operation of the semaphore used that identifies the number of used resource bytes, plus 4+data_size ...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap