Siemens S71200 OB86 For GSD board

dabanani

Member
Join Date
Feb 2009
Location
Mo
Posts
85
I have a S71200 PLC connected to GSD board as a ProFinet I/O
I am tasked with detecting when loss of communication happens

I understand this can be done with OB86 (Rack or Station Failure).

I am wondering how to best set up OB86 so that I can get a bit to tell me when ever there is loss of communication between my pLC and the GSD board.

Thanks you and your help is highly appreciated..
 
There is a block called DeviceStates, which you can use to read out status of all devices in your Profinet system. There is a good help available in online help, basically you call this block with MODE = 4, and then it gives you an array of 1024 bits, each bit representing a device on the network.

Place the block in OB86 with EN = TRUE.

Also place the block with exactly the same parameters in OB1, but periodically give one cycle pulses to EN, instead of constant TRUE.

In this way, when a change occurs in your network, OB86 gets executed and status of the devices in network is updated immediately. However if one event is missed for one reason or another, status of the devices is still updated after a delay when block is executed in OB1 with EN pulse.
 
Matsdin,
Thank you for all your help. I was able to create a program that work.
I have attached screen of my routine in case someone will benefit from it.

Regards.
 

Similar Topics

Hi everyone I am completely new to using shift registers and am a bit stuck, my shift register works as should, it is for an overhead conveyor...
Replies
55
Views
15,552
Hello; i'm having some troubles with a com test i'm handling. i have another end for it, but for now i would like to have : M241 in io_scanning...
Replies
4
Views
3,478
I AM DOING PROGRAM IN SIEMENS S7 PROFESSIONAL WHEN I AM COMPILING MY PROJECT I GOT 0 ERROR WITH 1 WARNING MY WARNING MESSAGE I DISPLAYED BELOW...
Replies
3
Views
1,814
hi friends i am new to siemens program i need to create plc logic to convert 4-20mA to 0 to 120 ppm value i don't know how to start the software...
Replies
6
Views
1,839
Hi, Does any one have experience with sendind sms with s71200 through cp-1242-7? I would like to no the following? is TCON needed when sending...
Replies
0
Views
2,723
Back
Top Bottom