Control device and reading method for storing advanced controller operation data
A technology for operating data and control devices, applied in the field of databases, can solve the problems such as the decline of database reading performance, the increase of database IO points, the inability to save the operation data of advanced controller parameters to DCS or real-time database, etc., and to improve the utilization of storage space. , Ease of maintenance, the effect of reducing access pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] In order to achieve the above technical purpose, the present invention provides a control device for storing advanced controller operation data, such as figure 1 As shown, the control device 1 includes:
[0043] The advanced controller structure sending device 11 is used to send the name of the machine where the advanced controller is located, the name of the advanced controller, and the structure information of the advanced controller to the storage structure creation device;
[0044] The storage structure creation device 12 is used to create a secondary directory named after the machine name under the storage root directory according to the advanced controller structure information, and then create a third-level directory named after the advanced controller under the secondary directory, and finally Create a database file named after the current system time in its third-level directory, and create a series of parameter tables named after variables + parameters and a p...
Embodiment 2
[0096] The present invention also provides a reading method for storing advanced controller operating data, such as figure 2 As shown, the reading method includes:
[0097] Step 1. Obtain a request to read controller data;
[0098] Step 2. If the request is the first read request for the controller, search for a folder named after the controller in the storage directory;
[0099] Step 3, if a folder named after the controller is obtained under the storage directory, traverse all database files in the folder, and create a connection instance based on all database files;
[0100] Step 4: call the worker thread to read the historical data corresponding to the controller, and combine the connection instance to obtain the target data corresponding to the controller.
[0101] Step 5: If the request is not the first read request for the controller, perform an operation of traversing the cache.
[0102] Step 6: After performing the operation of traversing the cache, if no cache it...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

