Tag Archives: conversion

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

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 , , , , , | Comments Off on Current Time as a Fraction of Current Year