phone
info@lasma.eu
News

How to synchronize Weintek HMI data with MySQL database?

July 6, 2023
Products Images Contacts

Our deeply cherished life existence and growth is based on data and its processing. This statement has been relevant in every decade of human development. It is self-evidently ingrained in everyone's everyday life. When you take off your sunglasses and dig in, you're met with a surprising sight. Data is everywhere, from the prices of goods in a store to the behavior of people on the World Wide Web. The question arises, where is this huge amount of information stored? Now even the coffee machine has an internet connection. Along with kitchen appliances, there are machines that generate huge amounts of data, especially in the industrial sector. Therefore, we will show you how to easily synchronize data with a MySQL database.

All data must be stored somewhere so that users can easily access it at any hour of the day or night. This is where databases plug into our equation. As you can guess from the term, they are data stores. Databases are organized and structured collections of data that can be accessed electronically. They are used to store huge amounts of data. In addition to data storage from several systems, they support additional functionality - data analysis and management. Data analysis further allows to understand the situation more effectively and make better decisions, which in turn is reflected in business growth, upward competitiveness and product quality.   

What is a MySQL database?

One of the most widely used data management systems is the MySQL database. MySQL is an open-source system available for free. It saw the first sunlight in 1995. Since then, the number of MySQL users has grown rapidly. It is currently measured in hundreds of millions of users worldwide  

The MySQL system has gained popularity because of its ease of use. At the same time, open-source can be modified for the specific needs of the user. The wide range of supported platforms makes a big difference. On macOS, Windows, Linux, UniX and Solaris, MySQL will run without problems.

How data is exchanged with the MySQL database?

Synchronizing the factory PLC and I/O system data with the database will also be a lot easier if you use a Weintek HMI panel. Weintek cMT-X Advanced series panels already have a built-in function that allows you to synchronize data with a MySQL database in just a few minutes.  

How to synchronize Weintek HMI data with MySQL database?

In order to synchronize Weintek HMI or Human Machine Interface data with MySQL database, we have compiled five steps to follow

  1. Create a MySQL database: Create a new database that will store the Weintek HMI data. You will need the database name, username and password to connect to the database from the HMI device.

  2. Create a table: It is necessary to create a data table in the database where the Weintek HMI data will be stored. Define its structure to match the data you want to store.

  3. Connect from Weintek HMI to MySQLL: For this purpose, use the EasyBuilder Pro software that comes with the Weintek HMI device. Using this software, you can configure the connection settings by specifying the database name, username, password and other necessary parameters

  4. Configure the data what should be saved: In the Weintek HMI program, set which data to save and send to the MySQL database. Create HMI screens and define which values to store and how to send them to the database. You can use the EasyBuilder Pro software to configure these parameters and create the corresponding actions.

  5. Synchronize your data: Once the connection and configuration is done, the HMI device automatically sends data to the MySQL database according to your settings. The data will be stored in the database table you created earlier.

Please note that the Weintek HMI configuration may vary slightly depending on the Weintek model you choose and the version of EasyBuilder Pro you use. It is recommended to read the Weintek HMI device and EasyBuilder Pro software documentation for more detailed information on the specific steps and settings. To facilitate the synchronization of Weintek HMI data with MySQL database, we have created a video.

In this video you will see:

  • Operations on the MySQL Workbench side
  • Operations on the Weintek HMI panel side
  • Data synchronization check

Weintek HMI and MySQL database application:

  • For data storage and backup
  • For data analysis and processing
  • For convenient data transfer

Main advantages of Weintek HMI and MySQL: 

  • MySQL support is built into Weintek, which makes it easy to connect.
  • Multiplatform support - MySQL runs on Windows, Linux, Unix, Solaris, macOS.
  • Weintek supports the SLQ Query function, which allows you to create SQL queries right on the HMI panel itself

Other articles and videos on Weintek HMI features:

  1. How to create a MODBUS server with cMT-SVR??
  2. How to create OPC UA server with HMI panel?
  3. 6 most convenient methods to exchange data with Weintek HMI panel

 

Products
Contact the manager
Pēteris Žerbiņš
Pēteris Žerbiņš
PLC / HMI / Interface Specialist
+371 2860 3305
peteris.z@lasma.eu
Images