IMDHMIControls LibraryShop main store

Comparison

Two ways to add a second panel to a CODESYS HMI PLC

Industrial networks Published 8 min read

Short answer

Share the primary panel's interface with a VNC Viewer object when both operators must see one screen move together; load a separate project that talks CODESYS V3 (Ethernet) to the integrated PLC when each operator navigates independently. One test decides: if a screen change on one panel must appear on the other, use VNC.

On this page
  1. What are the two ways to connect a second panel?
  2. Should a screen change on one panel appear on the other?
  3. Can the second panel reach the primary panel over Ethernet?
  4. How do you set up the VNC Viewer connection?
  5. How do you point a second project at the integrated CODESYS PLC?
  6. How do you prove which behavior you commissioned?
  7. What happens when both panels write the same PLC variable?
  8. Questions asked

You can attach a second panel to a cMT panel that runs an integrated CODESYS PLC in two ways: a VNC Viewer object that shares the primary panel's interface session, or a separate HMI project whose PLC device uses the CODESYS V3 (Ethernet) driver against the runtime at the primary panel's IP address. Both paths end at the same address but at different services, and one question separates them: must a screen change on one panel appear on the other? If it must, share the session; if each operator navigates independently, run the second project.

What are the two ways to connect a second panel? #

You have two documented paths: put a VNC Viewer object in a project on the second panel and connect it to the primary panel's IP address, or load a separate project whose PLC device uses the CODESYS V3 (Ethernet) driver pointed at that same address.

The primary panel is doing two jobs at once: rendering the operator interface and executing the CODESYS runtime. The way those jobs divide is covered in how an HMI and a PLC divide the work. The two connection options differ in what crosses the wire and in which service on the primary panel answers:

VNC Viewer on the second panel Separate project on the second panel
What crosses the network The primary panel's displayed interface and operator input Process-data reads and writes for a locally rendered interface
Service that answers The primary panel's VNC service The CODESYS PLC integrated in the primary panel
Destination address Primary panel's IP address Primary panel's IP address
Screen change on one panel Appears on both panels Appears on that panel only
PLC driver in the second project None; the viewer object is the mechanism CODESYS V3 (Ethernet)
Operator privacy None; both act on one interface Private navigation; shared PLC variables stay common

Neither option adds a controller. In both columns the CODESYS PLC is the one running on the primary panel, so the health of that panel is the health of the control system.

Should a screen change on one panel appear on the other? #

Yes for a shared operating position, and that yes is the whole case for VNC: when both operators must watch one interface move together, use the VNC Viewer; when an operator must change screens without disturbing the other panel, load a separate project.

Under VNC there is one interface session. The second panel is a window onto it with its own touch input: whoever acts, acts on the same screen, and each operator sees what the other does, with no privacy between them. That is exactly right for an oversight or repeater seat and exactly wrong for a second operating station.

With a separate project there are two sessions against one controller. Each panel keeps its own navigation, so one operator's screen changes are invisible to the other, but the process data underneath is shared, so privacy stops at the screen. Writing the same setpoint from both panels is still writing one variable.

The decision: choose the VNC Viewer when the requirement reads "see and operate the same visualization"; choose the separate project when the requirement reads "operate in parallel, each on its own screens".

Can the second panel reach the primary panel over Ethernet? #

It can when both panels hold unique addresses on the same subnet, or a working route between subnets; every configuration step after this depends on that path to the primary panel's IP address, so test it before touching either project.

Worked example with illustrative addresses, which are example inputs rather than defaults from any panel:

  • Primary panel: 192.168.1.10 with mask 255.255.255.0. Network = 192.168.1.10 AND 255.255.255.0 = 192.168.1.0.
  • Second panel: 192.168.1.11 with the same mask. Network = 192.168.1.11 AND 255.255.255.0 = 192.168.1.0.
  • The networks are equal, so the panels deliver frames to each other directly and no gateway sits in the path.
  • Move the second panel to 192.168.2.11 with the same mask and its network becomes 192.168.2.11 AND 255.255.255.0 = 192.168.2.0, which is not 192.168.1.0. Both panels then send to their gateways, and they talk only if that route exists.

When you control the addressing, put both panels on one subnet and routing leaves the commissioning entirely. Then check the physical and service layers:

  • Give each panel its own address; a project copied from the first panel can carry the first panel's address with it, and a duplicate IP breaks both.
  • Verify cable, link indication, and the switch ports serving both panels.
  • Use the panel's network diagnostics to test reachability to the primary address before changing application settings.
  • Read the VNC service port and the connection timeout from the primary panel's configuration; a reachable address with a blocked port still fails.

A successful reachability test proves an IP path, not that the VNC service or the CODESYS communication service accepts a connection. That proof comes next.

How do you set up the VNC Viewer connection? #

Build a small project on the second panel that contains a VNC Viewer object, set that object's target to the primary panel's IP address with the VNC service's port and access settings, then download it and open the viewer.

  1. Confirm the second panel and its project environment support a VNC Viewer object.
  2. Check the primary panel's VNC service and its access settings, and note the port and credentials it uses.
  3. Create the project on the second panel and place a VNC Viewer object on the screen.
  4. Point the object at the primary panel's IP address and match the service settings.
  5. Download the project and open the viewer.
  6. Change screens on one panel and confirm both panels change together.

