Hey guys,
I'm trying to basically get an analogue input (4-20mA) to become a real/float between 0 and 10.
Currently to my knowledge that involves moving the IW to an MW, and then using the "INT_TO_REAL" function to change that MW to an MF.
However, the INT_TO_REAL function just consistently outputs 0. If i increase the scaling of my IW to something like 0-10,000 (rather than 0-10), the function outputs a long decimal followed by "E-42" or similar.
All I want is my analogue to become a real, scaled between 0 and 10 as before. I do note that perhaps I need to scale the IW between a high number to get the resolution required - but then how do I decide that my real/float is between 0 and 10?
Cheers in advance.
I'm trying to basically get an analogue input (4-20mA) to become a real/float between 0 and 10.
Currently to my knowledge that involves moving the IW to an MW, and then using the "INT_TO_REAL" function to change that MW to an MF.
However, the INT_TO_REAL function just consistently outputs 0. If i increase the scaling of my IW to something like 0-10,000 (rather than 0-10), the function outputs a long decimal followed by "E-42" or similar.
All I want is my analogue to become a real, scaled between 0 and 10 as before. I do note that perhaps I need to scale the IW between a high number to get the resolution required - but then how do I decide that my real/float is between 0 and 10?
Cheers in advance.