Page 1 of 1

Need advice about DP-Slaves diagnosis

Posted: Tue Jul 17, 2012 4:04 pm
by All_exe
There's my problem: I'm trying to write the universal program which have to diagnosis any connected to 315-2DP CPU DP-slaves hardware. Diagnosis should detect the problems on bus and some basic faults of profibus.I tried to use FB126 and example program with DP module (distributed DI with Profibus) icpdas PROFI-5053 connected to CPU315-2DP but it just told me about it work/don't work status without any details and I didn't find any information what details I can get from this FB. If anybody knows tips and tricks about that, please tell me what I do wrong with this block or may be I missed something. All info about FB126 and examples i get from (this link).
Моя проблема заключается в следующем: мне необходимо написать программу для диагностики работы любого оборудования Profibus DP slave, подключенного к CPU 315-2DP вне зависимости от его функциональности. На настоящий момент я пытался запустить пример программы с сайта siemens this link, но ничего кроме сообщения о рабочем или нерабочем состоянии устройства Slave я отловить не смог (работал с модулем распределенного вывода PROFI-5053 icpdas). Может ли кто-нибудь помочь разобраться с работой данного блока или подсказать как сделать детальное детектирование основных универсальных ошибок на линии Profibus по-другому? Все что я использовал это тестовая программа с сайта и мой ПЛК+PROFI-5053. Заранее спасибо.

Re: Need advice about DP-Slaves diagnosis

Posted: Wed Jul 18, 2012 1:19 am
by dsekulic
Hi,
You can use Report System Error. In Hardware configuration when You select CPU under Options You can find report system error. Another possibilities is to use SFC51 (read system status list)
kind regards

Re: Need advice about DP-Slaves diagnosis

Posted: Thu Jul 19, 2012 3:52 pm
by All_exe
Thank's for answer, I can read diagnostic messages from CPU buffer (such as W#16#xyA0 etc.) with that SFC but such data as W#16#xy96 - Info about PROFINET IO and PROFIBUS DP modules, slaves etc. couldn't be read with error 8082h - SZL_ID invalid or not in CPU.
Maybe my CPU315-2DP doesn't support this types of diagnosis? Or there're some steps to solve that trouble?
I've really lost in this huge info about diagnostic blocks which i tried. If anybody can tell me worked numbers of SFC, FB оr others with number of functions which really can work with CPU 315-2DP and get data (lost profibus connection or error in profibus slave №__ and if it works get some info about slaves such it address, name if it has and so ....)?
Спасибо за ответ, я действительно могу отлично читать простые диагностические сообщения (например W#16#xyA0 и т.д.) с помощью данного блока, но такие данные как диагностика Profibus модулей W#16#xy96 выкидывает сообщение 8082 SZL_ID invalid or not in CPU при любых попытках обращения. Возможно такой вид диагностики не поддерживается ПЛК? Либо есть какие-то действия которые помогут решить эту проблему.
На настоящий момент я реально уже испробовал кучу функций и блоков и практически потерялся в информации о них.
Если возможно кто-нибудь сталкивался с задачей диагностики несложных проблем с Profibus DP (ошибка связи, отказ устройства, ошибка адресации или наоборот при нормальной работе выводом информации о состоянии ведомого, его адресе и возможно названии) или точно может указать какими функциями и номерами функций пользоваться именно для CPU315-2DP, я был бы очень благодарен (с функциями диагностики я настолько вплотную и глубоко не сталкивался). Заранее спасибо за помощь.

Re: Need advice about DP-Slaves diagnosis

Posted: Thu Jul 19, 2012 4:53 pm
by bilbo_321
Use SFC51 (RDSYSST) with SZL_ID=W#16#00B3 or SZL_ID=W#16#00B4 in OB86 or OB82 or even in OB1.
To use it in OB82 you should enable diagnostic interrupt of DP slaves.
Be careful: SFC51 is processed asynchonously. The exeption is when you call it in OB82 with SZL_ID=W#16#00B3 and it is processed immediately
It depends on type of DP slave what kind of diagnostic data you can get from that particular module. Read the DP slave manual.

There is very good book "Decentralization with PROFIBUS-DP". Check the topic: viewtopic.php?f=19&t=12969&p=37193&hili ... BUS#p37193