How to Filter and Sort Recipes in WinCC Unified Parameter Set Control

Question:

Hello, I am new to using WinCC Unified (v17) and I have noticed that some features I used in Comfort are no longer available. I am currently struggling to become familiar with parameter sets, which I used to refer to as recipes as I believe the former name was more intuitive. I have created a recipe and would like to display the name of the currently loaded recipe. Additionally, I am looking for a way to filter recipes based on the internal IO value field. I was able to achieve this in the alarm view using a script, but I am struggling to do the same in the Parameter Set Control. I have enabled the "Allow filter" and "Allow sorting" options in the Parameter Set Control, but I do not see any changes. I am unsure of how to filter or sort the recipe view - do I need to click somewhere to apply these changes? Since my recipe names follow the format "HeightXWidth," I would like to at least be able to sort them if filtering is not possible. Currently, the recipes are displayed in the table by creation number, causing them to be mixed up. Thank you for any assistance!

Top Replies

I stumbled upon a helpful discussion in the Siemens forum regarding a method to extract parameter set names from their IDs. In my current situation, where recipe names are saved as dimensions (height x width), I created a button that automates the process of exporting, importing, and reading parameter sets to identify the set's ID. This allows me to load the recipe into the PLC system. At present, I am using the path "C:\\Users\\Public\\Parameter set control_1.tsv" for exporting data, which I plan to adjust once I have access to the HMI. The code snippet below demonstrates the process: By following this approach, I hope to assist others facing similar challenges. Moving forward, I anticipate Siemens to enhance user-friendliness and streamline the solution. My ideal scenario would include a stock recipe screen with an efficient filter function, facilitating quick access to recipes without extensive scrolling through a large number of sets.

Thank you for your assistance, dbozic. I found it very useful. I have developed a recipe "Selector" that involves generating a "tsv" file on Window load. This file is then used with specific field/column values provided by the user (using one textbox or list for each column), followed by clicking on a search button. When the "Search" button is clicked, the file is loaded and parsed to identify the matching ID. This method has proven to be efficient. I also agree with your observation about the scrolling control in the "recipe set." In my current project, there are initially 250 recipes, and this number is expected to increase in the future. I have proposed the idea of a barcode sheet to the client, which would directly fetch the ID. However, for now, this solution has worked best.

Could you provide a guide or code snippet for filtering and sorting recipes in Siemens software? I'm a beginner to Siemens and looking for assistance in organizing recipes effectively.

Hello! Adjusting to a new software can indeed be quite challenging at first but once you're familiar with it, it becomes a lot easier. In regards to displaying the loaded recipe name, you might want to look into using the parameter set API. You can use the 'GetCurrentParameterSet()' method to return the currently loaded set. As for the Parameter Set Control filter, it sounds like you are on the right track. The filters and sorting should normally become effective automatically upon enabling. If they're not functioning as expected, it might be a software bug or there could be some other configurations you might have missed. Lastly, if you're unable to sort or filter the recipe view based on the names, you could try to implement a workaround using scripting. You can use a script to read all the parameter sets and then sort them based on the specific name sequence you've mentioned. I hope this helps! Please let me know if you have any more questions, I'd be glad to assist further.

Welcome to the WinCC Unified community! It can definitely take some time to get used to the new terminology and features. To display the currently loaded recipe name, you can use a binding to the relevant parameter set property. As for filtering and sorting in the Parameter Set Control, make sure that you are also implementing the necessary scripts to apply these features since the UI might not automatically refresh after enabling those options. Also, check whether the data source for your recipes is properly set up—if it's not linked correctly, that could explain why you're not seeing the expected changes. For sorting your recipes by name, a custom script might be the best route since the automatic sorting isn't aligning with your naming scheme. If you need more detailed guidance on scripting, feel free to ask! Good luck!

Welcome to the WinCC Unified community! I totally understand your frustration with the changes from Comfort, especially when it comes to parameter sets. For displaying the currently loaded recipe name, you can typically bind a text display to the relevant variable in your recipe management. As for filtering and sorting in the Parameter Set Control, make sure you've also set up the necessary data bindings correctly so that the UI can recognize the filters. Sometimes, refreshing the view or double-checking the properties can help in seeing the changes come through. If sorting isn’t working as expected, you might want to look into the sorting criteria you've specified—try assigning a custom sorting method based on your naming convention. Don’t hesitate to reach out for more specific scripts or configurations if needed; it can be quite a learning curve!

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.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

FAQ: 1. How can I display the name of the currently loaded recipe in WinCC Unified Parameter Set Control?

Answer: - To display the name of the currently loaded recipe, you can utilize script functionalities within WinCC Unified Parameter Set Control. Consider writing a script that retrieves and displays the name of the loaded recipe.

FAQ: 2. How can I filter recipes based on the internal IO value field in WinCC Unified Parameter Set Control?

Answer: - Filtering recipes based on the internal IO value field in WinCC Unified Parameter Set Control requires scripting. Ensure you have enabled the "Allow filter" option and implement a script that filters the recipes based on the internal IO value field.

FAQ: 3. How can I sort recipes in WinCC Unified Parameter Set Control?

Answer: - In WinCC Unified Parameter Set Control, you can enable the "Allow sorting" option to arrange recipes. If you wish to sort recipes based on a specific format like "HeightXWidth," consider implementing a script that sorts the recipes accordingly. Remember to click to apply the sorting changes after enabling the option.

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