WO2019216199A1 - Analysis assistance device and analysis assistance method - Google Patents
Analysis assistance device and analysis assistance method Download PDFInfo
- Publication number
- WO2019216199A1 WO2019216199A1 PCT/JP2019/017209 JP2019017209W WO2019216199A1 WO 2019216199 A1 WO2019216199 A1 WO 2019216199A1 JP 2019017209 W JP2019017209 W JP 2019017209W WO 2019216199 A1 WO2019216199 A1 WO 2019216199A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- state
- information
- control device
- target device
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
Definitions
- the present invention relates to technology for supporting cause identification when a problem occurs in an FA device.
- FA Vectory Automation
- control devices such as PLC (Programmable Logic Controller) and various target devices (sensors, actuators, etc.) that operate according to control commands from the control devices.
- the target device may not operate as designed, or an unintended operation or error may occur.
- causes of such problems include, for example, bugs in programs that run on control devices (such as descriptions of control instructions and transmission timing errors), and bugs in programs that run on target devices (such as errors in measurement flow logic). Since various causes such as failure of the control device or target device, cable disconnection, network congestion, etc. are assumed, it is not easy to identify the problem location or cause.
- Patent Document 1 an apparatus for monitoring the behavior of the network inside the parallel computer is proposed, but it is difficult to divert the apparatus to the behavior monitoring of the control system described above.
- the present invention has been made in view of the above circumstances, and an object of the present invention is to provide a technique for facilitating analysis work of communication between a control device and a target device.
- a first aspect of the present invention is an analysis support apparatus for supporting an analysis of communication between a control device and a target device controlled by the control device, between the control device and the target device.
- a communication log acquisition unit that acquires communication log data that is a record of transmitted transmission data; a status log acquisition unit that acquires status log data that is a record of the state of the target device and / or the control device;
- a first information screen for displaying the contents of transmission data between the control device and the target device in time series based on the communication log data and the status log data; and the target device and / or the control device.
- An information output means for outputting a second information screen for displaying a temporal change in state to a display device so that the temporal correspondence between the transmission data and the state can be identified.
- a part of the transmission data displayed in time series on the first information screen, or a part of the temporal change in the state displayed on the second information screen User operation accepting means for accepting an operation to be selected from the user, and when the attention data is selected, the information output means is configured to receive the attention on both the first information screen and the second information screen.
- the data corresponding to the data may be displayed in a manner that can be distinguished from other data.
- the corresponding data can be confirmed on both the first information screen and the second information screen. Therefore, regarding the attention data that the user is interested in, it is possible to easily compare the status change of the target device and / or the control device with the contents of the transmission data at the same time. Can be done well.
- the user operation accepting means can accept a screen switching instruction for switching between the first information screen and the second information screen from a user, and the information output means can receive a part of the data on the first information screen.
- the screen switching instruction is received in a state where the data is displayed in an identifiable manner
- the data is switched to the second information screen and the data at the same time as the attention data is displayed in an identifiable manner.
- the screen switching instruction is received in a state where some data is identifiable as the attention data
- the data is switched to the first information screen and the data at the same time as the attention data is displayed in an identifiable manner. May be.
- the transmission data transmitted between the control device and the target device includes information indicating the state of the control device or the state of the target device, and the state log acquisition unit is configured to transmit the communication log.
- the status log data may be acquired from the communication log data acquired by the acquisition unit.
- the information output unit may display the change point where the state of the target device and / or the control device is changing in the first information screen and / or the second information screen so as to be identifiable.
- the state of the target device or the control device often changes. Therefore, by displaying the status change points of the target device and control device in an easy-to-understand manner on the information screen, it is possible to easily narrow down the locations where there is a high possibility that a problem has occurred, and to efficiently search for the problem location and cause. it can.
- the user operation accepting unit may include a selection assisting unit that assists the user in selecting the change point as the attention data.
- a selection assisting unit that assists the user in selecting the change point as the attention data.
- the transmission data includes number information given in the order of transmission, and the information output means analyzes the number information of each transmission data recorded in the communication log data to thereby correct the transmission order.
- a transmission error portion where transmission data is not transmitted may be detected, and the transmission error portion may be displayed on the first information screen and / or the second information screen so as to be identifiable.
- the problem location and the cause can be efficiently searched by automatically detecting the transmission error location and displaying the transmission error location together with the contents of the transmission data and the state change information.
- FIG. 1 is a configuration diagram of a control system.
- FIG. 2 is a configuration diagram of the analysis support apparatus.
- FIG. 3 is a diagram illustrating an example of a timeline display screen.
- FIG. 4 is a diagram illustrating an example of a time chart display screen.
- FIG. 5 is a diagram illustrating an example of normal state guide display.
- FIG. 6 is a diagram illustrating a processing flow of the analysis support apparatus.
- FIG. 7 is a diagram illustrating a processing flow of the analysis support apparatus.
- 8A and 8B are diagrams illustrating a processing flow of the analysis support apparatus.
- the analysis support apparatus is applied to, for example, a control system 1 including a control device 11 and a target device 12 as shown in FIG. It is used for the purpose of supporting analysis work.
- the analysis support apparatus can read the communication log data between the control device 11 and the target device 12 and the status log data of the control system 1, and can output two types of information screens as shown in FIGS. is there.
- the timeline display screen 30 of FIG. 3 the content of transmission data between the control device 11 and the target device 12 is displayed in time series.
- a waveform indicating a temporal change in the state of the control system 1 is displayed.
- These information screens are displayed so that the temporal correspondence between the transmission data and the state of the control system 1 can be identified. Therefore, the user can easily compare, for example, the state change of the control system 1 and the content of the transmission data at the same time, so that the problem location and the cause can be easily and efficiently found.
- the control system 1 includes a PLC (programmable logic controller) 11 as a control device and a sensor 12 as a target device controlled by the control device.
- the PLC 11 and the sensor 12 are connected by a communication cable 13.
- the senor 12 for example, an image sensor, a displacement sensor, a length measuring sensor, a code reader, an area sensor, or the like can be used.
- the communication cable 13 for example, an Ethernet cable, a parallel I / O cable, a serial cable, or the like can be used.
- a communication protocol for example, parallel, PLC link, EtherNet / IP, EtherCAT, non-procedure, or the like is used. be able to. It is also possible to connect the PLC 11 and the sensor 12 by wireless communication instead of wired connection.
- the image sensor 12 is installed in a factory production line or the like, and performs various processes using an image (for example, acquisition of image data to be inspected, shape recognition, inspection, edge detection, number measurement, area measurement, color measurement) This is a device used for feature acquisition, labeling and segmentation, object recognition, barcode and two-dimensional code reading, OCR, individual identification, and the like.
- the image sensor 12 is also called a vision sensor or a vision system.
- the image sensor 12 of the present embodiment is roughly composed of a sensor controller 120 and a camera 121, and the sensor controller 120 and the camera 121 are connected by a camera cable.
- the sensor controller 120 is provided with a plurality of camera I / Os so that a plurality of cameras 121 can be connected.
- the processing system (sensor controller 120) and the imaging system (camera 121) are configured separately, but a configuration in which the processing system and the imaging system are integrated can also be adopted.
- Such an integrated image sensor is also called a “smart camera”.
- the camera 121 is a device that captures an image of a subject such as an inspection target and acquires image data, and includes an optical system such as a lens and an image sensor such as a CCD or CMOS. If necessary, the camera 121 may be provided with an autofocus mechanism, a pan / tilt / zoom mechanism, a lighting device, and the like.
- the sensor controller 120 is a device that controls the entire image sensor 12 and performs various arithmetic processes.
- the sensor controller 120 includes, for example, a computer having a processor (CPU), a memory, a storage, a communication module, and an I / O, a display device such as a liquid crystal display, and an input device such as a mouse and a touch panel.
- Various programs are stored in the storage, and when the image sensor 12 is operated, necessary programs are loaded into the memory and executed by the processor, thereby providing processing and functions to be described later.
- the processing and functions provided by the image sensor 12 may be configured by a circuit such as an ASIC or FPGA, or may be configured by distributed computing or cloud computing.
- the measurement flow includes, for example, an image input step S10 from the camera 121, a measurement processing step S11 using an image (object detection, inspection, character reading, etc.), a measurement result (OK / NG determination result, etc.) output step S12 Composed. It is assumed that the user can freely design the processing items to be executed in each process.
- the sensor controller 120 In response to the control command from the PLC 11, the sensor controller 120 notifies the PLC 11 of a status signal indicating the sensor status, and sends data such as measurement results (determination results, etc.), measurement values, and read character strings to the PLC 11. Send (output). In this way, measurement processing by the image sensor 12 is executed under the control of the PLC 11.
- the image sensor 12 may not operate as designed, or an unintended operation or error may occur.
- the cause of such a malfunction is, for example, a bug in a program that operates on the PLC 11 (such as a description of a control instruction or an error in transmission timing), or a bug in a program that operates on the image sensor 12 (such as an error in a measurement flow logic). Since various causes such as failure of the PLC 11 or the image sensor 12, cable disconnection, network congestion, and the like are assumed, it is not easy to identify the problem location and the cause.
- an analysis support program for supporting analysis of communication between the PLC 11 and the image sensor 12 is installed in the control system 1 to facilitate identification of the cause of the above-described problem.
- the analysis support program may be installed in a target device such as the image sensor 12 and executed by a processor of the target device.
- the target device also serves as the analysis support device (or the target device provides a function as the analysis support device).
- the analysis support program may be installed in a control device such as the PLC 11 and executed by a processor of the control device.
- the control device also serves as the analysis support device (or the control device provides a function as the analysis support device).
- the analysis support program may be installed on a computer different from both the control device and the target device (for example, a computer for management and maintenance of the control system 1) and executed by a processor of the computer.
- FIG. 2 is a block diagram illustrating an example of the configuration of the analysis support apparatus according to the present embodiment.
- the analysis support apparatus 2 includes a monitor unit 20, a communication log acquisition unit 21, a status log acquisition unit 22, an information output unit 23, and a user operation reception unit 24 as main components.
- the analysis support apparatus 2 is configured by installing an analysis support program in the image sensor 12, and each component shown in FIG. 2 is executed by the processor of the image sensor 12 executing the analysis support program. Realized in software.
- this configuration is an example, and some or all of the components shown in FIG. 2 may be configured by a circuit such as an ASIC or FPGA, or may be executed on another computer such as a server.
- the monitor unit 20 monitors the communication between the PLC 11 and the image sensor 12, and records the transmission data transmitted (transmitted and received) between the two in the storage in the analysis support apparatus 2 (image sensor 12). I do.
- the time series data of the recorded transmission data is called “communication log data”.
- the monitor unit 20 may leave the transmission data in the communication log data in the form as it is, or information (for example, compressed or encoded information, information obtained by extracting only part of the data) obtained by processing the transmission data in the communication log It may be recorded as data.
- the monitor unit 20 may monitor the state of the control system 1 and perform a process of recording it in a storage in the analysis support apparatus 2 (image sensor 12).
- the recorded time series data of the state of the control system 1 is referred to as “state log data”.
- the state of the control system 1 can include one or both of the state of the image sensor 12 and the state of the PLC 11.
- the state of the image sensor 12 is, for example, busy (a state in which processing is being executed and a new control command cannot be input from the outside), a command completed (a state in which execution of a control command input from the outside has been completed) ), Data output (a state in which data such as measurement results are output to the outside), ready (a state in which measurement can be started), and an error (a state in which an abnormality has occurred).
- the state of the image sensor 12 may be detected from the value of the state variable held in the memory of the image sensor 12 or from the value of the state signal included in the transmission data transmitted from the image sensor 12 to the PLC 11. It may be detected. In the latter case, the monitor unit 20 may extract information on the state of the image sensor 12 from the communication log data.
- the state of the PLC 11 is, for example, command execution (a state in which a control command is transmitted to the target device), data output request (a state in which data output can be received from the target device), error (a state in which an abnormality has occurred), etc. There is.
- the state of the PLC 11 may be detected from a value of a state variable held in the memory of the PLC 11 or may be detected from a value of a control signal included in transmission data transmitted from the PLC 11 to the image sensor 12. Good. In the latter case, the monitor unit 20 may extract information on the state of the PLC 11 from the communication log data.
- the communication log acquisition unit 21 performs processing for acquiring communication log data between the PLC 11 and the image sensor 12. In this embodiment, it is assumed that the communication log data accumulated by the monitor unit 20 is read from the storage, but the communication log acquisition unit 21 communicates from the outside via a network or a recording medium such as a USB memory. Log data may be read.
- the status log acquisition unit 22 performs processing for acquiring status log data of the control system 1. In the present embodiment, it is assumed that the status log data accumulated by the monitor unit 20 is read from the storage. However, the status log acquisition unit 22 is externally connected via a network or a recording medium such as a USB memory. Log data may be read.
- the information output unit 23 generates an information screen for supporting the analysis work by the user based on the acquired communication log data and status log data, and performs a process of outputting the information screen to the display device.
- the user operation reception unit 24 performs processing for receiving various operations by the user. Details of the processing of the information output unit 23 and the user operation reception unit 24 will be described later.
- Example of information screen> 3 and 4 show an example of an information screen output by the analysis support apparatus 2.
- the analysis support apparatus 2 of the present embodiment can output two types of information screens, a timeline display screen 30 (FIG. 3) and a time chart display screen 40 (FIG. 4).
- the timeline display screen 30 is an example of a first information screen for displaying the contents of transmission data between the PLC 11 and the image sensor 12 in time series
- the time chart display screen 40 is a time of the state of the control system 1. It is an example of the 2nd information screen for displaying a typical change.
- UI user interface
- the log file read button 320 is a UI for designating a file of communication log data and status log data to be analyzed.
- a file selection screen (not shown) is opened and a log data file can be selected.
- the view switching button 321 is a UI for switching between the timeline display screen 30 and the time chart display screen 40. Each time the user presses the view switching button 321 (that is, every time the user operation receiving unit 24 receives a screen switching instruction by the user), the information output unit 23 displays the timeline display screen 30 and the time chart display screen 40. Switch. In this embodiment, a UI that switches between two information screens is used. However, if the resolution of the display device is sufficiently high, the two information screens may be displayed side by side or vertically or displayed in separate windows. May be.
- Each row of the timeline display screen 30 shows the contents of one transmission data. For example, when packet communication is performed between the PLC 11 and the image sensor 12, each row indicates the contents of one packet data.
- each row indicates the contents of one packet data.
- “number”, “time stamp”, “time”, “source”, “destination”, “protocol”, “length”, “data”, “analysis” Information of 10 items “content” and “identifier” is displayed. The meaning of each item is as follows.
- Example 1 11-00-00-0A-05-06-64-0A-05-06 ⁇ Execution command Measurement execution RES-CODE XXXXXX [Example 2] 45-00-00-39-7D-B3-00-00-80-11 ⁇ Write command data D102 Data register [Example 3] 06-64-0A-05-06-7B-25-80-25 ⁇ 4 channels Response area CMD-CODE (10) Identifier: A unique number assigned by the transmission data transmission source at the time of data transmission. Since numbers are assigned in the order of transmission, it is possible to detect missing transmission data, abnormal transmission data reception order, etc. by checking the identifier.
- the user can select (mark) some transmission data as attention data on the timeline display screen 30.
- the selected row of attention data is displayed by a method (for example, coloring, inversion, emphasis, etc.) that can be distinguished from other transmission data.
- FIG. 3 shows an example in which one row is marked as attention data, a plurality of rows may be marked.
- the narrowing-down function 301 is a function for extracting and displaying information that matches the conditions from the information displayed on the timeline display screen 30.
- it is possible to set narrowing conditions such as a time stamp, a protocol, and an arbitrary character string.
- Time chart display In the example of the time chart display screen 40 of FIG. 4, the time change of the state values of five signals of EXE, BUSY, FLG, DSA, and GATE is displayed.
- the horizontal axis is time, and the state value of each signal takes two values, OFF (Lo) and ON (Hi).
- EXE is a signal that changes from OFF to ON when the PLC 11 issues a control command to the image sensor 12.
- BUSY is a signal that changes from OFF to ON when the image sensor 12 starts processing according to the control command input from the PLC 11.
- FLG is a signal that changes from OFF to ON when the image sensor 12 completes execution of the control command.
- the DSA is a signal that changes from OFF to ON when the PLC 11 becomes capable of receiving data output from the image sensor 12.
- GATE is a signal that turns from OFF to ON when the image sensor 12 starts data output.
- the information output unit 23 assigns change point numbers so that the change points of each signal are in ascending order in time stamps, and the change point portion of the graph of each signal on the time chart display screen 40 is displayed. Displays the change point number. This change point number display makes it possible to easily determine the order in which change points appear.
- the user can select (mark) any change point as attention data on the time chart display screen 40.
- the selected change point is displayed by a method that can be distinguished from other change points (for example, coloring, inversion, and emphasis).
- the display range of the time stamp is adjusted so that the selected change point is displayed at the center of the time chart display screen 40.
- the time stamp of the selected change point is displayed on the horizontal axis. In the example of FIG. 4, the changing point (number: 1) of the time stamp “4696” is displayed in the center.
- the selection assist function 401 is a UI that assists in moving the position (time stamp) of data displayed on the time chart display screen 40 and selecting a change point.
- the display range is automatically adjusted so that the data of the time stamp is selected as the data of interest and displayed in the center of the time chart display screen 40.
- the selected change points move one by one in ascending or descending order.
- Such a selection assist function 401 facilitates selection of attention data.
- the error location display 402 indicates a location (transmission error location) where data transmission is not performed in the correct transmission order. For example, a location where the reception order of transmission data received by the image sensor 12 from the PLC 11 is reversed, a location where transmission data is missing, and the like are displayed as transmission error locations.
- One of the features of the UI of the present embodiment is that the timeline display screen 30 and the time chart display screen 40 are displayed in association with each other in time, that is, transmission data and time on the timeline display screen 30. Each display screen is generated and displayed so that the temporal correspondence with the state change on the chart display screen 40 can be identified. Specifically, when the attention data is selected on the timeline display screen 30 and the timeline display is switched to the time chart display, data having the same time stamp as the attention data is displayed on the time chart display screen 40. But it is selected and displayed in the center of the screen.
- the transmission data error location display 402 on the time chart display screen 40 is one of the displays showing the temporal correspondence between the transmission data and the state of the control system 1. Thereby, it is possible to easily check the state of the control system 1 at the time when a transmission error occurs, and it is possible to efficiently find the problem location and the cause.
- the transmission error location may be displayed on the timeline display screen 30 so as to be identifiable.
- the position of the state change point may be displayed on the timeline display screen 30 so as to be identifiable.
- it can be used as a clue to finding the problem location and the cause.
- the information output unit 23 may provide a function of superimposing and displaying a signal waveform indicating a normal state transition of the control system 1 (referred to as a “normal state guide”) on the time chart display screen 40.
- FIG. 5 shows a display example of the normal state guide.
- the normal state guide 50 may be switched between display and non-display each time the guide display button 51 is pressed.
- the communication log acquisition unit 21 and the status log acquisition unit 22 read the log data file selected by the user (step S60). At this time, the status log acquisition unit 22 may acquire the status log data of each signal from the communication log data acquired by the communication log acquisition unit 21.
- the information output unit 23 analyzes each transmission data included in the communication log data, and extracts the items (1) to (10) described above (step S61). Thereafter, the information output unit 23 analyzes the identifier (number information given in the order of transmission) of each transmission data, detects a location where data transmission is not performed in the correct transmission order, and stores it in the memory (step S62). .
- the information output unit 23 detects the state change point of each signal by analyzing the state log data, and stores it in the memory (step S63). And the information output part 23 produces
- the processing flow of FIG. 7 shows processing executed when the user operation receiving unit 24 receives an operation event by the user.
- the user operation is a screen switching operation (depressing the view switching button 321) (YES in step S70)
- the information output unit 23 determines that the time is displayed if the current screen is the time chart display screen 40 (NO in step S71). Switching to the line display screen 30 is performed (step S72). If the current screen is the timeline display screen 30 (YES in step S71), switching to the time chart display screen 40 is performed (step S73). Details of the processes in steps S72 and S73 will be described later.
- the information output unit 23 stores the transmission data selected on the timeline display screen 30 as attention data. At the same time (step S75), the row of the data of interest is displayed in color (step S76).
- the information output unit 23 uses the change point selected on the time chart display screen 40 as attention data. In addition to storing (step S78), the display range of the time chart is updated so that the attention data is displayed in the center (step S79).
- step S72 Details of step S72 are shown in FIG. 8A.
- the information output unit 23 determines whether or not attention data (change point) is selected on the time chart display screen 40 which is the current screen (screen before switching) (specifically, information on attention data is stored in the memory). Whether or not) (step S720).
- the information output unit 23 selects transmission data at a time corresponding to the attention data (step S721).
- the information output part 23 produces
- step S73 Details of step S73 are shown in FIG. 8B.
- the information output unit 23 determines whether or not attention data (transmission data) is selected on the timeline display screen 30 that is the current screen (screen before switching) (specifically, information on attention data is stored in the memory). Whether or not) (step S730).
- the information output unit 23 changes the display range of the time chart so that the time state value corresponding to the attention data is displayed in the center (step S731). If attention data is not selected, the display range of the time chart is set to a default value (for example, the top of log data) (step S732). And the information output part 23 produces
- timeline display and time chart display can be linked and displayed.
- control system including a PLC and an image sensor
- the target device can be other than the image sensor.
- various sensors / measurement devices, actuators, and the like can be used. That is, the present invention can be preferably applied to any control system including a control device and a target device that operate while communicating with each other.
- the number of target devices is not limited to one, and the present invention can be applied to a control system in which a plurality of target devices are connected.
- an analysis support device may be mounted for each target device, or only one target device may be mounted, and a single analysis support device may perform log analysis of a plurality of target devices. Also good.
- log data accumulated in the control system may be read into the analysis support apparatus using a recording medium such as a USB memory.
- the information screens in FIGS. 3 and 4 are merely examples, and display items, display methods, and the like may be appropriately designed according to the format of data to be analyzed, the purpose and application of analysis, and the like.
- An analysis support device (2) for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11), Communication log acquisition means (21) for acquiring communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12); Status log acquisition means (22) for acquiring status log data which is a record of the status of the target device (12) and / or the control device (11); A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state.
- An analysis support apparatus (2) characterized by comprising: (2) An analysis support method for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11), Computer Obtaining communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12); Obtaining status log data which is a record of the status of the target device (12) and / or the control device (11); A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state. Outputting to a display device for identification; The analysis support method characterized by performing this.
- Control system 2 Analysis support device 11: Control device, PLC 12: Target device, image sensor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Debugging And Monitoring (AREA)
- User Interface Of Digital Computer (AREA)
- Programmable Controllers (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
This analysis assistance device comprises: a communication log acquisition means for acquiring communication log data that is a record of transmitted data transmitted between a control device and a target device; a state log acquisition means for acquiring state log data that is a record of the state of the target device and/or of the control device; and an information output means that, in order to make it possible to identify the temporal correspondence between the transmitted data and the state or states, outputs, to a display device, a first information screen in which the communication log data and the state log data are used as a basis to chronologically display the content of the transmitted data between the control device and the target device and a second information screen in which temporal change in the state of the target device and/or the control device is displayed.
Description
本発明は、FA機器において問題が発生した場合の原因特定を支援する技術に関する。
The present invention relates to technology for supporting cause identification when a problem occurs in an FA device.
FA(ファクトリー・オートメーション)においては、PLC(プログラマブル・ロジック・コントローラ)などの制御機器と、制御機器からの制御命令に従って動作する各種の対象機器(センサ、アクチュエータなど)とで構成される制御システムが広く利用されている。このような制御システムにおいては、対象機器が設計通りに動作しなかったり、意図しない動作やエラーが発生したりする場合がある。そのような不具合が生じる原因としては、例えば、制御機器で動作するプログラムのバグ(制御命令の記述や送出タイミングの誤りなど)、対象機器で動作するプログラムのバグ(計測フローのロジックの誤りなど)、制御機器又は対象機器の故障、ケーブルの断線、ネットワークの輻輳などのさまざまな原因が想定されるため、問題箇所や原因を特定するのは容易ではない。従来は、制御機器と対象機器の間の通信ログをビューワソフトで閲覧し、不適切なパケットがないかを1データ(1パケット)ずつ確認するといった作業を行わざるを得なかったため、このような解析作業には、FA機器の通信に関する高度なスキルが必要になるとともに、原因特定までに膨大な時間(例えば数百時間)を要するという課題があった。なお、特許文献1では、並列計算機内部のネットワークの挙動を監視するための装置が提案されているが、同装置を上述した制御システムの挙動監視に転用することは難しい。
In FA (Factory Automation), there is a control system composed of control devices such as PLC (Programmable Logic Controller) and various target devices (sensors, actuators, etc.) that operate according to control commands from the control devices. Widely used. In such a control system, the target device may not operate as designed, or an unintended operation or error may occur. Causes of such problems include, for example, bugs in programs that run on control devices (such as descriptions of control instructions and transmission timing errors), and bugs in programs that run on target devices (such as errors in measurement flow logic). Since various causes such as failure of the control device or target device, cable disconnection, network congestion, etc. are assumed, it is not easy to identify the problem location or cause. Conventionally, it has been unavoidable to view the communication log between the control device and the target device with viewer software and check whether there is an inappropriate packet for each data (one packet). The analysis work has a problem that it requires a high level of skill regarding the communication of the FA device, and enormous time (for example, several hundred hours) is required to identify the cause. In Patent Document 1, an apparatus for monitoring the behavior of the network inside the parallel computer is proposed, but it is difficult to divert the apparatus to the behavior monitoring of the control system described above.
本発明は、上記実情に鑑みなされたものであって、制御機器と対象機器との間の通信の解析作業を容易化するための技術を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a technique for facilitating analysis work of communication between a control device and a target device.
本発明の第一側面は、制御機器と前記制御機器によって制御される対象機器との間の通信の解析を支援するための解析支援装置であって、前記制御機器と前記対象機器との間で伝送された伝送データの記録である通信ログデータを取得する通信ログ取得手段と、前記対象機器及び/又は前記制御機器の状態の記録である状態ログデータを取得する状態ログ取得手段と、取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器と前記対象機器との間の伝送データの内容を時系列に表示する第1情報画面と、前記対象機器及び/又は前記制御機器の状態の時間的な変化を表示する第2情報画面とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力する情報出力手段と、を有することを特徴とする解析支援装置を提供する。
A first aspect of the present invention is an analysis support apparatus for supporting an analysis of communication between a control device and a target device controlled by the control device, between the control device and the target device. A communication log acquisition unit that acquires communication log data that is a record of transmitted transmission data; a status log acquisition unit that acquires status log data that is a record of the state of the target device and / or the control device; A first information screen for displaying the contents of transmission data between the control device and the target device in time series based on the communication log data and the status log data; and the target device and / or the control device. An information output means for outputting a second information screen for displaying a temporal change in state to a display device so that the temporal correspondence between the transmission data and the state can be identified. Providing analysis support apparatus according to claim.
この構成によれば、前記対象機器及び/又は前記制御機器の状態変化と同じ時刻の伝送データの内容とを簡単に見比べることができるので、問題箇所や原因の発見が容易化される。その結果、原因の解析作業に要する時間の大幅な短縮が期待できる。また、解析作業が容易化されることで、例えば、ユーザサイドでの原因究明やメンテナンスが可能になり、FA機器のユーザビリティが向上する、といった副次的な効果も期待できる。
According to this configuration, it is possible to easily compare the state change of the target device and / or the control device with the content of transmission data at the same time, so that the problem location and the cause can be easily found. As a result, the time required for the cause analysis work can be greatly shortened. In addition, by facilitating the analysis work, for example, secondary effects such as enabling investigation of the cause and maintenance on the user side and improving usability of the FA device can be expected.
前記第1情報画面に時系列に表示された前記伝送データのうちの一部のデータ、又は、前記第2情報画面に表示された前記状態の時間的な変化の一部のデータを、注目データとして選択する操作をユーザから受け付けるユーザ操作受付手段を有し、前記情報出力手段は、前記注目データが選択されている場合に、前記第1情報画面と前記第2情報画面の両方において、前記注目データに対応するデータを他のデータから識別可能な方法で表示してもよい。
A part of the transmission data displayed in time series on the first information screen, or a part of the temporal change in the state displayed on the second information screen User operation accepting means for accepting an operation to be selected from the user, and when the attention data is selected, the information output means is configured to receive the attention on both the first information screen and the second information screen. The data corresponding to the data may be displayed in a manner that can be distinguished from other data.
この構成によれば、ユーザが注目データを選択すると、それに対応するデータを第1情報画面と第2情報画面の両方で確認することができる。したがって、ユーザが関心をもった注目データに関して、前記対象機器及び/又は前記制御機器の状態変化と同じ時刻の伝送データの内容とを簡単に見比べることができるので、問題箇所や原因の探索を効率よく行うことができる。
According to this configuration, when the user selects attention data, the corresponding data can be confirmed on both the first information screen and the second information screen. Therefore, regarding the attention data that the user is interested in, it is possible to easily compare the status change of the target device and / or the control device with the contents of the transmission data at the same time. Can be done well.
前記ユーザ操作受付手段は、前記第1情報画面と前記第2情報画面を切り替える画面切替指示をユーザから受け付け可能であり、前記情報出力手段は、前記第1情報画面において一部のデータが前記注目データとして識別可能に表示されている状態で前記画面切替指示を受け付けた場合に、前記第2情報画面に切り替え且つ前記注目データと同じ時刻のデータを識別可能に表示し、前記第2情報画面において一部のデータが前記注目データとして識別可能に表示されている状態で前記画面切替指示を受け付けた場合に、前記第1情報画面に切り替え且つ前記注目データと同じ時刻のデータを識別可能に表示してもよい。
The user operation accepting means can accept a screen switching instruction for switching between the first information screen and the second information screen from a user, and the information output means can receive a part of the data on the first information screen. When the screen switching instruction is received in a state where the data is displayed in an identifiable manner, the data is switched to the second information screen and the data at the same time as the attention data is displayed in an identifiable manner. In the second information screen, When the screen switching instruction is received in a state where some data is identifiable as the attention data, the data is switched to the first information screen and the data at the same time as the attention data is displayed in an identifiable manner. May be.
このように2つの情報画面を切り替え表示する構成を採用することにより、サイズの小さな(あるいは解像度の低い)表示装置においても、情報画面の視認性を低下させることなく表示が可能となる。FA機器に具備される表示装置は、小型ないし低解像度のものが多いため、上記のような切り替え表示は有用である。
By adopting a configuration in which two information screens are switched and displayed as described above, even a display device having a small size (or low resolution) can be displayed without reducing the visibility of the information screen. Since many display devices included in FA devices are small or have a low resolution, the switching display as described above is useful.
前記制御機器と前記対象機器との間で伝送される伝送データの中に、前記制御機器の状態又は前記対象機器の状態を示す情報が含まれており、前記状態ログ取得手段は、前記通信ログ取得手段によって取得された前記通信ログデータから前記状態ログデータを取得してもよい。この構成によれば、同じ情報源から通信に関する情報と状態に関する情報を得ることができるため、通信に関する情報と状態に関する情報との時間的な同期をとる処理が不要となるなど、データ処理が簡便になるという利点がある。
The transmission data transmitted between the control device and the target device includes information indicating the state of the control device or the state of the target device, and the state log acquisition unit is configured to transmit the communication log. The status log data may be acquired from the communication log data acquired by the acquisition unit. According to this configuration, since information related to communication and information related to the state can be obtained from the same information source, data processing is simplified such that processing for synchronizing the information related to communication and the information related to the state becomes unnecessary. There is an advantage of becoming.
前記情報出力手段は、前記第1情報画面及び/又は前記第2情報画面において、前記対象機器及び/又は前記制御機器の状態が変化している変化点を識別可能に表示してもよい。制御に関わる不具合が発生すると、対象機器又は制御機器の状態が変化する場合が多い。したがって、情報画面において対象機器や制御機器の状態変化点をわかりやすく表示することで、不具合が発生した可能性の高い箇所の絞り込みを容易にでき、問題箇所や原因の探索を効率よく行うことができる。
The information output unit may display the change point where the state of the target device and / or the control device is changing in the first information screen and / or the second information screen so as to be identifiable. When a defect related to control occurs, the state of the target device or the control device often changes. Therefore, by displaying the status change points of the target device and control device in an easy-to-understand manner on the information screen, it is possible to easily narrow down the locations where there is a high possibility that a problem has occurred, and to efficiently search for the problem location and cause. it can.
前記ユーザ操作受付手段は、前記ユーザが前記変化点を前記注目データとして選択する操作を補助する選択補助手段を有してもよい。制御に関わる不具合が発生すると、対象機器又は制御機器の状態が変化する場合が多い。したがって、情報画面において対象機器や制御機器の状態変化点を注目データとして選択する操作を簡便に行えるようにすることで、不具合が発生した可能性の高い箇所の絞り込みを容易にでき、問題箇所や原因の探索を効率よく行うことができる。
The user operation accepting unit may include a selection assisting unit that assists the user in selecting the change point as the attention data. When a defect related to control occurs, the state of the target device or the control device often changes. Therefore, by making it easy to select the status change point of the target device or control device as the target data on the information screen, it is possible to easily narrow down the places where there is a high possibility that a problem has occurred. The cause can be searched efficiently.
前記伝送データの中に、伝送順に付与された番号情報が含まれており、前記情報出力手段は、前記通信ログデータに記録されている各伝送データの番号情報を解析することにより、正しい伝送順で伝送データの伝送が行われていない伝送エラー箇所を検出し、前記第1情報画面及び/又は前記第2情報画面において、前記伝送エラー箇所を識別可能に表示してもよい。制御に関わる不具合は、伝送エラーが原因で発生する可能性も高い。したがって、伝送エラー箇所を自動で検出し、且つ、伝送エラー箇所を伝送データの内容や状態変化の情報と共に表示することにより、問題箇所や原因の探索を効率よく行うことができる。
The transmission data includes number information given in the order of transmission, and the information output means analyzes the number information of each transmission data recorded in the communication log data to thereby correct the transmission order. In this case, a transmission error portion where transmission data is not transmitted may be detected, and the transmission error portion may be displayed on the first information screen and / or the second information screen so as to be identifiable. There is a high possibility that defects related to control will occur due to transmission errors. Therefore, the problem location and the cause can be efficiently searched by automatically detecting the transmission error location and displaying the transmission error location together with the contents of the transmission data and the state change information.
本発明によれば、制御機器と対象機器との間の通信の解析作業を容易化することができる。
According to the present invention, it is possible to facilitate analysis work of communication between the control device and the target device.
<適用例>
本発明に係る解析支援装置は、例えば図1に示されるような制御機器11と対象機器12から構成される制御システム1に適用され、制御システム1において不具合が発生した場合などに、ユーザによる原因解析作業を支援する目的で利用されるものである。解析支援装置は、制御機器11と対象機器12の間の通信ログデータと、制御システム1の状態ログデータとを読み込み、図3と図4に示されるような2種類の情報画面を出力可能である。図3のタイムライン表示画面30では、制御機器11と対象機器12の間の伝送データの内容が時系列に表示される。図4のタイムチャート表示画面40では、制御システム1の状態の時間的な変化を示す波形が表示される。これらの情報画面は、伝送データと制御システム1の状態との時間的な対応関係が識別可能なように表示される。したがって、ユーザは、例えば、制御システム1の状態変化と同じ時刻の伝送データの内容とを簡単に見比べることができるので、問題箇所や原因の発見を容易に且つ効率的に行うことができる。 <Application example>
The analysis support apparatus according to the present invention is applied to, for example, acontrol system 1 including a control device 11 and a target device 12 as shown in FIG. It is used for the purpose of supporting analysis work. The analysis support apparatus can read the communication log data between the control device 11 and the target device 12 and the status log data of the control system 1, and can output two types of information screens as shown in FIGS. is there. In the timeline display screen 30 of FIG. 3, the content of transmission data between the control device 11 and the target device 12 is displayed in time series. On the time chart display screen 40 in FIG. 4, a waveform indicating a temporal change in the state of the control system 1 is displayed. These information screens are displayed so that the temporal correspondence between the transmission data and the state of the control system 1 can be identified. Therefore, the user can easily compare, for example, the state change of the control system 1 and the content of the transmission data at the same time, so that the problem location and the cause can be easily and efficiently found.
本発明に係る解析支援装置は、例えば図1に示されるような制御機器11と対象機器12から構成される制御システム1に適用され、制御システム1において不具合が発生した場合などに、ユーザによる原因解析作業を支援する目的で利用されるものである。解析支援装置は、制御機器11と対象機器12の間の通信ログデータと、制御システム1の状態ログデータとを読み込み、図3と図4に示されるような2種類の情報画面を出力可能である。図3のタイムライン表示画面30では、制御機器11と対象機器12の間の伝送データの内容が時系列に表示される。図4のタイムチャート表示画面40では、制御システム1の状態の時間的な変化を示す波形が表示される。これらの情報画面は、伝送データと制御システム1の状態との時間的な対応関係が識別可能なように表示される。したがって、ユーザは、例えば、制御システム1の状態変化と同じ時刻の伝送データの内容とを簡単に見比べることができるので、問題箇所や原因の発見を容易に且つ効率的に行うことができる。 <Application example>
The analysis support apparatus according to the present invention is applied to, for example, a
<システム構成>
図1を参照して、本発明の実施形態に係る制御システムを説明する。この制御システム1は、制御機器としてのPLC(プログラマブル・ロジック・コントローラ)11と、制御機器によって制御される対象機器としてのセンサ12とを有している。PLC11とセンサ12との間は通信ケーブル13によって接続されている。 <System configuration>
A control system according to an embodiment of the present invention will be described with reference to FIG. Thecontrol system 1 includes a PLC (programmable logic controller) 11 as a control device and a sensor 12 as a target device controlled by the control device. The PLC 11 and the sensor 12 are connected by a communication cable 13.
図1を参照して、本発明の実施形態に係る制御システムを説明する。この制御システム1は、制御機器としてのPLC(プログラマブル・ロジック・コントローラ)11と、制御機器によって制御される対象機器としてのセンサ12とを有している。PLC11とセンサ12との間は通信ケーブル13によって接続されている。 <System configuration>
A control system according to an embodiment of the present invention will be described with reference to FIG. The
センサ12としては、例えば、画像センサ、変位センサ、測長センサ、コードリーダ、エリアセンサなどのデバイスを用いることができる。通信ケーブル13としては、例えば、イーサネットケーブル、パラレルI/Oケーブル、シリアルケーブルなどを用いることができ、通信プロトコルとしては、例えば、パラレル、PLCリンク、EtherNet/IP、EtherCAT、無手順などを利用することができる。また、有線接続ではなく、無線通信によりPLC11とセンサ12を接続することも可能である。
As the sensor 12, for example, an image sensor, a displacement sensor, a length measuring sensor, a code reader, an area sensor, or the like can be used. As the communication cable 13, for example, an Ethernet cable, a parallel I / O cable, a serial cable, or the like can be used. As a communication protocol, for example, parallel, PLC link, EtherNet / IP, EtherCAT, non-procedure, or the like is used. be able to. It is also possible to connect the PLC 11 and the sensor 12 by wireless communication instead of wired connection.
以下、センサ12の一例として、画像センサの構成を説明する。画像センサ12は、工場の製造ラインなどに設置され、画像を利用したさまざまな処理(例えば、検査対象の画像データの取得、形状の認識、検査、エッジ検出、数の計測、面積の計測、色特徴の取得、ラベリングやセグメンテーション、物体認識、バーコードや2次元コードの読み取り、OCR、個体識別など)に利用されるデバイスである。画像センサ12は、視覚センサ(vision sensor)や視覚システム(vision system)などとも呼ばれる。
Hereinafter, the configuration of the image sensor will be described as an example of the sensor 12. The image sensor 12 is installed in a factory production line or the like, and performs various processes using an image (for example, acquisition of image data to be inspected, shape recognition, inspection, edge detection, number measurement, area measurement, color measurement) This is a device used for feature acquisition, labeling and segmentation, object recognition, barcode and two-dimensional code reading, OCR, individual identification, and the like. The image sensor 12 is also called a vision sensor or a vision system.
本実施形態の画像センサ12は、概略、センサコントローラ120とカメラ121から構成され、センサコントローラ120とカメラ121の間はカメラケーブルによって接続されている。なおセンサコントローラ120には複数のカメラI/Oが設けられており、複数台のカメラ121を接続できるようになっている。本実施形態では処理系(センサコントローラ120)と撮像系(カメラ121)が別体構成となっているが、処理系と撮像系とが一体となった構成を採ることもできる。このような一体構成の画像センサは「スマートカメラ」とも呼ばれる。
The image sensor 12 of the present embodiment is roughly composed of a sensor controller 120 and a camera 121, and the sensor controller 120 and the camera 121 are connected by a camera cable. The sensor controller 120 is provided with a plurality of camera I / Os so that a plurality of cameras 121 can be connected. In the present embodiment, the processing system (sensor controller 120) and the imaging system (camera 121) are configured separately, but a configuration in which the processing system and the imaging system are integrated can also be adopted. Such an integrated image sensor is also called a “smart camera”.
カメラ121は、検査対象などの被写体を撮像し画像データを取得するデバイスであり、レンズなどの光学系と、CCDやCMOSなどの撮像素子とを備えて構成される。必要に応じて、オートフォーカス機構、パン/チルト/ズーム機構、照明装置などをカメラ121に設けてもよい。
The camera 121 is a device that captures an image of a subject such as an inspection target and acquires image data, and includes an optical system such as a lens and an image sensor such as a CCD or CMOS. If necessary, the camera 121 may be provided with an autofocus mechanism, a pan / tilt / zoom mechanism, a lighting device, and the like.
センサコントローラ120は、画像センサ12全体の制御及び各種の演算処理を行うデバイスである。センサコントローラ120は、例えば、プロセッサ(CPU)、メモリ、ストレージ、通信モジュール、I/Oを有するコンピュータと、液晶ディスプレイなどの表示装置と、マウスやタッチパネルなどの入力装置とを有している。各種のプログラムがストレージに格納されており、画像センサ12の稼働時には、必要なプログラムがメモリにロードされ、プロセッサによって実行されることにより、後述する処理及び機能が提供される。なお、画像センサ12が提供する処理及び機能のうちの少なくとも一部をASICやFPGAなどの回路で構成したり、分散コンピューティングやクラウドコンピューティングにより構成したりしても構わない。
The sensor controller 120 is a device that controls the entire image sensor 12 and performs various arithmetic processes. The sensor controller 120 includes, for example, a computer having a processor (CPU), a memory, a storage, a communication module, and an I / O, a display device such as a liquid crystal display, and an input device such as a mouse and a touch panel. Various programs are stored in the storage, and when the image sensor 12 is operated, necessary programs are loaded into the memory and executed by the processor, thereby providing processing and functions to be described later. Note that at least a part of the processing and functions provided by the image sensor 12 may be configured by a circuit such as an ASIC or FPGA, or may be configured by distributed computing or cloud computing.
PLC11から、制御命令(計測トリガなどの制御信号、各種の制御コマンドなど)がセンサコントローラ120に送信(入力)されると、センサコントローラ120は制御命令にしたがって所定の計測フローを実行する。計測フローは、例えば、カメラ121からの画像入力工程S10、画像を用いた計測処理工程S11(物体検出、検査、文字読み取りなど)、計測結果(OK/NGの判定結果など)の出力工程S12から構成される。各工程で実行する処理項目はユーザが自由に設計できるものとする。センサコントローラ120は、PLC11からの制御命令に応答して、センサの状態を表す状態信号をPLC11に通知したり、計測結果(判定結果など)や計測値や読み取った文字列などのデータをPLC11に送信(出力)する。このようにして、PLC11の制御によって画像センサ12による計測処理が実行されることとなる。
When a control command (a control signal such as a measurement trigger or various control commands) is transmitted (input) from the PLC 11 to the sensor controller 120, the sensor controller 120 executes a predetermined measurement flow according to the control command. The measurement flow includes, for example, an image input step S10 from the camera 121, a measurement processing step S11 using an image (object detection, inspection, character reading, etc.), a measurement result (OK / NG determination result, etc.) output step S12 Composed. It is assumed that the user can freely design the processing items to be executed in each process. In response to the control command from the PLC 11, the sensor controller 120 notifies the PLC 11 of a status signal indicating the sensor status, and sends data such as measurement results (determination results, etc.), measurement values, and read character strings to the PLC 11. Send (output). In this way, measurement processing by the image sensor 12 is executed under the control of the PLC 11.
上記のような制御システム1においては、画像センサ12が設計通りに動作しなかったり、意図しない動作やエラーが発生したりする場合がある。そのような不具合が生じる原因としては、例えば、PLC11で動作するプログラムのバグ(制御命令の記述や送出タイミングの誤りなど)、画像センサ12で動作するプログラムのバグ(計測フローのロジックの誤りなど)、PLC11又は画像センサ12の故障、ケーブルの断線、ネットワークの輻輳などのさまざまな原因が想定されるため、問題箇所や原因を特定するのは容易ではない。
In the control system 1 as described above, the image sensor 12 may not operate as designed, or an unintended operation or error may occur. The cause of such a malfunction is, for example, a bug in a program that operates on the PLC 11 (such as a description of a control instruction or an error in transmission timing), or a bug in a program that operates on the image sensor 12 (such as an error in a measurement flow logic). Since various causes such as failure of the PLC 11 or the image sensor 12, cable disconnection, network congestion, and the like are assumed, it is not easy to identify the problem location and the cause.
そこで本実施形態では、PLC11と画像センサ12の間の通信の解析を支援するための解析支援プログラムを制御システム1に実装し、上記のような不具合の原因特定を容易化する。なお、解析支援プログラムは、画像センサ12などの対象機器にインストールし、対象機器のプロセッサにより実行してもよい。この場合、対象機器が解析支援装置を兼ねる(あるいは、対象機器が解析支援装置としての機能を提供する)こととなる。また、解析支援プログラムは、PLC11などの制御機器にインストールし、制御機器のプロセッサにより実行してもよい。この場合、制御機器が解析支援装置を兼ねる(あるいは、制御機器が解析支援装置としての機能を提供する)こととなる。また、解析支援プログラムは、制御機器・対象機器のいずれとも異なるコンピュータ(例えば、制御システム1の管理や保守用のコンピュータ)にインストールし、当該コンピュータのプロセッサにより実行してもよい。
Therefore, in the present embodiment, an analysis support program for supporting analysis of communication between the PLC 11 and the image sensor 12 is installed in the control system 1 to facilitate identification of the cause of the above-described problem. Note that the analysis support program may be installed in a target device such as the image sensor 12 and executed by a processor of the target device. In this case, the target device also serves as the analysis support device (or the target device provides a function as the analysis support device). The analysis support program may be installed in a control device such as the PLC 11 and executed by a processor of the control device. In this case, the control device also serves as the analysis support device (or the control device provides a function as the analysis support device). The analysis support program may be installed on a computer different from both the control device and the target device (for example, a computer for management and maintenance of the control system 1) and executed by a processor of the computer.
<解析支援装置>
図2は、本実施形態に係る解析支援装置の構成の一例を示すブロック図である。解析支援装置2は、主たる構成要素として、モニタ部20、通信ログ取得部21、状態ログ取得部22、情報出力部23、ユーザ操作受付部24を有している。本実施形態では、画像センサ12に解析支援プログラムをインストールすることによって解析支援装置2が構成されており、図2に示す各構成要素は、画像センサ12のプロセッサが解析支援プログラムを実行することによってソフトウェア的に実現されている。ただし、この構成は一例であり、図2に示す構成要素の一部又は全部をASICやFPGAなどの回路で構成してもよいし、サーバなどの他のコンピュータ上で実行してもよい。 <Analysis support device>
FIG. 2 is a block diagram illustrating an example of the configuration of the analysis support apparatus according to the present embodiment. Theanalysis support apparatus 2 includes a monitor unit 20, a communication log acquisition unit 21, a status log acquisition unit 22, an information output unit 23, and a user operation reception unit 24 as main components. In this embodiment, the analysis support apparatus 2 is configured by installing an analysis support program in the image sensor 12, and each component shown in FIG. 2 is executed by the processor of the image sensor 12 executing the analysis support program. Realized in software. However, this configuration is an example, and some or all of the components shown in FIG. 2 may be configured by a circuit such as an ASIC or FPGA, or may be executed on another computer such as a server.
図2は、本実施形態に係る解析支援装置の構成の一例を示すブロック図である。解析支援装置2は、主たる構成要素として、モニタ部20、通信ログ取得部21、状態ログ取得部22、情報出力部23、ユーザ操作受付部24を有している。本実施形態では、画像センサ12に解析支援プログラムをインストールすることによって解析支援装置2が構成されており、図2に示す各構成要素は、画像センサ12のプロセッサが解析支援プログラムを実行することによってソフトウェア的に実現されている。ただし、この構成は一例であり、図2に示す構成要素の一部又は全部をASICやFPGAなどの回路で構成してもよいし、サーバなどの他のコンピュータ上で実行してもよい。 <Analysis support device>
FIG. 2 is a block diagram illustrating an example of the configuration of the analysis support apparatus according to the present embodiment. The
モニタ部20は、PLC11と画像センサ12との間の通信をモニタし、両者の間で伝送(送信及び受信)された伝送データを解析支援装置2(画像センサ12)内のストレージに記録する処理を行う。記録された伝送データの時系列データを「通信ログデータ」と呼ぶ。モニタ部20は、伝送データをそのままの形式で通信ログデータに残してもよいし、伝送データを加工した情報(例えば圧縮ないしエンコードした情報、データの一部のみを抽出した情報など)を通信ログデータとして記録してもよい。
The monitor unit 20 monitors the communication between the PLC 11 and the image sensor 12, and records the transmission data transmitted (transmitted and received) between the two in the storage in the analysis support apparatus 2 (image sensor 12). I do. The time series data of the recorded transmission data is called “communication log data”. The monitor unit 20 may leave the transmission data in the communication log data in the form as it is, or information (for example, compressed or encoded information, information obtained by extracting only part of the data) obtained by processing the transmission data in the communication log It may be recorded as data.
また、モニタ部20は、制御システム1の状態をモニタし、解析支援装置2(画像センサ12)内のストレージに記録する処理を行ってもよい。記録された制御システム1の状態の時系列データを「状態ログデータ」と呼ぶ。制御システム1の状態には、画像センサ12の状態とPLC11の状態のいずれか又は両方を含むことができる。
Further, the monitor unit 20 may monitor the state of the control system 1 and perform a process of recording it in a storage in the analysis support apparatus 2 (image sensor 12). The recorded time series data of the state of the control system 1 is referred to as “state log data”. The state of the control system 1 can include one or both of the state of the image sensor 12 and the state of the PLC 11.
画像センサ12の状態は、例えば、ビジー(処理を実行中であり、外部から新たな制御コマンドの入力を受け付けることができない状態)、コマンド完了(外部から入力された制御コマンドの実行を完了した状態)、データ出力(計測結果などのデータを外部へ出力している状態)、レディー(計測の開始が可能な状態)、エラー(異常が発生した状態)などがある。画像センサ12の状態は、画像センサ12のメモリに保持されている状態変数の値から検知してもよいし、画像センサ12からPLC11に送信される伝送データに含まれている状態信号の値から検知してもよい。後者の場合、モニタ部20は、通信ログデータから画像センサ12の状態の情報を抽出してもよい。
The state of the image sensor 12 is, for example, busy (a state in which processing is being executed and a new control command cannot be input from the outside), a command completed (a state in which execution of a control command input from the outside has been completed) ), Data output (a state in which data such as measurement results are output to the outside), ready (a state in which measurement can be started), and an error (a state in which an abnormality has occurred). The state of the image sensor 12 may be detected from the value of the state variable held in the memory of the image sensor 12 or from the value of the state signal included in the transmission data transmitted from the image sensor 12 to the PLC 11. It may be detected. In the latter case, the monitor unit 20 may extract information on the state of the image sensor 12 from the communication log data.
PLC11の状態は、例えば、コマンド実行(対象機器に対して制御コマンドを送信している状態)、データ出力要求(対象機器からデータ出力を受信可能な状態)、エラー(異常が発生した状態)などがある。PLC11の状態は、PLC11のメモリに保持されている状態変数の値から検知してもよいし、PLC11から画像センサ12に送信される伝送データに含まれている制御信号の値から検知してもよい。後者の場合、モニタ部20は、通信ログデータからPLC11の状態の情報を抽出してもよい。
The state of the PLC 11 is, for example, command execution (a state in which a control command is transmitted to the target device), data output request (a state in which data output can be received from the target device), error (a state in which an abnormality has occurred), etc. There is. The state of the PLC 11 may be detected from a value of a state variable held in the memory of the PLC 11 or may be detected from a value of a control signal included in transmission data transmitted from the PLC 11 to the image sensor 12. Good. In the latter case, the monitor unit 20 may extract information on the state of the PLC 11 from the communication log data.
通信ログ取得部21は、PLC11と画像センサ12との間の通信ログデータを取得する処理を行う。本実施形態では、モニタ部20によって蓄積された通信ログデータをストレージから読み込むことを想定しているが、通信ログ取得部21は、ネットワークあるいはUSBメモリのような記録媒体を介して、外部から通信ログデータを読み込んでもよい。
The communication log acquisition unit 21 performs processing for acquiring communication log data between the PLC 11 and the image sensor 12. In this embodiment, it is assumed that the communication log data accumulated by the monitor unit 20 is read from the storage, but the communication log acquisition unit 21 communicates from the outside via a network or a recording medium such as a USB memory. Log data may be read.
状態ログ取得部22は、制御システム1の状態ログデータを取得する処理を行う。本実施形態では、モニタ部20によって蓄積された状態ログデータをストレージから読み込むことを想定しているが、状態ログ取得部22は、ネットワークあるいはUSBメモリのような記録媒体を介して、外部から状態ログデータを読み込んでもよい。
The status log acquisition unit 22 performs processing for acquiring status log data of the control system 1. In the present embodiment, it is assumed that the status log data accumulated by the monitor unit 20 is read from the storage. However, the status log acquisition unit 22 is externally connected via a network or a recording medium such as a USB memory. Log data may be read.
情報出力部23は、取得された通信ログデータ及び状態ログデータに基づいて、ユーザによる解析作業を支援するための情報画面を生成し、表示装置に出力する処理を行う。ユーザ操作受付部24は、ユーザによる各種の操作を受け付ける処理を行う。情報出力部23及びユーザ操作受付部24の処理の詳細については後述する。
The information output unit 23 generates an information screen for supporting the analysis work by the user based on the acquired communication log data and status log data, and performs a process of outputting the information screen to the display device. The user operation reception unit 24 performs processing for receiving various operations by the user. Details of the processing of the information output unit 23 and the user operation reception unit 24 will be described later.
<情報画面の例>
図3及び図4は、解析支援装置2により出力される情報画面の一例を示す。本実施形態の解析支援装置2は、タイムライン表示画面30(図3)とタイムチャート表示画面40(図4)の2種類の情報画面を出力可能である。タイムライン表示画面30は、PLC11と画像センサ12の間の伝送データの内容を時系列に表示するための第1情報画面の一例であり、タイムチャート表示画面40は、制御システム1の状態の時間的な変化を表示するための第2情報画面の一例である。 <Example of information screen>
3 and 4 show an example of an information screen output by theanalysis support apparatus 2. The analysis support apparatus 2 of the present embodiment can output two types of information screens, a timeline display screen 30 (FIG. 3) and a time chart display screen 40 (FIG. 4). The timeline display screen 30 is an example of a first information screen for displaying the contents of transmission data between the PLC 11 and the image sensor 12 in time series, and the time chart display screen 40 is a time of the state of the control system 1. It is an example of the 2nd information screen for displaying a typical change.
図3及び図4は、解析支援装置2により出力される情報画面の一例を示す。本実施形態の解析支援装置2は、タイムライン表示画面30(図3)とタイムチャート表示画面40(図4)の2種類の情報画面を出力可能である。タイムライン表示画面30は、PLC11と画像センサ12の間の伝送データの内容を時系列に表示するための第1情報画面の一例であり、タイムチャート表示画面40は、制御システム1の状態の時間的な変化を表示するための第2情報画面の一例である。 <Example of information screen>
3 and 4 show an example of an information screen output by the
以下、各情報画面においてユーザ操作受付部24によって提供されるユーザインタフェース(UI)を説明する。
Hereinafter, a user interface (UI) provided by the user operation receiving unit 24 in each information screen will be described.
(共通のUI)
ログファイル読込ボタン320は、解析対象とする通信ログデータ及び状態ログデータのファイルを指定するためのUIである。ユーザがログファイル読込ボタン320を押下すると、ファイル選択画面(不図示)が開き、ログデータファイルを選択することができる。 (Common UI)
The log file readbutton 320 is a UI for designating a file of communication log data and status log data to be analyzed. When the user presses the log file read button 320, a file selection screen (not shown) is opened and a log data file can be selected.
ログファイル読込ボタン320は、解析対象とする通信ログデータ及び状態ログデータのファイルを指定するためのUIである。ユーザがログファイル読込ボタン320を押下すると、ファイル選択画面(不図示)が開き、ログデータファイルを選択することができる。 (Common UI)
The log file read
ビュー切替ボタン321は、タイムライン表示画面30とタイムチャート表示画面40を切り替えるためのUIである。ユーザがビュー切替ボタン321を押下するたびに(つまり、ユーザ操作受付部24がユーザによる画面切替指示を受け付けるたびに)、情報出力部23がタイムライン表示画面30とタイムチャート表示画面40の表示の切り替えを行う。なお、本実施形態では2つの情報画面を切り替え表示するUIを採用したが、表示装置の解像度が十分高い場合には、2つの情報画面を上下又は左右に並べて表示したり、別ウィンドウで表示してもよい。
The view switching button 321 is a UI for switching between the timeline display screen 30 and the time chart display screen 40. Each time the user presses the view switching button 321 (that is, every time the user operation receiving unit 24 receives a screen switching instruction by the user), the information output unit 23 displays the timeline display screen 30 and the time chart display screen 40. Switch. In this embodiment, a UI that switches between two information screens is used. However, if the resolution of the display device is sufficiently high, the two information screens may be displayed side by side or vertically or displayed in separate windows. May be.
(タイムライン表示)
タイムライン表示画面30の各行は1つの伝送データの内容を示している。例えばPLC11と画像センサ12の間でパケット通信が行われている場合であれば、各行が1つのパケットデータの内容を示す。図3の表示例では、伝送データごとに、「番号」、「タイムスタンプ」、「時間」、「送信元」、「送信先」、「プロトコル」、「長さ」、「データ」、「解析内容」、「識別子」の10項目の情報が表示されている。各項目の意味は以下のとおりである。 (Timeline display)
Each row of thetimeline display screen 30 shows the contents of one transmission data. For example, when packet communication is performed between the PLC 11 and the image sensor 12, each row indicates the contents of one packet data. In the display example of FIG. 3, for each transmission data, “number”, “time stamp”, “time”, “source”, “destination”, “protocol”, “length”, “data”, “analysis” Information of 10 items “content” and “identifier” is displayed. The meaning of each item is as follows.
タイムライン表示画面30の各行は1つの伝送データの内容を示している。例えばPLC11と画像センサ12の間でパケット通信が行われている場合であれば、各行が1つのパケットデータの内容を示す。図3の表示例では、伝送データごとに、「番号」、「タイムスタンプ」、「時間」、「送信元」、「送信先」、「プロトコル」、「長さ」、「データ」、「解析内容」、「識別子」の10項目の情報が表示されている。各項目の意味は以下のとおりである。 (Timeline display)
Each row of the
(1)番号・・・解析支援装置2(モニタ部20)が通信ログデータの記録時に各伝送データに割り振る番号。伝送順に1から順に番号が割り振られる。
(2)タイムスタンプ・・・解析支援装置2(モニタ部20)がモニタを開始してから伝送データを受信/送信するまでの経過時間。
(3)時間・・・伝送データの受信/送信時刻。
(4)送信元・・・伝送データを送信した機器のIPアドレス。
(5)送信先・・・伝送データを受信した機器のIPアドレス。
(6)プロトコル・・・伝送データのプロトコル(UDP、TCPなど)。
(7)長さ・・・伝送データのデータ長。
(8)データ・・・伝送データ(16進数表示)。
(9)解析内容・・・伝送データの意味内容を人が理解しやすい表現形式で表したもの。伝送データに含まれる「制御コマンドの種別」、「制御コマンドの内容」、「画像センサの状態」などの項目を自然言語に変換し、表示するとよい。以下、伝送データ(16進数表示)とその解析内容の一例を記載する。
[例1]11-00-00-0A-05-06-64-0A-05-06
→ 実行コマンド 計測実行RES-CODE XXXXXX
[例2]45-00-00-39-7D-B3-00-00-80-11
→ コマンドデータ 書き込み D102 データレジスタ
[例3]06-64-0A-05-06-7B-25-80-25
→ 4チャネル 応答エリア CMD-CODE
(10)識別子・・・伝送データの送信元がデータ送信時に割り当てるユニークな番号。送信順に番号が割り振られるため、識別子をチェックすることで、伝送データの抜け、伝送データの受信順序の異常などを検出できる。 (1) Number: Number assigned to each transmission data when the analysis support apparatus 2 (monitor unit 20) records communication log data. Numbers are assigned sequentially from 1 in the transmission order.
(2) Time stamp: Elapsed time from when the analysis support apparatus 2 (monitor unit 20) starts monitoring until transmission data is received / transmitted.
(3) Time: Transmission data reception / transmission time.
(4) Source: The IP address of the device that transmitted the transmission data.
(5) Destination: the IP address of the device that received the transmission data.
(6) Protocol: Transmission data protocol (UDP, TCP, etc.).
(7) Length: Data length of transmission data.
(8) Data: Transmission data (hexadecimal display).
(9) Analyzed content: The meaning content of transmitted data is expressed in an easy-to-understand expression format. Items such as “control command type”, “control command content”, and “image sensor state” included in the transmission data may be converted into a natural language and displayed. Hereinafter, an example of transmission data (hexadecimal number display) and analysis contents thereof will be described.
[Example 1] 11-00-00-0A-05-06-64-0A-05-06
→ Execution command Measurement execution RES-CODE XXXXXX
[Example 2] 45-00-00-39-7D-B3-00-00-80-11
→ Write command data D102 Data register [Example 3] 06-64-0A-05-06-7B-25-80-25
→ 4 channels Response area CMD-CODE
(10) Identifier: A unique number assigned by the transmission data transmission source at the time of data transmission. Since numbers are assigned in the order of transmission, it is possible to detect missing transmission data, abnormal transmission data reception order, etc. by checking the identifier.
(2)タイムスタンプ・・・解析支援装置2(モニタ部20)がモニタを開始してから伝送データを受信/送信するまでの経過時間。
(3)時間・・・伝送データの受信/送信時刻。
(4)送信元・・・伝送データを送信した機器のIPアドレス。
(5)送信先・・・伝送データを受信した機器のIPアドレス。
(6)プロトコル・・・伝送データのプロトコル(UDP、TCPなど)。
(7)長さ・・・伝送データのデータ長。
(8)データ・・・伝送データ(16進数表示)。
(9)解析内容・・・伝送データの意味内容を人が理解しやすい表現形式で表したもの。伝送データに含まれる「制御コマンドの種別」、「制御コマンドの内容」、「画像センサの状態」などの項目を自然言語に変換し、表示するとよい。以下、伝送データ(16進数表示)とその解析内容の一例を記載する。
[例1]11-00-00-0A-05-06-64-0A-05-06
→ 実行コマンド 計測実行RES-CODE XXXXXX
[例2]45-00-00-39-7D-B3-00-00-80-11
→ コマンドデータ 書き込み D102 データレジスタ
[例3]06-64-0A-05-06-7B-25-80-25
→ 4チャネル 応答エリア CMD-CODE
(10)識別子・・・伝送データの送信元がデータ送信時に割り当てるユニークな番号。送信順に番号が割り振られるため、識別子をチェックすることで、伝送データの抜け、伝送データの受信順序の異常などを検出できる。 (1) Number: Number assigned to each transmission data when the analysis support apparatus 2 (monitor unit 20) records communication log data. Numbers are assigned sequentially from 1 in the transmission order.
(2) Time stamp: Elapsed time from when the analysis support apparatus 2 (monitor unit 20) starts monitoring until transmission data is received / transmitted.
(3) Time: Transmission data reception / transmission time.
(4) Source: The IP address of the device that transmitted the transmission data.
(5) Destination: the IP address of the device that received the transmission data.
(6) Protocol: Transmission data protocol (UDP, TCP, etc.).
(7) Length: Data length of transmission data.
(8) Data: Transmission data (hexadecimal display).
(9) Analyzed content: The meaning content of transmitted data is expressed in an easy-to-understand expression format. Items such as “control command type”, “control command content”, and “image sensor state” included in the transmission data may be converted into a natural language and displayed. Hereinafter, an example of transmission data (hexadecimal number display) and analysis contents thereof will be described.
[Example 1] 11-00-00-0A-05-06-64-0A-05-06
→ Execution command Measurement execution RES-CODE XXXXXX
[Example 2] 45-00-00-39-7D-B3-00-00-80-11
→ Write command data D102 Data register [Example 3] 06-64-0A-05-06-7B-25-80-25
→ 4 channels Response area CMD-CODE
(10) Identifier: A unique number assigned by the transmission data transmission source at the time of data transmission. Since numbers are assigned in the order of transmission, it is possible to detect missing transmission data, abnormal transmission data reception order, etc. by checking the identifier.
ユーザは、タイムライン表示画面30において、一部の伝送データを注目データとして選択(マーキング)することができる。選択された注目データの行は、他の伝送データから識別可能な方法(例えば、色付け、反転、強調など)にて表示される。図3では、1つの行が注目データとしてマーキングされた例を示しているが、複数の行をマーキングできるようにしてもよい。
The user can select (mark) some transmission data as attention data on the timeline display screen 30. The selected row of attention data is displayed by a method (for example, coloring, inversion, emphasis, etc.) that can be distinguished from other transmission data. Although FIG. 3 shows an example in which one row is marked as attention data, a plurality of rows may be marked.
絞り込み機能301は、タイムライン表示画面30に表示されている情報の中から、条件に合致するものを抽出して表示する機能である。本例では、タイムスタンプ、プロトコル、任意文字列などの絞り込み条件を設定することが可能である。
The narrowing-down function 301 is a function for extracting and displaying information that matches the conditions from the information displayed on the timeline display screen 30. In this example, it is possible to set narrowing conditions such as a time stamp, a protocol, and an arbitrary character string.
(タイムチャート表示)
図4のタイムチャート表示画面40の例では、EXE、BUSY、FLG、DSA、GATEの5つの信号の状態値の時間変化が表示されている。横軸が時間であり、各信号の状態値はOFF(Lo)とON(Hi)の2つの値をとる。 (Time chart display)
In the example of the timechart display screen 40 of FIG. 4, the time change of the state values of five signals of EXE, BUSY, FLG, DSA, and GATE is displayed. The horizontal axis is time, and the state value of each signal takes two values, OFF (Lo) and ON (Hi).
図4のタイムチャート表示画面40の例では、EXE、BUSY、FLG、DSA、GATEの5つの信号の状態値の時間変化が表示されている。横軸が時間であり、各信号の状態値はOFF(Lo)とON(Hi)の2つの値をとる。 (Time chart display)
In the example of the time
ここで、EXEは、PLC11が画像センサ12に対して制御コマンドを発行するときにOFF→ONと変化する信号である。BUSYは、画像センサ12がPLC11から入力された制御コマンドに応じた処理を開始するときにOFF→ONと変化する信号である。FLGは、画像センサ12が制御コマンドの実行を完了したときにOFF→ONと変化する信号である。DSAは、PLC11が画像センサ12からのデータ出力を受信可能になったときにOFF→ONと変化する信号である。GATEは、画像センサ12がデータ出力を開始するときにOFF→ONとなる信号である。
Here, EXE is a signal that changes from OFF to ON when the PLC 11 issues a control command to the image sensor 12. BUSY is a signal that changes from OFF to ON when the image sensor 12 starts processing according to the control command input from the PLC 11. FLG is a signal that changes from OFF to ON when the image sensor 12 completes execution of the control command. The DSA is a signal that changes from OFF to ON when the PLC 11 becomes capable of receiving data output from the image sensor 12. GATE is a signal that turns from OFF to ON when the image sensor 12 starts data output.
例えば、画像センサ12による計測フローを実行する場合には、まずEXEがONに変化した後、BUSYがONに変化し、計測フローの実行完了とともにFLGがONに変化する。また、画像センサ12の計測データをPLC11に出力する場合には、まずDSAがONに変化した後、GATEがONに変化する。このように、PLC11の制御に従って画像センサ12が動作する系においては、PLC11や画像センサ12の状態値が予め決められた順番で変化する必要がある。したがって、タイムチャート表示画面40において、各信号の変化点(状態値が変化する点)の出現順序や変化点同士の間隔などを見ることで、PLC11や画像センサ12が正常に動作しているかどうかを簡便にチェックすることができる。
For example, when the measurement flow by the image sensor 12 is executed, first, EXE changes to ON, then BUSY changes to ON, and FLG changes to ON upon completion of execution of the measurement flow. Further, when outputting the measurement data of the image sensor 12 to the PLC 11, first, DSA changes to ON, and then GATE changes to ON. Thus, in a system in which the image sensor 12 operates according to the control of the PLC 11, the state values of the PLC 11 and the image sensor 12 need to change in a predetermined order. Therefore, on the time chart display screen 40, whether the PLC 11 and the image sensor 12 are operating normally by looking at the appearance order of the changing points of each signal (points where the state value changes), the interval between the changing points, and the like. Can be easily checked.
本実施形態では、情報出力部23が、各信号の変化点に対してタイムスタンプで昇順となるように変化点番号を付与し、タイムチャート表示画面40の各信号のグラフの変化点の部分に変化点番号を表示する。この変化点番号表示によって、変化点の出現順を容易に判別できるようになる。
In the present embodiment, the information output unit 23 assigns change point numbers so that the change points of each signal are in ascending order in time stamps, and the change point portion of the graph of each signal on the time chart display screen 40 is displayed. Displays the change point number. This change point number display makes it possible to easily determine the order in which change points appear.
ユーザは、タイムチャート表示画面40において、任意の変化点を注目データとして選択(マーキング)することができる。選択された変化点は、他の変化点から識別可能な方法(例えば、色付け、反転、強調など)にて表示される。また、本例では、選択された変化点がタイムチャート表示画面40の中央に表示されるように、タイムスタンプの表示範囲が調整される。さらに、選択された変化点のタイムスタンプを横軸に表示する。図4の例では、タイムスタンプ「4696」の変化点(番号:1)が中央に表示されている。
The user can select (mark) any change point as attention data on the time chart display screen 40. The selected change point is displayed by a method that can be distinguished from other change points (for example, coloring, inversion, and emphasis). In this example, the display range of the time stamp is adjusted so that the selected change point is displayed at the center of the time chart display screen 40. Further, the time stamp of the selected change point is displayed on the horizontal axis. In the example of FIG. 4, the changing point (number: 1) of the time stamp “4696” is displayed in the center.
選択補助機能401は、タイムチャート表示画面40に表示するデータの位置(タイムスタンプ)の移動、及び、変化点の選択を補助するUIである。ユーザが中央のテキストボックスに任意のタイムスタンプを入力すると、そのタイムスタンプのデータが注目データとして選択され、且つ、タイムチャート表示画面40の中央に表示されるように、表示範囲が自動調整される。また、テキストボックスの左右に配置された矢印ボタンをユーザが押下すると、選択している変化点が昇順又は降順に1つずつ移動する。このような選択補助機能401により、注目データの選択が容易になる。
The selection assist function 401 is a UI that assists in moving the position (time stamp) of data displayed on the time chart display screen 40 and selecting a change point. When the user inputs an arbitrary time stamp in the center text box, the display range is automatically adjusted so that the data of the time stamp is selected as the data of interest and displayed in the center of the time chart display screen 40. . When the user presses the arrow buttons arranged on the left and right of the text box, the selected change points move one by one in ascending or descending order. Such a selection assist function 401 facilitates selection of attention data.
エラー箇所表示402は、正しい伝送順でデータ伝送が行われていない箇所(伝送エラー箇所)を示している。例えば、画像センサ12がPLC11から受信した伝送データの受信順序が逆転している箇所、伝送データに抜けがある箇所などが、伝送エラー箇所として表示される。
The error location display 402 indicates a location (transmission error location) where data transmission is not performed in the correct transmission order. For example, a location where the reception order of transmission data received by the image sensor 12 from the PLC 11 is reversed, a location where transmission data is missing, and the like are displayed as transmission error locations.
(タイムライン表示とタイムチャート表示の連携)
本実施形態のUIの特徴の一つは、タイムライン表示画面30とタイムチャート表示画面40とが時間的に対応付けられて表示される点、すなわち、タイムライン表示画面30上の伝送データとタイムチャート表示画面40上の状態変化との時間的な対応関係が識別できるように各表示画面が生成・表示される点にある。具体的には、タイムライン表示画面30上で注目データを選択した状態で、タイムライン表示からタイムチャート表示に切り替えた場合には、その注目データと同じタイムスタンプのデータがタイムチャート表示画面40上でも選択され、且つ、画面の中央に表示される。逆に、タイムチャート表示画面40上で変化点を注目データとして選択した状態で、タイムチャート表示からタイムライン表示に切り替えた場合には、その注目データ(変化点)と同じタイムスタンプの伝送データがタイムライン表示画面30上でも選択される。このような連携表示によって、制御システムの状態変化とそのときの伝送データの内容とを簡単に見比べることができ、問題箇所や原因の発見が容易化される。 (Cooperation between timeline display and time chart display)
One of the features of the UI of the present embodiment is that thetimeline display screen 30 and the time chart display screen 40 are displayed in association with each other in time, that is, transmission data and time on the timeline display screen 30. Each display screen is generated and displayed so that the temporal correspondence with the state change on the chart display screen 40 can be identified. Specifically, when the attention data is selected on the timeline display screen 30 and the timeline display is switched to the time chart display, data having the same time stamp as the attention data is displayed on the time chart display screen 40. But it is selected and displayed in the center of the screen. On the contrary, when the change point is selected as the attention data on the time chart display screen 40 and the time chart display is switched to the timeline display, transmission data having the same time stamp as the attention data (change point) is displayed. It is also selected on the timeline display screen 30. By such cooperative display, it is possible to easily compare the change in the state of the control system with the content of the transmission data at that time, thereby facilitating the discovery of the problem location and the cause.
本実施形態のUIの特徴の一つは、タイムライン表示画面30とタイムチャート表示画面40とが時間的に対応付けられて表示される点、すなわち、タイムライン表示画面30上の伝送データとタイムチャート表示画面40上の状態変化との時間的な対応関係が識別できるように各表示画面が生成・表示される点にある。具体的には、タイムライン表示画面30上で注目データを選択した状態で、タイムライン表示からタイムチャート表示に切り替えた場合には、その注目データと同じタイムスタンプのデータがタイムチャート表示画面40上でも選択され、且つ、画面の中央に表示される。逆に、タイムチャート表示画面40上で変化点を注目データとして選択した状態で、タイムチャート表示からタイムライン表示に切り替えた場合には、その注目データ(変化点)と同じタイムスタンプの伝送データがタイムライン表示画面30上でも選択される。このような連携表示によって、制御システムの状態変化とそのときの伝送データの内容とを簡単に見比べることができ、問題箇所や原因の発見が容易化される。 (Cooperation between timeline display and time chart display)
One of the features of the UI of the present embodiment is that the
また、タイムチャート表示画面40上に伝送データのエラー箇所表示402が行われることも、伝送データと制御システム1の状態との時間的な対応関係を示す表示の一つである。これにより、伝送エラーが生じた時点での制御システム1の状態のチェックが容易にでき、問題箇所や原因の発見を効率的に行うことができる。なお、タイムライン表示画面30においても伝送エラー箇所を識別可能に表示してもよい。また、タイムライン表示画面30においても状態の変化点の位置を識別可能に表示してもよい。このようにタイムライン表示画面30において伝送エラー箇所や状態変化点を明示することで、問題箇所や原因の発見の手掛かりとして役立てることができる。
Further, the transmission data error location display 402 on the time chart display screen 40 is one of the displays showing the temporal correspondence between the transmission data and the state of the control system 1. Thereby, it is possible to easily check the state of the control system 1 at the time when a transmission error occurs, and it is possible to efficiently find the problem location and the cause. Note that the transmission error location may be displayed on the timeline display screen 30 so as to be identifiable. Also, the position of the state change point may be displayed on the timeline display screen 30 so as to be identifiable. Thus, by clearly indicating the transmission error location and the state change point on the timeline display screen 30, it can be used as a clue to finding the problem location and the cause.
(正常状態ガイド表示)
情報出力部23が、タイムチャート表示画面40上に、制御システム1の正常な状態遷移を示す信号波形(「正常状態ガイド」と呼ぶ)を重畳表示する機能を提供してもよい。図5に正常状態ガイドの表示例を示す。前述のように、PLC11からの制御コマンドに従って計測フローを実行する際には、EXE→BUSY→FLGの順に状態値がONに変化するのが正常な状態遷移であることが予めわかっている。そこで、このような状態遷移を示す正常状態ガイド50(太破線)を、状態ログデータに基づき表示された各信号の波形の上に重畳表示する。これにより、制御システム1で実際に生じた状態遷移と、正常な状態遷移とを簡単に見比べることができるので、問題箇所や原因の発見に役立てることができる。図5の例では、BUSYの状態変化のタイミングに異常があることがわかる。なお、正常状態ガイド50は、ガイド表示ボタン51を押すたびに表示と非表示が切り替えられるとよい。 (Normal state guide display)
Theinformation output unit 23 may provide a function of superimposing and displaying a signal waveform indicating a normal state transition of the control system 1 (referred to as a “normal state guide”) on the time chart display screen 40. FIG. 5 shows a display example of the normal state guide. As described above, when the measurement flow is executed in accordance with the control command from the PLC 11, it is known in advance that the normal state transition is that the state value changes to ON in the order of EXE → BUSY → FLG. Therefore, the normal state guide 50 (thick broken line) indicating such a state transition is superimposed on the waveform of each signal displayed based on the state log data. Thereby, since the state transition actually generated in the control system 1 can be easily compared with the normal state transition, it can be used for finding the problem location and the cause. In the example of FIG. 5, it can be seen that there is an abnormality in the timing of the BUSY state change. The normal state guide 50 may be switched between display and non-display each time the guide display button 51 is pressed.
情報出力部23が、タイムチャート表示画面40上に、制御システム1の正常な状態遷移を示す信号波形(「正常状態ガイド」と呼ぶ)を重畳表示する機能を提供してもよい。図5に正常状態ガイドの表示例を示す。前述のように、PLC11からの制御コマンドに従って計測フローを実行する際には、EXE→BUSY→FLGの順に状態値がONに変化するのが正常な状態遷移であることが予めわかっている。そこで、このような状態遷移を示す正常状態ガイド50(太破線)を、状態ログデータに基づき表示された各信号の波形の上に重畳表示する。これにより、制御システム1で実際に生じた状態遷移と、正常な状態遷移とを簡単に見比べることができるので、問題箇所や原因の発見に役立てることができる。図5の例では、BUSYの状態変化のタイミングに異常があることがわかる。なお、正常状態ガイド50は、ガイド表示ボタン51を押すたびに表示と非表示が切り替えられるとよい。 (Normal state guide display)
The
<処理フローの例>
次に、図6、図7、図8A及び図8Bのフローチャートを用いて、解析支援装置2の処理フローの一例を説明する。 <Example of processing flow>
Next, an example of the processing flow of theanalysis support apparatus 2 will be described using the flowcharts of FIGS. 6, 7, 8A, and 8B.
次に、図6、図7、図8A及び図8Bのフローチャートを用いて、解析支援装置2の処理フローの一例を説明する。 <Example of processing flow>
Next, an example of the processing flow of the
図6の処理フローは、ユーザによって解析対象とするファイルが選択されると開始される。まず、通信ログ取得部21及び状態ログ取得部22が、ユーザによって選択されたログデータファイルを読み込む(ステップS60)。このとき、状態ログ取得部22は、通信ログ取得部21によって取得された通信ログデータから各信号の状態ログデータを取得してもよい。次に、情報出力部23が、通信ログデータに含まれる各伝送データの解析を行い、上述した(1)から(10)の項目を抽出する(ステップS61)。その後、情報出力部23は、各伝送データの識別子(伝送順に付与された番号情報)を解析し、正しい伝送順でデータ伝送が行われていない箇所を検出し、メモリに記憶する(ステップS62)。また、情報出力部23は、状態ログデータを解析することにより、各信号の状態変化点を検出し、メモリに記憶する(ステップS63)。そして、情報出力部23は、初期状態としてタイムライン表示画面30を生成し表示装置に出力する(ステップS64)。
6 is started when a file to be analyzed is selected by the user. First, the communication log acquisition unit 21 and the status log acquisition unit 22 read the log data file selected by the user (step S60). At this time, the status log acquisition unit 22 may acquire the status log data of each signal from the communication log data acquired by the communication log acquisition unit 21. Next, the information output unit 23 analyzes each transmission data included in the communication log data, and extracts the items (1) to (10) described above (step S61). Thereafter, the information output unit 23 analyzes the identifier (number information given in the order of transmission) of each transmission data, detects a location where data transmission is not performed in the correct transmission order, and stores it in the memory (step S62). . Further, the information output unit 23 detects the state change point of each signal by analyzing the state log data, and stores it in the memory (step S63). And the information output part 23 produces | generates the timeline display screen 30 as an initial state, and outputs it to a display apparatus (step S64).
図7の処理フローは、ユーザ操作受付部24がユーザによる操作イベントを受け付けた場合に実行される処理を示している。ユーザ操作が画面切替操作(ビュー切替ボタン321の押下)である場合(ステップS70のYES)、情報出力部23は、現在の画面がタイムチャート表示画面40であれば(ステップS71のNO)、タイムライン表示画面30への切り替えを行い(ステップS72)、現在の画面がタイムライン表示画面30であれば(ステップS71のYES)、タイムチャート表示画面40への切り替えを行う(ステップS73)。ステップS72及びS73の処理の詳細は後述する。ユーザ操作がタイムライン表示画面30上での注目データ(伝送データ)の選択操作である場合(ステップS74)、情報出力部23はタイムライン表示画面30において選択された伝送データを注目データとして記憶するとともに(ステップS75)、その注目データの行を色表示する(ステップS76)。ユーザ操作がタイムチャート表示画面40上での注目データ(状態変化点)の選択操作である場合(ステップS77)、情報出力部23はタイムチャート表示画面40上で選択された変化点を注目データとして記憶するとともに(ステップS78)、その注目データが中央に表示されるよう、タイムチャートの表示範囲を更新する(ステップS79)。
The processing flow of FIG. 7 shows processing executed when the user operation receiving unit 24 receives an operation event by the user. When the user operation is a screen switching operation (depressing the view switching button 321) (YES in step S70), the information output unit 23 determines that the time is displayed if the current screen is the time chart display screen 40 (NO in step S71). Switching to the line display screen 30 is performed (step S72). If the current screen is the timeline display screen 30 (YES in step S71), switching to the time chart display screen 40 is performed (step S73). Details of the processes in steps S72 and S73 will be described later. When the user operation is a selection operation of attention data (transmission data) on the timeline display screen 30 (step S74), the information output unit 23 stores the transmission data selected on the timeline display screen 30 as attention data. At the same time (step S75), the row of the data of interest is displayed in color (step S76). When the user operation is a selection operation of attention data (state change point) on the time chart display screen 40 (step S77), the information output unit 23 uses the change point selected on the time chart display screen 40 as attention data. In addition to storing (step S78), the display range of the time chart is updated so that the attention data is displayed in the center (step S79).
ステップS72の詳細を図8Aに示す。情報出力部23は、現在の画面(切替前の画面)であるタイムチャート表示画面40において注目データ(変化点)が選択されているか否か(具体的には、注目データの情報がメモリに記憶されているか否か)を確認する(ステップS720)。注目データが選択されている場合、情報出力部23は、注目データに対応する時刻の伝送データを選択状態にする(ステップS721)。そして、情報出力部23は、タイムライン表示画面30を生成し出力する(ステップS722)。このとき、ステップS721で選択された伝送データの行は色表示される。
Details of step S72 are shown in FIG. 8A. The information output unit 23 determines whether or not attention data (change point) is selected on the time chart display screen 40 which is the current screen (screen before switching) (specifically, information on attention data is stored in the memory). Whether or not) (step S720). When attention data is selected, the information output unit 23 selects transmission data at a time corresponding to the attention data (step S721). And the information output part 23 produces | generates and outputs the timeline display screen 30 (step S722). At this time, the row of transmission data selected in step S721 is displayed in color.
ステップS73の詳細を図8Bに示す。情報出力部23は、現在の画面(切替前の画面)であるタイムライン表示画面30において注目データ(伝送データ)が選択されているか否か(具体的には、注目データの情報がメモリに記憶されているか否か)を確認する(ステップS730)。注目データが選択されている場合、情報出力部23は、注目データに対応する時刻の状態値が中央に表示されるように、タイムチャートの表示範囲を変更する(ステップS731)。もし注目データが選択されていない場合は、タイムチャートの表示範囲はデフォルト値(例えばログデータの先頭)に設定される(ステップS732)。そして、情報出力部23は、タイムチャート表示画面40を生成し出力する(ステップS733)。
Details of step S73 are shown in FIG. 8B. The information output unit 23 determines whether or not attention data (transmission data) is selected on the timeline display screen 30 that is the current screen (screen before switching) (specifically, information on attention data is stored in the memory). Whether or not) (step S730). When attention data is selected, the information output unit 23 changes the display range of the time chart so that the time state value corresponding to the attention data is displayed in the center (step S731). If attention data is not selected, the display range of the time chart is set to a default value (for example, the top of log data) (step S732). And the information output part 23 produces | generates and outputs the time chart display screen 40 (step S733).
以上のような処理フローによって、上述したタイムライン表示とタイムチャート表示の連携表示が実現される。
Through the processing flow as described above, the above-described timeline display and time chart display can be linked and displayed.
<その他>
上記実施形態は、本発明の構成を例示的に説明するものに過ぎない。本発明は上記の具体的な形態には限定されることはなく、その技術的思想の範囲内で種々の変形が可能である。例えば、上記実施形態では、PLCと画像センサで構成される制御システムを例示したが、制御機器としてはPLC以外にも各種のコントローラやコンピュータなどを用いることができ、対象機器としては画像センサ以外にも各種のセンサ・計測機器やアクチュエータなどを用いることができる。すなわち、互いに通信を行いながら動作する制御機器と対象機器からなる制御システムであれば、本発明を好ましく適用することができる。また、対象機器の数は1つに限られず、複数台の対象機器が接続されている制御システムにも本発明を適用することができる。この場合、対象機器ごとに解析支援装置を実装してもよいし、いずれか1つの対象機器のみ解析支援装置を実装して、1つの解析支援装置で複数台の対象機器のログ解析を行ってもよい。また、制御システムとはオフラインの解析支援装置を用いて、制御システムのログ解析を行うことも可能である。この場合、制御システムにおいて蓄積されたログデータをUSBメモリなどの記録媒体を利用して解析支援装置に読み込ませればよい。また、図3及び図4の情報画面はあくまで一例であり、表示項目や表示方法などは、解析対象となるデータの形式、解析の目的・用途などに応じて、適宜設計すればよい。 <Others>
The above embodiment is merely illustrative of the configuration of the present invention. The present invention is not limited to the specific form described above, and various modifications are possible within the scope of the technical idea. For example, in the above-described embodiment, a control system including a PLC and an image sensor has been illustrated. However, various controllers and computers other than the PLC can be used as the control device, and the target device can be other than the image sensor. Also, various sensors / measurement devices, actuators, and the like can be used. That is, the present invention can be preferably applied to any control system including a control device and a target device that operate while communicating with each other. The number of target devices is not limited to one, and the present invention can be applied to a control system in which a plurality of target devices are connected. In this case, an analysis support device may be mounted for each target device, or only one target device may be mounted, and a single analysis support device may perform log analysis of a plurality of target devices. Also good. Further, it is also possible to perform log analysis of the control system using an offline analysis support device. In this case, log data accumulated in the control system may be read into the analysis support apparatus using a recording medium such as a USB memory. The information screens in FIGS. 3 and 4 are merely examples, and display items, display methods, and the like may be appropriately designed according to the format of data to be analyzed, the purpose and application of analysis, and the like.
上記実施形態は、本発明の構成を例示的に説明するものに過ぎない。本発明は上記の具体的な形態には限定されることはなく、その技術的思想の範囲内で種々の変形が可能である。例えば、上記実施形態では、PLCと画像センサで構成される制御システムを例示したが、制御機器としてはPLC以外にも各種のコントローラやコンピュータなどを用いることができ、対象機器としては画像センサ以外にも各種のセンサ・計測機器やアクチュエータなどを用いることができる。すなわち、互いに通信を行いながら動作する制御機器と対象機器からなる制御システムであれば、本発明を好ましく適用することができる。また、対象機器の数は1つに限られず、複数台の対象機器が接続されている制御システムにも本発明を適用することができる。この場合、対象機器ごとに解析支援装置を実装してもよいし、いずれか1つの対象機器のみ解析支援装置を実装して、1つの解析支援装置で複数台の対象機器のログ解析を行ってもよい。また、制御システムとはオフラインの解析支援装置を用いて、制御システムのログ解析を行うことも可能である。この場合、制御システムにおいて蓄積されたログデータをUSBメモリなどの記録媒体を利用して解析支援装置に読み込ませればよい。また、図3及び図4の情報画面はあくまで一例であり、表示項目や表示方法などは、解析対象となるデータの形式、解析の目的・用途などに応じて、適宜設計すればよい。 <Others>
The above embodiment is merely illustrative of the configuration of the present invention. The present invention is not limited to the specific form described above, and various modifications are possible within the scope of the technical idea. For example, in the above-described embodiment, a control system including a PLC and an image sensor has been illustrated. However, various controllers and computers other than the PLC can be used as the control device, and the target device can be other than the image sensor. Also, various sensors / measurement devices, actuators, and the like can be used. That is, the present invention can be preferably applied to any control system including a control device and a target device that operate while communicating with each other. The number of target devices is not limited to one, and the present invention can be applied to a control system in which a plurality of target devices are connected. In this case, an analysis support device may be mounted for each target device, or only one target device may be mounted, and a single analysis support device may perform log analysis of a plurality of target devices. Also good. Further, it is also possible to perform log analysis of the control system using an offline analysis support device. In this case, log data accumulated in the control system may be read into the analysis support apparatus using a recording medium such as a USB memory. The information screens in FIGS. 3 and 4 are merely examples, and display items, display methods, and the like may be appropriately designed according to the format of data to be analyzed, the purpose and application of analysis, and the like.
<付記>
(1) 制御機器(11)と前記制御機器(11)によって制御される対象機器(12)との間の通信の解析を支援するための解析支援装置(2)であって、
前記制御機器(11)と前記対象機器(12)との間で伝送された伝送データの記録である通信ログデータを取得する通信ログ取得手段(21)と、
前記対象機器(12)及び/又は前記制御機器(11)の状態の記録である状態ログデータを取得する状態ログ取得手段(22)と、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器(11)と前記対象機器(12)との間の伝送データの内容を時系列に表示する第1情報画面(30)と、前記対象機器(12)及び/又は前記制御機器(11)の状態の時間的な変化を表示する第2情報画面(40)とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力する情報出力手段(23)と、
を有することを特徴とする解析支援装置(2)。
(2) 制御機器(11)と前記制御機器(11)によって制御される対象機器(12)との間の通信の解析を支援するための解析支援方法であって、
コンピュータが、
前記制御機器(11)と前記対象機器(12)との間で伝送された伝送データの記録である通信ログデータを取得するステップと、
前記対象機器(12)及び/又は前記制御機器(11)の状態の記録である状態ログデータを取得するステップと、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器(11)と前記対象機器(12)との間の伝送データの内容を時系列に表示する第1情報画面(30)と、前記対象機器(12)及び/又は前記制御機器(11)の状態の時間的な変化を表示する第2情報画面(40)とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力するステップと、
を実行することを特徴とする解析支援方法。 <Appendix>
(1) An analysis support device (2) for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11),
Communication log acquisition means (21) for acquiring communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12);
Status log acquisition means (22) for acquiring status log data which is a record of the status of the target device (12) and / or the control device (11);
A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state. Information output means (23) for outputting to the display device so that it can be identified;
An analysis support apparatus (2) characterized by comprising:
(2) An analysis support method for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11),
Computer
Obtaining communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12);
Obtaining status log data which is a record of the status of the target device (12) and / or the control device (11);
A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state. Outputting to a display device for identification;
The analysis support method characterized by performing this.
(1) 制御機器(11)と前記制御機器(11)によって制御される対象機器(12)との間の通信の解析を支援するための解析支援装置(2)であって、
前記制御機器(11)と前記対象機器(12)との間で伝送された伝送データの記録である通信ログデータを取得する通信ログ取得手段(21)と、
前記対象機器(12)及び/又は前記制御機器(11)の状態の記録である状態ログデータを取得する状態ログ取得手段(22)と、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器(11)と前記対象機器(12)との間の伝送データの内容を時系列に表示する第1情報画面(30)と、前記対象機器(12)及び/又は前記制御機器(11)の状態の時間的な変化を表示する第2情報画面(40)とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力する情報出力手段(23)と、
を有することを特徴とする解析支援装置(2)。
(2) 制御機器(11)と前記制御機器(11)によって制御される対象機器(12)との間の通信の解析を支援するための解析支援方法であって、
コンピュータが、
前記制御機器(11)と前記対象機器(12)との間で伝送された伝送データの記録である通信ログデータを取得するステップと、
前記対象機器(12)及び/又は前記制御機器(11)の状態の記録である状態ログデータを取得するステップと、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器(11)と前記対象機器(12)との間の伝送データの内容を時系列に表示する第1情報画面(30)と、前記対象機器(12)及び/又は前記制御機器(11)の状態の時間的な変化を表示する第2情報画面(40)とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力するステップと、
を実行することを特徴とする解析支援方法。 <Appendix>
(1) An analysis support device (2) for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11),
Communication log acquisition means (21) for acquiring communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12);
Status log acquisition means (22) for acquiring status log data which is a record of the status of the target device (12) and / or the control device (11);
A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state. Information output means (23) for outputting to the display device so that it can be identified;
An analysis support apparatus (2) characterized by comprising:
(2) An analysis support method for supporting analysis of communication between a control device (11) and a target device (12) controlled by the control device (11),
Computer
Obtaining communication log data which is a record of transmission data transmitted between the control device (11) and the target device (12);
Obtaining status log data which is a record of the status of the target device (12) and / or the control device (11);
A first information screen (30) for displaying the content of transmission data between the control device (11) and the target device (12) in time series based on the acquired communication log data and the status log data; The second information screen (40) that displays the temporal change in the state of the target device (12) and / or the control device (11) has a temporal correspondence relationship between the transmission data and the state. Outputting to a display device for identification;
The analysis support method characterized by performing this.
1:制御システム
2:解析支援装置
11:制御機器、PLC
12:対象機器、画像センサ 1: Control system 2: Analysis support device 11: Control device, PLC
12: Target device, image sensor
2:解析支援装置
11:制御機器、PLC
12:対象機器、画像センサ 1: Control system 2: Analysis support device 11: Control device, PLC
12: Target device, image sensor
Claims (9)
- 制御機器と前記制御機器によって制御される対象機器との間の通信の解析を支援するための解析支援装置であって、
前記制御機器と前記対象機器との間で伝送された伝送データの記録である通信ログデータを取得する通信ログ取得手段と、
前記対象機器及び/又は前記制御機器の状態の記録である状態ログデータを取得する状態ログ取得手段と、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器と前記対象機器との間の伝送データの内容を時系列に表示する第1情報画面と、前記対象機器及び/又は前記制御機器の状態の時間的な変化を表示する第2情報画面とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力する情報出力手段と、
を有することを特徴とする解析支援装置。 An analysis support apparatus for supporting analysis of communication between a control device and a target device controlled by the control device,
Communication log acquisition means for acquiring communication log data that is a record of transmission data transmitted between the control device and the target device;
Status log acquisition means for acquiring status log data that is a record of the status of the target device and / or the control device;
Based on the acquired communication log data and status log data, a first information screen for displaying the contents of transmission data between the control device and the target device in time series, the target device and / or the control Information output means for outputting a second information screen for displaying a temporal change in the state of the device to the display device so that a temporal correspondence between the transmission data and the state can be identified;
An analysis support apparatus characterized by comprising: - 前記第1情報画面に時系列に表示された前記伝送データのうちの一部のデータ、又は、前記第2情報画面に表示された前記状態の時間的な変化の一部のデータを、注目データとして選択する操作をユーザから受け付けるユーザ操作受付手段を有し、
前記情報出力手段は、前記注目データが選択されている場合に、前記第1情報画面と前記第2情報画面の両方において、前記注目データに対応するデータを他のデータから識別可能な方法で表示する
ことを特徴とする請求項1に記載の解析支援装置。 A part of the transmission data displayed in time series on the first information screen, or a part of the temporal change in the state displayed on the second information screen User operation accepting means for accepting an operation to select as from the user,
When the attention data is selected, the information output means displays the data corresponding to the attention data on the first information screen and the second information screen in a manner that can be distinguished from other data. The analysis support apparatus according to claim 1, wherein: - 前記ユーザ操作受付手段は、前記第1情報画面と前記第2情報画面を切り替える画面切替指示をユーザから受け付け可能であり、
前記情報出力手段は、
前記第1情報画面において一部のデータが前記注目データとして識別可能に表示されている状態で前記画面切替指示を受け付けた場合に、前記第2情報画面に切り替え且つ前記注目データと同じ時刻のデータを識別可能に表示し、
前記第2情報画面において一部のデータが前記注目データとして識別可能に表示されている状態で前記画面切替指示を受け付けた場合に、前記第1情報画面に切り替え且つ前記注目データと同じ時刻のデータを識別可能に表示する
ことを特徴とする請求項2に記載の解析支援装置。 The user operation accepting means can accept a screen switching instruction for switching between the first information screen and the second information screen from a user,
The information output means includes
When the screen switching instruction is received in a state where a part of the data is displayed as identifiable data on the first information screen, the data is switched to the second information screen and at the same time as the attention data. Is identifiable,
Data is switched to the first information screen and at the same time as the attention data when the screen switching instruction is received in a state where a part of the data is displayed as identifiable data on the second information screen. The analysis support apparatus according to claim 2, wherein the information is displayed in an identifiable manner. - 前記制御機器と前記対象機器との間で伝送される伝送データの中に、前記制御機器の状態又は前記対象機器の状態を示す情報が含まれており、
前記状態ログ取得手段は、前記通信ログ取得手段によって取得された前記通信ログデータから前記状態ログデータを取得する
ことを特徴とする請求項2又は3に記載の解析支援装置。 The transmission data transmitted between the control device and the target device includes information indicating the state of the control device or the state of the target device,
The analysis support apparatus according to claim 2 or 3, wherein the status log acquisition unit acquires the status log data from the communication log data acquired by the communication log acquisition unit. - 前記情報出力手段は、前記第1情報画面及び/又は前記第2情報画面において、前記対象機器及び/又は前記制御機器の状態が変化している変化点を識別可能に表示する
ことを特徴とする請求項2~4のいずれか1項に記載の解析支援装置。 The information output means displays the change point where the state of the target device and / or the control device is changing in the first information screen and / or the second information screen so as to be identifiable. The analysis support apparatus according to any one of claims 2 to 4. - 前記ユーザ操作受付手段は、前記ユーザが前記変化点を前記注目データとして選択する操作を補助する選択補助手段を有する
ことを特徴とする請求項5に記載の解析支援装置。 The analysis support apparatus according to claim 5, wherein the user operation accepting unit includes a selection assisting unit that assists the user in selecting the change point as the attention data. - 前記伝送データの中に、伝送順に付与された番号情報が含まれており、
前記情報出力手段は、前記通信ログデータに記録されている各伝送データの番号情報を解析することにより、正しい伝送順で伝送データの伝送が行われていない伝送エラー箇所を検出し、前記第1情報画面及び/又は前記第2情報画面において、前記伝送エラー箇所を識別可能に表示する
ことを特徴とする請求項2~6のいずれか1項に記載の解析支援装置。 The transmission data includes number information assigned in the order of transmission,
The information output means detects transmission error locations where transmission data is not transmitted in the correct transmission order by analyzing number information of each transmission data recorded in the communication log data, and 7. The analysis support apparatus according to claim 2, wherein the transmission error part is displayed in an identifiable manner on the information screen and / or the second information screen. - 制御機器と前記制御機器によって制御される対象機器との間の通信の解析を支援するための解析支援方法であって、
コンピュータが、
前記制御機器と前記対象機器との間で伝送された伝送データの記録である通信ログデータを取得するステップと、
前記対象機器及び/又は前記制御機器の状態の記録である状態ログデータを取得するステップと、
取得された前記通信ログデータ及び前記状態ログデータに基づき、前記制御機器と前記対象機器との間の伝送データの内容を時系列に表示する第1情報画面と、前記対象機器及び/又は前記制御機器の状態の時間的な変化を表示する第2情報画面とを、前記伝送データと前記状態との時間的な対応関係が識別できるように、表示装置に出力するステップと、
を実行することを特徴とする解析支援方法。 An analysis support method for supporting analysis of communication between a control device and a target device controlled by the control device,
Computer
Obtaining communication log data that is a record of transmission data transmitted between the control device and the target device;
Obtaining status log data that is a record of the status of the target device and / or the control device;
Based on the acquired communication log data and status log data, a first information screen for displaying the contents of transmission data between the control device and the target device in time series, the target device and / or the control Outputting a second information screen for displaying a temporal change in the state of the device to the display device so that a temporal correspondence between the transmission data and the state can be identified;
The analysis support method characterized by performing this. - コンピュータを、請求項1~7のいずれか1項に記載の解析支援装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the analysis support apparatus according to any one of claims 1 to 7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018092053A JP7192243B2 (en) | 2018-05-11 | 2018-05-11 | Analysis support device and analysis support method |
JP2018-092053 | 2018-05-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019216199A1 true WO2019216199A1 (en) | 2019-11-14 |
Family
ID=68467955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2019/017209 WO2019216199A1 (en) | 2018-05-11 | 2019-04-23 | Analysis assistance device and analysis assistance method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP7192243B2 (en) |
WO (1) | WO2019216199A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023145308A1 (en) * | 2022-01-27 | 2023-08-03 | オムロン株式会社 | Information processing system |
WO2023207520A1 (en) * | 2022-04-29 | 2023-11-02 | 青岛海尔科技有限公司 | Information association method and apparatus, device, storage medium and product |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7424129B2 (en) * | 2020-03-13 | 2024-01-30 | オムロン株式会社 | Support devices, support methods and programs |
JP7406451B2 (en) * | 2020-05-25 | 2023-12-27 | 株式会社キーエンス | programmable logic controller |
JPWO2023228357A1 (en) * | 2022-05-26 | 2023-11-30 | ||
JP7536217B1 (en) | 2023-12-11 | 2024-08-19 | 三菱電機株式会社 | PROGRAMMABLE CONTROLLER, TERMINAL DEVICE, INFORMATION PROVIDING METHOD AND PROGRAM |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009070279A (en) * | 2007-09-14 | 2009-04-02 | Tokyo Electron Ltd | Controller for processing system, control method for processing system, and storage medium storing control program |
JP2015001758A (en) * | 2013-06-13 | 2015-01-05 | オムロン株式会社 | Information processing device, information processing device control method, and control program |
WO2015136959A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control system, method, program and information processing device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3141988B2 (en) * | 1996-10-30 | 2001-03-07 | 三菱電機株式会社 | Problem analysis method for computer systems |
JP2001265311A (en) * | 2000-03-17 | 2001-09-28 | Hitachi Information Systems Ltd | Time series data file display system and method therefor, and recording medium on which processing program therefor is recorded |
JP2011134061A (en) * | 2009-12-24 | 2011-07-07 | Hitachi Industrial Equipment Systems Co Ltd | Programmable controller |
-
2018
- 2018-05-11 JP JP2018092053A patent/JP7192243B2/en active Active
-
2019
- 2019-04-23 WO PCT/JP2019/017209 patent/WO2019216199A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009070279A (en) * | 2007-09-14 | 2009-04-02 | Tokyo Electron Ltd | Controller for processing system, control method for processing system, and storage medium storing control program |
JP2015001758A (en) * | 2013-06-13 | 2015-01-05 | オムロン株式会社 | Information processing device, information processing device control method, and control program |
WO2015136959A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control system, method, program and information processing device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023145308A1 (en) * | 2022-01-27 | 2023-08-03 | オムロン株式会社 | Information processing system |
WO2023207520A1 (en) * | 2022-04-29 | 2023-11-02 | 青岛海尔科技有限公司 | Information association method and apparatus, device, storage medium and product |
Also Published As
Publication number | Publication date |
---|---|
JP7192243B2 (en) | 2022-12-20 |
JP2019197461A (en) | 2019-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019216199A1 (en) | Analysis assistance device and analysis assistance method | |
US10491456B2 (en) | Information processing device, information processing program, and information processing method | |
US11960925B2 (en) | Program generating device, program generating method, and information storage medium | |
US10740122B2 (en) | System module of simulating machine operation screen based on non-invasive data-extraction system | |
KR102116064B1 (en) | Plant diagnosis method using the same system | |
CN107533323B (en) | Information processing device, information processing system, and information processing program | |
US11556106B2 (en) | Programmable logic controller | |
JP7450471B2 (en) | Programmable logic controller and PLC system | |
JP5074896B2 (en) | Inspection support system and image processing controller | |
US10579496B2 (en) | Information processing device, information processing program, and information processing method | |
EP3327528A1 (en) | Information processing apparatus, information processing system, information processing method, and information processing program | |
WO2023009206A1 (en) | Automatically generating one or more machine vision jobs based on region of interests (rois) of digital images | |
US11314219B2 (en) | Information device, terminal device and recording medium | |
JP4929133B2 (en) | Inspection support system | |
US20220317650A1 (en) | Analysis apparatus, control method thereof, and analysis system | |
JP6813077B1 (en) | Production system, recovery system, production method, and program | |
JP2019159868A (en) | Control system, controller and display device | |
JP5959374B2 (en) | Program creation support device | |
US11215974B2 (en) | Factory automation (FA) system, controller, and control method | |
JP2021189482A (en) | Programmable logic controller | |
JP2020017131A (en) | Work abnormality detection assist system, work abnormality detection assist method, and work abnormality detection assist program | |
JP7536217B1 (en) | PROGRAMMABLE CONTROLLER, TERMINAL DEVICE, INFORMATION PROVIDING METHOD AND PROGRAM | |
JP2021015476A (en) | Screen transition information generation device, screen transition information generation method, screen transition information generation program, and screen transition information generation system | |
TWI767590B (en) | Device and method for robotic process automation of multiple electronic computing devices | |
US11520315B2 (en) | Production system, production method, and information storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19800534 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19800534 Country of ref document: EP Kind code of ref document: A1 |