IMDHMIControls LibraryShop main store

Troubleshooting

Why Citect SCADA 2018 cannot read the Unity Pro V13 simulator

SCADA and data logging Published 8 min read

Short answer

Citect SCADA 2018 fails on the Unity Pro V13 simulator because the simulator serves exactly one path: TCP/IP Modbus on port 502, from the same PC, with %MW words exposed as holding registers. Configure the I/O device as a Modbus TCP device at 127.0.0.1:502, prove the port with a raw TCP test, align every field with the values a working 7.x project used, and confirm the register offset by writing 1111, 2222 and 3333 into %MW0 through %MW2.

On this page
  1. What the simulator accepts and rejects
  2. Prove the simulator is listening before opening Citect
  3. Align the Citect SCADA 2018 I/O device with the working project
  4. Offset test: matching Citect register numbers to %MW0 through %MW2
  5. Close the loop with a two-direction check
  6. Questions asked

Citect SCADA 2018 cannot read %MW words from the Unity Pro V13 simulator on 127.0.0.1 because the simulator exposes exactly one path: TCP/IP Modbus on port 502, from the same PC, with %MW words served as holding registers. A working OFS connection does not carry Citect with it — OFS and the Citect driver are separate clients with separate sessions, so the Citect I/O device has to use that path itself. Set the I/O device to a Modbus TCP protocol at the loopback address, prove the simulator is listening with a raw TCP test, align every I/O device field with the values a working Vijeo Citect 7.x project used on the same simulator, then prove the register offset by writing known values into %MW0 through %MW2. A final two-direction check closes it.

What the simulator accepts and rejects #

Schneider documents the simulator's communication limits in the Unity Pro manual on simulator limitations (document EIO0000001714), and the list defines the whole target:

  • Only TCP/IP-based communication is supported, on the standard Modbus TCP port. Every other transport returns a Modbus error.
  • Modbus serial, Modbus Plus and Uni-TE are not supported, so a serial Modbus or Uni-TE driver selection in Citect can never work here.
  • The simulator does not communicate with other PCs or other PLC simulators, remote or local, so the Citect runtime must sit on the same PC and address the loopback, 127.0.0.1.
  • The simulator has no communication timeout, so a dead or half-open session is never reported as failed.

These limits also locate the fault. OFS reaching the same simulator proves the PC, the project and the simulator are fine, but it is a different client on a different session path and says nothing about the fields in the Citect I/O device. Those fields line up with the checklist in what you must configure on the PLC side for Modbus TCP: protocol family, address, port, unit number, in that order.

Prove the simulator is listening before opening Citect #

Work on the PC that hosts the simulator, in this order:

  • Transfer the project to the simulator and set the emulated CPU to RUN. Reads against a stopped CPU return stale or zero data and make every later check ambiguous.
  • In PowerShell, run Test-NetConnection 127.0.0.1 -Port 502. Required result: TcpTestSucceeded : True.
  • Run netstat -ano | findstr :502 and look for a LISTENING entry, then match its PID in Task Manager to the simulator process to rule out another application holding the port.
  • If the TCP test fails, restart the simulator and run it again; if it still fails, review the Windows firewall rules that apply to the simulator executable, both for incoming loopback connections and for outgoing connections to the Modbus port.

Do not touch the Citect project until the TCP test succeeds. Everything after this point assumes the simulator answers.

Align the Citect SCADA 2018 I/O device with the working project #

The same PC ran Vijeo Citect 7.2, 7.4 and 7.5 directly against this Unity Pro V13 simulator, and the failures began with the Citect SCADA 2018 install. That comparison is reported, not measured in a lab, but it is decisive for the method: every prerequisite on the simulator side already works, so the only changed element is the Citect project, and configuration is what you compare. Work through it with OFS and every other client stopped — OFS and the Citect driver are two masters on one target, the same contention pattern as two SCADA servers writing to one PLC over Modbus TCP.

  • Open the I/O device definition in the failing 2018 project and in a working 7.x project, and record four fields in each: the protocol or driver selection, the address, the port and the unit or slave ID. The address must be 127.0.0.1, the port must resolve to 502, and the unit number has its own field, covered in setting the Modbus slave ID for a Citect I/O device.
  • The protocol must be a Modbus TCP style driver. A serial Modbus, Modbus Plus or Uni-TE selection draws a Modbus error from the simulator on every request.
  • Re-read every migrated tag address instead of trusting it. A tag carried over from 7.x does not automatically keep the same address meaning in 2018.
What the Citect diagnostics show What it means What to do
Device never goes online, nothing on the port in netstat Wrong protocol, address or port in the I/O device Correct the four fields against the 7.x values
Connection established, Modbus exception on reads Requested register outside the range the project declares Compare tag addresses with the %MW range declared in Unity Pro
Connected, values shifted by a fixed amount Address-base mismatch between driver and server Run the offset test in the next section
Device online, values frozen CPU not in RUN, or a session left over from a previous simulator instance Set RUN and restart the Citect runtime

The first row has its own failure mode: if the device never comes online and netstat shows no connection attempt, Citect may not be sending requests at all, which is the fault covered in why Citect sends no Modbus TCP requests to a PLC. The last row comes from the simulator itself: with no timeout on its side, the session Citect opened to the previous simulator instance never reports as failed, so restart the Citect runtime after every simulator stop, rebuild or transfer.

Offset test: matching Citect register numbers to %MW0 through %MW2 #

