TechTip: Bit Sequencing Using a Macro on Weintek HMI

In this TechTip, we’ll build on something we’ve looked at previously, and that’s For-Next loops. In this example what we’re looking to do is sequence 8 bits in the HMI (LB-10-17) with a time delay – an application of this might be if you’re looking to perform several bit-triggered data transfers. First off we’ll declare the variables… macro_command main() // Declare variables bool bit // bit is a boolean (bool) short loop // loop value – short (16bit) short time=500 // time – short (16bit) = 500mS Then we’ll do our loop – in this case, 10-17… for loop=10 to Continue reading TechTip: Bit Sequencing Using a Macro on Weintek HMI

Lamonde 35 Prize Winners Announced

2017 marked 35 years of Lamonde Automation. To celebrate this milestone we ran a competition and we’re delighted to announce the winners as follows: First Prize: iPad – Jordan Berry of Brightwell Dispensers Second Prize: Amazon Echo – Alexander Strokosch of Direct Automation Systems Second Prize: Amazon Echo – Robert Bent of Smart Systems Third Prize: Set of VDE Screwdrivers – Peter Wheale of Frostechnic Third Prize: Set of VDE Screwdrivers – Alasdair Barclay of Datacapture Third Prize: Set of VDE Screwdrivers – Gilbert Louzado of Mailing Technology Third Prize: Set of VDE Screwdrivers – Willie Cartwright of ElecTech Third Continue reading Lamonde 35 Prize Winners Announced

New Discrete and Analogue Modules Added To The Productivity 1000 Series

10 new modules have been added to the popular Productivity 1000 Series. These are as follows: P1-08NE3 – 8pt 24V VAC/VDC input module, 2 isolated commons P1-08NA – 8pt 120-240VAC input module, 2 isolated commons P1-08TA – 8pt 120-240VAC output module. 0.5A/pt, 2 isolated commons P1-16ND3 – 16pt 24VDC sink/source input module, 2 isolated commons P1-16NE3 – 16pt 24VCD/VAC input module, 2 isolated commons P1-15TD1 – 15pt 24VDC sinking output, 1A/pt P1-15TD2 – 15pt 24VDC sourcing output, 1A/pt P1-04RTD – 4ch RTD input, 16bit resolution P1-4ADL2DAL-1 – 4ch 0-20mA input/2ch 0-20mA output P1-4ADL2DAL-2 – 4ch 0-10v input/2ch 0-10v output

TechTip: Using StringCat in a Macro on Weintek HMI

This TechTip is about using “StringCat” in a Weintek HMI macro. You may already be familiar with using CONCAT in Microsoft Excel to link different text strings together to form a new string, this is what StringCat does. In this example, we’ll be looking at a scenario where a number needs to be joined to a 4 character ASCII string. For example “number “+ “text” = “outputstring”. i.e. 1234+ABCD = 1234ABCD First off, we’ll declare the variables, we have “number” (which we’ll get from an HMI LW register LW0), “text” which we’ll get from LW2 (2 words – 4 characters) and the result will Continue reading TechTip: Using StringCat in a Macro on Weintek HMI

TechTip: For-Next Loop in Weintek HMI Macro

In this TechTip, we’ll be looking at For-Next loops in the Weintek HMI macro language. It will be assumed that you’ve already got some basic knowledge of Weintek macros. As in other macro TechTips we’ll start off by declaring some variables: macro_command main() // Declare variables bool Lamp // Lamp is a bit (bool) short i // i is the loop variable short millisecs // the time for delay in mS short loop //number of loops set using LW1 We’ll use GetData to get the values for DELAY from LW0 and for the number of loops from LW1 (we could Continue reading TechTip: For-Next Loop in Weintek HMI Macro

TechTip: Simple Macros in Weintek HMI

Weintek HMI have a very powerful macro language enabling scripts to be written to implement control, perform calculations and much more. For those new to macros it can be quite daunting to get started. The example shown in this TechTip Article are designed as a “leg-up” to get you started with macros. Step 1 The Macro button is on the project tab within EasyBuilder Pro: Step 2 We need to create a macro by clicking “New…” Step 3 Let’s break down what you need to know to get started with writing a macro. First off we need to declare variables. Continue reading TechTip: Simple Macros in Weintek HMI

TechTip: 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 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 Continue reading TechTip: Weintek HMI Data Sampling

TechTip: Importing Haiwell PLC tags into a Weintek HMI Project

From Version V6.01.02.146 of EasyBuilder Pro, Component Comments from Haiwell PLCs can be imported into Weintek HMI projects. Component comments are added to the Haiwell program elements by adding // after the address, for example, X0//Start Button, X1//Stop Button etc. Steps 1./ Create your Haiwell PLC program – use Component comments for those elements that you want to use in the HMI – it’s not a bad idea to comment every element in a program for future reference. 2./ Export the component comments from HaiwellHappy programming software: 3./ Select “Component comment table”: 4./ Select a filename for your Component comment/tag export: 5./ Continue reading TechTip: Importing Haiwell PLC tags into a Weintek HMI Project