Troubleshooting Time Format Concatenation in View Designer for PanelView 5000 Series

Question:

Hello, good morning! I am currently working on an HMI project using the Panel View 5000 series. While I struggled with Factory Talk View Studio, I am now facing challenges with View Designer, as I find it different when concatenating two DINTs with a semi colon in the middle to display time in the format mm:ss with two digits always showing. In my current expression in View Designer, I am encountering issues where the displayed time format varies depending on the tag values. This expression worked in Factory Talk View Studio, but not in View Designer: ::: Dryex.Line_1[2].Zone_Control.Remaining_Minutes +":"+:: Dryex.Line_1[2].Zone_Control.Remaining_Seconds If we had not already purchased the PanelView 5000, I would consider switching back to a PanelView Plus 7. Any thoughts or suggestions on how to resolve this issue would be greatly appreciated. Thank you.

Top Replies

User eight_bools mentioned that they are facing challenges with the View Designer while working on an HMI project using the Panel View 5000 series. They are trying to combine two DINTs with a semi-colon in the middle to display time in the format mm:ss, always ensuring two digits are shown. Despite successfully implementing this in Factory Talk View Studio, they are encountering issues in View Designer. The current expression in View Designer is as follows: Dryex.Line_1[2].Zone_Control.Remaining_Minutes +"."+ Dryex.Line_1[2].Zone_Control.Remaining_Seconds To address this issue, it is suggested to add one hundred to both numbers, convert them to strings, concatenate them to create a six-character string, truncate the first character to make it five characters long, and change the third character to a colon. This should help maintain the mm:ss format consistently. If the PanelView 5000 had not been already purchased, reverting to a PanelView Plus 7 would have been considered.

Incorporating SEO-friendly terms, drbitboy suggested adding 100 to each number, converting the resulting values into strings, and concatenating them to create a six-character string. The first character is then truncated, resulting in a five-character string, with the third character changed to a colon. Still unsure of the language being used in the expression editor? Here is an example to help clarify any syntax errors you may encounter.

Inquiring about an example for the expression editor? Struggling with syntax errors and unsure of the language used? Perhaps try this expression: Dryex.Line_1[2].Zone_Control.Remaining_Minutes + (Dryex.Line_1[2].Zone_Control.Remaining_Seconds * 0.01), displayed with 2 decimal digits and zero-filled on the left. This will show mm.ss with a period instead of a colon. Another option could be using three display widgets for mm, colon, and ss each filled with zeros.

Although I am unfamiliar with View Designer, I am curious if it offers an option for padding zeros in integer displays.

Eight_bools shared their struggles with creating a run time clock on an HMI using the Panel View 5000 series. While they found Factory Talk View Studio challenging, they faced new difficulties with View Designer when trying to concatenate two DINTs with a semi colon in the middle to display as mm:ss format accurately. Despite trying various expressions, including ZEROFILL, they were unable to achieve the desired consistent two-digit display. They contemplated reverting to a PanelView Plus 7 but ultimately tackled the issue by creating a Clock Template with 7 Display Boxes, including a feature to show a leading zero for single-digit seconds and minutes. This allowed them to achieve a visually appealing display like 1:05:02 when necessary. Have any tips or insights on improving this process? Any suggestions would be greatly appreciated!

Good morning! I can definitely see how transitioning to View Designer can be tricky, especially with formatting. To ensure you get the leading zeros for both minutes and seconds, you might want to try using the `Format()` function in your expression. Something like this should help: `Format(Dryex.Line_1[2].Zone_Control.Remaining_Minutes, "00") + ":" + Format(Dryex.Line_1[2].Zone_Control.Remaining_Seconds, "00")`. This way, regardless of the value of your DINTs, you'll have the correct mm:ss format every time. I hope that helps!

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: What is the issue the user is facing with time format concatenation in View Designer for PanelView 5000 Series?

Answer: The user is encountering issues with displaying time in the format mm:ss with two digits always showing when concatenating two DINTs with a semi colon in the middle.

FAQ: What is the specific problem with the user's expression in View Designer?

Answer: The expression the user is using in View Designer for concatenating two DINTs to display time is resulting in varying time format displays depending on the tag values, unlike in Factory Talk View Studio.

FAQ: What alternative solution does the user mention considering if facing difficulties with View Designer?

Answer: The user mentions considering switching back to a PanelView Plus 7 if they had not already purchased the PanelView 5000 due to the challenges faced with View Designer.

FAQ: Are there any suggestions or thoughts provided by the user seeking help in resolving the time format concatenation issue?

Answer: The user is seeking thoughts or suggestions on how to resolve the issue they are facing with time format concatenation in View Designer for the PanelView 5000 Series.

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  â†’