IMDTouchKnowledge BaseShop main store

How-to

Using LabVIEW as an HMI Front End for a PLC Boiler Project

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

LabVIEW can serve as the display and command layer of a boiler HMI once you verify a licensed path to the PLC: an OPC server with a driver for your exact controller, or a documented PLC-side protocol over TCP. Keep every permissive, interlock and protection function in the PLC, and have the HMI show acceptance or rejection of each command.

On this page
  1. Step 1: Verify what your LabVIEW installation is licensed to do
  2. Step 2: Choose and prove one communication path
  3. Step 3: Check tag identity, scaling and freshness
  4. Worked example: converting raw counts to boiler water temperature
  5. Step 4: Keep permissives and interlocks in the PLC
  6. Step 5: Handle command requests, acks and lost links
  7. The decision
  8. Questions asked

Yes, LabVIEW can be the HMI for a boiler automation project, provided the installed software has a licensed, documented communication path to your PLC: an OPC server with a driver for that exact controller, or a documented PLC-side protocol carried over TCP. Sending raw bytes at an Ethernet port is not a communication path. The front panel displays process values and issues operator requests; the boiler protection logic stays in the PLC. The steps below take you from installed components to a proven operator interface.

Step 1: Verify what your LabVIEW installation is licensed to do #

Start by reading the installed edition and its licensed components. Access to a development seat does not automatically include industrial drivers, OPC client capability, or deployment rights on other machines. The Touch Panel Module is a deployment target for a specific touch-display hardware family, not a prerequisite for a desktop front panel; if your HMI runs on a PC, you build and run it like any desktop VI.

Write down two decisions before you open LabVIEW:

  1. The execution target: a laboratory or control-room PC, or a separate panel device with supported deployment tools.
  2. The test boundary: simulation, an isolated laboratory PLC, or a live boiler. Develop command handling against simulation or the lab PLC only. A live boiler requires an approved control and protection design that is independent of your student project.

If the needed component is missing, resolve it through the university's software administrator or the vendor's authorized licensing channels. A missing license is not a communication fault and cannot be worked around in screen design.

Step 2: Choose and prove one communication path #

Ethernet connectivity alone proves nothing about application compatibility. You have two workable architectures:

  • OPC server plus LabVIEW client. An OPC server exposes controller data to your application, but it still needs a driver and configuration for your exact PLC. The LabVIEW DSC module provides the OPC client capability that reads and writes server items; from LabVIEW 2013 to 2016 the DSC module also includes an API for OPC UA data exchange. Match the server interface and the client interface by name and version, not by the word OPC.
  • Direct TCP to a documented PLC-side protocol or socket service. TCP transports an ordered byte stream and nothing more: no addresses, no data types, no message boundaries. You must implement the protocol's request format, response format, connection behavior and error handling before any process write. Sending arbitrary numeric values to an Ethernet address does not write PLC variables.

If neither path exists for your controller, select an authorized driver or gateway that does support it. For a comparison of which side of an OPC link should act as server versus client, the article on HMI OPC UA server and client roles walks through the direction rules that apply here as well.

Prove the path with one read-only item before you draw a single pump or valve: configure a single test variable, confirm it updates, then scale up.

Step 3: Check tag identity, scaling and freshness #

A tag name does not establish its data type, units or write permission. For your first live variable:

  1. Compare the PLC value with the value received in LabVIEW at the same observation time. A mismatch points at the address, data type, byte interpretation or server mapping.
  2. Convert raw values to engineering units once, in one place. Do not apply the same conversion independently in several layers of the program.
  3. Force a deliberate change at the controller and confirm the front panel follows it within your configured acquisition behavior. A frozen display points at polling, subscription or session problems rather than at the value mapping.
  4. Track data quality. Where the interface supplies no quality indicator, record the success of each acquisition and the age of the last valid response, and show a stale-data indication when updates stop. A plausible number can be old; the stale threshold comes from your process requirements and polling rate, not from a universal interval.

Worked example: converting raw counts to boiler water temperature #

This illustrative example uses an example analog input and example scaling; read the actual ranges from your controller configuration.

Inputs:

  • Raw value: 12480 counts, a signed 16-bit integer read from the PLC through the verified path (example value).
  • Scale: 0.01 degrees Celsius per count, configured in the measurement range (example value).
  • Offset: −50.0 degrees Celsius, the value at zero counts (example value).

The rule in words: engineering value equals raw value multiplied by scale, plus offset, applied once in one layer of the program.

