WEINTEK HMI Data Sampling User Manual

WEINTEK-logo

WEINTEK HMI Data Sampling

WEINTEK-HMI-Data-Sampling-product

We’re often being asked “How do I data sample with a Weintek HMI?”, so below is a simple step-by-step example along with a sample project that you can run on the EasyBuilder Pro simulator to test. In our example program, we are sampling 3 LW registers (LW are Weintek HMI Local Words) starting from LW0 through to LW2.

Step-by-Step Instruction

Step 1

Click on “Data Sampling” in the Data/History Tab in EasyBuilder Pro:WEINTEK-HMI-Data-Sampling-fig-1

Step 2
Click “New” to set up a new Data Sampling Object:WEINTEK-HMI-Data-Sampling-fig-2

Step 3
You can name your Data Sampling Object using the “Comment” field. For this example, we are using Time-based sampling, every second. For many applications, Trigger-Based is appropriate where an action such as a PLC bit being set, or an HMI button being pressed records the data at that moment. The read address is the start address for our Data Sampling – we are using LW0 as our start address.WEINTEK-HMI-Data-Sampling-fig-3

Step 4
Click “Data Format”.WEINTEK-HMI-Data-Sampling-fig-4

Step 5
Click “New…”WEINTEK-HMI-Data-Sampling-fig-5

  • Choose the Data type. In our example, we are using LW registers as 16-bit Unsigned. Click “OK”.

WEINTEK-HMI-Data-Sampling-fig-6

Step 6
Repeat this 3 times (remember, we are sampling 3 addresses – LW0-LW2). Click “Exit”WEINTEK-HMI-Data-Sampling-fig-7

The Data Sampling Object list should now have the Data Sampling Object created on it. Click “Exit”.WEINTEK-HMI-Data-Sampling-fig-8

Step 7
On the Data Sampling Object Window, we should see the Data length as “3 Word(s)”.WEINTEK-HMI-Data-Sampling-fig-9

Step 8
To place a trend graph on the screen, click on “Trend Display” under the Data/History tab.WEINTEK-HMI-Data-Sampling-fig-10

Select the Data Sampling Object to use. If there is more than one, they will be available on the drop-down list. For this example, we are using Time to scale the X axis:WEINTEK-HMI-Data-Sampling-fig-11

In the “Channel” tab, we can select which data samples are displayed and set the scale (min-max), assign a pen colour and width,In the example program, the value of the LW registers is 0-100, so our minimum is 0 and our maximum is 100.

WEINTEK-HMI-Data-Sampling-fig-15WEINTEK-HMI-Data-Sampling-fig-12WEINTEK-HMI-Data-Sampling-fig-13

Example Program
An example project is available to download here. You will need at least version 6.01.02.123 to open this file.WEINTEK-HMI-Data-Sampling-fig-14

Specifications

  • Product: Data Sampling
  • Software Version: EasyBuilder Pro V6.10.01

Product Usage Instructions

Overview
After defining how the data is sampled, by sampling time, address, or data length, the sampled data can be saved to the designated location, such as HMI memory, SD card, or USB disk. Trend Display and History Data Display objects can be used to display sampling records.

Data Sampling Management
Create a new Data Sampling object first by following these steps:

  1. From the menu, select [Data/History] and click [Data Sampling].
  2. Click [New] to finish relevant settings.

Creating a New Data Sampling:
The following introduces how to set a new Data Sampling for eMT, iE, XE, mTV, and iP Series.

Data Record (Real-time)
In Real-time Mode, when [Auto. stop] is not selected, the maximum number of data records that can be saved on HMI is 86400. When the number of records exceeds 86400, the earliest data will be deleted. Data of different formats in consecutive registers can be sampled.

Customized file handling
Refer to section 8.3.2 Customized File Handling for detailed information on file management.

FAQs

Q: Where are the data records saved when running simulation on PC?
A: All data sampling will be saved to the datalog folder in C: EBPro[Storage Location]datalog when running the simulation on PC.

Q: How can I prevent storage space from running out when using Data Sampling?
A: You can set preservation limits for files and customize file handling to manage storage space efficiently. Refer to the user manual for detailed instructions.

Q: What is the shortest interval between two successful executions when using LB-9034?
A: The shortest interval between two successful executions when using LB-9034 is 2 seconds.

Documents / Resources

PDF thumbnailHMI Data Sampling
User Manual · V6.10.01, HMI Data Sampling, HMI, Data Sampling, Sampling

References

Questions and answers

Helpful product questions tied to this manual. Each item links to the full Q&A page.

Questions & Answers

Use this section to ask about setup, compatibility, troubleshooting, or anything missing from this manual.

  1. porque no se puede hacer una tabla de datos en la pantalla weintek cmt2166x ?

    🇨🇴 John Pinzon asks porque no se puede hacer una tabla de datos en la pantalla weintek cmt2166x ?
    Manuals+ clarified question
    Question

    Why can't I create a data table on the Weintek cMT2166x screen?

    Answer

    To display a data table on a Weintek cMT2166x, you must first configure a Data Sampling object and then use a History Data Display object to show that data in a table format. If you are having trouble, check the following common requirements for the cMT series:

    • Data Sampling Configuration: Go to the menu [Data/History] > [Data Sampling] and click [New] to define the addresses you want to record.
    • Display Object: Ensure you have placed a History Data Display object on your screen. This object is specifically designed to show sampled records in a table format.
    • Storage Location: Verify that the storage location (HMI memory, SD card, or USB disk) is correctly set and has enough space. For cMT series, data can be saved to HMI memory until full or synchronized to a database.
    • Error Codes: If you are trying to sync to a database and it fails, check the Error Address (LW-n+2 or LW-n+4). Common errors include "Failed to create table" (Error 7) or "Failed to write table" (Error 8), which often indicate permission issues or incorrect database naming.
    • Contiguous Addresses: If you are using a tag-based PLC driver, remember that only one-dimensional arrays are supported for contiguous address settings.

    If the table simply does not appear, ensure that the History Data Display object is linked to the correct Data Sampling ID you created.

Ask a Question

Ask about setup, compatibility, troubleshooting, or anything missing from this manual. Name and email are optional.