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 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: Using Modbus driver in Infilink

New in Inflink V5.00.45 is a built-in Modbus driver, making Infilink a smart choice for SCADA, enabling many projects to be delivered without the need for expensive OPC servers. This TechTip is a run through to get you started. We’re using a Koyo DirectLogic 06 PLC fitted with an H0-ECOM100 Ethernet module as our Modbus device. Launch the Modbus driver: Add a Channel… Give the channel a name – we’ll stick with the default – “TCP_Channel_1”, click “Next”. Set the IP address of your device, in our example, the IP address of our H0-ECOM100 in the 06 PLC is 192.168.16.251… Continue reading TechTip: Using Modbus driver in Infilink

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

TechTip: Ramp Up and Down a Value Using a Macro On Weintek HMI

This TechTip is about using For/Next loops to ramp up and down a value on a Weintek HMI. The macro is using local word LW 100 as the output, the time in mS between steps is set by “time” (LW 101),┬áthe value to increment/decrement by is variable “IncDecValue” (LW 102) and the number of iterations is “steps” (LW 103). The Macro: macro_command main() short value = 0 // “value” is a short (16bit) – this has been zeroed – just in case! short IncDecValue // change the increment/decrement value here short i // i is a short to be used Continue reading TechTip: Ramp Up and Down a Value Using a Macro On Weintek HMI