Arithmetic:

  1. 12480 counts × 0.01 °C per count = 124.80 °C
  2. 124.80 °C − 50.0 °C = 74.80 °C

Result: the front panel displays 74.80 °C for that raw reading. The decision this drives: display the converted value with its unit, and verify it against the controller's own scaled value at the same instant. If the two differ, the error is in the address, the data type, the byte order or the range configuration — fix it there, never by adjusting the display to make the numbers agree.

Step 4: Keep permissives and interlocks in the PLC #

A permissive is a condition that must be satisfied before an operation is allowed; an interlock inhibits or stops an operation when its defined condition occurs. For a boiler, the HMI must never own combustion safeguards, protective shutdowns or required reset conditions. A successful communication write proves only that data reached an interface — it does not prove the controller accepted a safe operating request.

Put the decision logic in the controller and give the front panel a feedback role. The article on interlocks, trips and permissives defines the three action types, and the guide on configuring PLC permissives and interlocks clearly shows how to structure that logic where it belongs, in the controller program.

Before adding writable controls, read the PLC command interface and define how each request is consumed, so a held button, a retried message or a reconnect cannot repeatedly trigger an operation. For each HMI element, assign responsibility and feedback:

  • Start or stop request: the PLC evaluates operating state and permissives; the HMI shows the actual state plus acceptance or rejection.
  • Setpoint entry: the PLC validates range and operating constraints; the HMI shows the setpoint read back from the controller.
  • Alarm acknowledgement: the PLC maintains fault and reset logic; acknowledgement state is separate from fault clearance.
  • Communication loss: the approved design decides controller behavior; the HMI shows current state without replaying an old request.

Treat a write that times out as an unknown outcome until controller feedback resolves it, and stop presenting last values as live when updates stop.

The decision #

Commit to this architecture: LabVIEW front panel on the PC, DSC-based OPC client to a configured server with a driver for your PLC, or a fully implemented documented protocol over TCP; every protection decision in the controller; stale-data and command-acknowledgement indications on every screen. Prove one read-only item, then one converted value, then one commanded action on the lab PLC before the panel goes anywhere near a live boiler.

Questions asked

Do I need the LabVIEW Touch Panel Module for a desktop boiler HMI?

No. The Touch Panel Module targets a specific NI touch-panel display hardware family and is only needed when you deploy the front panel to one of those devices. A front panel running on a laboratory or control-room PC uses the ordinary desktop build and needs no touch-panel deployment step. Check your installed edition and licensed modules before choosing either target.

Can I open a TCP socket to the PLC's Ethernet port and write values directly?

No. TCP only delivers an ordered byte stream; it carries no PLC addresses, data types or message boundaries. Writing raw numbers at an Ethernet port does not write controller variables. Use a documented PLC application protocol or socket service and implement its request format, framing and responses, or go through an OPC server with a driver for your exact PLC.

What happens if the LabVIEW HMI loses communication with the boiler PLC?

The front panel must stop presenting the last values as live. Show a communication fault or stale-data flag when updates stop, and age-stamp the last valid response. A written command that times out is an unknown outcome until controller feedback resolves it, so the PLC, not the HMI, owns what happens on link loss and recovery.

Keep reading

  • How-to

    Collecting Serial PLC Data Through Weintek Remote HMI Panels

    Yes. Keep each MT8051iP or MT8071iP on its serial PLC, add every panel by IP in the cMT EasyBuilder Pro project as a remote HMI with a remote PLC behind it, read the Omron or Modbus addresses in their native notation, and expose those tags through the cMT OPC UA server to the MES. Debug the four hops outward from the machine.

    HMI and touchscreens

  • Explainer

    HMI OPC UA Server vs Client: Which Direction Works

    OPC UA support on an HMI spec sheet almost always means the panel runs a server that serves its tags to external clients. Reading PLC symbols by name needs an OPC UA client driver, a separate capability you verify in the driver list for your exact software release, target and license.

    HMI and touchscreens

  • How-to

    Connecting Operator Terminal Expert to a Third-Party PLC

    Operator Terminal Expert connects to a third-party PLC through a protocol both ends document — typically Modbus TCP or RTU, or OPC UA with the HMI as client and the PLC as server. Select the driver for your exact terminal target, match the driver's address notation to the PLC's register references, and prove one read and one controlled write on the deployed terminal before mapping the rest.

    HMI and touchscreens

Activating a WebIQ Designer trial license for project conversion