How to restart S7-300 on fault

rsbn

Member
Join Date
Mar 2015
Location
germany
Posts
2
Is there any way to restart CPU after runtime error has occured?

We have a program with quite a lot of overflow bugs that we are currently fixing. Those bugs occur after certain amount of days. I've thought of quick and temporary fix by restarting CPU.

There are OB121 block that executes if any error happened. Now I need some king of STL intruction to restart the CPU from within this block.
 
If OB121 exists in the plc, the CPU will not stop - it will execute the code inside the OB and then continue from where the error occurred.
 
Hardware Solution

I believe there is no such thing as an automatic restart done by software.

but you can make it by hardware.

if the program runs OB121, you can set a bit, which change a relay at the power supply. the relay change the power supply (1 -->0) so the cpu doesn't have any power. if the PLC turned down, the bit changes (1 --> 0) according to power loss, and then the PLC is starting again, and starts OB100.

the only thing you need is a relay before your power supply

Kind Regards
 
I think that is bad practice.. And it sounds very glitchy..

There is a problem causing your cpu to stop, find the problem and fix it, that is the only viable solution. Using OB121 should keep your cpu running, but you still have to find the problem.
 

Similar Topics

Dear all, Is there a bit that indicates warm restart of S7300 CPU ?? If I should make a program in OB100 that gives me this bit, what could be...
Replies
9
Views
1,995
How to fix if appears code “$115 plc-restart running” on the screen OP17
Replies
5
Views
246
Hello everyone, I'm new here. First of all I just want to say that you guys are very knowledgeable and reading your posts on here has saved my...
Replies
4
Views
162
Hello I am trying to make a program work with a sqo instruction .The process has 5 steps ,and a starting step of zero.There should be 8 sec...
Replies
17
Views
1,050
What b&r cold restart does? does its erase program permanently?
Replies
1
Views
642
Back
Top Bottom