In today’s article I cover how to scale a value in a numeric display within FactoryTalk View Studio.
A reader recently reached out to me with a problem he was having.
He had a number like 411 that he wanted to be displayed as 4.11.
But when he changed the number of digits and decimal places in the numeric display’s properties as shown below…
He found that while the display changed, the value didn’t.
So I explained to him that while those settings wouldn’t actually change the value displayed, he did have a few options to make the change he wanted.
First, I recommended he scale the value in the PLC.
That’s my preference because I’ve found it can be very helpful to have both the raw and scaled values in the PLC when you’re troubleshooting code.
But editing existing PLC code isn’t always an option, so I also mentioned he could easily scale the Tag’s value in the Tag’s settings IF his numeric display referenced an HMI Tag .
However, when using Logix base processors most designers directly reference tags in the controller, and therefore I told him the easiest option would likely be to scale the value right there in the numeric display itself.
And that can be done by following the five simple steps below:
NOTE: You can purchase “ad free” copies of our articles, videos, and sample code for $1 each here. Or become a “Patron” for as little as $1 a month and receive at least $3 worth of articles/videos/sample code free each month! Find out more here.
Step 1) With the graphic open in View Studio, double click on the numeric display in question:
Step 2) Then select the “Connections” tab:
Step 3) Then click on the “Exprn” button to open the expression editor:
Step 4) Then enter in your expression and click on “OK” and then save your graphic display.
Note: In this example I divide the Tag by 100:
Step 5) Now when you test the display (or run the project) you’ll see the actually value displayed is not the tag value but instead the result of your numeric display’s expression:
Watch me demonstrate this procedure below in Episode 3 of The Automation Minute Season 4:
Have a question or comment? Please feel free to leave them with us HERE.
Until next time, Peace ✌️
If you enjoy this episode please give it a Like, and consider Sharing as this is the best way for us to find new guests to come on the show.
Shawn M Tierney
Technology Enthusiast & Content Creator
Eliminate commercials and gain access to my weekly full length hands-on, news, and Q&A sessions by becoming a member at The Automation Blog or on YouTube. You'll also find all of my affordable PLC, HMI, and SCADA courses at TheAutomationSchool.com.
- Programming Options for the MicroLogix, SLC-500 and PLC-5 (2024) (M5E41) - December 2, 2024
- What’s New in Automation for Monday December 2, 2024 (W014) - December 2, 2024
- Manufacturing Execution Systems (P229) - November 26, 2024
Discover more from The Automation Blog
Subscribe to get the latest posts sent to your email.
if i wanted to right back to my data array, the operator is going to enter a value like 41.5 (psi)
but the array has the number stored as 4150 (i’m messaging across pre built message scheme that uses DINT to send data) can i add that multiple by 100 to return the data in the correct format? i can technically scale in the PLC but i have 1980 points in my array i would have to right the scaling for.
This article is on the Numeric Display – did you try changing the same settings with the Numeric Input?
I’m traveling, but if my memory is correct it works both ways,
Shawn