SH 082343 Enga
SH 082343 Enga
SH 082343 Enga
Training Manual
Real-time Data Analyzer
Basic Course
SAFETY PRECAUTIONS
(Always read these instructions before using the products.)
When designing the system, always read the relevant manuals and give sufficient consideration to safety.
During the exercise, pay full attention to the following points and handle the product correctly.
[EXERCISE PRECAUTIONS]
WARNING
● Do not touch the terminals while the power is on to prevent electric shock.
● Before opening the safety cover, turn off the power or ensure the safety.
CAUTION
● Follow the instructor's direction during the exercise.
● Do not remove the module of the demonstration machine or change wirings without permission.
Doing so may cause failures, malfunctions, personal injuries and/or a fire.
● Turn off the power before mounting or removing the module.
Failure to do so may result in malfunctions of the module or electric shock.
● When the demonstration machine (such as X/Y table) emits abnormal odor/sound, press the "Power
switch" or "Emergency switch" to turn off.
● When a problem occurs, notify the instructor as soon as possible.
1
REVISIONS
*The manual number is given on the bottom left of the back cover.
Revision date *Manual number Description
April 2020 SH(NA)-082343ENG-A First edition
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot
be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
2
TRADEMARKS
Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries.
The company names, system names and product names mentioned in this manual are either registered trademarks or
trademarks of their respective companies.
In some cases, trademark symbols such as '' or '' are not specified in this manual.
3
CONTENTS
SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
REVISIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
CHAPTER 1 OVERVIEW 9
1.1 Edgecross Basic Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Real-time Data Analyzer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4
Data diagnosis flow setting (reading a response data definition file). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Feedback setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Executing data diagnosis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Similar waveform recognition execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Diagnosis with waveform monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Checking the feedback result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
CONTENTS
6.2 SPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Setting procedure of real-time statistic diagnosis (SPC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
6.3 Data Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Target device setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Data logging flow setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Data logging execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.4 Data Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Importing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
SPC rule creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.5 Data Diagnosis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Data diagnosis flow setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Feedback setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Response data file output setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Executing data diagnosis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Data diagnosis with SPC rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Checking the feedback result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
APPENDICES 107
Appendix 1 Saving/Deleting/Reading a Setting File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Appendix 2 Additional Similar Waveform Recognition Exercise 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Appendix 3 Additional Exercise of SPC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Appendix 4 Read Data and Statistics of SPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Appendix 5 Default SPC Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Appendix 6 MQTT Broker Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
MQTT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Eclipse Mosquitto setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Starting Eclipse Mosquitto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Appendix 7 Contact Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
5
INTRODUCTION
This text describes the functions, specifications, and setting methods of the hardware and software used to build a system for
the purpose of learning the necessary procedure for diagnosis using Real-time Data Analyzer.
The description is provided for Edgecross Basic Software version 1.10.
RELEVANT MANUALS
Manual name [manual number] Description Available
form
Real-time Data Analyzer User's Manual Specifications, procedures before operation, functions, and troubleshooting of e-Manual
[SH-081873ENG] Real-time Data Analyzer PDF
SLMP Data Collector User's Manual Specifications, procedures before operation, and troubleshooting of SLMP e-Manual
[SH-081919ENG] Data Collector PDF
The description related to Edgecross in this text is quoted from the following manual.
The PDF of the following manual can be downloaded from the Edgecross marketplace.
Manual name [manual number] Description Available
form
Edgecross Basic Software for Windows User's Manual Specifications, procedures before operation, functions, and troubleshooting of PDF
[ECD-MA1-0001] Edgecross Basic Software
e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated
tool.
e-Manual has the following features:
• Required information can be cross-searched in multiple manuals.
• Other manuals can be accessed from the links in the manual.
• The hardware specifications of each part can be found from the product figures.
• Pages that users often browse can be bookmarked.
• Sample programs can be copied to an engineering tool.
6
TERMS
Unless otherwise specified, this manual uses the following terms.
Term Description
Correlation matrix A matrix created based on the reference CSV file. It is used for advanced analysis.
Data collection Processing to collect data for data diagnosis and data analysis.
Data collector A software component that collects data in production sites through each network. It is provided by vendors for each
network and connection target devices.
Data diagnosis Processing to diagnose if collected data matches preset conditions.
Data modification Processing to modify collected data into a form suitable for analysis and diagnosis.
Further modifications can also be made to the data modified once.
Dataset A group of data in a read CSV file. It is used for a logic.
Detection It is to indicate that waveforms are different, as a diagnosis result.
Detection sensitivity The difficulty of determination that a waveform is similar or dissimilar, as a result of similarity diagnosis.
It is difficult to make the determination as the detection sensitivity is higher. (The proportion of waveforms determined to
be different increases.)
Diagnosis result Diagnosis result data. (0: similar, 1: different)
Diagnosis result data A general term for information on a diagnostic result passed to Real-time Flow Manger after the similarity diagnosis.
Different state A diagnosis result that indicates 'similarity score < similarity score threshold'.
Edge application Software that performs various processing for data utilization in production sites using the functions provided by
Edgecross in the edge computing area.
Edge computing An information processing method and area, for not only collecting and analyzing data in production sites in real-time,
and feed backing the data, but summarizing the production site data and sharing information with IT systems efficiently
with the hardware and software in production sites.
Edgecross A software platform that implements specifications and concepts for realizing manufacturing solutions by the FA-IT
collaboration centering on the edge computing.
Edgecross Basic Software The name of the software product that implements the Edgecross function.
Feedback Processing to report a detection result when diagnosed data matches a condition.
GX LogViewer A software product that has a function to display an inspection waveform and the similarity scores on a graph in real
time and a function to display the graph of a diagnosis result file.
Industrial personal computer A personal computer specialized for industrial use with features such as high reliability, environmental resistance, and
long-term supply.
Inspection waveform Waveform data to be diagnosed.
Internal database Data group that software included in Real-time Statistic Diagnosis Tool uses to share data.
Management Shell The name of the Windows version product that implements the model management function.
Management Shell Explorer Software that sets and refers to data models managed by Management Shell.
MQTT An abbreviation for MQ Telemetry Transport.
MQ Telemetry Transport is a lightweight message communication protocol using TCP/IP, and the standard is published
as an open protocol.
MQTT broker An application that acts as an intermediary between applications that distribute messages and ones that receive the
messages by using MQTT.
Process A generic term for the processing of data collection, data modification, data diagnosis, and feedback that compose a
process flow.
Process flow An execution unit of sequential processing performed by Real-time Flow Manager, consisting of data collection, data
modification, data diagnosis, and feedback.
Publishing data definition file A file that stores the information to set the publishing data to an Edge application in advance.
Real-time Flow Designer The name of the software component that performs operation setting of Real-time Flow Manager.
Real-time Flow Manager The name of the Windows version software component that implements the real-time data processing.
Reference waveform A group of one or more reference waveform files in which waveforms to be referenced for diagnosis are recorded.
The main purpose of a waveform similarity diagnosis is determining whether a waveform is similar to a reference
waveform.
Reference waveform file A CSV file in which waveforms to be referenced for diagnosis are recorded.
Reference waveform learning data Data that stores the learning result of a reference waveform.
The property of the reference waveform is recorded. By using this data for the similarity diagnosis instead of a reference
waveform, the similarity equivalent to a comparison using the reference waveform can be determined at high speed.
Reference waveform learning data A file which stores reference waveform learning data.
file
Response data definition file A file that stores the information for passing the response definitions to Real-time Flow Designer.
7
Term Description
Response data file A CSV file which is output when an edge application completed a data analysis and detected an error.
Section The unit of data used in Real-time Statistic Diagnosis Tool.
In Real-time Statistic Diagnosis Tool, an analysis or diagnosis is performed for each section.
Similar waveform recognition Refers to the following functions:
• Learning a reference waveform and creating a reference waveform learning data
• Interface to input an inspection waveform or output diagnosis result data
• Diagnosing the similarity between a reference waveform and an inspection waveform at high speed by using
reference waveform learning data
• Outputting a diagnosis result in a CSV file
Similarity diagnosis Processing to obtain the similarity between a reference waveform and an inspection waveform at high speed by using
information of the reference waveform recorded in reference waveform learning data.
Unit A unit of a setting in Real-time Statistic Diagnosis Tool.
It can be defined and used for each CSV file format to be read.
Waveform learning Processing to learn the property of a reference waveform and create reference waveform learning data in which the
learning information is recorded.
8
1 OVERVIEW
1
Real-time Data Analyzer is an edge application that analyzes the data of a production site offline and diagnose the data in real
time by linking with Edgecross Basic Software. Preventive maintenance and quality improvement can be realized at
production sites by using AI technology and various statistical methods.
Real-time Data Analyzer is an Edgecross-compatible edge computing software (iQ Edgecross) of Mitsubishi Electric.
It is compatible with an open software platform "Edgecross" in the edge computing area.
Edge application
Edge application is the software that uses Edgecross in the edge computing area to perform various processing using the
data from a production site.
Data collector
A data collector is a software component that collects data of a production site through each network. Data collectors for
various protocols can collect data from various devices.
1 OVERVIEW
1.1 Edgecross Basic Software 9
1.2 Real-time Data Analyzer
Real-time Data Analyzer is an edge application that analyzes the data of a production site offline and diagnose the data in real
time. Preventive maintenance and quality improvement can be realized at production sites by using AI technology and various
statistical methods. Real-time Data Analyzer consists of the following tools.
Tool Description
Similar Waveform Recognition AI-equipped software that calculates the similarity between the waveform to be referenced and an inspection waveform at
Tool high-speed and detects the differences of the inspection waveform by using the data created by learning the reference
waveform.
Real-time Statistic Diagnosis Tool Software that diagnoses the waveform data according to the rules which is derived in a statistic method or multivariate
analysis and determines whether the data is OK or NG.
By installing this product in an industrial personal computer and using with Real-time Flow Manager, the data collected by
Real-time Flow Manager is analyzed offline and diagnosed in real time.
Offline analysis
This creates rules to enable users to analyze and diagnose data collected from a production site.
The following figure describes the flow of offline analysis.
Diagnosis
rule
Industrial
personal
computer
Data collection
Real-time Flow Manager outputs the data collected in the data collection process as a file. (Data will be modified in the
data modification process as necessary.)
A user creates diagnosis rules in Real-time Data Analyzer based on the file of the output collection data.
1 OVERVIEW
10 1.2 Real-time Data Analyzer
Real-time diagnosis
This diagnoses data collected from a production site in real time according to the diagnosis rules created in offline analysis.
1
The following figure describes the flow of real-time diagnosis.
Diagnosis
rule
Industrial
personal
computer
Data collection
Real-time Flow Manager outputs the data collected in the data collection process. (Data will be modified in the data
modification process as necessary.)
Real-time Data Analyzer diagnoses collected data which was output by Real-time Flow Manager according to the
diagnosis rules created in offline analysis.
Real-time Data Analyzer outputs the diagnosis result data.
Real-time Flow Manager sends a feedback based on the diagnosis result data.
1 OVERVIEW
1.2 Real-time Data Analyzer 11
2 FUNCTION LIST
2 FUNCTION LIST
12 2.1 Function List of Real-time Data Analyzer
Real-time Statistic Diagnosis Tool
The following table lists the functions of Real-time Statistic Diagnosis Tool.
Offline analysis and real-time diagnosis are included in the data analysis/diagnostic function.
Function Description
CSV file reading function To read a CSV file output to a specified folder. 2
Data analysis/ Display function To display data of a read CSV file.
diagnostic
Read data To display data of a CSV file as a waveform.
function
display Analysis by overlapping or connecting data can be performed.
Read data To calculate and display the statistics of CSV file data.
statistics display The changes of statistics and correlation of data can be analyzed.
Read data To perform STFT conversion and display the spectrogram, or perform Wavelet conversion and
frequency display the scalogram on data in a CSV file.
display Facility failure can be analyzed by visualizing the frequencies.
Simple analysis/ To analyze and diagnose data by operating GUI.
diagnosis SPC To calculate the statistics for each unit of collected data and diagnose it according to the SPC rule.
function
A sign of failure can be detected based on the changes of statistics.
Multivariate To detect an event to be a trigger based on the model of the multivariate analysis result.
analysis
Guard band To diagnose data by using a guard band created based on the normal waveform data.
diagnosis The upper and lower limit values can be specified without using the reference waveform.
Advanced To perform multivariate analysis by the correlation analysis, multiple regression analysis, or
analysis function Mahalanobis-Taguchi method.
Correlation To create a correlation matrix for correlation analysis.
matrix creating
Multiple To perform multiple regression calculation by selecting one objective variable and multiple
regression explanatory variables to obtain the correlation between multiple variables.
analysis (LMR)
Mahalanobis - To collect the sample of multiple variables to be referenced and calculate the Mahalanobis distance
Taguchi method for the standard section and the changes in variation based on the correlation of multiple variables.
(MT)
Analysis/ Functions to create arbitrary analysis logic/data diagnosis logics
diagnosis logic Logic editing To edit the analysis and data diagnosis logics.
operation
function Logic variable To edit variables used in the analysis and data diagnosis logics.
setting
Data display function after To display multiple waveforms in a single area.
execution Analysis with the display method by connecting multiple sections of single data or overlapping
different data in the same section can be performed.
Diagnosis result To display the simple diagnosis result or diagnosis logic execution result.
display function
Simple To display the result of simple diagnosis (SPC, multivariate analysis, or guard band diagnosis).
diagnosis result
display
Diagnostic logic To display the result of diagnosis logic (expansion trace GB, SPC diagnostic, or log writing and error
result display notification).
Management function To manage data used in Real-time Statistic Diagnosis Tool.
Data to be displayed can be selected or narrowed down.
Data analysis/ Option setting To set the setting on Real-time Statistic Diagnosis Tool.
diagnostic function
Data To set the setting on data management.
function
management
setting
Waveform To set the setting on the waveform display.
display setting
Logic setting To set the setting on logics.
Diagnostic result notification function To issue an alarm when an error is detected in a diagnostic result.
2 FUNCTION LIST
2.1 Function List of Real-time Data Analyzer 13
2.2 Function List of Edgecross Basic Software
This section shows the function list of Edgecross Basic Software.
2 FUNCTION LIST
14 2.2 Function List of Edgecross Basic Software
3 START-UP OF DEMONSTRATION MACHINE
Offline analysis
NG OK
? Not similar to the
normal pattern
AI NG
Offline analysis
Create SPC rule
SPC rule: Upper control
Other than 3 sigma (1/1) limit
3σ
Current
Current
Sensor data 3σ
SPC rule:
Real-time diagnosis
Other than 3 sigma (1/1) Upper control
[Simple analysis/diagnostic function] limit
3σ
Diagnosis according to the SPC rule OK? Center line
3σ
Current
NG? Lower control
Abnormal limit
Sensor data [Diagnosis result notification function]
Notify that the diagnosis result is abnormal
Sequence program
There are two types of programs for generating data to be logged and monitored: similar waveform recognition and SPC.
This course does not include programming. When writing a program to the CPU module, write the programmed project
"school_SimilarWave.gx3" or "school_SPC.gx3".
"school_SimilarWave.gx3 is the project data for similar waveform recognition, and "school_SPC.gx3" is for SPC.
(2)
USB cable
(3)
Mouse
USB cable
3
MELIPC
USB cable DisplayPort cable
Keyboard Display
CH2
CPU module
3. Connect the CPU module and personal computer with a USB cable.
MELIPC
CPU module
USB cable
Personal computer
4.1 GX Works3
Specifying the connection destination
Specify the connection destination.
Operating procedure
1. Open the project "school_SimilarWave.gx3"
and click [Online] [Current Connection
Destination...] from the menu of the
engineering tool.
1. Click!
3. Click!
4. Click!
7. Click!
1. Click!
3. Click!
4. Click!
Operating procedure
1. From Windows start, click [Windows System]
[Control Panel].
4
1. Click!
3. Click!
4. Click!
5. Click!
6. Select!
7. Click!
9. Click!
10. Click!
11. Click!
Edge application
Similar Waveform Recognition Tool
5
Diagnosis result
Publishing data
Edgecross
Data logging Real-time Flow Manager
Basic Software
Feedback
Collected data
Reference
waveform
Similar Waveform
Edgecross Basic Software
Recognition Tool
Data logging
Data logging flow setting
phase
Reference
waveform
Data logging flow execution file
Reference waveform
5
learning data creation
Data analysis phase Reference
waveform Output
learning
data file
*1 The following shows the number of processes that can be used in each process.
Flow type Data collection Data modification Data diagnosis Feedback execution
Data logging flow 1 (Required) 3
Data diagnosis flow 1 (Required) 3 1 (Required) 1 (Required)
C drive
SimilarWaveData
AnalyzeData
Config
Result
WaveformData
LogData
Config 5
Target device setting
Select the data collector to be used and set the target device.
Operating procedure
1. Click Windows start [Edgecross Basic
Software] [Real-time Flow Designer].
1. Click!
3. Click!
4. Select!
5. Click!
8. Add!
9. Click!
10. Click!
Operating procedure
1. Select "Data Logging Flow Setting" in the edit
item tree of Real-time Flow Designer.
1. Select!
2. Click!
4. Click!
5. Select!
5
6. Select the "Collection Data" tab and set the
data name, device address, and data type of
the data to be collected as follows.
[Setting details]
Data Name: CurrentValue
Location (top): D0
Data Type: REAL
6. Set!
8. Click!
9. Click!
10. Click!
11. Click!
12. Click!
14. Click!
15. Click!
17. Click!
19. Click!
20. Set!
21. Click!
22. Click!
23. Click!
Operating procedure
1. Click [Diagnostics] [Real-time Flow Manager
Diagnostics...] from the menu of Real-time
Flow Designer.
1. Click!
2. Click!
3. Click!
4. Check!
5. Click!
In the actual operation, determine the number of required files before logging.
The minimum number of records is as follows:
• To satisfy the restrictions of the waveform learning function: Records should be more than four times of the
unit waveform width and temporally consecutive in one or more sections.
• To enable the minimum diagnosis operation: Records in which the basic cycle of a reference waveform is
four cycles or more and temporally consecutive in one or more sections.
• To enable the practical operation: Records in which the basic cycle of a reference waveform is 16 cycles or
more and temporally consecutive in one or more sections.
Learning
period
Collection
period
Unit
waveform
width
Partial
waveform
group
1. Double-click!
5
2. When Similar Waveform Recognition Tool is started,
click the [Creation of Reference Waveform Learning
Data] button.
2. Click!
3. Click!
9. Click!
10. Click!
11. Click!
12. Click!
13. Click!
• GX LogViewer is installed at the same time when installing Real-time Data Analyzer.
• When the load on an industrial personal computer is high, the limit of the processing performance may be
exceeded and the similarity diagnosis may stop. Before starting an actual operation, monitor the load of the
industrial personal computer and check that a similarity diagnosis does not stop by referring to the following.
Real-time Data Analyzer User's Manual
5
Data diagnosis flow setting (creating a publishing data definition
file)
Create a publishing data definition file with Real-time Flow Designer.
Operating procedure
1. Start Real-time Flow Designer.
3. Click!
4. Click!
5. Click!
6. Click!
8. Select! 9.Click!
5
10. When the "Edge Application Diagnosis Setting" window
is displayed, set as follows.
[Setting details]
Host Name: localhost
11. Click the [Next] button.
10. Set!
11.Click!
12. Click!
15. Click!
Operating procedure
1. Click the [Publishing Data Setting] button of Similar
Waveform Recognition Tool.
1. Click! 5
2. Click!
3. Click!
4. Click!
5. Click!
6. Set!
7. Click!
8. Click!
Operation setting
Configure the operation setting for similarity diagnosis with Similar Waveform Recognition Tool. 5
Operating procedure
1. Click the [Operation Settings] button of Similar
Waveform Recognition Tool.
1. Click!
2. Click!
3. Set! ingData01.dspr
6. Click!
10. Click!
11. Click!
12. Click!
Operating procedure
1. Click the [Get Response Data definition] button of
[Response Data] tab in the edge application diagnosis
setting.
2. Select the response data definition file
(LoggingFlow01_Edge Application Diagnosis
1. Click! (MQTT)_Outputdata.json) stored in the folder
C:\SimilarWaveData\AnalyzeData\Config.
3. Click!
4. Click!
Feedback setting
The feedback from Similar Waveform Recognition Tool is published to Real-time Flow Manager via the MQTT broker. 5
Configure the setting of the feedback to be performed based on the result of the data diagnosis process with Real-time Flow
Designer.
Operating procedure
1. In the "Data Diagnosis Flow Setting" window of Real-
time Flow Designer, select "Post-Diagnosis Feedback"
for "Function Type" of feedback.
1. Select!
2. Click!
3. Select!
4. Click!
Similarity score
Abnormal
Threshold
Similarity difference
Feedback execution
(When the value is 0)
When a value larger than 0 is entered as the real number value to be compared, feedback is executed before
the similarity score reaches the similarity score threshold.
Similarity score 5
Abnormal
Threshold
Similarity difference
Feedback execution
(When the value is larger than 0)
7. Click!
9. Click!
10. Click!
11. Click!
12. Click!
13. Click!
Operating procedure
1. Click [Diagnostics] [Real-time Flow Manager
Diagnostics...] from the menu of Real-time Flow
Designer.
1. Click!
2. Click!
3. Click!
4. Check!
Operating procedure
1. Click the [Execution/Monitoring] button of Similar
Waveform Recognition Tool.
1. Click!
2. Click!
3. Click!
5. Click!
Operating procedure
1. Click the [Start GX LogViewer] button in the "Monitor
waveform" tab of the "Execution/Monitoring" window.
1. Click!
2. Click!
4. Click!
Item Description
Inspection waveform monitor The input inspection waveform is displayed in real time.
Similarity score monitor The diagnosis result similarity score is displayed in real time.
6. ON!
Item Description
Difference waveform The waveform diagnosed as being different from the reference waveform is displayed in unit waveform width.
Up to four difference waveforms are displayed. After that, the oldest one is deleted.
Reference waveform A snapshot (unit waveform width) of the reference waveform which is the most similar to the displayed difference
waveform is displayed.
Operating procedure
1. The window with the default upper/lower limit of the
graph.
2. Click!
3. Select!
4. Click!
Operating procedure
1. Right-click "SimilarityScore" in the similar waveform
recognition monitor.
1. Right-click!
2. Click!
4. Click!
Diagnosis
Accumulated result
data
Publishing
data
Feedback
Collected data
Software components
Real-time Statistic Diagnosis Tool consists of the following software.
Software Description
Reader Reads a CSV file output to a specified folder and registers it to the internal database.
Analyzer Analyzes and diagnoses the data in the internal database registered by Reader.
Monitor Diagnoses whether Analyzer has detected an abnormality.
After a diagnosis, the detection result is displayed on the screen and a response data file is output.
The operation flow of each software when working with Real-time Flow Manager is as follows.
6
Real-time Statistic Diagnosis Tool
Reader
Monitor Analyzer
Real-time Flow Manager outputs the data collected in a production site to a specified folder as a CSV file.
Reader reads the CSV file and registers it to the internal database of Real-time Statistic Diagnosis Tool.
Analyzer references the data registered in the internal database.
A user analyzes the data offline and set collection data to be diagnosed and diagnosis rules by using Analyzer.
Analyzer starts a diagnosis according to the set diagnosis rule.
When an abnormality is detected, Analyzer registers the abnormality to the internal database.
Monitor monitors whether Analyzer has registered an abnormality to the internal database, then outputs a response data
file to a specified folder when the registration of an abnormality is detected.
Real-time Flow Manager checks the output of a response data file and executes feedback when the output is detected.
Edgecross Real-time
Basic Software Statistic Diagnosis Tool
Data logging
Data logging phase
phase
Logging
Data logging flow execution file
*1 The following shows the number of processes that can be used in each process.
Flow type Data collection Data modification Data diagnosis Feedback execution
Data logging flow 1 (Required) 3
Data diagnosis flow 1 (Required) 3 1 (Required) 1 (Required)
C drive
RSD
CSVINPUT
READERDATA
RSDDATA
SPCDATA
Since the setting is the same as the "Target Device Setting" that is set in the similar waveform recognition, it is
not required to be added or changed if the setting is not deleted.
Before configuring the setting, save the diagnosis flow created in Exercise 1 and delete it from Real-time Flow
Designer.
For how to save and delete a setting file, refer to the following.
Page 107 Saving/Deleting/Reading a Setting File
Operating procedure
1. Open the SPC project "school_SPC.gx3" and
write it to the programmable controller.
For the operating procedure, refer to the
following.
2. Select! Page 22 Writing program to the CPU
module
2. Select "Data Logging Flow Setting" in the edit
item tree.
3. Click!
6. Select!
7. Set!
9. Click!
16. Click!
17. Click!
18. Click!
19. Click!
21. Click!
22. Set!
23. Click!
24. Set!
25. Click!
26. Click!
27. Click!
Operating procedure
1. Click [Diagnostics] [Real-time Flow Manager
Diagnostics...] from the menu of Real-time
Flow Designer.
1. Click!
6
2. Click the [Start Operation] button.
2. Click!
3. Click!
4. Check!
5. Click!
Importing files
Specify the sample CSV file, define the CSV file to be read by Reader (definition of the module), and output the response data
definition file.
Operating procedure
1. From Windows start [Mitsubishi Electric Edgecross
Software] [Real-time Data Analyzer], double-click
[Real-time Statistic Diagnosis Tool].
1. Double-click! 6
2. Set!
3. Select!
5. Click!
11. Click!
13. Click!
15. Click!
16. Check the setting details and always click the [Save
change] button to save the setting details.
16. Click!
17. Click!
20. Copy!
Operating procedure
1. Select [Option] [Setting] from the menu of Analyzer
and display the setting window.
1. Select!
2. Select!
4. End the program with the [] button at the upper right of
Monitor, and then restart it.
4. Restart!
5. Check!
6. End the program with the [] button at the upper right of
Analyzer and Monitor, and then restart it.
6. Restart!
7. Select!
8. Select!
9. Select!
10.Click!
11. Check!
The section is not displayed unless the
period is selected.
12. Check!
13. Select!
18. Click!
19. Select!
20. Click!
Operating procedure
1. Start Real-time Flow Designer.
4. Click!
5. Click!
6. Click!
7. Select!
8. Click!
12. Click!
13. Select the data to be output and click the [Next] button.
13. Click!
14. Set!
15. Click!
16. Set!
17. Click!
18. Click!
20. Click! 6
21. When the response data definition file has been read
successfully, the output data will be displayed. Click the
[OK] button.
21. Click!
Operating procedure
1. In the "Data Diagnosis Flow Setting" window of Real-
time Flow Designer, select "Post-Diagnosis Feedback"
for "Function Type" of feedback.
1. Select!
2. Click!
3. Select!
4. Click!
7. Click!
9. Click!
10. Click!
11. Click!
12. Click!
13. Click!
Operating procedure
1. Click the [DIAG.] button.
1. Click!
2. Select!
Precautions
• During a diagnosis, keep this window with Monitor started.
• A logic with the auto-start logic setting is restarted and diagnosed even after the logic is stopped.
To completely stop the logic, perform either of the following:
Stop the logic after deleting the logic name from the automatic start logic setting. (Page 101 Response data file output
setting)
Delete the logic in Analyzer. ( Real-time Data Analyzer User's Manual)
Operating procedure
1. Click [Diagnostics] [Real-time Flow Manager
1. Click! Diagnostics] from the menu of Real-time Flow Designer.
6
2. Click the [Start Operation] button.
2. Click!
3. Click!
4. Check!
Operating procedure
1. Select [File] [Switch to CSV file reading mode] from
the menu of Reader.
1. Click!
2. Click!
3. Click!
5. ON!
6. Click!
7. Display!
■Save
Save the current setting status as a setting file.
Some setting information may not be saved depending on the data collector used. For details, refer to the manual of the data
collector used.
1. Click [File] [Save in File...] from the menu.
Create a save destination folder and save the file with
1. Click!
the desired name.
A
■Delete
Delete the selected item.
1. Right-click the flow to be deleted from the data
diagnosis flow setting of the edit item tree and click
[Delete Item].
1. Click!
APPX
Appendix 1 Saving/Deleting/Reading a Setting File 107
■Read
Read the setting information saved as a setting file.
1. Click [File] [Read from File...] from the menu of Real-
1. Click! time Flow Designer and read the data diagnosis flow
setting file.
2. Click the [Apply] button.
2. Click!
■Save
Save the current setting status of Similar Waveform Recognition Tool as a setting file.
1. Click [File] [Export Settings...] from the menu
of Similar Waveform Recognition Tool and
1. Click! save the Similar Waveform Recognition Tool
setting file.
■Read
Read the exported setting file to Similar Waveform Recognition Tool.
1. Click [File] [Import Settings...] from the menu
of Similar Waveform Recognition Tool and read
1. Click!
the Similar Waveform Recognition Tool setting
file.
APPX
108 Appendix 1 Saving/Deleting/Reading a Setting File
Appendix 2 Additional Similar Waveform
Recognition Exercise 1
Using Similar Waveform Recognition Tool, change the detection sensitivity of the abnormal waveform detection from 1 to 6 to
see how the result of the similarity diagnosis changes.
Before configuring the setting, save the diagnosis flow created in Exercise 2 and delete it from Real-time Flow
Designer.
For how to save and delete a setting file, refer to the following.
Page 107 Saving/Deleting/Reading a Setting File
Operating procedure
1. Open the project for additional exercise of Similar Waveform Recognition "school_SimilarWave-2.gx3", and click the
[Select All] button to write the ladder program to the CPU module.
2. Read the data diagnosis flow setting file (SimilarWave_SettingFile.rfmcfg) to Real-time Flow Designer. ( Page 107
Managing the diagnosis flow setting of Real-time Flow Designer)
3. Copy the reference waveform learning data file (LearningData01.dspr) into the project folder
C:\SimilarWaveData\AnalyzeData\WaveformData.
4. Import the setting file of Similar Waveform Recognition Tool (SmilarWave_Tool_SettingFile_1.swrcfg). ( Page 108
Saving/reading the setting file of Similar Waveform Recognition Tool)
6. Execute the similar waveform recognition. ( Page 62 Similar waveform recognition execution)
7. Start GX LogViewer, turn "X100" of the ladder program to "ON", and check the waveform. ( Page 64 Diagnosis with
waveform monitor) A
8. Stop the diagnosis and set the detection sensitivity to 6 from "Operation Settings" of Similar Waveform Recognition Tool.
( Page 53 Operation setting)
9. 5.to 7. apply the procedure for checking the waveform.
Operation check
1. When the detection sensitivity is "1", the
abnormal waveform is not detected because
the similarity score does not fall below the
threshold of the similarity score "50.0" even if
an abnormality is generated.
APPX
Appendix 2 Additional Similar Waveform Recognition Exercise 1 109
Operation setting window
2. Change the detection sensitivity from "1" to "6"
in "Operation Settings" of Similar Waveform
Recognition Tool.
When the detection sensitivity is changed to
"6", the similarity score threshold is
automatically changed.
The similarity score threshold can be checked
in the "Similar Waveform Recognition
execution status detailed monitoring" window.
APPX
110 Appendix 2 Additional Similar Waveform Recognition Exercise 1
Appendix 3 Additional Exercise of SPC
Change the SPC rule from the setting in Exercise 2 to see how the diagnosis result changes.
Operating procedure
1. Start Real-time Statistic Diagnosis Tool and check that the data set in Exercise 2 is displayed.
2. Click the [Select equipment] button in Monitor and select the unit (Reader_UNIT C:\RSD\RSDDATA\UNIT) specified in
Reader. ( Page 88 SPC rule creation)
3. Select "CurrentValue" in "Select variable" of Analyzer and check that the data of Exercise 2 is displayed. ( Page 88
SPC rule creation)
4. Select [Simple analysis - diagnosis] [SPC] from the menu of Analyzer. ( Page 88 SPC rule creation)
5. Change the SPC rule to "Other than 4 sigma (1/1)" in Analyzer. ( Page 88 SPC rule creation)
Operation check
Check how the diagnosis result is changed by changing the SPC rule to "SPC((CurrentValue))Ave.SPC Other than 4 sigma
(1/1)".
Diagnosis result before the rule change (Other than 3 sigma)
1. Changing the SPC rule to
"SPC((CurrentValue))Ave.SPC Other than 4
sigma (1/1)" will increase the range diagnosed
as normal.
Therefore, the number of abnormalities will
decrease.
APPX
Appendix 3 Additional Exercise of SPC 111
Appendix 4 Read Data and Statistics of SPC
This section describes the read data and statistics displayed in Analyzer during analysis and diagnosis with SPC.
Read data
The CSV file data read by Reader is displayed as a waveform.
Waveforms of data from multiple sections can be overlapped or arranged horizontally to be displayed and analyzed.
When arranged horizontally, each section is shown as a single waveform and sections are not consecutive.
(1)
(2)
Item Description
(1) Vertical axis Automatically scaled according to the maximum and minimum values of the displayed waveform (section data).
(2) Horizontal axis Displays the date and time of the selected section.
When the [Overlay] button is selected, the elapsed time (second) from the start time of a single section is displayed.
APPX
112 Appendix 4 Read Data and Statistics of SPC
Read data statistics
From the CSV file data read by Reader, statistics for each variable are calculated in each section and displayed for the period
specified by "From" and "To".
The display value can be switched by clicking the [Max] button, [Ave] button, and [Min] button.
(1) (2) (3)
(4)
(5)
Item Description
(1) [Max] button Displays the maximum value of the waveform for each section.
(2)
(3)
[Ave] button
[Min] button
Displays the mean value of the waveform for each section.
Displays the minimum value of the waveform for each section.
A
(4) Vertical axis Automatically scaled according to the maximum and minimum values of the displayed waveform.
(5) Horizontal axis Displays the number of sections in the period specified by "From" and "To" (equal to the number of files read by Reader).
In this training, for the purpose of learning the procedure of analysis and diagnosis using SPC, the procedure
is described in Exercise 2 on the assumption that SPC is performed. In actual use, display the read data
statistics after displaying the read data to consider the optimum diagnosis method based on the analysis
result.
The read data statistics can be displayed with the following procedure.
[Disp] [Read data statistics] from the menu in Analyzer
APPX
Appendix 4 Read Data and Statistics of SPC 113
Appendix 5 Default SPC Rule
The default SPC rules are shown below.
When the condition is satisfied, data is judged as abnormal.
Calculate the following using statistics for the period specified by "From" and "To" of the selected variable.
• Center line: Mean value of all sections
• σ: Standard deviation
• Upper control limit: Maximum value
• Lower control limit: Minimum value
1σ
Center line
1σ
2σ
1σ
Center line
1σ
SPC rule established
2σ
3σ
Center line
3σ
4σ
Center line
4σ
APPX
114 Appendix 5 Default SPC Rule
• Other than 5 sigma (1/1): outside of +- 5 sigma (1/1)
Upper control limit
1 point is outside 5 sigma. SPC rule established
5σ
Center line
5σ
1σ
Center line
1σ
2σ
Center line
1σ
2σ A
Lower control limit
• Increase and decrease (6/6): increasing or decreasing (6/6)
Upper control limit
Consecutive 6 points increase or decrease. SPC rule established
2σ
1σ
Center line
1σ
2σ
SPC rule established
Lower control limit
Center line
1σ
2σ
APPX
Appendix 5 Default SPC Rule 115
• Continuous (9/9): plot on the same side (9/9)
Upper control limit
9 consecutive points are on one side of the center line.
2σ
1σ
Center line
SPC rule established
1σ
2σ
1σ
Center line
1σ
2σ
1σ
Center line
1σ
2σ
SPC rule established
Lower control limit
APPX
116 Appendix 5 Default SPC Rule
Appendix 6 MQTT Broker Setup
MQTT
MQTT is a Publish/Subscribe messaging predefined protocol.
MQTT classifies the sending side of the message into Publisher and receiving side of the message into Subscriber, and the
Broker relays the message.
The Publisher can send messages to the server without considering Subscribers, while the server is responsible for receiving,
managing, and properly publishing those messages to Subscribers.
Therefore, MQTT is suitable for data communication in a low-band network environment and a communication environment
with long waiting time.
The MQTT Broker whose operation has been confirmed by Edgecross Consortium is Eclipse Mosquitto.
Subscriber
(Receiving
side)
Publisher Subscriber
(Sending (Receiving
side) side)
Broker
(Processing server)
Subscriber
(Receiving
side)
Operating procedure
1. Install Visual Studio 2013 or Visual C++ 2015 redistributable package.
2. Create the Eclipse Mosquitto installation folder and obtain the installer.
3. Install OpenSSL.
4. Install Pthread.
5. Install Eclipse Mosquitto.
APPX
Appendix 6 MQTT Broker Setup 117
Installation of Visual C++ 2013 redistributable package
The following describes the installation procedure of Visual C++ 2013 redistributable package.
Operating procedure
1. Access the following and download "vcredist_x86.exe".
• www.microsoft.com/ja-jp/download/details.aspx?id=40784
2. Execute "vcredist_x86.exe".
3. If you agree to the license terms, select "I agree to the license terms and conditions" and click the [Install] button.
Operating procedure
1. Access the following and download "vcredist_x86.exe".
• www.microsoft.com/ja-jp/download/details.aspx?id=48145
2. Execute "vcredist_x86.exe".
3. If you agree to the license terms, select "I agree to the license terms and conditions" and click the [Install] button.
Creating the Eclipse Mosquitto installation folder and obtaining the installer
The following describes the procedure for creating the Eclipse Mosquitto installation folder and obtaining the installer.
Operating procedure
1. Create an installation folder (folder name: mosquitto) in the desired location.
Installing OpenSSL
The following describes the installation procedure of OpenSSL.
Operating procedure
1. Access the following and download the installer of OpenSSL.
• www.edgecross.org/en
4. Check the license agreement and select "I accept the agreement", and click the [Next>] button.
5. Select the installation destination folder, and click the [Next>] button.
6. Select the folder name to be added to the start menu, and click the [Next>] button.
7. Select "The OpenSSL binaries (/bin) directory", and click the [Next>] button.
APPX
118 Appendix 6 MQTT Broker Setup
Installing Pthread
The following describes the installation procedure of Pthread.
Operating procedure
1. Access the following and download Pthread.
• www.edgecross.org/en
Operating procedure
1. Execute the installer of Eclipse Mosquitto.
5. Select the folder created in the procedure for creating the Eclipse Mosquitto installation folder and obtaining the installer
as the installation destination folder, and click the [Install] button.
Operating procedure A
1. Click the control panel of Windows [System
and Security].
1. Click!
2. Select!
APPX
Appendix 6 MQTT Broker Setup 119
3. Double-click "Services".
3. Double-click!
4. Select!
5. Select!
6. Click!
APPX
120 Appendix 6 MQTT Broker Setup
Appendix 7 Contact Information
For Real-time Data Analyzer, please consult your local Mitsubishi representative.
APPX
Appendix 7 Contact Information 121
MEMO
APPX
122 Appendix 7 Contact Information SH(NA)-082343ENG-A
Mitsubishi Programmable Controllers Training Manual
Real-time Data Analyzer Basic Course
MODEL -
CODE
SH(NA)-082343ENG-A(2004)MEE
HEAD OFFICE: TOKYO BLDG., 2-7-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS: 1-14, YADA-MINAMI 5-CHOME, HIGASHI-KU, NAGOYA 461-8670, JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.