Skip to content

OPC UA Client

In Client mode inSCADA connects to OPC UA servers (a PLC, a DCS, a gateway, another SCADA and so on) to read and write node values.

ParameterExampleDescription
ProtocolOPC UAThe protocol
IP Address192.168.1.100The OPC UA server’s IP address
Port4840The OPC UA port (default: 4840)
Server Name(empty)The server’s discovery name (optional)
Timeout5000 msThe request timeout
Security ModeSignAndEncryptNone, Sign or SignAndEncrypt
Security PolicyBasic256Sha256None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep
Anonymous AuthfalseAuthenticate anonymously
Username/Password AuthtrueAuthenticate with a user name and password
UsernameoperatorThe user name
Password••••The password
Encoding TypeBinaryBinary, Xml or Json
HTTPS EnabledfalseUse the HTTPS transport
HTTPS Port443The HTTPS port (when HTTPS is on)

When the security mode is Sign or SignAndEncrypt, inSCADA generates a client certificate by itself. On the first connection the OPC UA server may reject it — the certificate has to be trusted on the server side.

The certificate files are kept in <user_home>/opc-ua/client/security/.

ParameterExampleDescription
Base PathPLC_1The base path in the node tree (for grouping)
Scan Time1000 msThe polling interval
Scan TypePERIODICPERIODIC or FIXED_DELAY
ParameterExampleDescription
PathChannel1.Device1The frame’s path in the node tree

A frame represents a branch point in the OPC UA address space. It is used to group related nodes.

ParameterExampleDescription
Namespace Index2The node’s namespace index
Identifier TypeStringNumeric or String
IdentifierPLC1.TemperatureThe node identifier
TypeFloatThe data type
Is ArrayfalseWhether the variable is an array
First Dimension Index0The array’s first dimension index
Second Dimension Index0The array’s second dimension index
What it isNamespaceIdentifier typeIdentifierNode ID
Temperature2StringPLC1.Tempns=2; s="PLC1.Temp"
Pressure2Numeric1001ns=2; i=1001
Status3StringSensor1.Statusns=3; s="Sensor1.Status"

If a node on the OPC UA server holds an array, mark Is Array = true and fill in the dimension indexes. This is used above all for multi-dimensional structures such as historical data blocks and parameter sets.

Start the connection from the Runtime Control Panel. inSCADA will:

  1. Discover the OPC UA endpoint
  2. Pick the endpoint matching the security settings
  3. Validate the certificate
  4. Create the session
  5. Begin reading periodically

The connection status will show “Connected”.

inSCADA can browse the OPC UA server’s address space to discover the nodes available. That makes finding the right node IDs easier while you are defining variables.