TechTip: Using GETBIT in a Macro on Weintek HMI

Occasionally, you may need to read a bit or bits from a PLC or controller register if they are not directly accessible via the driver being used – an example of this could be a PLC status word where each bit represents the status of various PLC conditions, for example, “Battery Status” or “CPU Error” etc. Or it may be that you want to replicate some PLC logic that is otherwise inaccessible. The GETBIT macro instruction is very useful in these circumstances, enabling you to retrieve an individual bit and use that in conjunction with further logic such as an Continue reading TechTip: Using GETBIT in a Macro on Weintek HMI

TechTip: How to program Weintek HMI via Ethernet

This guide will show you how to connect a Weintek HMI to a PC via ethernet; to do this, we’ll be making sure that both screen and PC/laptop network adaptor are on the same subnet as each other.  Note: The illustrations in this Guide are based on an iE Series HMI. Other Series HMIs may appear a little different. For HMIs with dual ethernet, the IP addresses of the ports MUST be on different subnets.  Weintek System Settings1. On the Weintek HMI, tap the black arrow bottom right  2. To check if there is an IP address already set on the HMI, tap the Information button to show the settings for the device. In this case, we Continue reading TechTip: How to program Weintek HMI via Ethernet

TechTip: Window Change on Auto-Logout Weintek HMI

This TechTip is about automatically changing the HMI window when logout, or Auto logout occurs. This could be useful if you want to ensure that if a user with elevated privileges leaves the HMI without logging out then the HMI will return to a normal operating or information window. Auto logout enabled is set in the System tab of System Parameters Setting in EasyBuilder Pro. To achieve window change on logout or Auto logout, we’ll use a macro to check the value of LW 9222 – this is the system register holding the value of operable security classes. If a Continue reading TechTip: Window Change on Auto-Logout Weintek HMI

TechTip: Calculating The Difference Between Two Values Using a Macro In a Weintek HMI

This TechTip is about using a macro for a simple calculation to determine the difference between 2 values. To calculate the difference between 2 values, first we use the “>=” operator to determine if value1 is greater than or equal to value2, if this is the case, our result is calculated value1 – value2. If value2 is greater than value1 then our result calculation is value2 – value1. The macro is shown below: As usual there’s a demo project available for you to try out using EasyBuilder Pro’s excellent simulator. Download the demo here.

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: 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