日本語 English

ECAT diagnostic and statistical information with Metabase

Overview

EtherCAT is an industrial Ethernet standard for connecting industrial equipment such as PLCs and servo amplifiers at high speed.
This article explains how to collect EtherCAT diagnostic information and statistical data and visualize it with Metabase, an open source BI tool.

Flow until display in Metabase

  1. Getting Metabase
  2. Starting Metabase
  3. Preparing Metabase
  4. Look at the automatically created dashboard
  5. Create a dashboard

Getting Metabase

Check Java

Metabase runs on Java
Check whether Java is installed on the PC by checking the java version at the command prompt

c:\> java -version

java version command


If Java is not installed, install OpenJDK or Oracle JDK

Downloading Metabase

Download Metabase from the following site (the download starts when you click the link)
https://www.metabase.com/start/oss/jar


Move the downloaded file (metabase.jar) to a suitable folder
Here a folder named "metabase" is created on the C drive and the file is moved there

Starting Metabase

To run Metabase, execute the following at the command prompt

c:\metabase> java -jar metabase.jar

Metabase start command


Text scrolls by while it starts up, but

Metabase Initialization COMPLETE

once this is displayed, startup is complete
Leave the command prompt open; do not close it
(closing it also stops Metabase) metabase complete

Preparing Metabase

Running Metabase

Start a browser and enter 127.0.0.1:3000 in the address bar Browser address bar


"127.0.0.1" is called the loopback address, a special IP address that refers to your own machine (localhost:3000 also works)
The 3000 after the : (colon) is the port number; Metabase uses port 3000


When you first connect to Metabase, the following screen appears; start the setup from [Let's get started]
Metabase top screen

Setup items

  1. Language
  2. Account

    Create an account for connecting to Metabase
    Creating an account

  3. Add the DB to connect to (SQL Server is selected here)

    Add database screen


    DB connection settings


    Description of input fields
    ItemDescription
    Display nameAny name
    HostSpecify the IP address of the database
    For your own machine, specify its IP address, '127.0.0.1' or 'localhost'
    PortSpecify the port of the database to connect to (SQL Server defaults to 1433)
    Database nameName of the database to connect to (the database containing the tables created in "EtherCAT diagnostics and statistics with BI tools")
    UsernameUsername for connecting to the database
    PasswordPassword for connecting to the database
  4. Data usage preferences

First screen

First screen

Look at the Automatically Created Dashboard

SlaveStat table

RecDT is at the top left, so it seems you can set the aggregation range
Summary shows the number of records and the number of records added in the last 30 days
Automatically created dashboard 1


This shows the number of records for each column value
Clicking a graph aggregates it in more detail
Automatically created dashboard 2


This graphs value changes with date/time on the X axis
Clicking the title lets you change the aggregation from days to hours, minutes and so on
Automatically created dashboard 3

MasterStat table

MasterStat table1


MasterStat table2


MasterStat table3

FAQ

What environment is needed to run Metabase?

Metabase runs on Java, so a Java environment must be installed beforehand.

What is the initial URL for Metabase?

Open 127.0.0.1:3000 or localhost:3000 in a browser.

How do I visualize EtherCAT data with Metabase?

Connect to the database where the EtherCAT diagnostic data is stored, and visualize it with the automatically generated dashboard or your own dashboards.

Create a Dashboard

Try creating a dashboard for ECAT diagnostic and statistical information

Comments