Information processing system, information processing method, and program

The information processing system reproduces past control states in PLCs with variable programming by using a data type memory map to specify array and structure element addresses, addressing the challenge of visualizing PLC states and analyzing abnormalities.

JP2024154540APending Publication Date: 2024-10-31OMRON CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023068401
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing engineering tools struggle to reproduce the past control state of programmable logic controllers (PLCs) using the variable programming method due to the inability to identify the memory map where variable values are stored, making it difficult to visualize and analyze abnormal operations.

Method used

An information processing system and method that includes a reproduction module to sequentially reproduce variable values based on time-series data, using a data type memory map to specify the start address and size of array or structure elements, enabling the visualization of past control states in PLCs with variable programming.

Benefits of technology

Enables the reproduction of past control states in PLCs with variable programming, allowing for effective visualization and analysis of abnormal operations without overwhelming storage capacity or affecting the execution of the control program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154540000001_ABST
    Figure 2024154540000001_ABST
Patent Text Reader

Abstract

To provide an information processing system capable of reproducing the past control state of a PLC that employs a variable programming method.SOLUTION: A reproduction module sequentially reproduces variable values held by a PLC for each control cycle of the PLC in a target period on the basis of a time-series data set recorded by the PLC in the target period. One or more visualization modules visualize the reproduced variable values as variable values to be visualized that represent a control state of the PLC. The time-series data set indicates a variable value for each control cycle in the target period. The reproduction module has a data type memory map that represents the size of a data type of a variable used by a control program executed by the PLC, the size of a data type of each member in each array element or structure in an array, and arrangement information of the array elements or the members. The reproduction module reproduces the variable values held by the PLC using the data type memory map.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

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 in a 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] 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 in the 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 solutions to PLCs that use the variable programming method. This is because the engineering tool cannot reproduce the memory map that exists inside the PLC. In detail, 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. Therefore, 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 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. [Means for solving the problem]

