Message or Subscription?
Posted: 11 Sep 2024, 12:14
Hello Everybody,
My name is Carsten and I am from an engineering company with no experience with the use of OPC UA so far. I am just trying to understand the basics. To be honest I am a little bit confused by the terminology of "services", "subscription", "message" and "event" and please excuse me if refer to these expressions in an irritating way.
Considering a possible applications of OPC UA for our purposes the following basic question comes into my mind:
What is the best way to obtain data from a sensor integrated to production line, e.g. a laser based measurment of the distance between the sensor and a sheet of metal?
In order to explain this question let me describe more what I mean:
We have a production line with a control system and we have the single sensor. I do understand that, on the one side the sensor needs to be connected to an OPC-server or even has to contain a feature acting as an OPC-server already. On the other side the contol system needs to have an OPC client application. The question is, how is the communication working between both, the server and the client ?
A) Shall the server provide a service which presents the sensors data continuously or periodically and the client will then just subscribe to this service?
B) Or shall the client send a message to the server and request the data? And the server then will respond to this request with a message, too, that contains the requested data?
Is is one of the two options or are there even more options and is one of the options reccommend, eg. for reasons of perfomance, safety or reliability?
Thanks for your time and patience,
Carsten
My name is Carsten and I am from an engineering company with no experience with the use of OPC UA so far. I am just trying to understand the basics. To be honest I am a little bit confused by the terminology of "services", "subscription", "message" and "event" and please excuse me if refer to these expressions in an irritating way.
Considering a possible applications of OPC UA for our purposes the following basic question comes into my mind:
What is the best way to obtain data from a sensor integrated to production line, e.g. a laser based measurment of the distance between the sensor and a sheet of metal?
In order to explain this question let me describe more what I mean:
We have a production line with a control system and we have the single sensor. I do understand that, on the one side the sensor needs to be connected to an OPC-server or even has to contain a feature acting as an OPC-server already. On the other side the contol system needs to have an OPC client application. The question is, how is the communication working between both, the server and the client ?
A) Shall the server provide a service which presents the sensors data continuously or periodically and the client will then just subscribe to this service?
B) Or shall the client send a message to the server and request the data? And the server then will respond to this request with a message, too, that contains the requested data?
Is is one of the two options or are there even more options and is one of the options reccommend, eg. for reasons of perfomance, safety or reliability?
Thanks for your time and patience,
Carsten