Unity Pro serves %MW words as Modbus holding registers; the function code carried in the request selects the register type, and code 3 is the one that reads holding registers, while discrete inputs and other classes follow their own mapping, as how digital inputs reach a Modbus TCP SCADA read describes. Other masters work the same register area the same way — the WinCC 7.0 walkthrough for Modbus TCP/IP holding registers shows the register-type and addressing choices spelled out for another SCADA. What differs between drivers is the address base: some count registers from 0 and some from 1, and a one-register shift reads a neighbouring word while everything on the wire looks healthy — the same address-base mismatch that makes Ignition Modbus TCP tags read a Click PLC wrong.

The test below works the case you are in: one failing driver, one uncertain address base, three words you control.

Inputs. Three distinct values in a Unity Pro animation table: %MW0 = 1111, %MW1 = 2222, %MW2 = 3333. These are example values; any three distinct numbers the running program does not overwrite serve the same purpose, and if the low words all belong to the program, build your test pattern from bits as setting specific bits in a Unity Pro memory word with function block diagrams describes. The other input is one Citect tag pointed at register 1, the address you guessed for %MW0 under a one-based convention.

Rule. Read the tag and see which word answered: 1111 identifies %MW0, 2222 identifies %MW1. The driver's offset d converts a %MW index into the register number Citect must request, and d = register tested - effective %MW index. Every tag address is then the %MW index plus d.

Arithmetic. The tag tested register 1 and the page returned 1111, which lives in %MW0, index 0. So d = 1 - 0 = 1 register. The rule predicts %MW2 sits at address 2 + d = 3, so a second tag at register 3 must read 3333.

Result. The tag at register 3 returns 3333, so d = 1 holds across the range: this driver addresses holding registers one-based, and register n reads the word at index n - 1.

Decision. If all three tags return their written values at consecutive register numbers, the mapping is proven: apply d to every address derived before the test (%MW index plus d), and leave alone any tag that already returned its own value — that case is d = 0, the zero-based base. If the reads throw Modbus exceptions instead of values, the register sits outside the memory the project declares; fix the range before chasing an offset.

Close the loop with a two-direction check #

  1. Start the simulator with the project transferred and the CPU in RUN.
  2. Re-run the raw TCP test from the listening section and confirm it still succeeds.
  3. Start the Citect SCADA 2018 runtime with OFS still stopped. The I/O device must show online, and netstat filtered for the port must show an ESTABLISHED connection belonging to the Citect process.
  4. Change %MW0 in the Unity Pro animation table and confirm the Citect page follows on its next update.
  5. Write a value from Citect into a word your logic does not act on — the same discipline as safe Modbus writes to PLC output registers from SCADA — and confirm the animation table shows it.
  6. When the same tags move to a physical CPU, the write direction of this test is the job covered by how MBP_MSTR writes holding registers from Unity Pro.

Both directions passing closes the check: the I/O device sits on the only path the simulator serves, and the register addresses are proven rather than assumed. Anything that still fails after a green result here is a different fault — go back to the diagnostics table above rather than the page values.

Questions asked

Why does the Unity Pro simulator show a message that its port is not secured?

Unity Pro has a security option for the simulator. When it is unchecked, the tool displays a message telling you the simulator's use of port 502 is not secured, which means any local process able to open TCP connections can talk to the emulated CPU. On an isolated test bench that is an accepted risk; on a PC that also sits on a plant network, leave the option checked or keep the simulator host segmented away from control traffic.

Can I run two Unity Pro simulator instances on one PC?

Not with the default connection properties, which allow one instance. The second start fails because it asks for the same communication port the first simulator already holds. Run one simulator per PC, or follow the vendor's documented multi-instance procedure, which keeps each additional instance on its own communication port set in its connection properties.

Which Modbus function code reads %MW words from the simulator?

Function code 3, read holding registers. In Modbus the function code carried in the request selects the register type: 3 reads holding registers, 2 reads discrete inputs across the 10001 to 19999 address range, and each other code addresses its own class. Unity Pro exposes %MW words as holding registers, so once the offset test has confirmed the driver's address base, a Citect tag reading %MW100 issues function code 3 against register address 100 or 101 depending on that base.

Does Citect SCADA 2018 need OFS to read the Unity Pro simulator?

No. OFS is one client and the Citect driver is another; OFS reaching the simulator proves the simulator serves Modbus TCP on port 502 but says nothing about the fields in the Citect I/O device. Direct reads are the normal arrangement: Vijeo Citect 7.2, 7.4 and 7.5 talked straight to this Unity Pro V13 simulator. Stop OFS while you test so the Citect driver is the only master, then align the two configurations field by field.

Keep reading

  • How-to

    Running Citect SCADA against a Machine Expert Basic simulation

    Yes, on one PC: convert the Twido program to an M221 target in EcoStruxure Machine Expert Basic, run its simulator, and point Citect at the endpoint the simulator exposes. The commissioning gate is the endpoint, protocol and driver match — Modbus TCP on port 502, loopback for a same-PC link — because a running simulation alone proves nothing about the link.

    SCADA and data logging

  • How-to

    Read Citect SCADA 2018 R2 tags from Ignition via OPC DA

    Citect SCADA 2018 R2 ships a built-in OPC DA server: enable it under the Topology activity in Citect Studio, connect Ignition's OPC DA module to it, and the Citect variable tags appear for browsing and import with no OFS, no CtAPI and no project rewrite. OPC UA exists only in later Citect releases. When Ignition and Citect run on different PCs, configure DCOM security for the account the Ignition service runs under.

    SCADA and data logging

  • How-to

    Migrating Modicon SCADA libraries to Plant SCADA 2023

    Yes — the Modicon General Purpose libraries for Citect SCADA 2018 reach Plant SCADA 2020 and 2023 by migrating the SGC include file, which their product design allows into any later version. No newer SCADA-side release exists, so migrate the include file with the project and prove each screen by tracing its values back through binding, tag, driver and controller address.

    SCADA and data logging