UaExpert OPC UA sinumerik CNC

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
Cienduros
Jr. Member
Jr. Member
Posts: 3
Joined: 29 Oct 2020, 12:23

UaExpert OPC UA sinumerik CNC

Post by Cienduros »

Hello all,

I am a sinumerik CNC programmer and I do not have too many experience in OPC UA, our customer has UaExpert 1.4.4 and wants to check some variables through OPC UA connected to the machine. the connection is already dfone and working ok.

The problem is that we want to check DB21.DBX35.0, parameter R33 and specific variable inside UGUD.DEF file (OF_NUMBER) from the machine. In the folder structure we only can see:

- Sinumerik/PLC/DB
- Sinumerik/Channel/Parameter/R
- Sinumerik/GUD

If we open these folders we only see the first parameter, i.e. Sinumerik/Channel/Parameter/R we only see in attributes the value/status of R1.

Anyone can help me how to add R33, DB21.DBX35.0 and OF_NUMBER (UGUD.DEF file)? Thank you for your help.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: UaExpert OPC UA sinumerik CNC

Post by Support Team »

Hello,

the syntax of the nodeid is specific to the particular server, in this case Sinumeric. Please refere to the manual of the Siemens Sinumeric for deteils on the NodeID syntax.

Generally it is expected that the address space of an OPC UA Server is browsable and that you can navigate throught all the folders and nodes and pick and choose (monitor, read, write) the nodes of interest. Typing in NodeID manually is somewhat old school, but possible in UaExpert (right mouse click), however correct syntax of server is required for doing so.

Hint: If you can not see the nodes in Siemens server, you probably need to configure the so called "symbol table", however this is specific to the Siemens, please refere to the Siemens manual and use the Siemens engineering tools for doing so. The idea of symbol table is to map symbolic names on direct address syntax, and finally get rid of all the register and offset addressing (punched card technology), and use real semantic.
Best regards
Unified Automation Support Team

Cienduros
Jr. Member
Jr. Member
Posts: 3
Joined: 29 Oct 2020, 12:23

Re: UaExpert OPC UA sinumerik CNC

Post by Cienduros »

Thank you so much. Finally we could solve the problem though Siemens support. Here I share with all of you the answer:

- Machine in AUTO mode (DB21.DBX35.0) Sinumerik/Channel/State/acProg[u1]

PLC bits acces through /PLC/DBz.DBXx.y.

-User variable at UGUD.DEF

MyGUD → /NC/_N_NC_GD3_ACX/MyGUD

In case of array, you should extend the adress.

In case of one array /NC/_N_NC_GD3_ACX/ARRAY[1..n]

In case two dimensional array /NC/_N_NC_GD3_ACX/ARRAY[u1...n,1...m]

Cienduros
Jr. Member
Jr. Member
Posts: 3
Joined: 29 Oct 2020, 12:23

Re: UaExpert OPC UA sinumerik CNC

Post by Cienduros »

***

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: UaExpert OPC UA sinumerik CNC

Post by Support Team »

Hi,

thank you for the reply.

For all other readers, the syntax of the NodeId including the single element acces of array elements is specific to the vendor (in this case Siemens Sinumeric) and of course is not the OPC UA way of addressing information (if we wourld have wanted to access registers and bits via offset, we could have stayed with the old style Profibus and Modbus technologies).

The idea of OPC UA is to self discribe the data and make it browsable (explore at runtime). With Siemens Sinumeric you can only "browse" to the top folder, but not dig down into the DataBlock. However, if you configure symbolic names for each DB (at least for those presented to OPC UA) you could see the DB-Symboloc-Name being shown as "folder" in OPC UA. And you could see the individual tags inside the DB (if you have given them symbolic variable names). The so called symbol file must be loaded into the Siemens OPC UA Server (configure with Siemens engineering tools), and than you can see nice names and browse into address space also via OPC UA.
Best regards
Unified Automation Support Team

Post Reply