57-4 Industrial Communication Systems
57.2.1 Ua Client application architecture
To.write.an.OPC.UA.client.application,.one.typically.needs.to.use.the.OPC.UA.client.application.
programming.interface.(API),.which.exposes.standard.services.that.should.be.used.to.send.and.receive.
OPC.UA.service.requests.and.responses.to.the.OPC.UA.server,.as.shown.in.Figure.57.5..e.API isolates
the client application code from an OPC UA communication stack
.that.may.be.chosen.between.dier-
ent
.avors:.UA Binary over TCP.and.SOAP XML/Text over HTTP..e.OPC.UA.communication.stack.
converts.OPC.UA.Client.API.calls.into.messages.and.sends.them.through.the.underlying.communica-
tions
.entity.to.the.server.at.the.request.of.the.client.application..e.OPC.UA.communication.stack.also.
receives.responses.and.notication.messages.from.the.underlying.communications.entity.and.delivers.
them.to.the.client.application.through.the.OPC.UA.Client.API,.as.shown.in.Figure.57.5.
57.2.2 Ua Server architecture
e. realization. of. an. UA. server. application. requires. more. eorts.. One. has. to. implement. the. UA
AddressSpace,
.as.dened.in.Part.3.of.the.UA.specications..UA.AddressSpace.is.used.to.represent.real.
objects,.their. denitions. and.their. references.to. each.other..Real. objects. are. physical. (i.e.,. physical.
devices).or.soware.objects.(e.g.,.alarm.counters).that.are.accessible.by.the.OPC.UA.server.application.
or.that.it.maintains.internally.(e.g.,.internal.data.objects)..e.UA.AddressSpace.is.modeled.as.a.set.of.
Nodes.accessible.by.UA.client.applications.using.OPC.UA.services.(interfaces.and.methods)..A.View.is.
a.subset.of.the.AddressSpace..Views.are.used.to.restrict.the.Nodes.that.the.server.makes.visible.to.the.
client,.thus.restricting.the.size.of.the.AddressSpace.for.the.service.requests.submitted.by.the.client..e.
default View.is.the.entire.AddressSpace..Servers.may.optionally.dene.other.Views..Views.hide.some.of.
the.Nodes.or.References.in.the.AddressSpace..Views.are.visible.via.the.AddressSpace.and.clients.are.able.
to.browse.Views.to.determine.their.structure..Views.are.oen.hierarchies,.which.are.easier.for.clients.to.
navigate.and.represent.in.a.tree.
UA
.server.application.uses.the.OPC.UA.Server.API.to.send.and.receive.OPC.UA.Messages.from.OPC.
UA.client.applications..e.OPC.UA.Server.API.isolates.the.server.application.code.from.an.OPC.UA.
communication.stack,.as.shown.in.Figure.57.6.
OPC-UA client
OPC UA client API
Client application
OPC-UA stack
Requests to
send service
requests
Requests to
send
publishing
requests
Delivery of
received
service
responses
Delivery of
received
notifications
To OPC-UA
server
From OPC-UA
server
From OPC-UA
server
To OPC-UA
server
Req Msg Rsp Msg Notif MsgPubl Msg
FIGURE 57.5 UA.client.architecture.
© 2011 by Taylor and Francis Group, LLC