Displaying PLC fault codes.

Elcan

Lifetime Supporting Member
Join Date
Apr 2008
Location
NC
Posts
935
Hello all,
I'm thinking about how helpful could be adding a HMI screen to display the faults or errors that can happen to the PLC. I usually use the Micrologix or Compactlogix series.
Let's say that I have an Allen Bradley Micrologix 1500, and I want to see the PLC faults on the HMI. I read I have to look at file S2:6 to see which code is active.
I don't want to reinvent the wheel, could somebody share their experience implementing this?

Thank you!
 
Elcan,

First thing I do with Micrologix is set S:29 (Fault Routine) to a valid subroutine number (ie. 99). Then I add code to SUB99 to read the fault code from S:6 and store it in a table that includes the date & time. Without going to far into it, I create a FIFO so that I have a fault history. The last line of code changes the Remote Display Command for whatever type of HMI I am using so that the HMI can display the current fault information.

Now, to display Micrologix fault information appropriately, you need to strip the upper byte from S:6. Save the upper byte because that will tell you if the fault is related to a specific Compact IO module. Use the lower byte to show the fault info in a multistate indicator. The pain in the arse is setting up the indicator since there could be 255 values.

Hope this helps!

mark
 

Similar Topics

Hai All, In my application, the Micrologix 1400 for PLC and FactoryTalk View SE for SCADA Screens are used for Controlling and monitoring the...
Replies
4
Views
2,654
Hello all Siemens people. I've been tearing my hair out with something that should be trivial. Siemens tech support seems to have been separated...
Replies
9
Views
5,567
hey all, i'm using Automation studio (B&R) and trying to properly display right to left languages. i built a small vnc visualization to see how...
Replies
5
Views
1,888
Hello, Is there any easy way of displaying data available on a SCADA system on a website. I would like to build an actual webpage rather than...
Replies
6
Views
3,942
I have been fighting with this mitsubishi software and have most things figured, so far. The major problem is that i dont see a way to display the...
Replies
2
Views
5,704
Back
Top Bottom