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
Embodiment 1
[0036] The invention provides a data asynchronous storage and access mechanism applied to an industrial control system, solves the problem of asynchronous data exchange and buffering in a large industrial control system, 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, and the memory database is used in the real-time data caching step of the industrial control system and the data reading step of the industrial control system. The real-time data structure is a first-in first-out ring queue, and the data structure of the ring queue is as follows figure 1shown. The data items in the ring queue adopt a variable length mode, 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 ring queue, and the tail pointer points to ...
Embodiment approach
[0064] The schematic diagram of the pseudo-code flow chart of the implementation method 1 of synchronous mutual exclusion is as follows: Figure 4 As shown, a mutex mutexWrite is set in the memory database, two semaphores used and free, wherein, the value of the semaphore used corresponds to the size of the space used, 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 an enqueue process. First, it performs the P operation of the semaphore free that identifies the number of free resource bytes, subtracts 4+data_size resources, and then protects it through a mutex Write, and 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 resources, this V operation may activate the blocking state of the consumer process that is waiting on the used semapho...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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