How can I add commas to numeric objects in Panelview 5310?

Question:

Is it possible to format a numeric object in PV 5310 to display commas in the thousands place? I am unable to find a way to do this through the properties panel.

Top Replies

Consider using a straightforward numerical display for improved clarity. The lack of numerics in the financial times (FT) was quite disappointing.

JeremyM suggested that a basic text display could be the solution, as the numerical presentation in FT was unsatisfactory. Would breaking down the number into segments and then combining them with commas as text be a viable option?

The PV5310 is equipped with Real Axis position and Cycle time. The Cycle timer operates on timers.acc, Dint functionality. This numeric display provides essential information for monitoring machine performance.

When a whole number is seven digits in length, it appears with commas in the format 1,234,567. This formatting feature is commonly used to make large numbers easier to read and understand.

I have yet to come across a device that only reads the tag value, but I am able to convert Dint's to Real's in order to ensure proper display. I am eager to use a Red Lion Graphite for this purpose.

Absolutely, formatting a numeric object to display commas in the thousands place in PV 5310 is indeed possible. You won't find this function in the properties panel though. Instead, you need to apply a custom format for this. Use the String.format method or DecimalFormat class in your code to get the formatting you desire. It works like a charm once you get the hang of it!

I believe you'll need to write a script to accomplish this. PV 5310, to my knowledge, does not natively support inserting commas in thousands places for numeric objects via the properties panel. You could suggest this feature to the development team for future updates. Meanwhile, you might find online platforms helpful, where there will likely be pre-written scripts that you can make use of.

Indeed, it seems that there's no direct option in the properties panel to format numbers with commas in the thousands place in the PV 5310. However, you can achieve this by manipulating the number at the software level before displaying it. If you're using JavaScript, for instance, you can use the "toLocaleString()" function to convert the number into a format which includes commas as thou separators. Ensure to pick the right locale that supports such a feature. The result can then be displayed in your numeric object. If you provide more specific details about your project, I might be able to give more tailored advice.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. How can I add commas to numeric objects in Panelview 5310? - You can add commas to numeric objects in Panelview 5310 by using a custom string display format. This feature allows you to specify how the numerical value should be displayed, including adding commas for thousands separation.

FAQ: 2. Is there a built-in option in Panelview 5310 to display numbers with commas?

Answer: - Panelview 5310 does not have a direct built-in option to display numbers with commas. However, you can achieve this by customizing the display format of the numeric object.

FAQ: 3. Can you provide a step-by-step guide on how to format numeric objects to display commas in Panelview 5310?

Answer: - To format numeric objects with commas in Panelview 5310, you can create a custom format string using the properties panel. First, select the numeric object you want to format, then navigate to the properties panel to set the custom display format including commas for thousands separation.

FAQ: 4. Are there any limitations or considerations to keep in mind when adding commas to numeric objects in Panelview 5310?

Answer: - While formatting numeric objects with commas in Panelview 5310 is possible, it is essential to ensure that the custom display format does not interfere with the readability or functionality of the HMI interface. Testing the display format thoroughly is recommended to avoid any issues.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’