Fault Code LUT (Studio 5000 - CompactLogix)

FingRed69

Member
Join Date
Jul 2017
Location
Ohio
Posts
3
I want to create a lookup table AOI. Does anyone know a practical way to implement this?

For example,
The AOI will receive an integer and an array of strings. The AOI will read the integer as an index value for the array and return the string at this position.

Inputs:
i Integer
S String Array
Outputs:
S(i) String

Background:
I am writing a program that is going to be run on an AB 1769-L33ER. My program controls several VFDs (Powerflex 525s). I have selected Fault Code 1 as one of my output parameters (Output in terms of the VFD). I want to store the corresponding fault descriptions as a string array so I can lookup the string and use it for troubleshooting.
 
I do exactly that with my PF525 AOI.

I created a UDT with two elements: FaultCode(INT) and FaultMessage(STRING). I created an array of this UDT called "PF525FaultCodes" with enough space for all the existing fault codes and a few spare for future.

Then I populated it with all the fault codes and their respective messages. Any unused array elements I populated with "999" and "Unknown Error", because that way if they ever upgrade the firmware to the 525's and it gets a new fault code that my array doesn't know about, it will just pick the last element in my array and say "Unknown Error" so at least I know vaguely what the problem is.

I added an InOut parameter to my PF525 AOI, of datatype (array of my UDT) and point it to that UDT.

Then within the AOI, I used an FSC instruction to search the .FaultCode elements of the array for whatever FaultCode1 happens to be. If I find it, I copy the corresponding string to a string within the AOI.

Works like a charm, and I get a whole lot less phone calls asking "what does fault code 4 mean?"
 

Similar Topics

Hello Everyone. Looking to see if any of you have encountered an issue with these drives. We have a major installation with around 30 of these...
Replies
0
Views
93
Hi, I am having issues matching a 50HP submersible pump w/ a PF755 VFD (480V 3-Phase, 65(ND)/52(HD)). The failures occur at the static...
Replies
7
Views
986
I am in the process of migrating an SLC5/04 system to CompactLogix using a 1747-AENTR. I have two 13-Slot SLC chassis populated as shown in the...
Replies
9
Views
2,957
Hello guys, Frequently servo drive stops with fault code S46.Please can you tell me what could be the reason. Thanks and kind regards...
Replies
3
Views
895
​Hello everyone, I triyng to link a Power Module eMB-60R from Robot Adept Viper s650 to CompactLogix, version 19.11 I followed exactly the...
Replies
9
Views
2,653
Back
Top Bottom