OPC UA client
An OPC UA client connector reads and writes variables of OPC UA servers: PLCs with a built-in server (Siemens S7-1500, Beckhoff, B&R, CODESYS controllers), gateways (KEPServerEX, Ignition) and SCADA systems. One connector can talk to several servers; each server gets one session.

| Field | Meaning | Default |
|---|---|---|
| Name | How tags refer to this server, e.g. line1 | server1 |
| Server type | Standalone: one server. Redundant: a primary and a secondary server (see below) | Standalone |
| Endpoint URL | The server's address, opc.tcp://host:port/path (the primary when redundant). Discover fills it in | opc.tcp://192.168.0.10:4840 |
| Secondary endpoint URL | Redundant only: the backup server | |
| Return to the primary | Redundant only: When it answers goes back once the primary is up again; No, stay stays on the secondary until it fails | When it answers |
| Check the primary every (s) | Redundant only: how often the primary is checked while the secondary is in use (5 to 3600) | 60 |
| Security mode | No security, Sign, or Sign & encrypt | No security |
| Security policy | With Sign or Sign & encrypt: Auto (the strongest the server offers), Basic256Sha256, Aes256_Sha256_RsaPss, Aes128_Sha256_RsaOaep; Basic256 and Basic128Rsa15 are deprecated | Auto |
| Sign in | Anonymous, or User and password (the password is stored encrypted and shown as ********) | Anonymous |
| Server certificate | Accept: trust the server's certificate as it is (closed networks); Trusted only: only certificates in WiConnector's trusted folder | Accept |
| Read mode | Subscribe: the server reports changes at the poll group's rate (OPC UA monitored items). Poll: WiConnector reads every tag at the rate | Subscribe |
| Timeout (ms) | Per request | 5000 |
| Session timeout (ms) | How long the server keeps the session if WiConnector stops answering | 60000 |
| Browse from | A node id where Browse starts, for very large servers; empty for the Objects folder | |
| Browse limit | Browse stops after this many nodes | 20000 |
| Fill history gaps | From the server's history: after a lost connection or a WiConnector restart, read the missing period back from the server (see below). Off: leave the gap | From the server's history |
| Longest gap to fill (hours) | A longer gap is filled only for its last hours (1 to 720) | 24 |
Redundant servers (primary and secondary)
For a redundant pair of OPC UA servers (two SCADA servers, a redundant gateway, two PLCs serving the same data), set Server type to Redundant and enter both endpoint URLs. Both use the same security, sign-in and certificate settings, and the tags keep their addresses: the two servers must offer the same node ids.

- WiConnector starts with the primary. When it stops answering, or reports ServiceLevel 0 (the OPC UA way a redundant server says it cannot serve data now), WiConnector switches to the secondary at once. The tags keep their last values during the switch instead of turning bad; they turn bad only when neither server answers, and WiConnector then tries the primary first again after the reconnect delay.
- While on the secondary, it checks the primary every Check the primary every seconds and goes back to it once it answers (unless Return to the primary is No, stay).
- History gaps of the switch are filled from the server's history as after any reconnection (Fill history gaps).
- Every switch is written to the Logs (Connector.name): "connected to the secondary server …", "lost the primary server …", "the primary server … answers again; going back to it". Browse uses the secondary when the primary does not answer.
Finding the server: Discover
Press Discover beside the endpoint URL. WiConnector asks the address (a server, or a Local Discovery Server, usually on port 4840, which lists all the servers of a computer) for its servers and lists each one's endpoints: URL, security mode and policy, the sign-in types it accepts and when its certificate expires. Press Use on one to fill in the URL, security mode and policy (and Anonymous or User, whichever it accepts). If the server reports a host name WiConnector cannot reach, the endpoints keep the host you typed.

Certificates
Signed and encrypted connections need both sides to trust each other.
- The server's certificate: with Accept, WiConnector trusts it. With Trusted only, the first connection is
refused and the certificate is saved in
data/opcua/pki/rejected/certs; move it todata/opcua/pki/trusted/certsand the next attempt connects. - WiConnector's certificate: created on first use in
data/opcua/pki/own. Many servers refuse an unknown client until you trust it: use Download WiConnector certificate (under the server list) and import it in the server's trusted clients (for example TIA Portal: CPU properties → OPC UA → Server → Security → Trusted clients; KEPServerEX: OPC UA Configuration Manager → Trusted Clients), or accept it in the server's rejected list. - The certificate has a 2048-bit key, which current servers require. Installs from before 2026-11-30 had a 1024-bit certificate: it is replaced automatically on the next start, so servers that trusted the old one must trust the new one (download it again and import it). Servers with 1024-bit certificates are still accepted.
Adding tags from a server
Open a tag group and press Add from server (Add from device when there are Siemens PLCs too). Pick the
server and the poll group; the server's address space appears as a tree of folders, objects and variables, with
each variable's OPC UA type and the tag type it gets (Float → Float32). A structured variable, such as a UDT or DTL
on an S7-1500, opens like an object and lists its members (its properties, such as EURange, are left out). Tick
variables or whole objects, structures or folders and press Add. In a single tag's properties, Browse beside the address picks one variable.

With Keep structures as templates, each object with two or more ticked variables (for example Motor1) becomes
a group bound to a template made from it, one template per kind of object (named after its OPC UA type, such as
Motor for MotorType, or after the object). The group's Object node is the object's node id, which {base}
becomes in the template's addresses: {base}.Speed when the server's node ids are strings that follow the tree
(ns=2;s=Line1.Motor1.Speed), or {base}/2:Speed (by browse name) when they are numbers. See
Templates.
When a server goes away, its tags turn Bad with CommFailure, and WiConnector reconnects after the reconnect
delay (longer after repeated failures). A node the server does not have makes only that tag Bad (BadNodeIdUnknown,
or BadNoMatch for a browse path).
Filling history gaps from the server
Many OPC UA servers keep their own history of variables (OPC UA Historical Access): gateways and SCADA systems such as KEPServerEX with Local Historian, Ignition, WinCC OA or WinCC Unified, and some controllers. When WiConnector loses a server, or WiConnector itself was stopped, its history has a hole for that time. With Fill history gaps on, WiConnector does this each time it connects:
- For every tag of that server with Store history on, it finds the last value already stored.
- It asks the server for the values between that time and the moment of connecting (raw history, in pages of 1000 values, at most 100,000 values per reconnect), and stores them with their original timestamps, scaled like live values. Live values flow as usual while this runs.
The Logs page (Communication) shows filled the gap since 11:23:03 with 53 value(s) of 1 tag(s) from the server's history. Tags whose variables have no history on the server are listed as no server history for N tag(s); their
gap stays. Gaps shorter than a second are ignored, and only the last Longest gap to fill hours are read.
The server must support Historical Access and record the variables: in the server, turn on history for them (for example KEPServerEX Local Historian, or "Historizing" in the server's configuration). The built-in OPC UA server of Siemens S7-1200 and S7-1500 CPUs does not keep history, so for these the setting has no effect.