mylespetro
Member
Hey everyone,
I feel like I'm missing something completely obvious here, but I'm trying to convert a DINT to a REAL number in a ControlLogix L71 processor for a belt scale. I've searched the forum and came up with a few posts that said to just use a copy (COP) instruction and move the DINT into the REAL with a length of 1. When I do this however, I end up with an extremely miniscule number in the REAL word, even with very large DINT numbers. I've attached a screenshot of the test program I have on the bench, literally just the two tags and a COP instruction. Can someone shed any light on what I'm missing here?
Thanks
EDIT: This was the largest number that actually produced a non-microscopic result, we're expecting approximately with 6 digits, e.g. 447829 will be a rate of 447.829 tons/hr, but using 447829 as the DINT gives a REAL of 6.27542090e-040
I feel like I'm missing something completely obvious here, but I'm trying to convert a DINT to a REAL number in a ControlLogix L71 processor for a belt scale. I've searched the forum and came up with a few posts that said to just use a copy (COP) instruction and move the DINT into the REAL with a length of 1. When I do this however, I end up with an extremely miniscule number in the REAL word, even with very large DINT numbers. I've attached a screenshot of the test program I have on the bench, literally just the two tags and a COP instruction. Can someone shed any light on what I'm missing here?
Thanks
EDIT: This was the largest number that actually produced a non-microscopic result, we're expecting approximately with 6 digits, e.g. 447829 will be a rate of 447.829 tons/hr, but using 447829 as the DINT gives a REAL of 6.27542090e-040
Last edited: