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
- Getting Metabase
- Starting Metabase
- Preparing Metabase
- Look at the automatically created dashboard
- 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

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

Text scrolls by while it starts up, but
once this is displayed, startup is complete
Leave the command prompt open; do not close it
(closing it also stops Metabase)
Preparing Metabase
Running Metabase
Start a browser and enter 127.0.0.1:3000 in the 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]
Setup items
- Language
- Account
Create an account for connecting to Metabase
- Add the DB to connect to (SQL Server is selected here)


Description of input fields Item Description Display name Any name Host Specify the IP address of the database
For your own machine, specify its IP address, '127.0.0.1' or 'localhost'Port Specify the port of the database to connect to (SQL Server defaults to 1433) Database name Name of the database to connect to (the database containing the tables created in "EtherCAT diagnostics and statistics with BI tools") Username Username for connecting to the database Password Password for connecting to the database - Data usage preferences
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
This shows the number of records for each column value
Clicking a graph aggregates it in more detail
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
MasterStat table



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
