How to Fault a 1756-L72

69FIREBIRD

Member
Join Date
Oct 2004
Location
New Zealand
Posts
102
Hi, Unusual Request. I need a line of code / method that I can use to fault a 1756-L72 Contrologix Processor. Was going to do a divide by zero but I'm told that this processor can cope with that. Reason is for SAT, need to prove relationship/response with other external hardware if the processor faults.

Thanks.
 
I think there's a fancy way of doing a user-defined fault, but I just move a negative value into a Timer preset. That ought to get you a Recoverable Major Fault.
 
I use this rung for a simple test ...

LBL ---- XIC --------------- JMP

when you toggle the XIC on, a constant loop occurs - which faults the processor ...
 
Hi, Unusual Request. I need a line of code / method that I can use to fault a 1756-L72 Contrologix Processor. Was going to do a divide by zero but I'm told that this processor can cope with that. Reason is for SAT, need to prove relationship/response with other external hardware if the processor faults.

Thanks.

You are misinformed about "divide by zero" causing a processor fault, it, alone, doesn't.

And let us be clear that the following only applies to SLC/MicroLogix processors. It is the only range of processors that have this "capability".

When an instruction executes that causes a math overflow, the Overflow status bit is turned on, and another status bit called the "Overflow Trap" bit is also set. Nothing can "unset" this trap bit automatically, even if the next, or subsequent math instructions don't cause an overflow, so it will remain turned on for the rest of the program scan.

In some sort of unfathomable design thinking, they made it so that if the "Overflow Trap" bit is set at the end of the program scan, the controller will "major fault".

This is about as much use as a chocolate teapot, your program has crashed out, and you have absolutely no idea where in the scan (i.e. which instruction) caused it.

If an instruction causes a math overflow, and it is important to you, then you must write code to inspect the math status flags after each instruction that could cause overflow, and deal with it there and then.

Every single SLC/MicroLogix program I have ever seen has an unconditional rung as the last rung of program file 2, which simply unlatches the "Overflow Trap" bit, S:5/0. At the end of the scan, it is too late to do anything about a math overflow condition, it will most likely have already wreaked its damage....
 

Similar Topics

Hello, We have a customer with a 1756-L72 ControlLogix PLC. They have recently got a T01:C62 Fault Code. I am trying to figure out how to...
Replies
6
Views
1,037
Hi there! I posted few days ago about a fault i had with my motion. I did some cable check and replacement and it didnt solve my problem yet but...
Replies
0
Views
370
Hello, I had an out of box controller 1756 L81 Contrologix. Was running for about a week and started getting the ESM fault. Powercycling did...
Replies
3
Views
2,658
I am facing an issue module 1756-OF8 is showing the minor fault = recoverable in the module info.How can i reset it?
Replies
0
Views
1,759
Yesterday, on Christmas Eve at 22:00 customer called me to check why some machine faulted and stopped production. I went there as happy as you can...
Replies
4
Views
3,143
Back
Top Bottom