How-to
Run two HMIs with separate processes on one PLC
Short answer
A VNC viewer repeats the main panel's running session, so two viewers still operate one screen. Run the second panel as its own HMI application, connect it to the same controller over a supported driver, and map the second weighing process to its own controller data while shared permissives and interlocks stay in the controller program.

On this page
- Why two VNC viewers cannot give you two stations
- Decide what each station owns
- Run the second panel as its own HMI application
- Map the second process inside the controller
- Worked example: one analog input and five digital points on the second panel
- Test the separation before handover
- If the new panel cannot run its own application
- Questions asked
Two VNC viewers will not get you there. A viewer attached to an operator panel sees and drives the panel's single running session, so two stations would be two hands on one screen and the controller would never see a second command path. The fix is architectural, not a setting: run the second panel as its own HMI application, connect it to the same B5 controller over a supported driver, and bind it to its own block of controller data for the new weighing process. The steps below cover what each station must own, how to set the second application up, how the controller separates the data, and the bench tests that prove the two stations act independently.
Why two VNC viewers cannot give you two stations #
VNC, and the remote-display services some HMI runtimes expose for exactly this purpose, all serve the same thing: pictures of the host's running session. The host panel executes the application; every viewer draws that session, and every click or keypress from any viewer is injected into that same session. The controller keeps receiving exactly one set of commands, from the one runtime, no matter how many viewers are attached, and two operators can even press the same button at the same moment.
That is why the proposed arrangement mirrors the main HMI: the second screen is not a second operator station, it is a second window on the first one. The same session model explains related faults such as why an HMI VNC session shows a black screen while input still works.
Separation needs two independently running applications, each with its own link to the controller. Nothing configured in a viewer changes that.
Decide what each station owns #
Write the split down before opening the software. For each station, list:
- Page navigation: opening the weighing screens on one panel must not change what the other operator sees.
- Measurements and status: each panel displays its own process's analog value and its own digital states, never a shared measurement.
- Commands and setpoints: a button on one panel acts only on that panel's process.
- Deliberate shared items: anything both processes must obey, such as a common drive permissive or a shared interlock, exists once in the controller and both processes read it. Mark these on purpose; do not let them appear by accident because a screen was copied.
The last bullet is where copied projects go wrong. When a screen is duplicated for the second process, every object keeps the first process's bindings until it is re-addressed, and a plausible-looking screen can show the wrong weight while communications look healthy.
Run the second panel as its own HMI application #
The architecture decision is the same on every platform: either the second panel executes its own application against the controller, or it mirrors a session and adds nothing. A guide on two ways to add a second panel to a CODESYS HMI PLC shows both options on that platform; here the answer is the first option, and these steps carry it out:
- Read the full model designation off the controller and both panels, from the labels or each unit's system-information screen. Confirm the new panel is an independently programmable Unitronics HMI that runs its own application, not a display-only terminal.
- In the controller's programming software, where the existing panel's screens are configured, create a separate application for the second panel, targeted at that panel's model.
- Configure that application's controller driver to address the same controller, and give each panel its own station address on the shared network so neither device answers for the other.
- Connect the second panel to the controller's serial or Ethernet port. If the port is serial and already carries the first panel, follow the multidrop practice in multiple HMIs on one PLC over a 200 ft serial run: station addressing, biasing and stub length all decide whether two panels coexist on one RS-485 line.
- Bind the second application's objects only to the second process's data created in the next section, and review every copied object; none keeps an inherited binding.
- Download the second application to the new panel and leave the first panel's project untouched.
Before downloading anything, read the controller documentation for the exact B5 model on three points: which drivers a second panel's application may use, how many panels or clients the controller serves at once, and how station addresses are set on the shared port. If the documented count is one panel, the second screen needs its own runtime on separate hardware rather than a driver setting.
Map the second process inside the controller #
Two screens do not create two processes; the controller program does. In the same program that runs the first process:
- Map the second weighing transmitter to a spare analog input channel and the new digital signals to spare digital points, and check the installed I/O against the count the process needs.
- Create the second process's own raw input value, scaled measurement, status bits and command bits, in a block the first process's logic never touches.
- Scale the analog channel from the transmitter's range to weighing units in the input channel's configuration, and verify the scaling against a known test weight rather than against the old screen's behavior.
- Branch the logic per process: the first process's rungs read the first process's command bits, the second process's rungs read the second's, and both read the shared permissive word.
- Keep command validation in the controller: an HMI button requests an action, and the controller logic decides whether the process may act on it. A greyed-out button or a hidden screen is operator convenience, not an interlock.
One safety note, and it belongs here: no screen on either panel is a layer protecting a person. Machine safety functions stay in the controller or in safety-rated hardware; both panels only request actions the controller judges.
Worked example: one analog input and five digital points on the second panel #
Inputs:
- Process size as described: one analog input, the weighing signal, and about five digital points for states and alarms.
- Stations and controller: two operator panels, one B5 controller.
- Example data allocation: four words for the process plus one shared word, placed for example in rows 100 through 104 of the controller's integer data table; use whatever free rows your controller offers.
Rule: each independently operated process owns a raw input, a scaled measurement, a status word and a command word, and anything both processes must obey exists once and is read by both. Physical points follow the signal list directly: one channel per analog signal, one point per digital signal, with the digital states packed as bits into one status word.
Arithmetic:
- Physical points: 1 analog channel + 5 digital points = 6 physical points.
- Data words: 1 raw + 1 scaled + 1 status (5 states as bits) + 1 command = 4 process words, and 4 + 1 shared = 5 words in all.
Result: six spare physical points and five free integer words cover the second process.
Decision: if the controller shows at least one spare analog channel, five spare digital points and five free data words, the existing controller runs the second panel unchanged. If any count comes up short — the usual shortfall is digital points — add expansion I/O or free the rows before wiring the second screen, because a second screen bound to the first process's words would not share the load; it would fight the original HMI for the same start bit.
Test the separation before handover #
Prove independence on the bench with the controller's online values visible next to both panels:
- Change pages on the second panel and confirm the first panel's display does not change.
- Vary the second process's analog input and watch three things at once: the second screen follows, the first screen does not move, and the controller's second-process measurement matches a meter or a known test weight.
- Press each writable button on the second panel and confirm the controller's second-process command bit alone changes; the first process's command bits stay put.
- Disconnect the second panel mid-run and watch what the controller does with a command that was in flight; design the logic so nothing fires until someone presses the button again after reconnection, with commands passed through handshake bits the screen must re-trigger.
- Compare each screen's displayed value with the controller's online value for the same word before enabling writes; a binding fault can show a plausible number while communications look perfect.
If the new panel cannot run its own application #
If the model check shows a display-only terminal, or the documentation limits the controller to one panel, no configuration turns that screen into an operator station. The honest fallback is to put the second HMI application on hardware that runs its own runtime and its own driver session against the same controller: an industrial panel PC built for panel mounting does exactly that. What does not work is pointing two viewers at one session and calling the result independent; the controller will keep obeying one screen, and the two operators will keep reaching for the same buttons.
Questions asked
Can two VNC viewers ever give two independent operator stations?
No. A VNC viewer attaches to the panel's running session, so both viewers share one screen and either viewer's input acts on that session. Independence requires two separately running HMI applications, each with its own connection to the controller. Some visualization platforms offer a true multi-session runtime; the ordinary VNC service on an operator panel is not that.
Can I still use VNC to watch the main panel?
Yes, as a supervisor display. A viewer over VNC watches the main panel's session, which is fine for observation, but its clicks land in that same session, so treat every viewer as able to operate the machine. Keep the mirror on a screen nobody leans on, and keep both operating stations on the panels running their own applications.
Where should the setpoints for each process live?
Store each process's setpoints in the controller data block that process owns, and let each panel write and display its own words. A value that lives only inside one screen's application exists only while that application runs, and two screens holding their own copies of one shared value drift apart. Shared conditions, such as a common permissive, are stored once and read by both processes.
Do the two panels need separate communication ports on the controller?
Usually one port is enough. A controller serves both panels through the same serial or Ethernet port when its driver supports multiple stations or simultaneous connections; the requirement is distinct identity, meaning a separate station address or IP address for each panel. Two panels answering as the same station on one line corrupt both links, so set the addresses before either panel connects.


