Jump to content

Recommended Posts

I have a 570 with some hickup. Sometimes it stops: Status Stop - Idle with Fatal error, Ldr #68. The desription varies.I have tried to make a watchdog with a circuit that restart the PLC when this error occur, but have not suceeded. I try to use an output that when it falls the restart ciruit is ativated, but the output will not fall when the error occur. Is there an SB that is set or reset when this type of error occur? Or do anyone have a solution on the original problem?

 

Link to post
Share on other sites

For starters you're calling a subroutine from the Main in network 9 that utilizes SMS_5 before you config SMS_5 in network 12.  It doesn't matter that you have check bits in front if it - the fact that it's there means it will be compiled and solved in that order.

 

Your code needs to be organized - you've got inits and configs all over the place.  

 

Put them all in the beginning of the Main subroutine before you call anything else.

 

Also - in network 53 and a couple other places you're driving an INC block with SB 3, which the Creators chose to label "1 second pulse".  It is not.  It is a one second squarewave with a 50% duty cycle, which will drive your INC block crazy.  Use SB 13 - Rising Edge of 1 second pulse.

 

Same for SB 7 - use SB 15 instead.

 

Joe T.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...