It appears challenging to extract a specific part of a string value using a text or string object in this case. Without text or string functions similar to MID in Excel, it seems the only option is to concatenate strings together. For instance, if {#100} contains the string "Sump Pump 23", one can concatenate it with " Running" to get "Sump Pump 23 Running". However, there seems to be no straightforward way to display just "Pump 23 Running".
If you're not comfortable working with VBA, it appears that the only option is to concatenate strings. However, I discovered a workaround using the "Fixed number of characters" and "Right-most characters in string are displayed" features to show the last 5 characters that I required. It seems strange that you can only remove characters from the front - why not have options for removing characters from the middle or left as well?
For those new to Rockwell HMIs, their user interface products may not meet expectations. Numerous instances can be found where improvements could be made but were overlooked.
Looking for information on how to troubleshoot or fix issues with your mouse scroll wheel? Let's dive into some common problems and solutions related to scroll wheel functionality.
Inquiring about mouse scroll wheel compatibility? Check out the discussion on http://www.plctalk.net/qanda/showthread.php?p=753587#post753587 where LoganB shares insights. @Tanquen suggests using VBA for extracting substrings. Curious why VBA is recommended in FTV? When used effectively, VBA in FTV can prevent potential issues.
There are several reasons why VBA may not be the best choice. It can be complex and time-consuming, with the need to add additional objects that may cause performance issues. Despite being a long-standing and expensive software, Autodesk has not addressed common issues such as disappearing handles when selecting objects. The cost of adding points to the Historian can be exorbitant, with a week wasted trying to get OPC-UA to work properly. In my experience, using VBA with global objects has been problematic, leading to crashes and corruption. It seems that these issues may not be resolved anytime soon.
While concatenation certainly seems like the go-to method here, you might consider using regular expressions (or regex) for string manipulation too. For instance, in Python, you could use the 're' module to search and extract specific parts of a string. So, in your given example, you could use a pattern to match ' Pump 23' and ' Running' from your string. It can provide better results and more flexibility than concatenation in certain cases. It sounds a bit intimidating if you're new to it, but once you get the hang of regex, it can be quite powerful!
I see where you're coming from and can absolutely empathize with your frustration; string manipulation really can be that tricky sometimes. However, remember that most modern programming languages have built-in methods that can extract necessary parts from a string. For example, in Python, we use split(), partition(), or slice syntax to extract specific parts of the string. In your case, presuming that the first word is always irrelevant, you could use string.split()[1:] to get "Pump 23", and then concatenate it with "Running". Always make sure to explore built-in solutions - they often turn out to be a real life-saver!
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: 1. How can I extract specific text from a string tag in FactoryTalk View SE V10? - In FactoryTalk View SE V10, since there are no built-in text or string functions like MID in Excel, one approach is to concatenate strings to achieve the desired result. For example, if {100} contains "Sump Pump 23", you can concatenate it with " Running" to display "Sump Pump 23 Running". However, displaying only "Pump 23 Running" directly may require a workaround.
Answer: - As of the current version, there isn't a direct method to extract specific text from a string in FactoryTalk View SE V10 without concatenating strings. You may need to explore alternative methods or consider using custom scripting to achieve the desired text extraction.
Answer: - One limitation in FactoryTalk View SE V10 is the absence of text or string functions like MID in Excel, which can make extracting specific text challenging. While concatenation can be used to manipulate strings, displaying only a portion of the string may require additional steps or customization. It's essential to consider these limitations when working with string values in FactoryTalk View SE V10.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.