Information processing system, information processing method, and program
The information processing system addresses memory limitations by storing data in time-series databases, enhancing data handling capacity and reducing visualization time through efficient query-based data acquisition.
Patent Information
- Application Number
- JP2023068404
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing systems face limitations in handling large amounts of time-series data from production equipment due to memory constraints, leading to increased load and longer data visualization times.
An information processing system that stores data sets in time-series databases instead of files, allowing for increased capacity and enabling efficient data acquisition through query generation based on definition information, thereby reducing the time required for data visualization.
The system effectively handles large amounts of data and significantly shortens the time needed for data visualization by utilizing time-series databases for data storage and management.
Smart Images

Figure 2024154543000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing system, an information processing method, and a program. [Background technology]
[0002] In order to investigate the cause of abnormal operation of production equipment, a technology has been developed to record time series data collected by the programmable logic controller (PLC) that controls the production equipment and to visualize the recorded time series data.
[0003] For example, JP 2020-13528 A (Patent Document 1) discloses an engineering tool having a storage means for storing multiple time-series device values collected in a PLC, and multiple software modules for visualizing the device values. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-13528 A Summary of the Invention [Problem to be solved by the invention]
[0005] Time series data is usually stored in a file. The file is opened on a computer that visualizes the time series data. To open the file on the computer, a memory having a size equivalent to the file size is required. Therefore, the capacity of the time series data that can be saved in the file is limited according to the memory size.
[0006] Increasing the memory size increases the amount of time-series data that can be saved in a file, but it also increases the load required to read the time-series data and lengthens the time it takes to start visualizing the time-series data.
[0007] The present disclosure has been made in consideration of the above problems, and its purpose is to provide an information processing system, an information processing method, and a program that are capable of handling large amounts of data and shortening the time until data visualization can begin. [Means for solving the problem]
[0008] According to an example of the present disclosure, an information processing system includes one or more visualization modules that visualize visualization target data that represents a state of a production system, one or more time-series databases that store a data set that indicates the state of the production system at each time, and a data management unit that generates a query based on definition information that defines the acquisition target data and acquires the acquisition target data from the one or more time-series databases using the query. The one or more visualization modules acquire the acquisition target data as visualization target data.
[0009] According to this disclosure, a dataset indicating the state of the production system is stored in one or more time series databases, rather than in a file. Therefore, the upper limit on the capacity of the dataset is virtually abolished. This allows the information processing system to handle a large amount of state datasets. In addition, since the dataset is stored in one or more time series databases, the data management unit can easily acquire the target data to be acquired from the one or more time series databases by generating a query. The one or more visualization modules acquire the target data to be acquired as data to be visualized. Therefore, the time until visualization of the target data to be visualized can be started is shortened.
[0010] In the above disclosure, the data management unit generates a query by using the definition information and the query template. According to this disclosure, the data management unit can easily generate a query.
[0011] In the above disclosure, the production system includes a programmable logic controller that executes a control program. The data set includes variable data indicating, for each of one or more variables used by the control program, an identifier and a value held by the programmable logic controller at a corresponding time. The data management unit identifies an identifier corresponding to a variable name set during development of the control program for a variable to be acquired among the one or more variables. The data management unit generates a query to specify the data set corresponding to the identified identifier as data to be acquired.
[0012] According to this disclosure, the data size of identifiers included in a data set can be made smaller than the size of data indicating variable names, allowing an information processing system to handle larger amounts of data.
[0013] In the above disclosure, the information processing system further includes a setting unit that sets first information indicating a type of the acquisition target data as definition information in response to a user input. The one or more time-series databases include a plurality of time-series databases. The data management unit identifies a target time-series database that stores the acquisition target data from the plurality of time-series databases based on the first information, and generates a query to specify the target time-series database as an acquisition destination of the acquisition target data.
[0014] According to this disclosure, an information processing system can be constructed to include multiple time-series databases.
[0015] In the above disclosure, the information processing system further includes a setting unit that sets definition information in response to a user input. The production system includes a programmable logic controller that executes a control program. The data set includes variable data indicating a value held by the programmable logic controller at a corresponding time for each of one or more variables used by the control program. The setting unit sets, as the definition information, second information that defines a variable to be acquired among the one or more variables. The data management unit generates a query to specify the variable data corresponding to the variable defined by the second information as data to be acquired.
[0016] According to this disclosure, the data management unit can freely generate queries in response to user input, allowing the user to perform highly flexible analyses using various types of data stored in one or more time-series databases.
[0017] In the above disclosure, the one or more time series databases store a data set for each time included in a sampling period. The information processing system further includes a clock management unit that advances a counter value representing a time within the sampling period by one at regular intervals. The definition information includes third information that defines a relative relationship between the time represented by the counter value and the time to be acquired or the time range to be acquired. The data management unit identifies the time to be acquired or the time range to be acquired based on the counter value currently managed by the clock management unit and the third information, and generates a query to specify a data set corresponding to the identified time to be acquired or the time range to be acquired as data to be acquired.
[0018] According to this disclosure, one or more visualization modules can sequentially visualize a data set for a time or time range to be acquired during a sampling period at regular intervals.
[0019] In the above disclosure, the information processing system includes a setting unit that sets the third information in response to a user input.
[0020] According to this disclosure, the data management unit can freely generate queries in response to user input, allowing the user to perform highly flexible analyses using various types of data stored in one or more time-series databases.
[0021] An information processing method according to another example of the present disclosure is an information processing method in an information processing system including one or more visualization modules that visualize visualization target data representing a state of a production system, and one or more time-series databases that store a data set indicating the state of the production system for each time. The information processing method includes generating a query based on definition information that defines the acquisition target data, acquiring the acquisition target data from the one or more time-series databases using the query, and the one or more visualization modules acquiring the acquisition target data as visualization target data.
[0022] According to yet another example of the present disclosure, a program causes a computer to execute the above information processing method.
[0023] These disclosures also make it possible for an information processing method or program to handle large amounts of data and to shorten the time required to start visualizing the data. Effect of the Invention
[0024] According to the present disclosure, an information processing system, an information processing method, or a program is capable of handling large amounts of data and can shorten the time until data visualization can begin. [Brief description of the drawings]
[0025] [Figure 1] FIG. 1 is a diagram illustrating an example of an information processing system according to an embodiment. [Diagram 2] 1 is a schematic diagram showing an example of an overall configuration of a production system to which an information processing system according to an embodiment is applied; [Diagram 3] FIG. 2 is a schematic diagram illustrating an example of a hardware configuration of a PLC according to an embodiment. [Figure 4] FIG. 2 is a block diagram showing an example of a software configuration of a PC and a PLC. [Diagram 5] FIG. 2 is a diagram illustrating an example of a data structure of a time-series database. [Figure 6] FIG. 2 is a diagram showing an example of a configuration of a reproduction module and its surroundings. [Figure 7] FIG. 13 is a diagram showing an example of a fourth window for performing a reproduction operation of the reproduction module. [Figure 8] FIG. 2 is a diagram illustrating a query generation method performed by a first query generation unit. [Figure 9] 1 is a flowchart showing a processing flow of a PC. [Figure 10] 10 is a flowchart showing the process flow of a subroutine of step S3 shown in FIG. 9. [Figure 11] 10 is a flowchart showing the process flow of a subroutine of step S4 shown in FIG. 9. [Figure 12] FIG. 13 is a diagram showing a main software configuration of an information processing system according to a modified example. [Figure 13] 13 is a diagram illustrating the processing of a setting unit and a third query generating unit. FIG. [Figure 14] FIG. 13 is a diagram showing three examples of queries generated by a third query generating unit. [Figure 15] 13 is a flowchart showing a process flow of a subroutine of step S3 by an information processing system according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] The embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and the description thereof will not be repeated. In this specification, unless otherwise specified, the term "or" includes the meaning of "and" in addition to the meaning of "or".
[0027] §1 Examples of application Fig. 1 is a diagram illustrating an example of an information processing system according to an embodiment. The information processing system 100 illustrated in Fig. 1 is configured with one or more computer resources. The information processing system 100 includes one or more visualization modules 30, a data management unit 42, and one or more time-series databases 50.
[0028] The one or more visualization modules 30 visualize the data of the visualization target that represents the state of the production system.
[0029] The one or more time series databases 50 are software systems that store data sets (hereinafter referred to as "state data sets") that indicate the state of the production system at each time and provide data in response to queries.
[0030] The data management unit 42 generates a query based on definition information that defines the acquisition target data in response to a request from one or more visualization modules 30. The query is written according to, for example, SQL. The data management unit 42 acquires the acquisition target data from one or more time-series databases 50 using the generated query.
[0031] The one or more visualization modules 30 acquire target data as data to be visualized.
[0032] As described above, when opening a file, a memory having a size equivalent to the file size is required. Therefore, the capacity of data stored in the file is limited according to the memory size. According to the information processing system 100, a status data set indicating the status of the production system is stored in one or more time-series databases 50, not in a file. Therefore, the upper limit on the capacity of the status data set is virtually abolished. This allows the information processing system 100 to handle a large amount of status data sets.
[0033] Since the state data set is stored in one or more time-series databases 50, the data management unit 42 can easily acquire the acquisition target data from one or more time-series databases 50 by generating a query. The one or more visualization modules 30 acquire the acquisition target data as data to be visualized. Therefore, the time until visualization of the visualization target data starts is shortened.
[0034] Furthermore, since the state data set is stored in one or more time-series databases 50, the degree of freedom of the OS (Operating System) or environment in which the one or more visualization modules 30 and the data management unit 42 run is increased.
[0035] §2 Specific examples <Overall configuration of the production system> Fig. 2 is a schematic diagram showing an example of the overall configuration of a production system to which an information processing system according to an embodiment is applied. As shown in Fig. 2, the production system 1 includes a personal computer (hereinafter referred to as "PC100A") constituting an information processing system 100, a programmable logic controller (hereinafter referred to as "PLC200"), one or more field devices 300, a network camera 400, a network storage 500, and a storage medium 600. The PC100A, the PLC200, the network camera 400, and the network storage 500 can communicate with each other, for example, using a general-purpose Ethernet (registered trademark). The PC100A and the PLC200 may communicate with each other using another communication means (for example, Universal Serial Bus (USB)).
[0036] The PLC 200 is connected to one or more field devices 300 and controls the one or more field devices 300 according to a control program created in advance. Each of the one or more field devices 300 includes an actuator that exerts some physical action on a production facility or a production line (hereinafter referred to as a "field"), various sensors installed in the field, or an input / output device that exchanges information with the field.
[0037] The PLC 200 holds various variable values exchanged with one or more field devices 300. The variable values represent the state of the production system 1 (particularly the field). The variable values include various state values indicating the state of the one or more field devices 300 and various command values output to the one or more field devices 300.
[0038] The PLC 200 updates the held variable values at one or more control periods on the order of several hundreds of microseconds to several tens of milliseconds. The control period is set in advance according to the type of variable. For example, the PLC 200 updates the values of some variables every 1 millisecond and updates the values of other variables every 2 milliseconds. Hereinafter, the shortest control period of the one or more control periods is referred to as the "shortest control period."
[0039] The PLC 200 generates a time series data set by recording the variable values held for each shortest control period. The generated time series data set is transferred to the information processing system 100. The transfer of the time series data set from the PLC 200 to the information processing system 100 is performed using a storage medium 600 such as, but not limited to, a memory card.
[0040] The PLC 200 generates a time-series data set for a sampling time, which will be described later, when a sampling start condition, which will be described later, is satisfied.
[0041] The network camera 400 is installed in the field and captures at least a portion of one or more field devices 300 .
[0042] The network storage 500 stores a group of video data generated by the network camera 400 .
[0043] The storage medium 600 is used to take out a time series data set from the PLC 200 to the PC 100A. The storage medium 600 includes a volatile storage medium, a non-volatile storage medium, a general-purpose semiconductor storage device such as a CF (Compact Flash) or an SD (Secure Digital), a magnetic storage medium such as a flexible disk, or an optical storage medium such as a CD-ROM (Compact Disk Read Only Memory).
[0044] The PC 100A is typically a computer having a general-purpose architecture. As shown in Fig. 2, the PC 100A includes a processor 101 such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), a memory 102 configured as a volatile storage device such as a DRAM (Dynamic Random Access Memory) or an SRAM (Static Random Access Memory), a storage 103 configured as a non-volatile storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), an input interface 104, a display controller 105, a communication interface 106, and a reader / writer 107. These components are connected to each other via a bus so as to be able to communicate data with each other.
[0045] The processor 101 reads out a program stored in the storage 103, and loads the program in the memory 102. The processor 101 executes the loaded program.
[0046] The storage 103 stores the program executed by the processor 101, the time-series database 50, and the video data 58 acquired from the network storage 500.
[0047] The programs executed by the processor 101 include a development program 131, a viewer program 132, a reproduction program 133, and a database construction program 134.
[0048] The development program 131 mainly supports the development of a control program to be used by the PLC 200. Furthermore, the development program 131 provides a setting function related to the generation of a time series data set, a function for monitoring the execution status of the control program by the PLC 200, and a search function. The search function includes, for example, a function for searching for the timing at which a specified variable has changed in the execution status of the control program by the PLC 200.
[0049] The viewer program 132 is a program for visualizing various types of information and providing it to the user. The viewer program 132 provides a function for displaying a variable graph showing the transition of various variable values, and a function for playing a moving image represented by the moving image data 58. The moving image data 58 is downloaded from the network storage 500 to the PC 100A.
[0050] When the development program 131 is started, the viewer program 132 is linked to the development program 131 and loaded into the memory 102 .
[0051] The reproduction program 133 reproduces data indicating a past state of a field. The reproduction program 133 provides a function for managing time and a function for managing data to be reproduced (hereinafter referred to as a "data management function"). The data management function includes a function for generating a query and a function for acquiring target data from the time-series database 50 using the query.
[0052] The database construction program 134 provides a function for constructing the time series database 50 based on the time series data set brought in from the PLC 200 .
[0053] The input interface 104 mediates data transmission between the processor 101 and an input device 110 such as a keyboard, mouse, or touch panel. The display controller 105 is connected to the display 120 and displays on the display 120 a screen indicated by the screen data generated by the processor 101. The communication interface 106 communicates with the PLC 200 and the network storage 500 via a communication network. The reader / writer 107 mediates data transmission between the processor 101 and an external storage medium 600.
[0054] Each of the development program 131, the viewer program 132, and the reproduction program 133 may be provided incorporated into a part of an arbitrary program, rather than as a single program. In this case, processing according to the present embodiment is realized in cooperation with an arbitrary program. Also, some or all of the functions provided by the development program 131, the viewer program 132, and the reproduction program 133 may be realized by a dedicated hardware circuit (for example, an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array)).
[0055] <Hardware Configuration of PLC> FIG. 3 is a schematic diagram showing an example of the hardware configuration of a PLC according to an embodiment. As shown in FIG. 3, the PLC 200 includes, as main components, a power supply circuit 201 that supplies power PW to each part of the PLC 200, a CPU 202, a chipset 204, a memory 206, a storage 208, a USB controller 250, a field network controller 252, a network controller 254, a timer 260, and a reader / writer 270.
[0056] The CPU 202 reads out a program stored in the storage 208 and expands it in the memory 206. The CPU 202 executes the expanded program.
[0057] The memory 206 is configured with a volatile storage device such as a DRAM or an SRAM. As described above, the memory 206 holds various variable values including state values transferred from one or more field devices 300 to the PLC 200 and command values output to one or more field devices 300. The various variable values held in the memory 206 are updated according to a control period preset according to the type of variable by the CPU 202 executing a program stored in the storage 208.
[0058] The storage 208 is configured, for example, by a non-volatile storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory, but a portion of the storage device may be configured by a volatile storage device.
[0059] The chipset 204 mediates data exchange between the CPU 202 and each component, thereby realizing processing of the PLC 200 as a whole.
[0060] The storage 208 stores a system program 211 having an OS (Operating System) 212 and a scheduler program 213 for implementing the basic functions of the PLC 200 .
[0061] Furthermore, the storage 208 stores a program data set 214 created by the PC 100A. The program data set 214 includes a control program, data type definition data, and sampling setting data.
[0062] The control program defines a process for collecting status values indicating the status of one or more field devices 300, and a process for generating command values for the one or more field devices 300, the command values being generated by calculation based on the collected status values. Variable values including the status values and command values are temporarily stored in memory 206. CPU 202 executes the control program to update the variable values stored in memory 206 at each control cycle.
[0063] The data type definition data defines the data type of each variable used by the control program, including variables that indicate the state of one or more field devices 300 and variables that are output to one or more field devices 300.
[0064] The sampling setting data defines the generation conditions of the time series data set 220. The generation conditions of the time series data set 220 indicate the sampling start conditions, the variables to be sampled, the sampling time, and the like.
[0065] Furthermore, the storage 208 stores the time series data set 220 generated according to the generation conditions indicated by the sampling setting data.
[0066] The USB controller 250 is responsible for sending and receiving data to and from an external device (eg, PC 100A) via a USB connection.
[0067] The field network controller 252 has a connector 252a for connecting to the field network, and controls data exchange between the PLC 200 and one or more field devices 300 via the field network. The field network controller 252 has an internal buffer for storing input data received from the field network and output data output from the PLC 200 to the field network.
[0068] The network controller 254 has a connector 254a for connecting to a higher-level network, and controls data exchange between the PLC 200 and an external device (for example, the PC 100A, the network camera 400, or the network storage 500).
[0069] The timer 260 includes a clock circuit or a counter circuit that measures time, but is not limited to such circuits and may be configured by a software module executed by the CPU 202.
[0070] The reader / writer 270 mediates data transmission between the CPU 202 and an external storage medium 600 .
[0071] 3 shows an example of a configuration in which the necessary functions are provided by the CPU 202 executing a program, but some or all of these provided functions may be implemented using a dedicated hardware circuit (e.g., ASIC or FPGA). Alternatively, the main part of the PLC 200 may be realized using hardware that follows a general-purpose architecture (e.g., an industrial PC based on a general-purpose PC). In this case, multi-core technology may be applied to execute processes in parallel. Alternatively, virtualization technology may be used to execute multiple OSs with different purposes in parallel, and necessary applications may be executed on each OS.
[0072] <Functional configuration> Fig. 4 is a block diagram showing an example of the software configuration of the PC and the PLC. As shown in Fig. 4, the PC 100A includes a control program editing unit 11, a data type definition editing unit 12, a data type memory map generating unit 13, a sampling setting unit 14, a build processing unit 15, a reproduction module generating unit 16, a PLC communication control unit 17, a reproduction module communication control unit 18, a database construction unit 19, one or more visualization modules 30, a reproduction module 40, and a clock operation unit 45.
[0073] The control program editing unit 11, the data type definition editing unit 12, the data type memory map generating unit 13, the sampling setting unit 14, the build processing unit 15, and the reproduction module generating unit 16 are realized by the processor 101 shown in FIG. 2 executing the development program 131. The PLC communication control unit 17 is realized by the processor 101 executing the development program 131 and the communication interface 106. The reproduction module communication control unit 18 and the reproduction module 40 are realized by the processor 101 executing the reproduction program 133. The database construction unit 19 is realized by the processor 101 executing the database construction program 134. The clock operation unit 45 is realized by the processor 101 executing the reproduction program 133 and the input interface 104. Each of the one or more visualization modules 30 is realized by the processor 101 executing the development program 131 or the viewer program 132.
[0074] The control program editing unit 11 creates or edits the source code of the control program in response to user input. The control program is, for example, a ladder program, but is not limited to this. Furthermore, the control program editing unit 11 sets the names of each variable used by the control program (hereinafter referred to as "variable names") in response to user input.
[0075] The data type definition editing unit 12 edits the data type of each variable used by the control program in response to a user input. The variables used by the control program include variables collected from one or more field devices 300 and variables generated by execution of the control program (variables output to one or more field devices 300). The data type definition editing unit 12 generates data type definition data indicating the edited data type for each variable.
[0076] In response to user input, the data type memory map generator 13 generates a data type memory map 60 that indicates, for a variable having array elements or structure members, the size of the data type of each array element or structure member, the placement information of the array elements or structure members, etc. By using the data type memory map 60, the start address and size of any array element or structure member are identified, and the value of any array element or structure member is identified.
[0077] The sampling setting unit 14 sets the generation conditions of the time series data set 220 in response to a user input, and generates sampling setting data indicating the set generation conditions. As described above, the generation conditions of the time series data set 220 indicate the start condition of sampling, the variables to be sampled, and the sampling time. The start condition of sampling is, for example, a condition that the value of a specific variable changes from a first value to a second value. When the start condition of sampling is satisfied, the generation of the time series data set 220 is started. The variables to be sampled are set from among a plurality of variables used by the control program. Note that all of the plurality of variables used by the control program may be set as sampling targets, or a portion of the plurality of variables used by the control program may be set as sampling targets. The sampling time is a period from the start to the end of the generation of the time series data set 220, and is, for example, 10 minutes, but is not limited thereto. Hereinafter, the period during which the time series data set 220 is generated is referred to as a "sampling period".
[0078] The build processing unit 15 builds the source code of the control program and generates an object code from the source code. The build processing unit 15 transfers a program data set 214 including the generated object code of the control program to the PLC 200. In addition to the object code of the control program, the program data set 214 includes data type definition data generated by the data type definition editing unit 12 and sampling setting data generated by the sampling setting unit 14. Furthermore, together with the program data set 214, the data type memory map 60 generated by the data type memory map generating unit 13 is also installed in the PLC 200.
[0079] The reproduction module generating unit 16 calls the reproduction program 133 shown in FIG. 2 in response to a user input, generates the reproduction module 40, and starts the operation of the reproduction module 40.
[0080] The one or more visualization modules 30 visualize on a screen the data to be visualized, which represents the state of the production system 1 (particularly the field).
[0081] The database constructor 19 constructs a time-series database 50 based on the time-series data set 220 generated by the PLC 200. As a result, the time-series database 50 stores a state data set indicating the state of the production system 1 (particularly the field) for each time in a sampling period.
[0082] The reproduction module 40 reproduces data corresponding to a specified sampling period using the time series database 50. The reproduction module 40 includes a clock management unit 41 and a time series data management unit 42a which is an example of the data management unit 42 shown in FIG.
[0083] The clock management unit 41 manages a counter value that indicates the time within a sampling period. The counter value is the value of a period counter for the shortest control period. Therefore, the counter value can indicate the elapsed time from the start of the sampling period.
[0084] The clock management unit 41 updates the counter value in response to an instruction from the clock operation unit 45. Specifically, the clock management unit 41 sets the playback start counter value instructed by the clock operation unit 45 as the initial counter value, and thereafter adds 1 to the counter value every time a specified time has elapsed. The clock management unit 41 sets the specified time in response to the playback conditions instructed by the clock operation unit 45.
[0085] The time-series data management unit 42a generates a query according to the time represented by the counter value. The time-series data management unit 42a uses the generated query to acquire acquisition target data from the time-series database 50. The time-series data management unit 42a sets the acquisition target data in the reproduction module 40. As a result, a state data set indicating the state of the production system (field) during the sampling period is reproduced.
[0086] When the acquisition target data indicates the value of a variable having an array element or a structure member, the time-series data management unit 42a may use the data type memory map 60 to reproduce the value of the array element or the structure member.
[0087] The clock operation unit 45 sets a reproduction start counter value and reproduction conditions in response to a user input, and outputs the set reproduction start counter value and reproduction conditions to the reproduction module 40.
[0088] The PLC communication control unit 17 controls communication with the PLC 200. The PLC communication control unit 17 communicatively connects one or more visualization modules 30 and the PLC 200 in response to a user input. As a result, the one or more visualization modules 30 acquire variable values currently held by the PLC 200 as data to be visualized. As a result, the user can check the state of the production system 1 in real time.
[0089] The reproduction module communication control unit 18 communicatively connects one or more visualization modules 30 and the reproduction module 40 in response to a user input. As a result, the one or more visualization modules 30 acquire a state data set indicating the state of the production system 1 in a past sampling period as data to be visualized. As a result, the user can check the state of the production system 1 in the sampling period.
[0090] 4, the PLC 200 includes a program execution unit 21 and a data collection unit 22. Furthermore, the PLC 200 stores a program data set 214 and a data type memory map 60 transferred from the PC 100A. The program execution unit 21 and the data collection unit 22 are realized by the CPU 202 shown in FIG. 3 executing a control program included in the program data set 214.
[0091] The program execution unit 21 collects status values indicating the status of one or more field devices 300, and generates command values for the one or more field devices 300 by performing calculations based on the collected status values.
[0092] 3 in accordance with a control period determined for each type of variable. When updating each variable value stored in memory 206, program execution unit 21 updates each bit in a memory area in which each variable value is stored in accordance with data type definition data included in program data set 214. Furthermore, for a variable having an array element or a structure member, program execution unit 21 updates each bit in a memory area in which the value of each array element or each structure member is stored in accordance with data type memory map 60 of the variable.
[0093] The program execution unit 21 reads the variable value used for the calculation from each bit value in the memory area corresponding to the variable according to the data type definition data. Furthermore, the program execution unit 21 reads the value of the array element or structure member of the variable by using the data type memory map 60 of the variable.
[0094] The data collection unit 22 generates a time series data set 220 according to the generation conditions (including the sampling start condition, the variables to be sampled, and the sampling time) indicated by the sampling setting data included in the program data set 214. Specifically, the data collection unit 22 starts recording the variable values held in the memory 206 for the variables to be sampled in response to the sampling start condition being satisfied. When the sampling time has elapsed since the data collection unit 22 started recording the variable values, the data collection unit 22 ends recording the variable values, and generates a time series data set 220 indicating the variable values for each time in the sampling period from the start to the end of recording. The time series data set 220 is transferred from the PLC 200 to the PC 100A.
[0095] <Time series database> Fig. 5 is a diagram showing an example of a data structure of a time series database. As shown in Fig. 5, the time series database 50 includes records 51 for each time. The records 51 include time data 52 indicating the corresponding time, and a state data set 53 indicating the state of the production system 1 (particularly the field) at the corresponding time. The state data set 53 includes a variable data set 54 indicating various variable values held in the PLC 200 at the corresponding time, and a frame ID 55 identifying a frame at the corresponding time in a video captured by the network camera 400. The frame ID 55 is, for example, a sequence number (also referred to as a "frame number") assigned to a frame.
[0096] In response to the input of a new time series data set 220, the database constructing unit 19 adds a new record 51 to the time series database 50 for each time indicated by the time series data set 220. The database constructing unit 19 generates time data 52 and a variable data set 54 for the added record 51 based on the time series data set 220.
[0097] The variable data set 54 includes, for each variable, variable ID, which is an example of an identifier, and variable data 54a indicating a value held by the PLC 200 at a corresponding time. As described above, for each variable used by the control program, a variable name is set by user input when the control program is developed. Therefore, it is conceivable to generate the variable data 54a so as to indicate the variable name instead of the variable ID. However, since the variable name is arbitrarily set according to user input, the size of the data indicating the variable name may become large. Therefore, the database construction unit 19 generates the variable data 54a so as to indicate a variable ID (e.g., a serial number) uniquely assigned to each variable.
[0098] Furthermore, the database creator 19 identifies, from the video data 58, the frame ID of the frame at the time indicated by the time data 52 of each added record 51. The database creator 19 sets the identified frame ID as the frame ID 55.
[0099] <Reproduced module and its surrounding structure> The detailed functions of the reproduction module 40 and its surrounding configuration will be described with reference to FIGS.
[0100] Fig. 6 is a diagram showing an example of a configuration of the reproduction module and its surroundings. In the example shown in Fig. 6, the PC 100A includes an engineering tool 32, a moving image display module 30c, a reproduction module 40, a clock operation unit 45, and a time series database 50. The engineering tool 32 is realized by the processor 101 shown in Fig. 2 executing the development program 131 and the viewer program 132. The moving image display module 30c is realized by the processor 101 executing the viewer program 132.
[0101] The engineering tool 32 includes at least one visualization module 30. The visualization module 30 included in the engineering tool 32 acquires variable data indicating various variable values held by the PLC 200 as data to be visualized, and visualizes the acquired variable data. As shown in Fig. 6, the engineering tool 32 includes, as the visualization modules 30, a waveform display module 30a and a program display module 30b.
[0102] The waveform display module 30a generates data for a first window including a variable graph showing the transitions of various variable values. The first window is displayed on the display 120 shown in FIG.
[0103] The program display module 30b generates data for a second window that shows the execution status of the control program by the PLC 200. In the second window, various variable values used by the control program are displayed. The second window is displayed on the display 120.
[0104] The video display module 30c is an example of the visualization module 30, and acquires a frame ID that identifies a frame of a video acquired by shooting a field as data to be visualized, and visualizes the frame of the acquired frame ID. That is, the video display module 30c generates data of a third window in which the video captured by the network camera 400 is played. The third window is displayed on the display 120.
[0105] The first to third windows may be displayed side by side on display 120. Alternatively, only one or more windows selected by the user from among the first to third windows may be displayed on display 120.
[0106] The clock operation unit 45 sets the playback start counter value and playback conditions in response to a user input to the window shown in FIG.
[0107] Fig. 7 is a diagram showing an example of a fourth window for performing a reproduction operation of the reproduction module. The fourth window 70 shown in Fig. 7 is generated by clock operation unit 45 and displayed on display 120 shown in Fig. 2. The fourth window 70 is displayed on display 120 together with the first to third windows.
[0108] The fourth window 70 includes a cursor 71, a display area 72, a group of play buttons 73, and a play speed input field 74.
[0109] The cursor 71 represents a time within a sampling period specified by the user. When the counter value is updated by the reproduction module 40, the clock operation unit 45 moves the cursor 71 to a position corresponding to the counter value. Furthermore, the clock operation unit 45 accepts a movement operation of the cursor 71 by the user, and moves the position of the cursor 71 in response to the movement operation.
[0110] The display area 72 displays the time corresponding to the position of the cursor 71. Therefore, the time displayed in the display area 72 is updated in response to the movement of the cursor 71.
[0111] The playback button group 73 includes a plurality of buttons for inputting operations related to the playback of the reproduction module 40. Specifically, the playback button group 73 includes a play button, a stop button, a pause button, a button for moving to the beginning, a button for moving to the end, and the like.
[0112] The playback speed input field 74 is used for inputting the playback speed. The clock operation unit 45 displays a list of multiple playback speeds in response to the operation of the pull-down button in the playback speed input field 74. The clock operation unit 45 displays the playback speed selected by the user from the list in the playback speed input field 74. In the example shown in FIG. 7, the playback speed is represented by a magnification factor. Therefore, hereinafter, "playback speed" will be expressed as "magnification factor".
[0113] The clock operation unit 45 sets a playback start counter value and playback conditions in response to a user input to the playback button group 73 of the fourth window 70, and outputs the set playback start counter value and playback conditions to the reproduction module 40.
[0114] Specifically, when any button included in the play button group 73 is operated, the clock operation unit 45 sets the counter value corresponding to the position of the cursor 71 as the play start counter value. For example, when the play button is operated, the clock operation unit 45 sets the counter value corresponding to the current position of the cursor 71 as the play start counter value. When the button for moving to the beginning is operated, the clock operation unit 45 moves the cursor 71 to the start position of the sampling period, and then sets the counter value corresponding to the start position as the play start counter value.
[0115] Furthermore, the clock operation unit 45 sets the playback conditions according to the type of button operated among the playback button group 73 and the rate input in the playback speed input field 74. For example, when the play button or the button for moving to the beginning is operated, the clock operation unit 45 sets the playback conditions to indicate the rate input in the playback speed input field 74. When the pause button is operated, the clock operation unit 45 sets the playback conditions to indicate a playback speed of "0".
[0116] Even when the stop button is operated, the clock operation unit 45 sets a playback condition indicating a playback speed of "0." Alternatively, when the stop button is operated, the clock operation unit 45 may instruct the reproduction module 40 to stop the data reproduction process.
[0117] The clock management unit 41 of the reproduction module 40 shown in FIG. 6 updates the counter value according to the reproduction start counter value and the reproduction condition received from the clock operation unit 45. Specifically, the clock management unit 41 sets the reproduction start counter value as the initial counter value. Furthermore, the clock management unit 41 sets the specified time according to the reproduction condition. For example, when a magnification "×1.0" is set as the reproduction condition, the clock management unit 41 sets the same time as the shortest control period as the specified time. When a magnification "×2.0" is set as the reproduction condition, the clock management unit 41 sets the time obtained by dividing the shortest control period by 2 as the specified time. In this way, the clock management unit 41 sets the time obtained by dividing the shortest control period by the magnification indicated by the reproduction condition as the specified time. The clock management unit 41 advances the counter value by 1 each time the specified time elapses.
[0118] When the playback speed is set to "0" as the playback condition, the clock management unit 41 stops updating the count value.
[0119] Time-series data management unit 42a generates a query in response to a request from engineering tool 32 or video display module 30c, and uses the generated query to acquire target data from time-series database 50. Time-series data management unit 42a includes a first query generation unit 421 and a second query generation unit 422.
[0120] The first query generation unit 421 generates a query in response to a variable request from the engineering tool 32. Specifically, the first query generation unit 421 generates a query for acquiring the variable data by using first definition information that defines the variable data to be acquired and a predetermined query template.
[0121] The first definition information is set in advance by a user in accordance with the visualization module 30 when the visualization module 30 is created. The first definition information includes data name information that defines the name of the variable to be acquired, and relative relationship information that defines the relative relationship between the time represented by the counter value and the time to be acquired (hereinafter referred to as the "target time") or the time range to be acquired (hereinafter referred to as the "target time range"). The data name information corresponds to the second information. The relative relationship information corresponds to the third information.
[0122] For example, the first definition information corresponding to the waveform display module 30a includes data name information that defines a pre-specified variable name as the name of the variable to be acquired, and relative relationship information that defines 75 seconds from the time represented by the counter value as the target time range.
[0123] For example, the first definition information corresponding to the program display module 30b includes data name information that defines all variable names used in the control program as acquisition target variable names, and relative relationship information that defines the time represented by the counter value as the target time.
[0124] 8 is a diagram for explaining a method of generating a query by the first query generating unit 100. In FIG. 8, a method of generating a query in response to a variable request from the waveform display module 30a is shown.
[0125] First query generating unit 421 converts the counter value currently managed by clock managing unit 41 into time. As described above, the counter value is the value of the period counter with the shortest control period. Therefore, first query generating unit 421 may convert the counter value into time according to the following formula. Time = counter value x shortest control cycle time + start time of sampling period
[0126] The first query generating unit 421 specifies a target time or a target time range based on the time represented by the counter value and the relative relationship information of the first definition information corresponding to the waveform display module 30a. For example, the first query generating unit 421 specifies a time range from 2023-01-11 18:00:00 to 2023-01-11 18:01:15 as the target time range.
[0127] Furthermore, the first query generating unit 421 identifies the variable ID of the variable to be acquired based on the name of the variable to be acquired that is defined by the data name information of the first definition information corresponding to the waveform display module 30a.
[0128] As described above, when developing a control program, the variable name of each variable used by the control program is set in response to a user input. The first definition information corresponding to the visualization module 30 is set in advance by the user. Therefore, the first definition information is set using the variable name. Meanwhile, in the time-series database 50, the variable ID instead of the variable name is stored for each variable (see FIG. 7). Therefore, the first query generating unit 421 converts the variable name to be acquired into the variable ID using the conversion table 43.
[0129] The conversion table 43 associates a variable name with a variable ID and is generated before or when the time-series database 50 is constructed.
[0130] The first query generation unit 421 generates a query to specify the variable data set 54 corresponding to the identified target time range and the identified variable ID as acquisition target data by using a query template 82 corresponding to the visualization module 30. The query template 82 is created in advance according to the first definition information corresponding to the visualization module 30.
[0131] 8 shows a query template 82 corresponding to the waveform display module 30a. The query template 82 includes character strings "start time" and "end time" for specifying a target time range, and a character string "id" for specifying data. Note that the query template 84 may include a character string "time" for specifying a target time, instead of the character strings "start time" and "end time" for specifying a target time range. Furthermore, when acquiring all data, the query template 84 does not need to include the character string "id" for specifying data.
[0132] For example, the first query generating unit 421 generates a query by inserting the identified target time range and the identified variable ID into the query template 82 corresponding to the waveform display module 30a.
[0133] 6, the first query generation unit 421 uses the generated query to acquire the variable data 54a to be acquired from the time-series database 50. This allows the visualization module 30 included in the engineering tool 32 to acquire the variable data 54a as data to be visualized.
[0134] The second query generating unit 422 generates a query in response to a frame ID request from the video display module 30c. Specifically, the second query generating unit 422 generates a query for acquiring a frame ID by using second definition information that defines the frame ID to be acquired and a predetermined query template.
[0135] The second definition information is set when the video display module 30c is created. The second definition information includes relative relationship information that defines the relative relationship between the time represented by the counter value and the time to be acquired (target time). Typically, the relative relationship information defines the time represented by the counter value as the target time.
[0136] Similar to first query generation unit 421, second query generation unit 422 converts the counter value currently managed by clock management unit 41 into time. Then, second query generation unit 422 identifies a target time based on the time represented by the counter value and the second definition information. Second query generation unit 422 generates a query by inserting the identified target time into a query template corresponding to video display module 30c.
[0137] Second query generating unit 422 uses the generated query to acquire the frame ID of the acquisition target from time-series database 50. Typically, second query generating unit 422 acquires the frame ID corresponding to the time represented by the counter value.
[0138] This allows the video display module 30c to obtain the frame ID corresponding to the time represented by the counter value as the data to be visualized. The video display module 30c reads the frame of the obtained frame ID from the video data 58, and displays the image of the read frame on the display 120.
[0139] <Processing flow of information processing system> 9 is a flowchart showing the flow of processing of the PC. First, in step S1, the processor 101 of the PC 100A receives an instruction to start the operation of the reproduction module 40. The instruction to start the operation includes a designation of a sampling period to be visualized. The following steps S3 and S4 are executed for the designated sampling period.
[0140] Next, in step S2, the reproduction module communication control unit 18 sets the connection destination of one or more visualization modules 30 to the reproduction module 40. After step S2, steps S3 and S4 are executed in parallel.
[0141] In step S3, the reproduction module 40 generates a query at regular intervals defined by a specified time, and acquires the acquisition target data from the time-series database 50 using the generated query.
[0142] In step S4, the one or more visualization modules 30 acquire the acquisition target data as the data to be visualized from the reproduction module 40, and visualize the acquisition target data. After steps S3 and S4, the processor 101 ends the process.
[0143] FIG. 10 is a flowchart showing the process flow of the subroutine of step S3 shown in FIG.
[0144] In step S31, the time-series data management unit 42a identifies a query template corresponding to the visualization module 30.
[0145] In the next step S32, the clock management section 41a sets the reproduction start counter value, which has been set in response to a user input to the fourth window 70 shown in FIG. 5, as the counter value.
[0146] In the next step S33, the time-series data management unit 42a identifies a target time or a target time range from the counter value based on the first definition information or the second definition information corresponding to the visualization module 30.
[0147] In the next step S34, the time-series data management unit 42a generates a query by inserting the identified target time or target time range into a query template. When a variable request is received from the visualization module 30, the time-series data management unit 42a identifies a variable ID of a variable to be acquired based on the first definition information, and also inserts the identified variable ID into the query template.
[0148] In the next step S35, the time-series data management unit 42a acquires the acquisition target data from the time-series database 50 using a query.
[0149] In the next step S36, the time-series data management unit 42a sets the acquisition target data in the reproduction module 40.
[0150] In the next step S37, the clock management unit 41a advances the counter value by 1 every time a fixed period (specified time) elapses.
[0151] In the next step S38, the time-series data management unit 42a determines whether the time represented by the counter value is within the sampling period.
[0152] If the time represented by the counter value is within the sampling period (YES in step S38), the process returns to step S33.
[0153] If the time represented by the counter value is not within the sampling period (YES in step S38), the processor 101 cuts off the connection between the one or more visualization modules 30 and the reproduction module 40. That is, the processor 101 switches the one or more visualization modules 30 to an offline state.
[0154] FIG. 11 is a flowchart showing the process flow of the subroutine of step S4 shown in FIG.
[0155] In step S41, one or more visualization modules 30 output a request to the reproduction module 40.
[0156] In the next step S42, the one or more visualization modules 30 acquire the acquisition target data currently set in the reproduction module 40 as data to be visualized.
[0157] In a next step S43, one or more visualization modules 30 visualize the acquisition target data.
[0158] In the next step S44, the processor 101 determines whether or not one or more visualization modules 30 are in an offline state.
[0159] If the one or more visualization modules 30 are not in an offline state (NO in step S44), the one or more visualization modules 30 determine in step S45 whether a predetermined monitoring period has elapsed since the most recent request was output. The monitoring period is, for example, 100 ms, but is not limited to this.
[0160] If the monitoring period has not elapsed (NO in step S45), the process returns to step S44. If the monitoring period has elapsed (YES in step S45), the process returns to step S41.
[0161] If one or more visualization modules 30 are in an offline state (YES in step S44), the process of step S4 ends.
[0162] <Modification> In the above description, the information processing system 100 is configured by one PC 100A. However, the information processing system 100 may be configured by multiple computers. For example, the information processing system 100 may be configured by a first computer that realizes one or more visualization modules 30, and a second computer that realizes the reproduction module 40 and the clock operation unit 45.
[0163] Alternatively, the information processing system 100 may include a hardware environment other than a general-purpose PC, such as a virtual machine on a cloud.
[0164] Fig. 12 is a diagram showing a main software configuration of an information processing system according to a modified example. As shown in Fig. 12, the information processing system 100B is different from the PC 100A shown in Fig. 6 in that the information processing system 100B includes an engineering tool 32A, a reproduction module 40A, and a cloud database 56 instead of the engineering tool 32, the reproduction module 40, and the time-series database 50.
[0165] The cloud database 56 is provided by cloud computing. The cloud database 56 includes one or more time-series databases. In the example shown in Fig. 12, the cloud database 56 includes a video database 50a, a variable database 50b, and a related information database 50c as time-series databases.
[0166] The video database 50a stores frames of videos captured by the network camera 400 for each time. The variable database 50b stores a variable data set indicating various variable values held in the PLC 200 for each time. The related information database 50c stores data indicating information related to the production system (field) for each time.
[0167] The user may add a new time series database related to the production system 1 to the cloud database 56.
[0168] The engineering tool 32A differs from the engineering tool 32 shown in FIG. 6 in that it includes a setting section 34 and a query template group 36.
[0169] The reproduction module 40A differs from the reproduction module 40 shown in Fig. 6 in that it includes a time series data management unit 42b instead of the time series data management unit 42a. The time series data management unit 42b is an example of the data management unit 42 shown in Fig. 1. The time series data management unit 42b differs from the time series data management unit 42a in that it includes a third query generation unit 423.
[0170] As described above, a new time-series database may be added to the cloud database 56. When the number of new time-series databases increases, the types of data that can be provided to users increase. Therefore, the user may desire to increase the types of data to be visualized by the existing visualization module 30. Alternatively, the user may desire to add a new visualization module 30.
[0171] In order to meet such demands, setting unit 34 and third query generating unit 423 provide a function that enables a user to freely generate queries in response to user input. This allows the user to perform analyses with a high degree of freedom using various data stored in cloud database 56.
[0172] FIG. 13 is a diagram for explaining the processing of the setting unit and the third query generating unit. As shown in FIG. 13, the setting unit 34 accepts user input at any time and sets the third definition information according to the user input. The third definition information includes type information that defines the type of data to be acquired and acquisition condition information that defines the acquisition condition. The type information corresponds to the first information. The acquisition condition information includes relative relationship information that defines the relative relationship between the time represented by the counter value and the target time or the target time range. Furthermore, the acquisition condition information may include data name information that defines the name of the data to be acquired (e.g., a variable name). The data name information corresponds to the second information. The relative relationship information corresponds to the third information.
[0173] The type of acquisition target data defined by the type information indicates, for example, one of "variables", "video", and "related information".
[0174] For example, the acquisition condition defined by the acquisition condition information indicates "variable name of the first variable" as the name of the data to be acquired, and indicates 75 seconds from the time represented by the counter value as the target time range. For example, the acquisition condition defined by the acquisition condition information indicates "all variable names" as the name of the data to be acquired, and indicates the time represented by the counter value as the target time. For example, the acquisition condition defined by the acquisition condition information indicates "video frame" as the type of data to be acquired, and indicates the time represented by the counter value as the target time.
[0175] The setting unit 34 reads out a query template 84 corresponding to the visualization module 30 from the query template group 36 shown in Fig. 12. The query template 84 shown in Fig. 13 includes a character string "table name" for specifying the name of the time-series database from which data is to be obtained, character strings "start time" and "end time" for specifying a target time range, and a character string "id" for specifying data.
[0176] Note that the query template 84 may include a character string "time" for specifying a target time, instead of the character strings "start time" and "end time" for specifying a target time range. In addition, when acquiring all data, the query template 84 does not need to include a character string "id" for specifying data.
[0177] The query template group 36 may include a plurality of query templates 84 corresponding to one visualization module 30. In this case, the user may select a desired query template from among the plurality of query templates.
[0178] Setting unit 34 outputs the set third definition information and read query template 84 to third query generating unit 423.
[0179] The third query generating unit 423 identifies a target time-series database that stores the acquisition target data from among multiple time-series databases included in the cloud database 56, based on the type information of the third definition information received from the setting unit 34. The third query generating unit 423 identifies the target time-series database by using, for example, a table 44 created in advance. The table 44 associates the type of data with the name of the time-series database that stores the data.
[0180] For example, when the type information indicates "variable", the third query generating section 423 identifies the variable database 50b with the database name "plclog" as the target time-series database.
[0181] The third query generating unit 423 generates a query to specify the target time-series database as the acquisition destination of the acquisition target data. Specifically, the third query generating unit 423 inserts the name of the target time-series database into “table name” of the query template 84 received from the setting unit 34.
[0182] Furthermore, third query generation unit 423 generates a query by inserting the target time or the target time range identified based on the acquisition condition information into query template 84 received from setting unit 34. If the acquisition condition defines the variable name to be acquired, third query generation unit 423 further inserts the variable ID identified based on the acquisition condition into query template 84. The method of identifying the target time or the target time range and the method of identifying the variable ID are the same as those by first query generation unit 421. Therefore, detailed explanation will be omitted.
[0183] 14 is a diagram showing three examples of queries generated by the third query generating unit. Query 86a is generated according to third definition information that defines that the type of data to be acquired is "variable", that the acquisition condition indicates "variable name of the first variable" as the name of the data to be acquired, and that the target time range indicates 75 seconds from the time represented by the counter value. Query 86b is generated according to third definition information that defines that the type of data to be acquired is "variable", that the acquisition condition indicates "all variable names" as the name of the data to be acquired, and that the target time indicates the time represented by the counter value. Query 86c is generated according to third definition information that defines that the type of data to be acquired is "video", and that the acquisition condition indicates the time represented by the counter value as the target time.
[0184] Fig. 15 is a flowchart showing the flow of the subroutine processing of step S3 by the information processing system according to the modified example. The flow of the processing of the information processing system 100B according to the modified example follows the flowchart shown in Fig. 9. However, in the information processing system 100B according to the modified example, the flow of the subroutine processing of step S3 follows the flowchart shown in Fig. 15 instead of the flowchart shown in Fig. 10.
[0185] The flowchart shown in Fig. 15 differs from the flowchart shown in Fig. 10 in that it includes steps S131 and S132. Therefore, only steps S131 and S132 will be described.
[0186] In step S131, the setting unit 34 determines whether or not to custom create a query. Specifically, when the setting unit 34 receives input of the third definition information, the setting unit 34 determines to custom create a query.
[0187] If a query is not to be custom created (NO in step S131), the process proceeds to step S31.
[0188] When custom creating a query (YES in step S131), in step S132, the setting unit 34 updates the query template 84 corresponding to the visualization module based on the type of acquisition target data defined by the third definition information. The setting unit 34 outputs the updated query template 84 and the acquisition condition defined by the third definition information to the time-series data management unit 42b.
[0189] After step S31 or step S132, the processor 101 executes steps S32 to S39. In step S34, if the time-series data management unit 42b receives the query template 84 and the acquisition conditions from the setting unit 34, the processor 101 may generate a query based on the query template 84 and the acquisition conditions.
[0190] §3 Supplementary Note As described above, the present embodiment includes the following disclosure.
[0191] (Configuration 1) An information processing system (100, 100A, 100B), One or more visualization modules (30, 30a to 30c, 101) that visualize visualization target data that represents the state of the production system (1); one or more time series databases (50, 50a to 50c) for storing a data set (53) indicating a state of the production system (1) at each time; a data management unit (42, 42a, 42b, 101) that generates a query based on definition information that defines acquisition target data, and acquires the acquisition target data from the one or more time-series databases (50, 50a to 50c) using the query; The one or more visualization modules (30, 30a to 30c) acquire the acquisition target data as the visualization target data, in an information processing system (100, 100A, 100B).
[0192] (Configuration 2) 2. The information processing system according to claim 1, wherein the data management unit generates the query by using the definition information and a query template.
[0193] (Configuration 3) The production system (1) includes a programmable logic controller (200) that executes a control program, The data set includes variable data (54, 54a) indicating, for each of one or more variables used by the control program, an identifier and a value held by the programmable logic controller (200) at a corresponding time; The data management unit (42, 42a, 42b) Identifying the identifier corresponding to a variable name set during development of the control program for an acquisition target variable among the one or more variables; 3. The information processing system (100, 100A, 100B) according to configuration 1 or 2, wherein the query is generated so as to specify the data set corresponding to the identified identifier as the data to be acquired.
[0194] (Configuration 4) A setting unit (34, 101) that sets first information indicating a type of the acquisition target data as the definition information in response to a user input, The one or more time series databases (50, 50a to 50c) include a plurality of time series databases (50a to 50c), The data management unit (42b) Identifying a target time-series database that stores the acquisition target data from among the plurality of time-series databases (50a to 50c) based on the first information; The information processing system (100B) according to any one of configurations 1 to 3, wherein the query is generated so as to specify the target time-series database as an acquisition destination of the acquisition target data.
[0195] (Configuration 5) A setting unit (34, 101) that sets the definition information in response to a user input, The production system (1) includes a programmable logic controller (200) that executes a control program, The data set includes variable data (54, 54a) indicating values held by the programmable logic controller (200) at corresponding times for each of one or more variables used by the control program; The setting unit (34, 101) sets, as the definition information, second information that defines a variable to be acquired among the one or more variables; An information processing system (100B) according to any one of configurations 1 to 3, wherein the data management unit (42b) generates the query so as to specify variable data corresponding to a variable defined by the second information as the data to be acquired.
[0196] (Configuration 6) The one or more time series databases (50, 50a to 50c) store the data set (53) for each time included in a sampling period; The information processing system (100, 100A, 100B) A clock management unit (41, 41a, 101) that advances a counter value indicating a time within the sampling period by one at regular intervals, the definition information includes third information that defines a relative relationship between the time represented by the counter value and a target time or a target time range; The data management unit (42, 42a, 42b, 101) Identifying the time or the time range of the acquisition target based on the counter value currently managed by the clock management unit (41, 41a, 101) and the third information; An information processing system (100, 100A, 100B) according to any one of configurations 1 to 5, which generates the query so as to specify the data set corresponding to the identified time or time range of the acquisition target as the acquisition target data.
[0197] (Configuration 7) The information processing system (100B) according to configuration 6, further comprising a setting unit (34, 101) that sets the third information in response to a user input.
[0198] (Configuration 8) An information processing method in an information processing system (100, 100A, 100B) including one or more visualization modules (30, 30a to 30c) that visualize data of a visualization target that represents a state of a production system (1) and one or more time series databases (50, 50a to 50c) that store a data set (53) that represents a state of the production system (1) for each time, comprising: generating a query based on definition information that defines the acquisition target data, and acquiring the acquisition target data from the one or more time-series databases (50, 50a to 50c) using the query (S3); The one or more visualization modules (30, 30a to 30c) acquire the acquisition target data as the visualization target data (S4).
[0199] (Configuration 9) A program for causing a computer system to execute an information processing method, the computer system including one or more visualization modules (30, 30a to 30c) that visualize data of a visualization target that represents a state of a production system (1) and one or more time-series databases (50, 50a to 50c) that store a data set (53) that represents a state of the production system (1) at each time, The information processing method includes: generating a query based on definition information that defines the acquisition target data, and acquiring the acquisition target data from the one or more time-series databases (50, 50a to 50c) using the query (S3); The one or more visualization modules (30, 30a to 30c) acquire the acquisition target data as the visualization target data (S4).
[0200] Although the embodiment of the present invention has been described, the embodiment disclosed herein should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, and it is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0201] 1 Production system, 11 Control program editing section, 12 Data type definition editing section, 13 Data type memory map generation section, 14 Sampling setting section, 15 Build processing section, 16 Reproduction module generation section, 17 PLC communication control section, 18 Reproduction module communication control section, 19 Database construction section, 21 Program execution section, 22 Data collection section, 30 Visualization module, 30a Waveform display module, 30b Program display module, 30c Video display module, 32, 32A Engineering tool, 34 Setting section, 36 Query template group, 40, 40A Reproduction module, 41, 41a Clock management section, 42 Data management section, 42a, 42b Time series data management section, 43 Conversion table, 44 Table, 45 Clock operation section, 50 Time series database, 50a Video database, 50b Variable database, 50c Related information database, 51 Record, 52 Time data, 53 State data set, 54 Variable data set, 54a Variable data, 55 Frame ID, 56 Cloud database, 58 Video data, 60 Data type memory map, 70 Fourth window, 71 Cursor, 72 Display area, 73 Playback buttons, 74 Playback speed input field, 82, 84 Query template, 86a-86c Query, 100, 100B Information processing system, 100A PC, 101 Processor, 102, 206 Memory, 103, 208 Storage, 104 Input interface, 105 Display controller, 106 Communication interface, 107, 270 Reader / writer, 110 Input device, 120 Display, 131 Development program, 132 Viewer program, 133 Reproduction program, 134 Database construction program, 200 PLC, 201 Power supply circuit, 202 CPU, 204 Chipset, 211 System program, 213 scheduler program, 214 program data set, 220 time series data set, 250 USB controller, 252 field network controller, 252a,254a connector, 254 network controller, 260 timer, 300 field device, 400 network camera, 421 first query generation unit, 422 second query generation unit, 423 third query generation unit, 500 network storage, 600 storage medium.
Claims
1. An information processing system, one or more visualization modules that visualize visualization target data representing a state of a production system; one or more time series databases storing data sets indicative of states of the production system at each time point; a data management unit that generates a query based on definition information that defines acquisition target data, and acquires the acquisition target data from the one or more time-series databases using the query; An information processing system, wherein the one or more visualization modules acquire the acquisition target data as the visualization target data.
2. The information processing system according to claim 1 , wherein the data management unit generates the query by using the definition information and a query template.
3. the production system includes a programmable logic controller that executes a control program; the data set includes variable data indicating, for each of one or more variables used by the control program, an identifier and a value held by the programmable logic controller at a corresponding time; The data management unit Identifying the identifier corresponding to a variable name set during development of the control program for an acquisition target variable among the one or more variables; The information processing system according to claim 1 , wherein the query is generated so as to specify the data set corresponding to the identified identifier as the data to be acquired.
4. a setting unit that sets, as the definition information, first information indicating a type of the acquisition target data in response to a user input; the one or more time series databases include a plurality of time series databases; The data management unit Identifying a target time-series database that stores the acquisition target data from among the plurality of time-series databases based on the first information; The information processing system according to claim 1 , wherein the query is generated so as to specify the target time-series database as an acquisition destination of the acquisition target data.
5. A setting unit that sets the definition information in response to a user input, the production system includes a programmable logic controller that executes a control program; the data set includes variable data indicating, for each of one or more variables used by the control program, a value held by the programmable logic controller at a corresponding time; the setting unit sets, as the definition information, second information that defines a variable to be acquired among the one or more variables; The information processing system according to claim 1 , wherein the data management unit generates the query so as to specify, as the acquisition target data, variable data corresponding to a variable defined by the second information.
6. The one or more time series databases store the data set for each time included in a sampling period; The information processing system includes: a clock management unit that advances a counter value indicating a time within the sampling period by one every fixed period, the definition information includes third information that defines a relative relationship between the time represented by the counter value and a target time or a target time range; The data management unit Identifying the time of the acquisition target or the time range of the acquisition target based on the counter value currently managed by the clock management unit and the third information; The information processing system according to claim 1 , wherein the query is generated so as to specify, as the acquisition target data, the data set corresponding to the identified time or time range of the acquisition target.
7. The information processing system according to claim 6 , further comprising a setting unit that sets the third information in response to a user input.
8. An information processing method in an information processing system including one or more visualization modules that visualize visualization target data that represents a state of a production system, and one or more time-series databases that store a data set that represents the state of the production system for each time, comprising: generating a query based on definition information that defines acquisition target data, and acquiring the acquisition target data from the one or more time-series databases using the query; The one or more visualization modules acquire the acquisition target data as the visualization target data.
9. A program for causing a computer system to execute an information processing method, the computer system including one or more visualization modules that visualize visualization target data that represents a state of a production system, and one or more time-series databases that store a data set that represents the state of the production system for each time, the program comprising: The information processing method includes: generating a query based on definition information that defines acquisition target data, and acquiring the acquisition target data from the one or more time-series databases using the query; The one or more visualization modules acquire the acquisition target data as the visualization target data.
Citation Information
Patent Citations
Engineering tool for programmable logic controller
JP2020013528A
