AsNxDpM and AsNxDpS Libraries to access Profibus Diagnostics

Good Morning,

I have been advised in a previous Topic that the libraries in Automation Studio AsNxDpM, AsNxDpS can be used for reading the diagnostic data of profibus slaves and the master
on the profibus network.

I have imported these libraries into APROL and have received some values, if anyone has any knowledge of how to go about setting these up for purely reading diagnostic data? this would be a great help.

I have spent some time trying to understand the B&R manuals and struggling a bit to understand exactly how to go about accessing this data. There are about 40 function blocks for these two libraries and understanding the ones required for a diagnostic read would be great.

Kind Regards,
Dale Webb

Hello,

basically you only need one function block:

This means you call the function block on the masters PLC to read diag data from any slave (which is sending diag data)

Afterwards the diag state on the slave will be acknowledged

The 244 byte of data you get is slave specific and it should be mentioned in the slaves manual what the meaning is

Hope that helps

best regards

Oliver

Hello,

Thanks for your response Oliver, any idea which output I would get this diagnostic data.

I currently have the function block nxdpmGetDiag set up like this for testing with all inputs and outputs.

HI @Dale_Webb, can you update us with solution for your topic? If you have not found a solution, please get in touch with the support of your local B&R office. It would be great if you could update us with any findings or solutions. Thanks, Jaroslav