CLX User-Defined Major Fault

Dog7926

Member
Join Date
Nov 2010
Location
Louisiana
Posts
6
First time poster so I apologize in advance if this topic has been discussed before. I did several searches but came up empty.

I am trying to create a user-defined major fault in RSlogix 5000 but after reading the programming manual, I am still left with questions. The manual says to:
1. Create a fault routine for the program
2. Configure the program to use the fault routine
3. Jump to the fault routine when the fault occurs.

My question is: What should the logic in the fault-routine do? Am I missing something?

Thanks in advance for any advise.
 
Just so we're on the same page, a fault routine doesn't trigger a fault. It responds to a fault. It seems to me that fault routine mechanics are outside the scope of your original question.

Unless, that is, you already know how to trigger the fault and you need to figure out how to respond to it once it occurs. Although, that seems somewhat unnecessary when I say it like that.

Keith
 
Sorry if my question was a unclear. Let me try again.

Once I detect the condition that I want to define as a major fault, how do I go about faulting the processor to stop the execution of the logic?

If I understand you correctly a fault routine would be executed after the fault has occurred, which is how I understood it. So I was thinking that once the fault condition is detected, jump to the fault routine and fault the processor. Am I on the right track? Sounds to me like the answer to that question is "no".
 
As you said, the answer is no. The fact that a major fault is detected in the first place is enough to fault the processor. A fault routine may give you the ability to prevent the processor fault (depending on the fault detected) but it can't trigger a fault.

I've nver tried to do this before. I don't know if you can trigger a user fault or not.

Keith
 
OK, I've got to ask. If you have already detected something worthy of a processor fault, isn't there a better way to handle it that killing the one device that may help you handle it?

Keith
 
According to the Logix5000 Controllers Major and Minor Faults Programming manual (1756-PM014) page 29, "If you want to suspend (shut down) the controller based on conditions in your application, create a user-defined major fault."

It goes on to explain the steps that I listed in my original post, but I must be missing something.

Anyway, thanks for the effort. It is appreciated.
 
After you create the Fault Routine, then in your normal program you will create a ladder that contains the conditions required to trigger a fault and at the end of that rung you will call a JSR to that fault routine and configure an input parameter that will be your fault code (Like 999). Then when someone goes online the major faults tab will list your fault code, 999.

Darren

The manual you reference has an example of how to do that.
 
Understood. This is a client-driven requirement. The view is that because this is a safety-critical system, when this fault occurs, the system is in an unreliable state, therefore all logic execution should be stopped.
 
Right, but what I don't understand is what should happen in the fault routine. The manual doesn't explain this. Is there any logic that I need to have in there? If so, what should it do?
 
You do not need anything in there unless you want it to do something before it faults the controller (like reset something or maybe a counter to keep up with how many times you have triggered this or an array that contains a timestamp for the last X times this has occurred). You may need to put in a NOP (no operation) instruction to get it to compile.

Darren
 
OK, let me see if I got this right...

You trust the PLC to identify this safety critical situation when it arises.

You trust the PLC to take the appropriate action when this safety critical situation occurs.

The best you can think of as an appropriate action is for the PLC to lobotomize itself.


Seriously, if this is a safety critical situation you should be using the proper risk analysis and determining exactly what the appropriate response should be. If it's truly a safety critical system, the PLC is probably NOT where that action will take place.
 
I agree with mellis and Keith. This sounds like the customer may be asking for an incorrect device to be handling a safety task. Maybe you need a safety rated controller or a hardwired safety circuit. The ControlLogix can be used in a LIMITED way for a SIL-2 rated system, but you have to use certain rated I/O modules and make sure you application does not pose any more risk than than.

See this manual for a discussion of uses for ControlLogix in safety systems.

http://www.rockwellautomation.com/products/certification/safety/pdf/1756-RM001E-EN-P.pdf

Darren
 
OK, now to the fault handler...

The fault handler is a means to intercept a fault condition BEFORE it faults the processor and deal with it some way.

If you are trying to fault the processor, one easy way to do it is to move a negative number into a timer preset. That will cause a major fault.
 
actually calling the fault routine and passing a user defined fault ID will fault the processor and it will show up in the major fault tab of the processor with that code. The fault routine can be used for both functions.
 

Similar Topics

A while ago I heard that v.15 of CLX will allow Online Edits of user-defined data types. Can anyone confirm or deny that?
Replies
8
Views
4,747
Controller: 1756-L84E v.35 Prosoft MVI56E-MNETC for ModbusTCP/IP I'm having an issue with some of my write commands. The write command that...
Replies
0
Views
195
I have several Avery scale units and they are configured as Generic Ethernet modules, and I am actually reading the data fine for the weight...
Replies
2
Views
420
What's the best way to move a tag value from the panelview+7 to the clx plc. We display amps from a power meter on the panelview screen, read in...
Replies
1
Views
398
I'm running into an issue migrating a PLC-5 using the newer Logix Designer Export when opening a saved .ACD from RSLogix-5. It has multiple RIO...
Replies
2
Views
618
Back
Top Bottom