Step7 - Profinet

lostcontrol

Lifetime Supporting Member
Join Date
May 2009
Location
NeverSayNever
Posts
1,069
Hi,

I am setting up a new Profinet slave device. After much mucking about, finally have it working to my PLC.
But, if the device is powered off etc, it faults the controller. How can I solve this?


Thanks
LC
 
PROFINET IO: station Failure
I/O access error, reading
STOP causing by I/O access error (OB not loaded or not possible, or no FRB)
OB number : 1
Module address : 104

Is there an OB that will be called, that can stop the CPU from faulting, as this would grind the machine to a halt whit it not required.
I have OB86, reading this says OB82 (https://support.industry.siemens.co...ob-not-loaded-or-not-possible-or-no-frb/47105)

I completely understand what is occurring & why, but dont want it to stop the process.
 
Last edited:
For an I/O Access error - yes.

There is no global OB to prevent stopping the CPU, but OB 82, OB86 and OB122 should prevent stopping due to hardware in your case. If you look up "Organization Blocks" in Step 7 help, a list of all OBs should appear. What is your CPU model? Not all OBs are available for all CPUs.
 
You can put any code you wish in the OB blocks. You can set a bit for example...or you can actually read out which module/rack caused the issue... That's a bit more complex... but not too bad. You could simply move the value you want into some address/tag... The key is, which value? Help files on each OB is in Step 7 help. Try selecting an OB in the blocks folder and press F1.
 
Just done & tested, works as expected!

Now my next challenge is to detect that the error has occurred, but perhaps I should do some reading :rolleyes::rolleyes:


you can do it on your OB-blocks, but error state is only one plc scan valid on OB blocks.


For 300 (and 151-8, which actuallu is 300 series) FB126 is way to go. It can be used lot more than errors states (like disabling stations).

Some of FB126 is not described thought and it helps if you can also run WinCC project of screens and look how errors are showed on WinCC with FB126 block. (It needs block call from several different OB blocks.



https://support.industry.siemens.com/cs/ww/en/view/98278878
 

Similar Topics

Good afternoon folks. I need to upload a program from a Siemens ET200 pro plc, but the plc only has 3 profinet ports (no MPI ports). On previous...
Replies
2
Views
2,222
Hi, I use the FB126 in one of my projects to be able to visualise slave status on Scada. The questions I have: Isn't there a better method...
Replies
4
Views
8,030
I'm working for the first time with an ABB IRC5 Robot controller that is using Beckhoff I/O modules with ProfiNet buscouplers, and I hope somebody...
Replies
11
Views
14,731
I'm busy playing with my first Profinet project and I've got a curious problem where I'm not sure if the problem is a real one or a Siemens bug...
Replies
5
Views
4,860
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
134
Back
Top Bottom