Ballza Posted July 24 Report Share Posted July 24 Hello, I have a USP-156-x10 controller and using some URB remote I/O. In particular I have a 4 channel analogue input module URA-0400T which I have some temperatures and flows wired into. When I create these modules the default data type is UINT16. I would like to display the temperatures on the HMI with one decimal point accuracy, for example 0.0 to 100.0 Deg C rather than 0 to 100 Deg C. Is this possible with this type of analogue input and how would I go about doing that? Thank you. Quote Link to comment Share on other sites More sharing options...
AlexUT Posted July 24 Report Share Posted July 24 There is an example "Num to ASCII" in UniLogic Examples. It use UDFB. If this example does not fit your needs - you can write one which fitting your needs. Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 24 Report Share Posted July 24 You can use implied decimal. Quote Link to comment Share on other sites More sharing options...
pascal Posted July 24 Report Share Posted July 24 Ballza, URA-0400T -> 4 inputs 0..20mA or 4..20mA You use a linearize function with a = reading input URA 0400T, b= value 0 (if it's 0mA) c= depends of your analog device when it's 0mA D=65535 (16 bits = 20mA) and E the value of your analog device when he outputs 20mA if your device is 20mA = 100°C of 100 bar -> then you say value E=100x10 = 1000 When showing the value on screen or webserver -> you choose decimal point location= 1 it's that simple.... 1 Quote Link to comment Share on other sites More sharing options...
Ballza Posted July 24 Author Report Share Posted July 24 Thank you for that Pascal, that make sense. I will give this a go when our factory has a shut down tomorrow Cheers Quote Link to comment Share on other sites More sharing options...
Ballza Posted July 29 Author Report Share Posted July 29 Thanks again Pascal, worked a treat!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.