Information processing system, information processing method, and program
The information processing system reproduces past control states of PLCs with the variable programming method by using a data type memory map to specify start addresses and sizes of array or structure elements, addressing the challenge of analyzing abnormal operations in production equipment.
Patent Information
- Application Number
- PCT/JP2024/013431
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2024-04-01
- Publication Date
- 2024-10-24
AI Technical Summary
Existing engineering tools struggle to reproduce the past control state of programmable logic controllers (PLCs) that employ the variable programming method, as they cannot obtain the start address of memory areas where variable values are stored, making it difficult to visualize and analyze abnormal operations in production equipment.
An information processing system and method that includes a reproduction module capable of sequentially reproducing variable values held by a PLC for each control period using a data type memory map, which specifies the start address and size of array or structure elements, allowing for the visualization of past control states without compressing storage capacity or affecting the execution of the control program.
Enables the reproduction of past control states of PLCs using the variable programming method, allowing for effective abnormality analysis and visualization of control states without overwhelming storage capacity or impacting control program performance.
Smart Images

Figure JP2024013431_24102024_PF_FP_ABST
Abstract
Description
Information processing system, information processing method, and program
[0001] The present disclosure relates to an information processing system, an information processing method, and a program.
[0002] In order to investigate the cause of abnormal operation of production equipment, a technology has been developed that records time-series data collected in a programmable logic controller (PLC) that controls the production equipment and visualizes the recorded time-series data.
[0003] For example, Japanese Patent Application Laid-Open No. 2020-13528 (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.
[0004] Japanese Patent Application Laid-Open No. 2020-13528
[0005] In PLCs, the "address programming method," in which control input / output, internal processing, and internal state values are assigned to a PLC's unique memory map, has been replaced by the "variable programming method," in which control input / output, internal processing, and internal state values are assigned to variables.
[0006] For PLCs that use the address programming method, a solution has been proposed in which the values of the memory map, which change from moment to moment while the PLC is executing a control program, are stored in storage, and an engineering tool reads the data from that storage to reproduce the input / output status and internal status of past control programs in the PLC, thereby assisting in abnormality analysis.
[0007] On the other hand, it is difficult to apply the above-mentioned solution to PLCs that use the variable programming method. This is because the engineering tool cannot reproduce the memory map that exists within the PLC. Specifically, although the engineering tool receives a time-series memory map from the PLC, it cannot obtain the start address of the memory area where the variable values are stored from the variables used by the control program. As a result, the engineering tool cannot identify the variable values from the memory map, and as a result, it cannot reproduce the past control states of the PLC.
[0008] The present disclosure has been made in consideration of the above-mentioned problems, and its purpose is to provide an information processing system, an information processing method, and a program that can reproduce the past control state of a PLC that employs a variable programming method.
[0009] According to an example of the present disclosure, an information processing system includes a reproduction module and one or more visualization modules. The reproduction module sequentially reproduces variable values held by the programmable logic controller for each control cycle of the programmable logic controller during a target period based on a time series data set recorded by the programmable logic controller during that period. The one or more visualization modules visualize the variable values reproduced by the reproduction module as visualization target variable values representing the control state of the programmable logic controller. The time series data set indicates the variable values for each control cycle during the target period. The reproduction module has a data type memory map representing the size of the data type of variables used by a control program executed by the programmable logic controller, the size of the data type of each array element in an array or each member in a structure, and placement information of the array elements or members. The reproduction module reproduces the variable values held by the programmable logic controller using the data type memory map.
[0010] According to this disclosure, a time series data set is generated by recording the variable values held in the memory of a programmable logic controller during a target period, allowing the reproduction module to acquire the variable values for each control cycle during the target period. Furthermore, by using a data type memory map, the start address and size of any member or array element of a structure variable or array variable can be identified, allowing the value of the member or array element to be visualized to be reproduced. Therefore, it is possible to reproduce the past control state of a PLC that employs a variable programming method.
[0011] In the above disclosure, the reproduction module extracts data corresponding to a target time in a target period from the time-series data set, and reproduces values of structure variables held by the programmable logic controller at the target time based on the extracted data. The reproduction module uses a data type memory map to identify the start address and size of the members to be visualized in the structure, thereby reproducing the values of the members to be visualized from the values of the reproduced structure variables.
[0012] According to this disclosure, by recording the values of structure variables in a time-series data set using a programmable controller, a reproduction module can reproduce the values of members to be visualized from the values of the structure variables using a data type memory map of the structure. This eliminates the need for the programmable logic controller to record variable values on a member-by-member basis of the structure, thereby preventing storage capacity from being overwhelmed and preventing the execution of the control program from being affected.
[0013] In the above disclosure, the reproduction module extracts data corresponding to a target time in a target period from the time-series data set, and reproduces the values of array variables held by the programmable logic controller at the target time based on the extracted data. The reproduction module uses a data type memory map to identify the start address and size of the array elements to be visualized in the array, thereby reproducing the values of the array elements to be visualized from the values of the reproduced array variables.
[0014] According to this disclosure, by recording the values of array variables in a time-series data set using a programmable controller, a reproduction module can reproduce the values of array elements to be visualized from the values of the array variables using a data type memory map of the array. This eliminates the need for the programmable logic controller to record variable values on an array element-by-element basis, thereby reducing storage capacity pressure and affecting the execution of the control program.
[0015] In the above disclosure, the one or more visualization modules have a first mode in which variable values reproduced by the reproduction module are acquired as variable values to be visualized, and a second mode in which variable values currently held by the programmable logic controller are acquired as variable values to be visualized. The information processing system communicatively connects the one or more visualization modules to the reproduction module in response to an instruction to start the first mode. The information processing system communicatively connects the one or more visualization modules to the programmable logic controller in response to an instruction to start the second mode.
[0016] According to this disclosure, a user can switch the variable values visualized by one or more visualization modules between the variable values currently held by the programmable logic controller and the variable values for the target period reproduced by the reproduction module.
[0017] According to another example of the present disclosure, an information processing method is provided for an information processing device including one or more visualization modules that visualize variable values of a visualization target that represent a control state of a programmable logic controller. The information processing method includes the steps of sequentially reproducing variable values held by the programmable logic controller for each control cycle of the programmable logic controller during a target period based on a time series data set recorded by the programmable logic controller during the target period, and sending the reproduced variable values to the one or more visualization modules as variable values of the visualization target. The time series data set indicates the variable values for each control cycle during the target period. The information processing device has a data type memory map that represents the size of the data types of variables used by a control program executed by the programmable logic controller, as well as the size and arrangement information of the data types of array elements in array variables or members in structure variables. The step of sequentially reproducing the variable values includes the step of reproducing the variable values held by the programmable logic controller using the data type memory map.
[0018] According to yet another example of the present disclosure, a program causes a computer to execute the above information processing method.
[0019] These disclosures also make it possible to reproduce the past control state of a PLC that employs a variable programming method.
[0020] According to the present disclosure, it is possible to reproduce the past control state of a PLC that employs a variable programming method.
[0021] 10 is a diagram illustrating an example of a manufacturing system to which an information processing system according to an embodiment is applied. FIG. 11 is a diagram illustrating an example of an overall configuration of a manufacturing system according to an embodiment. FIG. 12 is a diagram illustrating an example of a hardware configuration of a PLC according to an embodiment. FIG. 13 is a block diagram illustrating an example of a software configuration of a PC and a PLC. FIG. 14 is a diagram for explaining a time series data set generated by a PLC. FIG. 15 is a diagram illustrating an example of a BOOL-type data type memory map. FIG. 16 is a diagram illustrating an example of a structure data type memory map. FIG. 17 is a diagram illustrating a first example of a process for reproducing variable values by a reproduction PLC. FIG. 18 is a diagram illustrating a second example of a process for reproducing variable values by a reproduction PLC. FIG. 19 is a sequence diagram illustrating the flow of a process for reproducing the value of variable S1.m8[3] shown in FIG. 10 is a diagram illustrating an example of a display of reproduction data in playback mode.
[0022] Embodiments of the present disclosure will be described in detail with reference to the drawings. The same or corresponding parts in the drawings will be 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."
[0023] §1 Application Example Fig. 1 is a diagram illustrating an example of a manufacturing system to which an information processing system according to an embodiment of the present invention is applied. As shown in Fig. 1, the manufacturing system 1 includes an information processing system 100, a programmable logic controller 200 (hereinafter referred to as "PLC 200"), and one or more field devices 300.
[0024] The PLC 200 is connected to one or more field devices 300 and controls the one or more field devices 300 in accordance with 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 also collectively referred to as the "field"), various sensors installed in the field, or an input / output device that exchanges information with the field.
[0025] The PLC 200 has a memory 206 that stores various variable values exchanged with one or more field devices 300. The variable values stored in the memory 206 include various state values indicating the states of the one or more field devices 300 and various command values output to the one or more field devices 300. The PLC 200 updates the variable values stored in the memory 206 at a control period on the order of several hundred microseconds to several tens of milliseconds.
[0026] The PLC 200 generates the time series data set 50 by recording the variable values held in the memory 206 during the target period. The generated time series data set 50 is transferred to the information processing system 100. The transfer of the time series data set 50 from the PLC 200 to the information processing system 100 is performed using a storage medium such as, but not limited to, a memory card.
[0027] The information processing system 100 is configured by one or more computers. The information processing system 100 includes one or more visualization modules 30, a reproduction module 40, and a time designation module 45.
[0028] The one or more visualization modules 30 visualize on a screen the variable values of the visualization target that represent the control state of the PLC 200. For example, the one or more visualization modules 30 include a visualization module that generates screen data that displays a screen including a graph that shows the transition of the variable values of the visualization target. Alternatively, the one or more visualization modules 30 may include a visualization module that generates screen data that displays a screen in which the variable values of the visualization target are written on a ladder diagram that represents a control program.
[0029] The reproduction module 40 sequentially reproduces the variable values held by the PLC 200 for each control period during the target period, based on the time-series data set 50 recorded by the PLC 200 during the target period. Hereinafter, data indicating the variable values reproduced by the reproduction module 40 will be referred to as "reproduction data."
[0030] The reproduction module 40 includes a time control module 41 and a controller control state reproduction function 42 .
[0031] The time control module 41 controls the target time within the target period at which variable values are to be reproduced. The time control module 41 updates the target time at each specified time based on the playback start point and playback conditions received from the time specification module 45. The playback start point indicates a time within the target period. The playback conditions indicate the playback speed and the like, and define the specified time.
[0032] The controller control state reproduction function 42 extracts data corresponding to a target time from the time series data set 50 at each specified time, and generates reproduction data indicating the variable values held by the PLC 200 at the target time based on the extracted data.
[0033] The time designation module 45 determines a playback start point and playback conditions in response to a user input, and outputs the determined playback start point and playback conditions to the reproduction module 40 .
[0034] The one or more visualization modules 30 have a first mode (hereinafter referred to as "playback mode") in which variable values indicated by reproduction data are acquired as variable values to be visualized. As a result, when adding a new visualization module, the user simply configures the new visualization module so that the variable values reproduced by the reproduction module 40 can be acquired as variable values to be visualized, and there is no need to modify the existing visualization module 30. This allows the user to easily add a new visualization module.
[0035] §2 Specific Example <Overall Configuration of a Manufacturing System> Figure 2 is a schematic diagram showing an example of the overall configuration of a manufacturing system according to an embodiment. As shown in Figure 2, the manufacturing system 1 includes a personal computer (hereinafter referred to as "PC 100A") constituting an information processing system 100, a PLC 200, one or more field devices 300, a network camera 400, a network storage 500, and a storage medium 600. The PC 100A, the PLC 200, the network camera 400, and the network storage 500 can communicate with each other using, for example, a general-purpose Ethernet (registered trademark). Note that the PC 100A and the PLC 200 may also communicate with each other using another communication means (for example, Universal Serial Bus (USB)).
[0036] The network camera 400 is installed in the field and captures images of at least a portion of one or more field devices 300 .
[0037] The network storage 500 stores a group of video data generated by the network camera 400 .
[0038] The storage medium 600 is used to export the time-series data set 50 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).
[0039] 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 enable data communication.
[0040] The processor 101 reads out a program stored in the storage 103 and loads it into the memory 102. The processor 101 executes the loaded program.
[0041] The storage 103 stores the program executed by the processor 101 , the time-series data set 50 taken out from the PLC 200 using the storage medium 600 , and the video data 55 acquired from the network storage 500 .
[0042] The storage 103 stores a development program 131 , a viewer program 132 , and a reproduction program 133 .
[0043] The development program 131 mainly supports the development of control programs to be used by the PLC 200. Furthermore, the development program 131 provides a setting function related to a playback mode, a function for monitoring the execution status of a control program by the PLC 200 (hereinafter referred to as a "control program monitor function"), and a search function. In the playback mode, the control program monitor function includes a function for acquiring reproduction data (data indicating reproduced variable values) obtained by executing the reproduction program 133. The search function includes, for example, a function for searching for the timing at which a specified variable changed during the execution status of a control program by the PLC 200.
[0044] 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 transitions of various variable values (hereinafter referred to as the "variable graph display function") and a function for playing back the operations shown by the video data 55. In playback mode, the variable graph display function includes a function for acquiring variable values obtained by executing the reproduction program 133.
[0045] The viewer program 132 is, for example, a DLL (Dynamic Link Library) file, and when the development program 131 is started, the viewer program 132 is linked to the development program 131 and loaded into the memory 102 .
[0046] The reproduction program 133 reproduces the past control state of the PLC 200. The reproduction program 133 provides a function for managing the target time at which the control state is reproduced and a function for managing time-series data (hereinafter referred to as a "data management function"). The data management function includes a function for acquiring data from the time-series data set 50.
[0047] The input interface 104 mediates data transmission between the processor 101 and an input device 110 such as a keyboard, a mouse, or a touch panel. The display controller 105 is connected to a display 120 and displays on the display 120 a screen represented by 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.
[0048] Each of the development program 131, viewer program 132, and reproduction program 133 may be provided as a part of an arbitrary program rather than as a standalone program. In this case, the processing according to this embodiment is realized in cooperation with the arbitrary program. Furthermore, some or all of the functions provided by the development program 131, viewer program 132, and 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)).
[0049] 3 is a schematic diagram showing an example of a hardware configuration of a PLC according to an embodiment. As shown in Fig. 3, PLC 200 includes, as main components, a power supply circuit 201 that supplies power PW to each unit of 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.
[0050] The CPU 202 reads out the program stored in the storage 208 and loads it into the memory 206. The CPU 202 executes the loaded program.
[0051] 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 status 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 depending on the type of variable by the CPU 202 executing a program stored in the storage 208.
[0052] The storage 208 is configured with 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 with a volatile storage device.
[0053] The chipset 204 mediates data exchange between the CPU 202 and each component, thereby realizing processing of the PLC 200 as a whole.
[0054] The storage 208 stores a system program 211 including an operating system (OS) 212 and a scheduler program 213 for implementing the basic functions of the PLC 200 .
[0055] 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.
[0056] 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 the memory 206. Therefore, the CPU 202 updates the variable values held in the memory 206 by executing the control program.
[0057] The data type definition data defines the data type of each variable used by the control program. A "data type" is an attribute that specifies the format and range of values represented by a variable. The variables used by the control program include variables that indicate the status of one or more field devices 300 and variables that are output to one or more field devices 300.
[0058] The sampling setting data defines the conditions for generating the time-series data set 50. The conditions for generating the time-series data set 50 indicate the start conditions for sampling, the variables to be sampled, the sampling time, and the like.
[0059] Furthermore, the storage 208 stores the time series data set 50 generated according to the generation conditions indicated by the sampling setting data.
[0060] The USB controller 250 is responsible for exchanging data with an external device (eg, PC 100A) via a USB connection.
[0061] 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.
[0062] The network controller 254 has a connector 254a that connects to a higher-level network, and controls the exchange of data between the PLC 200 and an external device (for example, the PC 100A, the network camera 400, or the network storage 500).
[0063] The timer 260 is configured to include 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.
[0064] The reader / writer 270 mediates data transmission between the CPU 202 and the external storage medium 600 .
[0065] While FIG. 3 shows an example of a configuration in which the necessary functions are provided by the CPU 202 executing a program, some or all of these provided functions may be implemented using dedicated hardware circuits (e.g., ASICs or FPGAs). Alternatively, the main parts of the PLC 200 may be realized using hardware that conforms to 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 operating systems (OS) for different purposes in parallel, with necessary applications being executed on each OS.
[0066] <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 display / edit unit 11, a data type definition editing unit 12, a data type memory map generation unit 13, a sampling setting unit 14, a build processing unit 15, a reproduction PLC generation unit 16, a PLC communication control unit 17, a reproduction PLC communication control unit 18, one or more visualization modules 30, a reproduction PLC 40a, and a reproduction PLC clock operation unit 45a.
[0067] The control program display / edit unit 11, data type definition editing unit 12, data type memory map generation unit 13, sampling setting unit 14, build processing unit 15, and reproduction PLC generation unit 16 are realized by the processor 101 shown in FIG. 2 executing a 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 PLC communication control unit 18, the reproduction PLC 40a, and the reproduction PLC clock operation unit 45a are realized by the processor 101 executing a reproduction program 133. The reproduction PLC clock operation unit 45a 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.
[0068] The control program display / editing unit 11 creates or edits the source code of a control program in response to user input. The control program is, for example, but not limited to, a ladder program. The control program display / editing unit 11 also displays a ladder diagram representing the control program. The control program is written in a programming language that can display multiple command elements connected to each other. In response to user input, the control program display / editing unit 11 displays the control program in various situations, such as a phase in which the control program is created or edited, a phase in which the execution status of the control program by the PLC 200 is monitored in real time, and a phase in which the reproduction module 40 reproduces past control states of the PLC 200.
[0069] The data type definition editor 12 edits the data types of variables used by the control program in response to 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 editor 12 generates data type definition data indicating the edited data type for each variable.
[0070] The data type memory map generator 13 generates a data type memory map 60 in response to user input. The data type memory map 60 indicates the size of the data type of variables used by the control program. For variables having an array or structure data type, the data type memory map 60 indicates not only the size of the data type of the variable, but also the size of the data type of each array element or member and the allocation information of the array element or member.
[0071] An array is a sequence of data of the same data type. A variable that has the data type of an array is called an array variable. A structure consists of an ordered group of multiple data and objects. Unlike an array, members can have different data types. A variable that has the data type of a structure is called a structure variable.
[0072] The start address and size of any array element in an array or any member in a structure are specified using the data type memory map 60. As a result, the value of any array element or member is specified from the array variable or structure variable.
[0073] The sampling setting unit 14 sets the generation conditions for the time-series dataset 50 in response to user input and generates sampling setting data indicating the set generation conditions. As described above, the generation conditions for the time-series dataset 50 indicate the sampling start condition, the variables to be sampled, and the sampling time. The sampling start condition is, for example, a condition that the value of a specific variable changes from a first value to a second value. When the sampling start condition is satisfied, generation of the time-series dataset 50 starts. The variables to be sampled are set from among multiple variables used by the control program. Note that all of the multiple variables used by the control program may be set as sampling targets, or some of the multiple variables used by the control program may be set as sampling targets. The sampling time is the period from the start to the end of generation of the time-series dataset 50, and is, for example, 10 minutes, but is not limited to this.
[0074] The build processing unit 15 builds the source code of the control program and generates 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 also 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, a data type memory map 60 generated by the data type memory map generating unit 13 is also installed in the PLC 200.
[0075] The reproduction PLC generation unit 16 calls the reproduction program 133 shown in FIG. 2 in response to a user input, generates the reproduction PLC 40a, and starts the operation of the reproduction PLC 40a.
[0076] As described above, the one or more visualization modules 30 visualize on the screen the variable values of the visualization target that represent the control state of the PLC 200. The one or more visualization modules 30 have a playback mode in which the variable values reproduced by the reproduction PLC 40a are acquired as the variable values of the visualization target, as well as a second mode (hereinafter referred to as the "real-time mode") in which the variable values currently held by the PLC 200 are acquired as the variable values of the visualization target.
[0077] The PLC communication control unit 17 controls communication with the PLC 200. The PLC communication control unit 17 connects one or more visualization modules 30 and the PLC 200 for communication in response to a user input specifying the start of the real-time mode.
[0078] The reproduction PLC communication control unit 18 establishes a communication connection between one or more visualization modules 30 and the reproduction PLC 40a in response to a user input specifying the start of the playback mode.
[0079] 1, the reproduction PLC 40a sequentially reproduces variable values held by the PLC 200 for each control period during a target period based on a time series data set 50 recorded by the PLC 200 during the target period. The reproduction PLC 40a includes a clock management unit 41a and a time series data management unit 42a, which correspond to the time control module 41 and the controller control state reproduction function 42 shown in FIG. 1, respectively.
[0080] The clock management unit 41a manages a target counter value corresponding to a target time during a target period at which a variable value is to be reproduced. The target counter value represents the elapsed time from the start of the target period. For example, the target counter value represents how many times the elapsed time from the start of the target period is in units of the control period.
[0081] The clock management unit 41a updates and stops the target counter value in response to instructions from the reproduction PLC clock operation unit 45a. Specifically, when the clock management unit 41a receives an instruction to start regeneration from the reproduction PLC clock operation unit 45a, it sets the regeneration start counter value instructed by the reproduction PLC clock operation unit 45a as the target counter value, and thereafter adds 1 to the target counter value every time a specified time elapses. The clock management unit 41a sets the specified time in response to the regeneration conditions instructed by the reproduction PLC clock operation unit 45a.
[0082] The time-series data management unit 42a extracts data for the target time corresponding to the target counter value from the time-series data set 50, and based on the extracted data, reproduces the variable values held in the memory 206 of the PLC 200 at the target time. Specifically, the time-series data management unit 42a uses the data type memory map 60 to read the values of the array elements of the array variable or the members of the structure variable.
[0083] The reproduction PLC clock operation unit 45a is an example of the time designation module 45 shown in Fig. 1. The reproduction PLC clock operation unit 45a sets a regeneration start counter value and regeneration conditions in response to a user input, and outputs the set regeneration start counter value and regeneration conditions to the reproduction PLC 40a.
[0084] 4, PLC 200 includes a program execution unit 21 and a data collection unit 22. Furthermore, PLC 200 stores a program data set 214 and a data type memory map 60 transferred from PC 100A. Program execution unit 21 and data collection unit 22 are realized by CPU 202 shown in FIG. 3 executing a control program included in program data set 214.
[0085] 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.
[0086] 3 in accordance with a predetermined control cycle. When updating each variable value stored in memory 206, program execution unit 21 updates each bit in the memory area where each variable value is stored in accordance with data type definition data included in program data set 214. Furthermore, for an array variable or structure variable, program execution unit 21 updates each bit in the memory area where the value of each array element or member is stored in accordance with data type memory map 60 of the variable.
[0087] The program execution unit 21 reads the value of a variable used for an operation from each bit value in a memory area corresponding to the variable in accordance with the data type definition data. Furthermore, for an array variable or a structure variable, the program execution unit 21 reads the value of an array element or member using the data type memory map 60 of the variable.
[0088] The data collection unit 22 generates the time series data set 50 in accordance with 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, when the sampling start condition is satisfied, the data collection unit 22 starts recording the variable values held in the memory 206 for the variables to be sampled. When the sampling time has elapsed since the data collection unit 22 started recording the variable values, the data collection unit 22 stops recording the variable values and generates the time series data set 50 indicating the variable values for each time period during the target period from the start to the end of recording. The time series data set 50 is transferred from the PLC 200 to the PC 100A.
[0089] <Time Series Data Set 50> FIG. 5 is a diagram for explaining the time series data set 50 generated by the PLC 200. As shown in FIG.
[0090] The control program executed by the PLC 200 is written in a variable programming format. The source code of the control program can typically be written in any language specified in IEC 61131-3, such as LD (Ladder Diagram), IL (Instruction List), ST (Structured Text), FBD (Function Block Diagram), or SFC (Sequential Function Chart).
[0091] In any language, source code is written using variables. A "variable" is an identifier given to data handled in a control program. Typically, a "variable" is data that represents the state of the PLC 200 or an object controlled by the PLC 200 (one or more field devices 300). In other words, a "variable" is data whose value changes from moment to moment in conjunction with the state of the PLC 200 or the object controlled. The concept of a "variable" can include data that represents a single value, data that is represented as an array, data that appears as a structure, and various types of data defined in a control program.
[0092] 5 shows an example of a ladder circuit described by a ladder program, which is an example of a control program. The ladder circuit includes contacts that are turned on / off depending on the value of variable X1, and coils that output the on / off result as variable X2. The ladder circuit is described by connecting circuit elements such as contacts and coils with connecting lines. By combining ladder circuits hierarchically, it is possible to describe the processing that the PLC 300 performs to control the controlled object (one or more field devices 300).
[0093] The data type definition data is generated by the data type definition editing unit 12 of the PC 100A and transferred to the PLC 200. The data type definition data is generated by declaring at least the variable name and the data type of each variable. The data type is selectively set from predefined types such as "BOOL," "REAL," "INT," and "DINT." When the source code of the control program is built, a memory area having a capacity according to the selected data type is allocated for each variable declared in the data type definition data.
[0094] However, with the variable programming method, there is no need to assign an address in memory to each variable, except when an absolute address is required for input / output signals connected to external devices. Therefore, the data type definition data does not specify an address to which each variable is assigned. In this respect, the variable programming method differs from the address programming method, which assigns a PLC-specific address to data representing the status of the PLC or controlled object. This eliminates the need for address management when modifying or changing the model of the PLC, making it easier to port control programs between PLCs. Furthermore, by assigning easy-to-understand variable names, the readability of control programs can be improved.
[0095] On the other hand, in the memory map in the memory 206 of the PLC 200, the address assigned to each variable value is dynamically determined when the variable is set in the PLC 200. Therefore, the PC 100A cannot know in advance the address in the memory area where each variable value is stored. As a result, even if the PLC 200 provides a time-series memory map for the target period, the reproduction PLC 40a cannot reproduce the variable values.
[0096] Therefore, in this embodiment, the PLC 200 generates a time series data set 50 in which time series values are recorded for each variable. As shown in Fig. 5 , the time series data set 50 records the variable values held in the memory 206 during the target period. Note that, for structure variables and array variables, the PLC 200 records the values of all of the variables in the time series data set 50.
[0097] <Data Type Memory Map 60> As described above, in the time-series data set 50, the value of the entire structure variable and array variable is recorded as a single variable value, and this single variable value itself has no meaning. Therefore, it is not possible to identify the values of each member of a structure or each array element of an array from the variable value.
[0098] To achieve this, it is conceivable to configure the time-series data set 50 to record the values of each member of the structure and each array element of the array. However, since it becomes necessary to record information for identifying each member or array element in the storage 208 of the PLC 200, there is a concern that as the number of members or array elements increases, the capacity of the storage 208 will be strained. In addition, since it becomes necessary to process a huge number of variable values for each control cycle, there is a concern that the performance of the PLC 200 will be affected.
[0099] Therefore, in this embodiment, as shown in FIG. 4, the reproduction PLC 40a is configured to have the same data type memory map 60 as the data type memory map 60 that the PLC 200 has. The data type memory map 60 is generated by the data type memory map generator 13 and installed in the PLC 200 and the reproduction PLC 40a. The data type memory map 60 represents the size of the data type of variables used by the control program, the size of the data type of each array element or member of an array or structure, and the placement information of the array elements or members. The data type memory map 60 is generated for each data type.
[0100] The reproduction PLC 40a identifies the value of any member from the value of the structure variable by specifying the start address and size of that member using the structure data type memory map 60. The reproduction PLC 40a also identifies the value of any array element from the value of the array variable by specifying the start address and size of that array element using the array data type memory map 60.
[0101] FIG. 6 is a diagram showing an example of a BOOL-type data type memory map. As shown in FIG. 6, the memory area in which BOOL-type variables are stored has a size of 2 bytes (16 bits). The first bit at the beginning is the data address. Therefore, when PLC 200 updates a variable value held in memory 206, it updates the first bit of the memory area (2 bytes) in which BOOL-type variable values are stored to either True or False according to data type memory map 60 in FIG. 6. The remaining 15 bits are meaningless data (hereinafter also referred to as padding) that are inserted to shape the variable to a certain length.
[0102] 7 is a diagram showing an example of a data type memory map of a structure, which shows data type definition data of a structure and a data type memory map.
[0103] The data type definition data sets the variable name and data type of each member of the structure "s_Complex." The structure and the data type of each member can be freely defined by the user. In the example of Figure 7, the structure "s_Complex" is made up of multiple members represented by variables "m0" to "m15."
[0104] The data type memory map 60 shows the size and location information of the data type of each member. The memory area where the variables of the structure "s_Complex" are stored has a size of 64 bytes. Note that in Figure 7, bytes 0 to 64 are displayed with the data wrapped every 4 bytes.
[0105] According to the data type memory map shown in Figure 7, the start address and size of each member can be identified. For example, the data type of the member of variable m0 is BOOL, with the first bit set to the data address. A BOOL type variable has a size of 2 bytes (16 bits), with the 15 bits from the 2nd to the 16th bits being padding. The data type of the member of variable m1 is also BOOL, with the 17th bit set to the data address. The 15 bits from the 18th to the 32nd bits being padding.
[0106] The data type of the members of variable m8 is array (ARRAY), and it has five array elements m8[0] to m8[4], each consisting of BOOL-type data. The start address of the first array element m8[0] is the 113th bit, and the start address of the fifth array element m8[4] is the 117th bit.
[0107] As described above, the data type memory map 60 of the structure includes information on the start address and size of each member. Therefore, when the value of the structure variable S1 is reproduced by the time-series data set 50, the reproduction PLC 40a can identify which bit of the value of the reproduced structure variable S1 corresponds to which member value, based on the start address and size of each member shown in the data type memory map 60 shown in Figure 7. This allows the reproduction PLC 40a to reproduce the value of any member of the structure.
[0108] Although not shown in the figure, the array data type memory map, like the structure data type memory map, also contains size and allocation information of the data type of each array element. Therefore, the reproduction PLC 40a can identify which bit of the value of the reproduced array variable corresponds to which array element value, based on the start address and size of each array element shown in the array data type memory map 60. This allows the reproduction PLC 40a to reproduce the value of any array element of the array.
[0109] <Reproduction PLC 40a> Figure 8 is a diagram showing a first example of a process for replicating variable values by the reproduction PLC 40a. Figure 8 shows a process for replicating the value of variable X1 used in the control program. The numbers in parentheses in the diagram indicate the order in which the processes are performed.
[0110] 8, the reproduction PLC 40a first refers to the data type definition data to obtain information about the data type of the variable X1. The data type of the variable X1 is BOOL. Therefore, the variable X1 can take two values: "True" and "False."
[0111] Next, the reproduction PLC 40a extracts data for the target time from the time-series data set 50 and obtains the value of variable X1 from the extracted data. The value of variable X1 at the target time is "0x01." Note that "0x01" represents "1" in hexadecimal.
[0112] Next, the reproduction PLC 40a obtains information about the address and size of the data of variable X1 using the data type memory map 60 of variable X1. Because the data type of variable X1 is BOOL, the BOOL type data type memory map (see FIG. 6) is used. From the BOOL type data type memory map, it can be seen that the address of the data of variable X1 is the first bit and the size is 1 bit.
[0113] Next, the reproduction PLC 40a uses the information obtained from the data type memory map 60 to identify whether the variable X1 is "True" or "False" from the value of the variable X1 obtained from the time-series data set 50. In the example of FIG. 8, if the value of the variable X1 is "0x01", the variable X1 is identified as "True". In this way, the value of the variable X1 at the target time is reproduced.
[0114] 9 is a diagram showing a second example of the process of replicating a variable value by the replica PLC 40a. Fig. 9 shows the process for replicating the value of the variable S1.m8[3] used in the control program. The numbers in parentheses in the diagram indicate the order in which the process is performed.
[0115] 9, the reproduction PLC 40a first references the data type definition data to obtain information about the data type of the variable S1.m8[3]. As shown in FIG. 7, the data type definition data includes information that the data type of the variable S1 is the structure "s_Complex," information that m8[3] is one member of the structure, and information that the member m8 exists as the data type "ARRAY[0...4] OF BOOL."
[0116] Next, the reproduction PLC 40a extracts data for the target time from the time-series data set 50 and obtains the value of variable S1 from the extracted data. The value of variable S1 at the target time is "0x0123...FF." This value represents the value of the entire structure.
[0117] Next, the reproduction PLC 40a obtains information about the start address and size of member m8[3] using the data type memory map 60 of variable S1. Because the data type of variable S1 is the structure s_Complex, the data type memory map 60 of structure s_Complex (see FIG. 7) is used. According to this data type memory map 60 of structure s_Complex, it is clear that the start address of member m8[3] is the 116th bit and its size is 1 bit.
[0118] Next, the reproduction PLC 40a uses the information obtained from the data type memory map 60 to identify the value of member m8[3] from the value of variable S1 obtained from the time-series data set 50. Specifically, the reproduction PLC 40a reads the value of the 116th bit from the value of variable S1. In this way, the value of variable S1.m8[3] at the target time is reproduced.
[0119] <Sequence Flow> Figure 10 is a sequence diagram showing the flow of processing to reproduce the value of variable S1.m8[3] shown in Figure 9. Figure 10 shows the flow of commands and data inside PC 100A. Note that prior to execution of this sequence, in response to a user input specifying the start of playback mode, operation of reproduction PLC 40a is started and reproduction PLC 40a and one or more visualization modules 30 are communicatively connected.
[0120] 10, when the control program display / edit unit 11 receives a user instruction for a variable value to be visualized during reproduction in playback mode, it generates a command to request the variable value to be visualized from the reproduction PLC 40a. This command can be generated to include the name of the variable to be visualized, S1.m8[3], such as "Get Variable (S1.m8[3])."
[0121] The reproduction PLC communication control unit 18 transfers the command "Get Variable (S1.m8[3])" given from the control program display / edit unit 11 to the reproduction PLC 40a.
[0122] When the reproduction PLC 40a receives the command "Get Variable (S1.m8[3])" from the reproduction PLC communication control unit 18, it sets the time at which the command is received as the current time t. This current time t corresponds to the target time in the target period at which the variable value is to be reproduced.
[0123] The clock management unit 41a obtains the current time t (i.e., the target time) based on the target count value from the start of the target period, and sends information about the current time t to the reproduction PLC 40a.
[0124] Upon obtaining information about the current time t, the reproduction PLC 40a then generates a command to obtain the value of the variable S1.m8[3] at the current time t from the time series data set 50. As described above, the value of the structure variable S1 is recorded in the time series data set 50, so a command to obtain the value of the structure variable S1 is generated. This command can be generated to include information about the name of the structure variable S1 and the current time t, such as "Get Variable(S1, t)."
[0125] In response to this command "Get Variable (S1, t)," the time-series data management unit 42a extracts data at the current time t from the time-series data set 50 and obtains the value of the structure variable S1 from the extracted data at the current time t. The time-series data management unit 42a transfers the obtained value (0x**********) of the structure variable S1 at the current time t to the reproduction PLC 40a.
[0126] When the reproduction PLC 40a acquires the value of the structure variable S1 at the current time t, it reads the value of the member m8[3] from the value of the structure variable S1 using the data type memory map 60. Specifically, the reproduction PLC 40a generates a command for reading the value of the member m8[3]. This command can be generated to include the name of the member to be reproduced, m8[3], the value of the structure variable S1 at the current time t (0x**********), and the data type s_Complex of the structure variable S1, for example, as in "Get Value("m8[3]", 0x************, "s_Complex")." This command indicates that the value of the member m8[3] is requested when the total value of the variable of the data type s_Complex is (0x**********).
[0127] In response to this command, the structure data type memory map 60 (see FIG. 7) is referenced to obtain information about the start address and size of member m8[3] in the structure. Using the obtained information, the reproduction PLC 40a obtains the value of member m8[3] at the current time t from the value of structure variable S1 at the current time t (0x**********). Specifically, information about the start address and size of member m8 is first obtained from the structure data type memory map 60, and the value of member m8 (0x#####) is calculated from the value of the entire variable (0x**********) based on this information. Next, the command “Get Value(“3]”, 0x#####, “ARRAY[0..4] OF BOOL”) is executed, thereby identifying the value of m8[3] (for example, 0x01). Finally, by referencing the data type definition data (see FIG. 7) which indicates that m8[3] is a BOOL type variable, the value of member m8[3] (0x01) is identified as “True”. In this way, the value of member m8[3] of structure variable S1 at the current time t (target time) is reproduced.
[0128] <Display Example of Reproduced Data> Fig. 11 is a diagram showing a display example of reproduced data in playback mode. At least one of the one or more visualization modules 30 is configured to generate screen data showing a screen in which variable values to be visualized are written on a ladder diagram representing a control program. This visualization module 30 reproduces past control states of the PLC 200, as shown in Fig. 11. The screen data is generated based on variable values acquired from the time-series data set 50 using the data type memory map 60. In the example of Fig. 11, the execution status of the control program by the PLC 200 is indicated by a bold line on the ladder diagram.
[0129] 10 can also be applied when reproducing the value of an arbitrary array element in a control program, although this is not shown in the figure. That is, when a command including the variable name of an array element to be visualized is received from the control program display / edit unit 11 via the reproduction PLC communication control unit 18, the reproduction PLC 40a obtains the current time t (i.e., the target time) based on the target count value and acquires the value of the array variable at the current time t from the time-series data set 50. The reproduction PLC 40a then references the data type memory map 60 of the array variable to acquire information about the start address and size of the array element to be visualized, and uses the acquired information to read the value of the array element from the value of the array variable at the current time t.
[0130] The control program display / editing unit 11 is configured to display the control program in various situations, such as a phase in which a control program is created or edited in response to user input, a phase in which the execution status of the control program by the PLC 200 is monitored in real time, and a phase in which the past control state of the PLC 200 is reproduced by the reproduction PLC 40a.
[0131] The commands generated by the control program display / edit unit 11 are basically the same in the phase of monitoring the execution status of the control program by the PLC 200 in real time and the phase of reproducing past control states of the PLC 200, and are generated to specify variables to be visualized. However, the destination of the commands differs in these two phases. In the phase of monitoring the execution status of the control program in real time, the commands are sent to the PLC 200. In the phase of reproducing past control states, the commands are sent to the reproduction PLC 40a.
[0132] The PLC 200 updates the variable values stored in the memory 206 according to the control cycle, and therefore can immediately pass the variable values at the current time when the command is generated to the control program display and edit unit 11. This allows the visualization module 30 to visualize the current execution status of the control program.
[0133] On the other hand, the reproduction PLC 40a does not have information about the addresses of the memory areas where the variable values are stored, and therefore cannot pass the variable values to be visualized to the control program display and edit unit 11. In addition, the reproduction PLC 40a needs to identify the target time that corresponds to the current time.
[0134] Therefore, the reproduction PLC 40a acquires a time series data set 50 that records the variable values held in the memory 206 of the PLC 200 during the target period, and identifies the target time corresponding to the current time within the target time by managing the target counter value using the clock management unit 41a. Then, the reproduction PLC 40a extracts data corresponding to the target time from the time series data set 50, and reproduces the variable values at the target time from the extracted data using the data type memory map 60, and passes the reproduced data to the control program display / edit unit 11. With this configuration, the PC 100A can reproduce the past control state of the variable programming type PLC 200.
[0135] §3 Supplementary Note As described above, the present embodiment includes the following disclosure.
[0136] (Configuration 1) An information processing system (100, 100A) comprising: a reproduction module (40, 40a, 101) that sequentially reproduces variable values held by a programmable logic controller (200) for each control period of the programmable logic controller (200) during a target period based on a time series data set (50) recorded by the programmable logic controller (200) during the target period; and one or more visualization modules (30, 101) that visualize the variable values reproduced by the reproduction module (40, 40a, 101) as variable values to be visualized that represent a control state of the programmable logic controller (200), wherein the time series data set (50) indicates the variable values for each control period during the target period, The reproduction module (40, 40a, 101) has a data type memory map (60) that represents the size of the data type of a variable used by a control program executed by the programmable logic controller (200), the size of the data type of each array element in an array or each member in a structure, and placement information of the array elements or members, and the reproduction module (40, 40a, 101) reproduces the variable values held by the programmable logic controller (200) using the data type memory map (60).
[0137] (Configuration 2) The information processing system (100, 100A) according to Configuration 1, wherein the reproduction module (40, 40a, 101) extracts data corresponding to a target time in the target period from the time series data set (50), reproduces values of structure variables held by the programmable logic controller (200) at the target time based on the extracted data, and reproduces values of the members to be visualized from the reproduced values of the structure variables by identifying a start address and a size of the members to be visualized in the structure using the data type memory map (60).
[0138] (Configuration 3) The information processing system according to configuration 1 or 2, wherein the reproduction module (40, 40a, 101) extracts data corresponding to a target time in the target period from the time series data set (50), reproduces values of array variables held by the programmable logic controller at the target time based on the extracted data, and reproduces values of the array elements to be visualized from the reproduced values of the array variables by identifying a start address and a size of the array elements to be visualized in the array using the data type memory map (60).
[0139] (Configuration 4) The one or more visualization modules (30) have a first mode in which the variable values reproduced by the reproduction module (40, 40a, 101) are acquired as the variable values of the visualization target, and a second mode in which the variable values currently held by the programmable logic controller are acquired as the variable values of the visualization target, and the information processing system (100, 100A) communicatively connects the one or more visualization modules (30) and the reproduction module (40, 40a, 101) in response to an instruction to start the first mode, and communicatively connects the one or more visualization modules (30) and the programmable logic controller (200) in response to an instruction to start the second mode, the information processing system (100, 100A) described in any of configurations 1 to 3.
[0140] (Configuration 5) An information processing method in an information processing device including one or more visualization modules (30) that visualizes variable values of a visualization target that represent a control state of a programmable logic controller (200), the method comprising the steps of: sequentially reproducing variable values held by the programmable logic controller (200) for each control cycle of the programmable logic controller (200) during a target period based on a time series data set (50) recorded by the programmable logic controller (200) during the target period; and sending the reproduced variable values to the one or more visualization modules (30) as variable values of the visualization target, the time series data set (50) indicating variable values for each control cycle during the target period, the information processing device having a data type memory map (60) that represents the size of data types of variables used by a control program executed by the programmable logic controller (200), and the size and arrangement information of data types of array elements in array variables or members in structure variables, The step of sequentially reproducing the variable values includes a step of reproducing the variable values held by the programmable logic controller (200) using the data type memory map (60).
[0141] (Configuration 6) A program for causing a computer (100A) including one or more visualization modules (30) that visualizes variable values of a visualization target that represent a control state of a programmable logic controller (200) to execute an information processing method, the information processing method comprising the steps of: sequentially reproducing variable values held by the programmable logic controller (200) for each control cycle of the programmable logic controller (200) during a target period, based on a time series data set (50) recorded by the programmable logic controller (200) during the target period; and sending the reproduced variable values to the one or more visualization modules (30) as variable values of the visualization target, the time series data set (50) indicating variable values for each control cycle during the target period, the computer (100A) having a data type memory map (60) that represents the size of data types of variables used by a control program executed by the programmable logic controller (200), and the size and arrangement information of data types of array elements in array variables or members in structure variables, The step of sequentially reproducing the variable values includes a step of reproducing the variable values held by the programmable logic controller (200) using the data type memory map (60).
[0142] Although the embodiments of the present disclosure have been described, the embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the scope of the claims, and it is intended to include all modifications within the meaning and scope of the claims.
[0143] 1 Manufacturing system, 11 Control program display / editing unit, 12 Data type definition editing unit, 13 Data type memory map generation unit, 14 Sampling setting unit, 15 Build processing unit, 16 Reproduction PLC generation unit, 17 PLC communication control unit, 18 Reproduction PLC communication control unit, 19 Data accessor, 21 Program execution unit, 22 Data collection unit, 30 Visualization module, 40 Reproduction module, 40a Reproduction PLC, 41 Time control module, 41a Clock management unit, 42 Controller control state reproduction function, 42a Management unit, 43 Lookup table, 45 Time designation module, 45a Reproduction PLC clock operation unit, 50 Time series data set, 60 Data type memory map, 100 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, 200 PLC, 201 power supply circuit, 202 CPU, 204 chip set, 211 system program, 213 scheduler program, 214 program data set, 250 USB controller, 252 field network controller, 252a, 254a connector, 254 network controller, 260 timer, 300 field device, 400 network camera, 500 network storage, 600 storage medium.
Claims
1. An information processing system comprising: a reproduction module that sequentially reproduces variable values held by a programmable logic controller for each control period of the programmable logic controller during a target period based on a time series data set recorded by the programmable logic controller during the target period; and one or more visualization modules that visualize the variable values reproduced by the reproduction module as variable values of a visualization target that represent the control state of the programmable logic controller, wherein the time series data set indicates the variable values for each control period during the target period, and the reproduction module has a data type memory map that represents the size of the data type of variables used by a control program executed by the programmable logic controller, the size of the data type of each array element in an array or each member in a structure, and placement information of the array elements or members, and the reproduction module uses the data type memory map to reproduce the variable values held by the programmable logic controller.
2. The information processing system of claim 1, wherein the reproduction module extracts data corresponding to a target time in the target period from the time series data set, reproduces values of structure variables held by the programmable logic controller at the target time based on the extracted data, and reproduces values of the members to be visualized from the reproduced values of the structure variables by identifying a starting address and a size of the members to be visualized in the structure using the data type memory map.
3. The information processing system of claim 1, wherein the reproduction module extracts data corresponding to a target time in the target period from the time series data set, reproduces values of array variables held by the programmable logic controller at the target time based on the extracted data, and reproduces values of the array elements to be visualized from the reproduced values of the array variables by identifying a starting address and size of the array elements to be visualized in the array using the data type memory map.
4. The one or more visualization modules have a first mode in which the variable value reproduced by the reproduction module is acquired as the variable value of the visualization target, and a second mode in which the variable value currently held by the programmable logic controller is acquired as the variable value of the visualization target, and the information processing system communicatively connects the one or more visualization modules and the reproduction module in response to an instruction to start the first mode, and communicatively connects the one or more visualization modules and the programmable logic controller in response to an instruction to start the second mode. An information processing system as described in any one of claims 1 to 3.
5. An information processing method in an information processing device including one or more visualization modules that visualize variable values of a visualization target that represent the control state of a programmable logic controller, comprising the steps of: sequentially reproducing variable values held by the programmable logic controller for each control cycle of the programmable logic controller during a target period based on a time series data set recorded by the programmable logic controller during the target period; and sending the reproduced variable values to the one or more visualization modules as variable values of the visualization target, wherein the time series data set indicates variable values for each control cycle during the target period, and the information processing device has a data type memory map that indicates the size of the data type of variables used by a control program executed by the programmable logic controller, and the size and arrangement information of the data type of array elements in an array variable or members in a structure variable, and the step of sequentially reproducing the variable values includes a step of reproducing the variable values held by the programmable logic controller using the data type memory map.
6. A program for causing a computer to execute an information processing method, the program comprising one or more visualization modules for visualizing variable values of a visualization target that represent the control state of a programmable logic controller, the information processing method comprising the steps of: sequentially reproducing variable values held by the programmable logic controller for each control cycle of the programmable logic controller during a target period based on a time series data set recorded by the programmable logic controller during the target period; and sending the reproduced variable values to the one or more visualization modules as variable values of the visualization target, the time series data set indicating variable values for each control cycle during the target period; the computer having a data type memory map representing the size of data types of variables used by a control program executed by the programmable logic controller, and the size and arrangement information of data types of array elements in an array variable or members in a structure variable, the step of sequentially reproducing the variable values comprising the step of reproducing variable values held by the programmable logic controller using the data type memory map.
Citation Information
Patent Citations
Engineering tool for programmable logic controller
JP2020013528A
Support device of programmable controller, compiling method and compiler
JP2003058380A
Display device, screen data producing device and screen display system
JP2006302216A
Information processor, information processing method and program
JP2013205866A
