Tag Archives: RedLion

Convert Allen Bradley Logix 5000 Time to Unix Time (Epoch)

My favorite time format for time stamping events is to use Unix Time.  The AB Logix 5000 controllers offer time in a format that is similar, but requires some conversion.  Here is code for a RedLion device that does that … Continue reading

Posted in Industrial Automation | Tagged , , , , , , , | Leave a comment

Convert Unsigned Integer to Float

I’m working with a RedLion device that treats integers as signed, and they don’t provide the function needed to convert an unsigned integer into a floating point.   Here is some code that will treat the 32 bit register as … Continue reading

Posted in Industrial Automation | Tagged , , , | 1 Comment

Program to Email Memory Contents of Redlion HMI for Troubleshooting

The Redlion HMIs have the capability of creating and deleting files on the flash memory card and emailing out files.  The program below is called from a button on a diagnostics screen.  This is used to collect the contents of … Continue reading

Posted in Industrial Automation | Tagged , , , | Leave a comment

Use Linear Regression to Find Slope of Many Datapoints

Here is the implementation of a program that analyses several days worth of data coming from a sensor that might change a tiny amount over that time.  We were interested in how much of a change over time occurred, so … Continue reading

Posted in Industrial Automation | Tagged , , , | Leave a comment

Current Time as a Fraction of Current Year

I had the need to represent time as a fraction of a year, so I came up with this little program to do the conversion for me.  (using in Redlion Crimson 3)

Posted in Industrial Automation | Tagged , , , , , | Leave a comment

First Impressions of a RedLion Graphite HMI

Posted in Industrial Automation | Tagged , , | Leave a comment

RedLion G315 Load via USB Locks Up Unit

The new G315 units (and only the G315s) don’t have USB 2.0 support.  They use USB 1.1.  When you try to load the configuration via USB, it will fail, and it will lockup. The power-on while holding buttons 1 and … Continue reading

Posted in Industrial Automation | Tagged , , | 2 Comments