3/5/2012 6:43 PM | |
Joined: 9/27/2006 Last visit: 3/20/2025 Posts: 12344 Rating:
|
Hello Martin; There is a function developped by Siemens that allows you to "disconnect" a Profibus-DP or Profinet slave temporarily. It is known as SFC 12, "D_ACT-DP".Acually it removes the slave from the CPU's polling list, so the slave can be physically removed from the network without causing alarms to appear. It can also be used to reverse its previous opperation, re-initiating the slave as part of the network. Have a look at the following links, you will also find sample programs showing how to implement SFC12. What should you pay attention to when operating a DP slave temporarily on a PROFIBUS DP network? Activating / Deactivating Profinet IO Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 3/5/2012 6:43 PM |
|
3/6/2012 12:28 PM | |
Joined: 11/28/2011 Last visit: 1/22/2025 Posts: 53 Rating:
|
Thank you very much for your answer , I try it it is working , but have one proble , how to deactivated 2 device ? and in one cycle :( any idea how to change code. I did it but I have error 7000 and 7002 in my code please see if can be use like it is in OB 1 Thank you AttachmentSfc12.zip (98 Downloads) |
Last edited by: MartinChyska at: 3/6/2012 4:14 PM |
|
4/16/2012 6:18 PM | |
Joined: 11/28/2011 Last visit: 1/22/2025 Posts: 53 Rating:
|
Please can somebody help with this . Thank you |
4/17/2012 2:41 AM | |
Joined: 9/27/2006 Last visit: 3/20/2025 Posts: 12344 Rating:
|
Hello Martin; Our friend and forum member Tebanch faced the same problem a few years ago, and found an answer on the forum posts. Follow his example: /tf/WW/en/Posts/44562 Hint: you cannot programmultiple calls to SFC12 without taking into accountits processing time. Signals are made available to syncronize multiple calls of the function. Hope this helps, Daniel Chartier |
This contribution was helpful to
1 thankful Users |
Follow us on