TechTip: Using the Shape Library with Weintek HMI

A frequently asked question we receive is “How do I create a multi-state lamp – for example to use with a Word Lamp?” This TechTip will hopefully make the process of creating a multi-state shape object clearer. Start a blank EasyBuilder Pro Project and locate the rectangle shape tool… Set properties for our shape outline… (note that “Filled” is un-ticked at the moment). Draw the outline frame on the design window… Copy and past the outline frame and make a solid filled shape by ticking “Filled” and setting appropriate colours… Select the Outline frame… Click on “Shape”… … which will Continue reading TechTip: Using the Shape Library with Weintek HMI

TechTip: Using Weintek HMI to Print a label on a Zebra Printer using Free Protocol

In this TechTip we’ll be looking at printing a label to a Zebra printer by sending the ZPL string to the com port or Ethernet port on the HMI. Zebra printers are increasingly popular in production and packaging and are highly configurable and able to print barcodes, QR codes, Data matrix codes etc. (for reference, the printer used in this demo was a Zebra GK420t.) This isn’t intended to be a lesson in the ZPL language, but we will run through the label string used for our demo: The code we’ll use for this label is below: We can preview Continue reading TechTip: Using Weintek HMI to Print a label on a Zebra Printer using Free Protocol

TechTip: Using Languages On Weintek HMI

This TechTip is about using languages on Weintek HMI. Languages are controlled by a local word, LW9134. YouTube video of a demo project: Setting LW 9134 to 0 selects “Language 1“, setting to 1 selects “Language 2“, and so on. As usual, we’ve included a basic example program using the language setting. We’ll break down some of the key elements in our demo program so you can follow it. We’re using four languages in our demo, these are English, French, German and Italian. To select these, we’ll set LW 9134 to 0, 1, 2, or 3 respectively. The demo is Continue reading TechTip: Using Languages On Weintek HMI

TechTip: Using a Macro On a Weintek HMI to Generate a QR Code For The History Upload Address

Introduction This TechTip is about using a Macro to generate a QR code to scan with a phone to access via FTP* the HMI to upload history files etc from it. As usual, we’ll break it down so you can see what we’re doing here. *It’s worth noting that some browsers do not support parsing passwords etc in the address. As of today, Mozilla Firefox works ok. Using with Mozilla Firefox Macro The required string is in the following format: “ftp://uploadhis:[email protected]/“ Declare variables The first part, “ftp://uploadhis:” is fixed, so we’ll declare that in our macro: Next is the ftp Continue reading TechTip: Using a Macro On a Weintek HMI to Generate a QR Code For The History Upload Address

TechTip: Weintek EasyAccess 2.0

This TechTip is about setting up EasyAccess 2.0. We’ll step through the stages to regisiter a Domain Account, how to add EasyAccess 2.0 to your HMI and how to use PassThrough to access your PLC or controller. Create a Domain account EasyAccess 2.0 requires a Domain account, the default administrator user is “admin”. Other users can be added to the Domain later, and can be managed through the EasyAccess web portal. To create a Domain account, click here: https://account.ihmi.net/domain/index.php and click on “Create Domain Account”. Enter the details you want to use for your Domain After clicking “Register”, you’re taken Continue reading TechTip: Weintek EasyAccess 2.0

TechTip: Embedding Variables In a Weintek HMI Alarm/Event Log

Often, when wanting a notification about a process, it is just that, a notification. A simple email reporting a few process values at a given point in time. In a previous TechTip, we covered sending alarm emails from the Weintek HMI. We can adapt the same approach to send a reporting email too. As usual, I will step through building up a simple example project. First off, we need to set up the email details. Full details are in the alarm emails TechTip mentioned, previously: Next, we need to setup an Alarm/Event log: For this example, we’re going to trigger Continue reading TechTip: Embedding Variables In a Weintek HMI Alarm/Event Log

TechTip: Using StringLength In a Weintek HMI

This TechTip is about using StringLength in a Weintek HMI. An example application for this might be where you want to return a string to generate a batch code where you may gather data from various sources – different devices for example. Previously on a TechTip, we covered using StringCat, where StringLength is useful is where your strings vary in length. By measuring the length of the string, we can use it to create an offset when we concatenate using StringCat. Let’s break down what we’re doing here: Declare variables for the source LW data and declare the OutputString: char Continue reading TechTip: Using StringLength In a Weintek HMI

TechTip: Recipes On Weintek HMI

This tech tip is about the recipe function on Weintek HMI, a frequently asked question. As usual, we’ll work through the steps for a basic example to get you started. As with most of our TechTips, this can be achieved without any hardware, making use of the excellent simulator feature in EasyBuilder Pro. A recipe, is a set of parameters that is used to produce a product or run a particular process. These could be times, temperatures, operation counts, volume or weight of material etc. The example program is for a bread making process. The parameters for our bread recipe Continue reading TechTip: Recipes On Weintek HMI

TechTip: SQL Query With Weintek cMT Series HMI

In addition to being able to syncronise datalogs and alarm/event logs to a MySQL or MS SQL database, you can now read, update, delete and append databases using the SQL query object. Steps1. Create your database on your MySQL or MS SQL database server. I have called mine “database” and created a table on it called “plcdata“. idplcdata is the primary key and data is the column for the data I want to record. 2. Setup Database Server in EasyBuilder Pro project. I am running MySQL locally on my PC for testing, so IP address is set to local – Continue reading TechTip: SQL Query With Weintek cMT Series HMI