No PLC driver is involved on this path; the CODESYS V3 (Ethernet) driver belongs to the other option. If the address answers a reachability test but the viewer will not connect, the fault is in the service, the credentials, the port, or network filtering, not in the IP path. If the viewer connects but operation feels wrong, check the viewer's input settings against the shared-session behavior you intended.

How do you point a second project at the integrated CODESYS PLC? #

Copy the HMI project to the second panel, then in EasyBuilder Pro open System Parameters → Device / PLC, add a device with the CODESYS V3 (Ethernet) driver, and set its IP address to the primary panel's address.

  1. Load the same HMI project on the second panel, converting or adapting it where the engineering tool requires it for the target display.
  2. In System Parameters → Device / PLC, add a device, select the CODESYS V3 (Ethernet) driver, and set the IP address to the primary panel.
  3. In Tag Manager, use Get tag → Import Tag and select the .xml tag file generated by the PLC software, so both projects address the same variables.
  4. Check which objects use the new device; a copied object can still point at a local or previous device.
  5. Download, then watch a value that is changing in the controller before you test any write.

The connection guide documents one data-type limit for this driver: version 03.02 or later supports 64-bit data types, and only on cMT and cMT-X series panels. Check the driver before building screens on 64-bit tags.

Copied graphics do not prove communication. An object can display a local value or hold its last value while the connection is down, which looks like a working screen; a changing controller value is the honest proof. A duplicated project also duplicates background work, so assign recurring duties to one client, the discipline behind deciding which HMI client must own the daily print job.

How do you prove which behavior you commissioned? #

Run one acceptance test: with both panels connected, change screens on the second panel and watch the first, because under VNC both screens change together, while with separate projects only the second panel moves and both still track the same live PLC value.

If both panels track the value but the screens sit in different places, you have separate projects behaving correctly. If the screens move together, you have a shared session. Then make one small write from the second panel and confirm it at the controller, not only on the screen; if it never arrives, trace an HMI command that never reaches the PLC output from the object down. Do the write test with the machine in a state where an unexpected command has no process consequence, which is the one safety rule of this commissioning.

What happens when both panels write the same PLC variable? #

Both writes reach the controller, and within one scan the later one is the value your program acts on, so command ownership and permissions belong in the PLC program, not in the choice of panel connection.

Independent navigation is not independent control. Two start commands from two panels are two writes to one variable, and the program acts on the state that is present when it scans. Give one station command authority, or gate both stations with per-station enables and interlocks in the PLC, before two people operate one machine.

The committed choices: a shared oversight seat that must mirror the primary interface gets the VNC Viewer pointed at the primary panel's IP address; a second operating station with its own screens gets a copied project on the CODESYS V3 (Ethernet) driver at that same address. In both cases, put the panels on one subnet, let one client own the background jobs, and let the PLC program arbitrate every command.

Questions asked

Does the CODESYS PLC keep running if the second panel or the VNC connection goes down?

Yes. The runtime executes on the primary panel, so losing the viewer or the second station only removes that display and its input; control continues. The reverse also holds: the integrated runtime depends on the primary panel's hardware, so a primary panel fault stops the controller no matter how many clients are attached.

Can the second panel program the CODESYS application on the primary panel?

No. A second HMI project is a data client: it reads and writes the variables the application exposes. Engineering access is separate. cMT and cMT-X series panels have a documented CODESYS login setting that must be enabled before you can log into the runtime, and application changes come from the PLC engineering software.

What happens if both operators press start at the same time?

Both commands arrive as writes to the same variable, and the program acts on the state present when it scans; ordering between two panels is not guaranteed. Resolve ownership in the PLC program with the per-station enables and interlock approach described in this article, before two people operate one machine.

Do 64-bit PLC variables work over the CODESYS V3 (Ethernet) connection?

Only under the documented condition: driver 03.02 or later, and cMT or cMT-X series panels. Check the driver in the Device / PLC settings before building screens on 64-bit tags, because a panel outside that set shows connection or data errors on those tags rather than a clear configuration fault.

Keep reading

  • Troubleshooting

    Connecting Factory I/O to a local CODESYS soft PLC over OPC UA

    Yes: OPC UA only carries tag values, so the ladder or structured text must run in the CODESYS runtime. Fix the connection in order: prove the engineering path through the Gateway to the runtime first, then the OPC UA endpoint at port 4840, then map each scene point to one variable. Keep Control I/O out of it, because Factory I/O runs one driver at a time.

    Industrial networks

  • Selection guide

    Connecting ControlLogix to RS232 and RS485 serial devices

    Convert the RS232 devices to RS485 at the electrical layer, then pick one master for the whole pair: 1734 ASCII modules for fixed-length or delimited frames, an in-chassis Modbus RTU module for a pure Modbus bus, or an EtherNet/IP-to-serial gateway with a protocol builder when variable-length checksummed frames share the wire with Modbus RTU. One master serializes every transaction behind the 3.5-character silent gap, 3.65 ms at 9600 baud.

    Industrial networks

  • Troubleshooting

    How to reach a PLC-5/30 DH+ network from a PC HMI driver

    Pick the physical route before the driver. A PLC-5/30 has no Ethernet port, so the working options are DF1 over the channel 0 serial port with SerialDF1forPLC5Com, or a 1756-DHRIO bridge in an Ethernet-reachable ControlLogix chassis with EthernetIPtoDHRIOforPLC5Com1. Serial at 19200 baud carries a typical screen load in well under a second when tags are read as blocks, so measure before you buy the bridge.

    Industrial networks