IMDTouchKnowledge BaseShop main store

How-to

Screenless PLC HMI Over VNC: Where the Server Lives

HMI and touchscreens Published 8 min read

Short answer

The HMI server lives in the controller, not on your computer. Build the screens in the engineering software, enable the controller's VNC server using the documented VNC Server Management settings, transfer the application, and point a VNC viewer such as TightVNC Viewer or RealVNC at the controller's IP address. A screenless model serves the same screens a panel would; the computer is only display, mouse and keyboard.

On this page
  1. Can a PLC without a built-in screen still run an HMI?
  2. What do you need before you start?
  3. How do you build the HMI screens for a screenless controller?
  4. How do you enable the controller's VNC server?
  5. Which IP address and port does the viewer use?
  6. How do you connect the VNC viewer and test the screens?
  7. How much network bandwidth does a VNC HMI session need?
  8. Why does the viewer connect but the HMI look wrong?
  9. Questions asked

A controller with no built-in display does not give up its HMI. The screens live in the controller's own project, the VNC server that serves them is part of the controller, and a viewer on your computer only draws what the controller sends and passes your clicks back. That moves the whole commissioning job into the engineering software and onto the network: there is no panel to configure. This article walks the setup in order — screens, server, transfer, viewer, first live test — and finishes with the checks that separate a connection fault from an application fault, so you always know which layer broke.

Can a PLC without a built-in screen still run an HMI? #

Yes. The controller hosts both the PLC program and the HMI project, and its built-in VNC server serves those screens to any standard viewer, so the computer on your desk is only a display and keyboard — there is no panel to buy or configure.

That surprises people because most troubleshooting material assumes the opposite failure: a panel that exists and has gone dark. Why a UniStream HMI shows a blank screen or a CPU error is that case, a display fault on hardware that is present. Yours is the reverse — a display that never existed — so none of that applies until you later hang a panel on the machine.

Keep the direction of the connection straight as well. Here the controller runs the server and your computer runs the client. When a panel has to show another machine's screen, the roles reverse and the panel runs a viewer object; using a VNC Viewer object on an HMI to display other panels covers that arrangement.

What do you need before you start? #

Four things: the HMI screens built in UniLogic for the exact controller in your project, the VNC server setting switched on, a network path from the computer to the controller, and a VNC viewer — TightVNC Viewer and RealVNC are both reported working.

Check versions early: multi-client support in the VNC server — several viewers attached to one controller, with smartphones named among the clients — arrived with UniLogic 1.26 rev90 and UniStream OS 1.26.91. If two operators need to watch at once, that is the release line to be on. The whole job then fits six steps:

  1. Confirm the project's hardware selection matches the physical controller.
  2. Build the HMI screens in UniLogic and clear every configuration and binding error.
  3. Switch the controller's VNC server on, following the VNC Server Management help topic.
  4. Transfer the application so the screens and the server setting actually run in the controller.
  5. Point the viewer at the controller's IP address and complete authentication.
  6. Prove the session with the test screen, a driven value and one bench-tested write.

How do you build the HMI screens for a screenless controller? #

Exactly as you would for a panel: create the screens in UniLogic under the project's hardware selection, because the viewer draws whatever that target's HMI can show — screen size, fonts and available objects all come from the selected controller, not from the PC.

Start with one deliberate test screen: a heading you can recognize from across the bench, and a single read-only indication bound to a value you can force. Confirm which screen the application opens first, because that is the first thing the session will show you. Build the application, resolve every reported error, and transfer it by the normal deployment procedure. Then check the running controller rather than the project on your PC: a reachable VNC server cannot draw a screen that was never downloaded.

How do you enable the controller's VNC server? #

In UniLogic, search the help for VNC and follow the VNC Server Management topic: that is where the controller's server is switched on, and where access and authentication are set. Screens alone enable nothing — the server setting is what accepts viewer connections.

Apply the topic exactly as written for your version, and if it calls for an application transfer or a restart to make the setting effective, finish that step before any viewer test. Afterward, verify the running controller, not the project file: a server enabled in an offline project proves nothing about the machine on the network. The authentication method you configure here is what the viewer will be asked for, so record it before you leave the bench.

Which IP address and port does the viewer use? #

The controller's own Ethernet address — the same one the documentation calls the panel IP address — and, unless the configuration says otherwise, TCP port 5900, the default VNC (RFB) port, so for example a controller at 192.168.1.50 is reached at 192.168.1.50:0.

With no physical panel there is no separate panel address to hunt for: the endpoint is the controller's Ethernet configuration. Read the active address from the controller's setup or from a working online engineering connection, and confirm the computer can route to it on the plant network. VNC speaks the RFB protocol, and its port numbering follows one rule: viewer port = 5900 + display number, so display :0 listens on 5900 and :1 on 5901. Unless the server configuration assigns a different display, 192.168.1.50 connects as 192.168.1.50:0, and any firewall between the hosts must pass the matching TCP port.

A successful ping or a connected engineering session does not prove the VNC service answers. Services are filtered independently, and a controller can be fully reachable while its server is still switched off. Never expose the VNC port to the public internet; reach a remote site through a managed VPN or an approved remote-access path, and set a server password before the first connection.

How do you connect the VNC viewer and test the screens? #

Install the viewer on the engineering computer, create a connection to the controller's address, enter the password the server expects, and judge success by the screen content: you should see the heading and layout you built, with a live value moving in the test indication.

