Skip to content

Live

OPC UA server

Live exposes the tags you select through an OPC UA server. An MES, another SCADA or a data collection program can read these tags, subscribe to them and, if you allow it, write to them.

What it does

The server runs inside the Live program. An external OPC UA client connects to Live and sees only the tags you gave access to. You select the tags in Studio. By default no tag is exposed.

  • The client reads tags and subscribes to changes.
  • A permitted user writes to tags that allow writing.
  • Live sends changed values to the server every 200 ms at most.
  • Every value arrives with a quality code.

To bring data from another server into Live, use the OPC UA driver.

Turning on the server

  1. Turn on the server

    Open the OPC UA Server section in the project tree and set the server to On. The default port is 4841 and the endpoint path is FabyaVision.

  2. Choose the security modes

    By default only the signed + encrypted mode is on.

  3. Add users

    On the Users tab, enter a name and password for each client. Give Write permission to the users who will write.

  4. Give tags access

    Fill in the OPC UA access column in the HMI tags table.

  5. Upload the project to Live

    Live starts the server when it opens the project. The address looks like this: opc.tcp://192.168.0.10:4841/FabyaVision.

Selecting tags

The column in the HMI tags table is set for each tag. It affects OPC UA clients only and leaves operator and script writes unchanged. Per-screen tags are never exposed.

Option Meaning
Off The default for a new tag. The client does not see the tag.
Read The client reads and subscribes.
Read + Write A user with write permission writes. Other users and anonymous clients only read.

Address space

The client finds the nodes in the FabyaVision folder under Objects. Tag groups and structure instances become folders. The node ID is the full tag name, without the folder path, so moving a tag to another group leaves its ID unchanged.

Example IDs
 ns=2;s=T101_Seviye // Tag   ns=2;s=Pompa_P101.Hiz // Structure member   nsu=urn:fabyavision:live:tags;s=T101_Seviye // With the namespace URI  
Tag type OPC UA type
Bool Boolean
Byte / SInt Byte / SByte
Int / UInt Int16 / UInt16
DInt / UDInt Int32 / UInt32
Real / LReal Float / Double
String, WString String
DateTime DateTime

A tag with scaling on is exposed as Double. The client sees and writes the engineering value.

Security and users

Mode Data on the network Client certificate
Basic256Sha256 signed + encrypted Signed and encrypted. The recommended mode. Required, approved in Live.
Basic256Sha256 signed Signed, not encrypted. Required, approved in Live.
Unsecured Not encrypted. For testing on a closed network. Not required.
  • These users are for OPC UA only, separate from Live and browser users.
  • The user password travels encrypted in every mode. The project file keeps only a salted SHA-256 hash of it.
  • Anonymous login is off by default. If you turn it on, anonymous clients can read but cannot write.
  • A new client’s certificate is rejected and waits for approval in Live. The Accept client certificates automatically option removes this step.

Writing

A write is applied when:

  • The tag is exposed as Read + Write.
  • The user has write permission.
  • The value fits the tag’s type and is within the lower and upper limits.

The write takes Live’s normal write path: on a scaled tag the value is converted to the raw value, and a PLC tag goes to the driver. The OPC UA user’s permission decides; the permissions of the user logged on in Live play no part.

When a write is rejected, the client gets a status code such as BadNotWritable, BadUserAccessDenied or BadOutOfRange. A successful write goes into the event log with the tag, the value and the user name. One line is written per tag every 10 seconds at most.

Quality codes

Code When
Good The value is valid.
BadWaitingForInitialData No value has arrived for the tag yet.
BadNoCommunication The PLC tag’s connection is lost. If nothing is published from Live for 15 seconds, all tags get this code.
BadConfigurationError The tag has an error, for example an invalid address.
BadTypeMismatch The value could not be converted to the node’s type.

When a connection is lost, the node keeps the last value. Internal and simulator tags are not affected by the connection state.

The window in Live

The OPC UA server… window in the system menu shows the state of the server.

  • Connection addresses: by computer name and by IPv4 address.
  • Connected clients: application, user, security mode and connection time.
  • Client certificates awaiting approval: compare the thumbprint, then click Trust.
  • The Add firewall permission button adds an inbound rule for this port in Windows and asks for administrator approval.

If a local discovery server (LDS) is installed on the computer, Live registers with it by itself and appears in client lists as FabyaVision Live. Without an LDS, enter the address in the client by hand.

Limits

  • There is no historical access, no alarms and conditions and no event notification.
  • FabyaVision nodes have no method calls.
  • There is no access filter by IP address.
  • Nodes hold a single value. Structure members are separate nodes, and there are no array nodes.
  • Basic256Sha256 is the only security policy. There are no X.509 user certificates.
  • Access is not set per tag and user pair: every user reads all exposed tags.
  • The server accepts 50 sessions at most.
  • In a redundant server pair, each Live opens its own server. A client does not move to the other address by itself.

Frequently asked

Which OPC UA clients can connect?

There is no fixed list of clients. To connect to a secure endpoint, a client needs its own application certificate. A client without one can connect only through the Unsecured endpoint. Try your own client before commissioning.

Can I change the port?

Yes. The port can be any whole number from 1 – 65535. It cannot be the same as the browser monitoring port.

Do clients disconnect when the project is updated?

Not if the settings and the list of exposed tags stay the same. If the settings or an exposed tag changed, the server restarts and clients reconnect.

What if the computer has several network cards?

The server listens on all network interfaces, and you cannot pick one. The Live window lists every IPv4 address.

Related pages

Try it free

Download the trial, open the sample project and see this feature on your own screen.