WEINTEK HMI Data Sampling
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:
Step 2
Click “New” to set up a new Data Sampling Object:
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.
Step 4
Click “Data Format”.
Step 5
Click “New…”
- Choose the Data type. In our example, we are using LW registers as 16-bit Unsigned. Click “OK”.
Step 6
Repeat this 3 times (remember, we are sampling 3 addresses – LW0-LW2). Click “Exit”
The Data Sampling Object list should now have the Data Sampling Object created on it. Click “Exit”.
Step 7
On the Data Sampling Object Window, we should see the Data length as “3 Word(s)”.
Step 8
To place a trend graph on the screen, click on “Trend Display” under the Data/History tab.
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:
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.
Example Program
An example project is available to download here. You will need at least version 6.01.02.123 to open this file.
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:
- From the menu, select [Data/History] and click [Data Sampling].
- 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
![]() |
WEINTEK HMI Data Sampling [pdf] User Manual V6.10.01, HMI Data Sampling, HMI, Data Sampling, Sampling |