[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 period of the programmable logic controller in a target period based on a time series data set recorded by the programmable logic controller in the target period. The one or more visualization modules visualize the variable values ​​reproduced by the reproduction module as variable values ​​of a visualization target representing a control state of the programmable logic controller. The time series data set indicates the variable values ​​for each control period in the target period. The reproduction module has a data type memory map representing the size of the data type of a variable 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 arrangement 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, so that the reproduction module can obtain the variable values ​​for each control period during the target period.Then, 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, so that the value of the member or array element to be visualized can be reproduced.Therefore, the past control state of a PLC that employs a variable programming method can be reproduced.

[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 member to be visualized in the structure, thereby reproducing the value of the member to be visualized from the value of the reproduced structure variable.

[0012] According to this disclosure, by recording the values ​​of the structure variables in a time-series data set by the programmable controller, the reproduction module can reproduce the values ​​of the members to be visualized from the values ​​of the structure variables using the data type memory map of the structure. This eliminates the need for the programmable logic controller to record the variable values ​​on a member-by-member basis of the structure, thereby preventing the storage capacity from being overwhelmed and 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 the 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 element to be visualized in the array, thereby reproducing the value of the array element to be visualized from the value of the reproduced array variable.

[0014] According to this disclosure, by recording the values ​​of the array variables in a time-series data set by the programmable controller, the reproduction module can reproduce the values ​​of the array elements to be visualized from the values ​​of the array variables using the 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 preventing storage capacity from being overwhelmed and preventing the execution of the control program from being affected.

[0015] In the above disclosure, the one or more visualization modules have a first mode in which a variable value reproduced by the reproduction module is acquired as a variable value of a visualization target, and a second mode in which a variable value currently held by the programmable logic controller is acquired as a variable value of a visualization target. 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. The information processing system communicatively connects the one or more visualization modules and 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 an information processing method in an information processing device including one or more visualization modules that visualizes variable values ​​of a visualization target that represent a control state of a programmable logic controller. The information processing method includes a step of sequentially reproducing variable values ​​held by the programmable logic controller for each control cycle of the programmable logic controller in a target period based on a time series data set recorded by the programmable logic controller in the target period, and a step of sending the reproduced variable values ​​to one or more visualization modules as variable values ​​of a visualization target. The time series data set indicates the variable values ​​for each control cycle in the target period. The information processing device has a data type memory map that represents the size of the data type of a variable used by a control program executed by the programmable logic controller, as well as the size and arrangement information of the data type of an array element in an array variable or a member in a structure variable. 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.

[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. Effect of the Invention

[0020] According to the present disclosure, it is possible to reproduce the past control state of a PLC that employs a variable programming method. [Brief description of the drawings]

[0021] [Figure 1] 1 is a diagram illustrating an example of a manufacturing system to which an information processing system according to an embodiment is applied; [Diagram 2] 1 is a schematic diagram showing an example of an overall configuration of a manufacturing system according to an embodiment; [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. 1 is a diagram for explaining a time series data set generated by a PLC. [Figure 6] FIG. 13 is a diagram illustrating an example of a BOOL type data type memory map. [Figure 7] FIG. 13 illustrates an example of a data type memory map of a structure. [Figure 8] FIG. 11 is a diagram illustrating a first example of a process of reproducing variable values ​​by a reproduction PLC. [Figure 9] FIG. 11 is a diagram illustrating a second example of a process of reproducing variable values ​​by the reproduction PLC. [Figure 10] 10 is a sequence diagram showing the flow of a process for reproducing the value of the variable S1.m8[3] shown in FIG. [Figure 11] FIG. 13 is a diagram showing an example of display of reproduced data in playback mode. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] The embodiments of the present disclosure 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".

[0023] §1 Examples of application Fig. 1 is a diagram illustrating an example of a manufacturing system to which an information processing system according to an embodiment 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 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 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 holds various variable values ​​exchanged with one or more field devices 300. The variable values ​​held 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 ​​held in the memory 206 at a control period of the order of several hundreds of μsec to several tens of msec.

[0026] The PLC 200 generates a time series data set 50 by recording the variable values ​​held in the memory 206 during a 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 with 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 showing a screen including a graph showing 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 showing a screen in which the variable values ​​of the visualization target are described 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 in the target period based on the time series data set 50 recorded by the PLC 200 in the target period. Hereinafter, data indicating the variable values ​​reproduced by the reproduction module 40 will be referred to as "reproduced 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 during the target period at which the variable values ​​are to be reproduced. The time control module 41 updates the target time for each specified time based on the playback start point and playback conditions received from the time designation module 45. The playback start point indicates one time that belongs to 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 a "playback mode") in which variable values ​​indicated by reproduction data are acquired as variable values ​​of a visualization target. As a result, when adding a new visualization module, the user only needs to set the new visualization module so that the variable values ​​reproduced by the reproduction module 40 can be acquired as variable values ​​of a visualization target, and there is no need to modify the existing visualization module 30. Therefore, the user can easily add a new visualization module.

[0035] §2 Specific examples <Overall configuration of manufacturing system> Fig. 2 is a schematic diagram showing an example of the overall configuration of a manufacturing system according to an embodiment. As shown in Fig. 2, the manufacturing system 1 includes a personal computer (hereinafter referred to as "PC100A") 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). The PC 100A and the PLC 200 may 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 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 take out 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 be able to communicate data with each other.

[0040] 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.

[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 a control program 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 in 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 transition of various variable values ​​(hereinafter referred to as a "variable graph display function"), and a function for playing back the operation shown by the video data 55. In the 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 is linked to the development program 131 and loaded into the memory 102 when the development program 131 is started.

[0046] The reproduction program 133 reproduces the past control states 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 the "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 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.

[0048] Each of the development program 131, the viewer program 132, and the reproduction program 133 may be provided not as a single program but incorporated into a part of any program. In this case, processing according to the present embodiment is realized in cooperation with any 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).

[0049] <Hardware Configuration of PLC> Fig. 3 is a schematic diagram showing an example of a 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 unit 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.

[0050] The CPU 202 reads out a program stored in the storage 208 and loads it in 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 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.

[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 having an OS (Operating System) 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 ​​that a variable represents. The variables used by the control program include variables that indicate the state 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 generation conditions of the time series data set 50. The generation conditions of the time series data set 50 indicate the sampling start conditions, 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 sending and receiving data to and from 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 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).

[0063] 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.

[0064] The reader / writer 270 mediates data transmission between the CPU 202 and an external storage medium 600 .

[0065] 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.

[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 generating unit 13, a sampling setting unit 14, a build processing unit 15, a reproduction PLC generating 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, 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 PLC 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 PLC communication control unit 18, the reproduction PLC 40a, and the reproduction PLC clock operation unit 45a are realized by the processor 101 executing the 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 / edit unit 11 creates or edits the source code of the control program in response to a user input. The control program is, for example, but not limited to, a ladder program. The control program display / edit unit 11 also displays a ladder diagram representing the control program. The control program is written in a programming language that can display a plurality of command elements in a form in which they are connected to each other. The control program display / edit unit 11 displays the control program in various situations, such as a phase in which the control program is created or edited in response to a 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 module 40.

[0069] The data type definition editing unit 12 edits the data type 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 editing unit 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 a user input. The data type memory map 60 indicates the size of the data type of a variable used by a control program. For a variable having an array or structure data type, the data type memory map 60 indicates the size of the data type of each array element or member, and the placement information of the array element or member, in addition to the size of the data type of the variable.

[0071] An array is a set of data of the same data type arranged in a row. 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 arrays, 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 of the time series data set 50 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 50 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 50 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 50, and is, for example, 10 minutes, but is not limited thereto.

[0074] 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.

[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 communicatively connects one or more visualization modules 30 and the PLC 200 in response to a user input specifying the start of the real-time mode.

[0078] The reproduction PLC communication control unit 18 communicatively connects 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, and sequentially reproduces variable values ​​held by the PLC 200 for each control period in a target period based on a time series data set 50 recorded by the PLC 200 in the target period. The reproduction PLC 40a includes a clock management unit 41a and a time series data management unit 42a, which respectively correspond to the time control module 41 and the controller control state reproduction function 42 shown in FIG.

[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 indicates the elapsed time from the start of the target period. For example, the target counter value indicates how many times the elapsed time from the start of the target period is in units of a control period.

[0081] The clock management unit 41a updates and stops the target counter value in response to an instruction from the reproduction PLC clock operation unit 45a. Specifically, when the clock management unit 41a receives an instruction to start reproduction from the reproduction PLC clock operation unit 45a, it sets the reproduction 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 has elapsed. The clock management unit 41a sets the specified time in response to the reproduction 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 reproduces the variable values ​​held in the memory 206 of the PLC 200 at the target time based on the extracted data. Specifically, the time-series data management unit 42a uses the data type memory map 60 to read the values ​​of array elements of an array variable or members of a 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 reproduction start counter value and a reproduction condition in response to a user input, and outputs the set reproduction start counter value and the reproduction condition to the reproduction PLC 40a.

[0084] 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.

[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 held 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 an array variable or structure variable, program execution unit 21 updates each bit in a memory area in which the value of each array element or member is stored in accordance with data type memory map 60 of the variable.

[0087] For variables used for calculations, the program execution unit 21 reads the variable values ​​from the bit values ​​in the memory area corresponding to the variables in accordance with the data type definition data. Furthermore, for array variables or structure variables, the program execution unit 21 reads the values ​​of array elements or members by using the data type memory map 60 of the variables.

[0088] The data collection unit 22 generates a time series data set 50 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 50 indicating the variable values ​​for each time in 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 defined 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 according to 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 process by which the PLC 300 controls the control target (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 the variable for 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 secured for each of the variables declared in the data type definition data.

[0094] However, with the variable programming method, it is not necessary to assign an address in the memory area to each variable, except when an absolute address is required for input / output signals connected to external devices. Therefore, in the data type definition data, an address to which each variable is assigned is not specified. In this respect, the variable programming method differs from the address programming method, in which a PLC-specific address is specified for data that represents the state of a PLC or a controlled object. As a result, compared to the address programming method, the variable programming method does not require address management when modifying or changing the model of a PLC, making it easier to port control programs between PLCs. Also, by giving easy-to-understand variable names, the readability of the control program can be improved.

[0095] On the other hand, in the memory map in the memory 206 of the PLC 200, the address to be assigned to each variable value is dynamically determined at the stage 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 chronological memory map for the target period is provided from the PLC 200, 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 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 the array variable is recorded as one variable value, and this one variable value itself has no meaning. Therefore, it is not possible to identify the value of each member of the structure or the value of each array element of the array from the variable value.

[0098] To achieve this, it is possible to configure the time series data set 50 so as 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 and array element in the storage 208 of the PLC 200, there is a concern that as the number of members and the number of array elements increase, this will strain the capacity of the storage 208. In addition, since a process for recording a huge number of variable values ​​is required 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 a variable used by a control program, the size of the data type of each array element or each member of an array or structure, and the arrangement 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 a structure variable by specifying the start address and size of that member using the structure data type memory map 60. Also, the reproduction PLC 40a identifies the value of any array element from the value of an 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 illustrating an example of a BOOL type data type memory map.

[0102] As shown in Fig. 6, the memory area in which a BOOL type variable is stored has a size of 2 bytes (16 bits). The first bit at the beginning is the address of the data. Therefore, when the PLC 200 updates a variable value held in the memory 206, it updates the first bit of the memory area (2 bytes) in which the BOOL type variable value is stored to either True or False according to the 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.

[0103] Fig. 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.

[0104] In the data type definition data, the variable name and data type of each member of the structure "s_Complex" are set. 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 composed of multiple members represented by variables "m0" to "m15".

[0105] The data type memory map 60 shows the size and location information of the data type of each member. The memory area in which the variables of the structure "s_Complex" are stored has a size of 64 bytes. Note that in Fig. 7, bytes 0 to 64 are displayed wrapped every 4 bytes.

[0106] 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, and the first bit at the beginning is set to the address of the data. A BOOL type variable has a size of 2 bytes (16 bits), and the 15 bits from the 2nd bit to the 16th bit are padding. The data type of the member of variable m1 is also BOOL, and the 17th bit is set to the address of the data. The 15 bits from the 18th bit to the 32nd bit are padding.

[0107] The data type of the members of variable m8 is array (ARRAY), and it has five array elements m8[0] to m8[4] that are BOOL type data. The starting address of the first array element m8[0] is the 113th bit, and the starting address of the fifth array element m8[4] is the 117th bit.

[0108] In this way, 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 Fig. 7. This allows the reproduction PLC 40a to reproduce the value of any member of the structure.

[0109] Although not shown in the figure, the data type memory map of an array also includes size and location information of the data type of each array element, similar to the data type memory map of a structure. 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 data type memory map 60 of the array. This allows the reproduction PLC 40a to reproduce the value of any array element of the array.

[0110] <Reproduced PLC40a> Fig. 8 is a diagram showing a first example of a process for reproducing a variable value by the reproduction PLC 40a. Fig. 8 shows a process for reproducing the value of a variable X1 used in a control program. The numbers in parentheses in the diagram indicate the order in which the process is performed.

[0111] 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 have two values, "True" and "False".

[0112] Next, the reproduction PLC 40a extracts data for the target time from the time series data set 50, and obtains the value of the variable X1 from the extracted data. The value of the variable X1 at the target time is "0x01". Note that "0x01" represents "1" in hexadecimal.

[0113] Next, the reproduction PLC 40a obtains information about the address and size of the data of the variable X1 using the data type memory map 60 of the variable X1. Since the data type of the 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 the variable X1 is the first bit, and the size is 1 bit.

[0114] 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, when the value of the variable X1 is "0x01", the variable X1 is identified as "True". In this manner, the value of the variable X1 at the target time is reproduced.

[0115] Fig. 9 is a diagram showing a second example of a process for reproducing a variable value by the reproduction PLC 40a. Fig. 9 shows a process for reproducing 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.

[0116] 9, the reproduction PLC 40a first acquires information about the data type of the variable S1.m8[3] by referring to the data type definition data. 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".

[0117] Next, the reproduction PLC 40a extracts data for the target time from the time series data set 50, and obtains the value of the variable S1 from the extracted data. The value of the variable S1 at the target time is "0x0123...FF". This value represents the value of the entire structure.

[0118] Next, the reproduction PLC 40a obtains information about the start address and size of the member m8[3] using the data type memory map 60 of the variable S1. Because the data type of the variable S1 is the structure s_Complex, the data type memory map 60 of the structure s_Complex (see FIG. 7) is used. According to the data type memory map 60 of the structure s_Complex, it is found that the start address of the member m8[3] is the 116th bit, and the size is 1 bit.

[0119] Next, the reproduction PLC 40a uses the information obtained from the data type memory map 60 to identify the value of the member m8[3] from the value of the 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 the variable S1. In this way, the value of the variable S1.m8[3] at the target time is reproduced.

[0120] <Sequence flow> Fig. 10 is a sequence diagram showing the flow of a process for reproducing the value of the variable S1.m8[3] shown in Fig. 9. Fig. 10 shows the flow of commands and data inside the PC 100A. Prior to the execution of this sequence, the operation of the reproduction PLC 40a is started in response to a user input specifying the start of the playback mode, and the reproduction PLC 40a and one or more visualization modules 30 are communicatively connected.

[0121] 10, when the control program display / edit unit 11 receives an instruction for a variable value to be visualized from a user during reproduction in the playback mode, it generates a command for requesting 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])".

[0122] 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.

[0123] 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 when the command is received as the current time t. This current time t corresponds to the target time during the target period that is the target of variable value reproduction.

[0124] The clock management unit 41a obtains the current time t (that is, 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.

[0125] Upon obtaining information about the current time t, the reproduction PLC 40a then generates a command for acquiring the value of the variable S1.m8[3] at the current time t from the time series data set 50. As described above, since the value of the structure variable S1 is recorded in the time series data set 50, a command for acquiring 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)".

[0126] 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 acquires 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 acquired value (0x**********) of the structure variable S1 at the current time t to the reproduction PLC 40a.

[0127] 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 by 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 means that the value of the member m8[3] is requested when the total value of the variables of the data type s_Complex is (0x**********).

[0128] Upon receiving this command, the data type memory map 60 of the structure (see FIG. 7) is referenced to obtain information about the start address and size of the member m8[3] in the structure. Then, using the obtained information, the reproduction PLC 40a obtains the value of the member m8[3] at the current time t from the value (0x**********) of the structure variable S1 at the current time t. Specifically, first, information about the start address and size of the member m8 is obtained from the data type memory map 60 of the structure, and the value of the member m8 (0x#####) is found 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 Figure 7) which indicates that m8[3] is a BOOL type variable, it is identified from the value of m8[3] (0x01) that the member m8[3] is “True”. In this way, the value of member m8[3] of structure variable S1 at the current time t (target time) is reproduced.

[0129] <Example of reproduced data display> Fig. 11 is a diagram showing an example of display of reproduced data in the 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 described on a ladder diagram representing a control program. This visualization module 30 reproduces a past control state 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 shown by a bold line on the ladder diagram.

[0130] Although not shown in the figure, the sequence shown in Fig. 10 can also be applied when reproducing the value of an arbitrary array element in a control program. 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 through 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 obtains the value of the array variable at the current time t from the time series data set 50. Then, the reproduction PLC 40a refers to the data type memory map 60 of the array variable to obtain information regarding the start address and size of the array element to be visualized, and uses the obtained information to read the value of the array element from the value of the array variable at the current time t.

[0131] The control program display and 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.

[0132] 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 in the phase of reproducing past control states of the PLC 200, and are generated to specify the 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.

[0133] Since the PLC 200 updates each variable value held in the memory 206 by itself according to the control cycle, the variable value at the current time when the command is generated can be immediately passed 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.

[0134] On the other hand, the reproduction PLC 40a does not have information on the addresses of the memory areas in which the respective 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 corresponding to the current time.

[0135] 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 a target period, and identifies a target time corresponding to the current time in the target time by managing the target counter value using the clock management unit 41a. Then, data corresponding to the target time is extracted from the time series data set 50, and variable values ​​at the target time are reproduced from the extracted data using the data type memory map 60, and passed to the control program display and edit unit 11. With this configuration, the PC 100A can reproduce the past control state of the PLC 200 that uses the variable programming method.

[0136] §3 Supplementary Note As described above, the present embodiment includes the following disclosure.

[0137] (Configuration 1) An information processing system (100, 100A), a reproduction module (40, 40a, 101) that sequentially reproduces variable values ​​held by the 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); 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); the time series data set (50) indicates the variable values ​​for each of the control periods 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 arrangement information of the array elements or members; The reproduction module (40, 40a, 101) reproduces the variable values ​​held by the programmable logic controller (200) using the data type memory map (60), in an information processing system (100, 100A).

[0138] (Configuration 2) The reproduction module (40, 40a, 101) extracting data corresponding to a target time in the target period from the time series data set (50), and reproducing values ​​of structure variables held by the programmable logic controller (200) at the target time based on the extracted data; An information processing system (100, 100A) according to configuration 1, which uses the data type memory map (60) to identify the starting address and size of the member to be visualized in the structure, thereby reproducing the value of the member to be visualized from the reproduced value of the structure variable.

[0139] (Configuration 3) The reproduction module (40, 40a, 101) extracting data corresponding to a target time in the target period from the time series data set (50), and reproducing values ​​of array variables held by the programmable logic controller at the target time based on the extracted data; The information processing system of configuration 1 or 2, wherein the data type memory map (60) is used to identify the starting address and size of the array element to be visualized in the array, thereby reproducing the value of the array element to be visualized from the reproduced value of the array variable.

[0140] (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, The information processing system (100, 100A) In response to an instruction to start the first mode, the one or more visualization modules (30) and the reproduction module (40, 40a, 101) are communicatively connected to each other; The information processing system (100, 100A) according to any one of configurations 1 to 3, wherein the one or more visualization modules (30) and the programmable logic controller (200) are communicatively connected in response to an instruction to start the second mode.

[0141] (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), comprising: a step of sequentially reproducing variable values ​​held by the programmable logic controller (200) for each control period of the programmable logic controller (200) during the target period based on a time series data set (50) recorded by the programmable logic controller (200); 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) indicates variable values ​​for each of the control periods during the target period; The information processing device has a data type memory map (60) that indicates the size of the data type of a variable used by a control program executed by the programmable logic controller (200), and the size and arrangement information of the data type of an array element in an array variable or a member in a structure variable; 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] (Configuration 6) A program for causing a computer (100A) to execute an information processing method, the program comprising: one or more visualization modules (30) for visualizing a variable value of a visualization target that represents a control state of a programmable logic controller (200), The information processing method includes: a step of sequentially reproducing variable values ​​held by the programmable logic controller (200) for each control period of the programmable logic controller (200) during the target period based on a time series data set (50) recorded by the programmable logic controller (200); 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) indicates variable values ​​for each of the control periods during the target period; the computer (100A) has a data type memory map (60) that indicates the size of the data type of a variable used by a control program executed by the programmable logic controller (200), and the size and arrangement information of the data type of an array element in an array variable or a member in a structure variable; 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).

[0143] 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 claims, and it is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]