TightVNC Viewer and RealVNC are both reported working with this server, so the choice is preference; the server's authentication configuration decides what any client must supply. Then run the connection deliberately:

  1. Install TightVNC Viewer or RealVNC on the engineering computer.
  2. Create a connection whose server is the controller's address, for example 192.168.1.50:0.
  3. Connect and complete the configured authentication.
  4. Compare the displayed heading and layout with the project's initial screen.
  5. Force the bound test value at the controller and watch the indication follow.
  6. Press one safe test button and confirm the write reaches the controller tag.

If the end goal is a standing second operator station beside the machine rather than a commissioning view, the same session serves it, and the controller's web server is the alternative route; adding a UniStream second operator station over VNC or a web server lays out that comparison. And when the viewer computer will stay at the line so operators touch it with gloves on, run the same viewer on an industrial panel PC instead of an office desktop — every other setting in this setup stays the same.

How much network bandwidth does a VNC HMI session need? #

Far less than video: VNC sends only the rectangles that change, so a typical session sits comfortably inside a switched 100 Mbps machine link. Size the worst case rather than the average — here is the arithmetic for a busy screen repaint.

Worked example, with illustrative inputs: take the worst instant as a full repaint of an 800 × 480-pixel HMI at 32-bit color, which is 4 bytes per pixel. One full frame is 800 × 480 × 4 = 1,536,000 bytes, about 1.5 MB. Five such repaints in one second is 1,536,000 × 5 = 7,680,000 bytes per second, and multiplying by 8 bits per byte gives 61,440,000 bits per second, about 61 Mbps. Real traffic sits well below that ceiling, because the server transmits only the changed areas rather than the whole frame whenever a few digits move.

The decision follows from those numbers. A switched 100 Mbps machine link carries even the ceiling; a 10 Mbps remote uplink does not, so keep remote sessions to text-and-indication screens and expect animation-heavy screens to crawl. Each attached viewer draws its own stream, so two clients roughly double the traffic.

Why does the viewer connect but the HMI look wrong? #

Split the fault by layer: if no session opens, the problem is address, firewall or the server setting; if a session opens but content is wrong, the problem is in the transferred application or the tag binding — VNC carries pictures and input, never tag data of its own.

What you see Layer to inspect Deciding check
Connection timeout Network and server Confirm the address, a transferred configuration with the server enabled, and any firewall between the hosts.
Authentication rejected Server access settings Match the viewer's password and security method to the VNC Server Management configuration.
Wrong screen or layout Application identity Confirm the transfer reached the intended controller and the intended screen opens first.
Session fine, one value wrong Tag binding Watch the bound variable online in UniLogic; if the controller value moves and the display does not, fix the object's binding or its formatting.
Picture black, input works Session rendering That is a rendering fault, not a connection fault; follow why an HMI VNC session shows a black screen while input works.

One distinction saves the most time: the VNC layer never moves tag data. Every value in the session was read from the controller by the HMI application itself, so a wrong number is always an application or binding question, never a reason to touch the viewer or the network.

Questions asked

Does the viewing computer need the engineering software installed?

No. UniLogic stays on the engineering PC; the viewer only draws what the controller sends and returns mouse and keyboard events. You cannot edit screens or adjust the project from the session — edits need the engineering software and another transfer to the controller.

Can two people watch the same controller's HMI at once?

Yes — UniLogic 1.26 rev90 with UniStream OS 1.26.91 added multi-client support to the VNC server, and the release notes name smartphones among the example clients. On earlier builds, plan on one viewer at a time and close your session before another operator connects.

The engineering software connects but the viewer times out — what differs?

The engineering tool and the viewer use different services, so a working engineering connection proves reachability but not that the VNC server answers. Confirm the transferred configuration actually switched the server on, and check that any firewall between the two hosts permits the viewer's port.

Can I commission operator button writes straight on the running machine?

Do the first write tests on an isolated bench with verified test tags, then repeat them at the machine. A session button writes the same tag a physical panel button would, so a mis-bound object can start or stop real equipment the moment a viewer connects.

Keep reading

  • Troubleshooting

    Why WinCC Start and Stop buttons do not control an S7-300 output

    The Start and Stop buttons do nothing because E0.0 and E0.1 are S7-300 input image addresses: the CPU refreshes them from the input modules every scan, so an HMI write cannot survive. Step 7 simulation changes the simulated input state itself, which is why the LED follows it. Move the two commands to memory bits such as M0.0 and M0.1, latch them in the PLC, and let the program drive A4.0.

    HMI and touchscreens

  • How-to

    Connecting One HMI to Two PLCs With Independent Modes

    Yes. Configure one HMI device connection per PLC and bind each tag to its own controller; inside each PLC, run master-mode program A on bit M0 and slave-mode program B on bit M1, kept mutually exclusive. Set communication supervision per connection so the separated panel raises no alarm, and the HMI controls both PLCs whenever the panels are joined.

    HMI and touchscreens

  • How-to

    Where to save C-more panel IP settings in the project

    The C-more project does store the panel's IP address and subnet mask: enter them under Setup > Touch Panel Network > Ethernet Port and save the project. That entry is a record, not a lock — the panel's System menu can still change the live values — and it is separate from the PLC destinations, so a controller address change still means editing each affected project and re-transferring it to every panel.

    HMI and touchscreens