Ballza Posted July 24, 2023 Report Share Posted July 24, 2023 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. Link to comment Share on other sites More sharing options...
AlexUT Posted July 24, 2023 Report Share Posted July 24, 2023 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. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 24, 2023 Report Share Posted July 24, 2023 You can use implied decimal. Link to comment Share on other sites More sharing options...
pascal Posted July 24, 2023 Report Share Posted July 24, 2023 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 Link to comment Share on other sites More sharing options...
Ballza Posted July 24, 2023 Author Report Share Posted July 24, 2023 Thank you for that Pascal, that make sense. I will give this a go when our factory has a shut down tomorrow Cheers Link to comment Share on other sites More sharing options...
Ballza Posted July 29, 2023 Author Report Share Posted July 29, 2023 Thanks again Pascal, worked a treat!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now