[0144] 1 manufacturing system, 11 control program display and 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 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, a reproduction module that sequentially reproduces variable values ​​held by the 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; one or more visualization modules that visualize the variable values ​​reproduced by the reproduction module as variable values ​​of a visualization target that represent a control state of the programmable logic controller; the time series data set indicates the variable values ​​for each control period during the target period; the reproduction module has a data type memory map representing the size of a data type of a variable used by a control program executed by the programmable logic controller, the size of a data type of each array element in an array or each member in a structure, and arrangement 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.

2. The reproduction module includes: extracting data corresponding to a target time in the target period from the time series data set, and reproducing values ​​of structure variables held by the programmable logic controller at the target time based on the extracted data; 2. The information processing system according to claim 1, further comprising: a data type memory map that is used to identify a starting address and a size of a member to be visualized in a structure, and a value of the member to be visualized is reproduced from a value of the reproduced structure variable.

3. The reproduction module includes: extracting data corresponding to a target time in the target period from the time series data set, and reproducing values ​​of array variables held by the programmable logic controller at the target time based on the extracted data; 2. The information processing system according to claim 1, further comprising: a data type memory map for identifying a starting address and a size of an array element to be visualized in an array; and reproducing a value of the array element to be visualized from a value of the reproduced array variable.

4. the one or more visualization modules have a first mode in which the variable value reproduced by the reproduction module is acquired as a 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, The information processing system includes: In response to an instruction to start the first mode, the one or more visualization modules and the reproduction module are communicatively connected; The information processing system according to claim 1 , further comprising: a communication connection between the one or more visualization modules and the programmable logic controller in response to an instruction to start the second mode.

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 represents a control state of a programmable logic controller, comprising: A step of sequentially reproducing variable values ​​held by the 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; 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 a variable value for each control period during the target period; the information processing device has a data type memory map that indicates the size of a data type of a variable used by a control program executed by the programmable logic controller, and the size and arrangement information of a data type of an array element in an array variable or a member in a structure variable; 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 represents a control state of a programmable logic controller, the program comprising: The information processing method includes: A step of sequentially reproducing variable values ​​held by the 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; 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 a variable value for each control period during the target period; the computer has a data type memory map representing the size of a data type of a variable used by a control program executed by the programmable logic controller, and the size and location information of a data type of an array element in an array variable or a member in a structure variable; 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.

Citation Information

Patent Citations

  • Engineering tool for programmable logic controller

    JP2020013528A