1/25/2021 8:56 PM | |
Joined: 9/23/2005 Last visit: 1/22/2025 Posts: 4396 Rating: (1464)
|
Hi, “Simple Samples” are small projects that demonstrate simple features. The target is giving a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps. Recipes (Parameter set) are an important tool for process operation, regarding to transfer and manager machine / plant parameters sets. Sometimes it is necessary to work with the contends of the parameter settings outside of the control object, for example for perform some consistence checks, to extract some specific information, or simply to know what is the name of a data set, for example. The first way to work with this is to access the data bank and work on that. This could be a little laborious and require specific knowledge of databases. However, a simple alternative way, explored here, is to export the recipes as data as text (tsv) and read it back in the script, working on this basis. So, the archive could be split line per line (i.e. each line represents one data set) and the lines could be splited field per field (i.e. ID, Name and values). TIP: take in account that there is 3 first header lines and 1 footer line and each cell is splitted by a tab character. An example of script to get a Parameter set name from the Parameter set ID is:
An example of script to list the first 3 parameter set names of a parameter archive is:
Here there is a sample program with these scripts. Thanks to Mr. David Kollinger for the concepts with database access and special tanks to Mr. Tobias Hauns for the help with import scripts.
AttachmentRecipes7.zip (1606 Downloads) |
Last edited by: Denilson Pegaia at: 01/25/2021 21:00:25Last edited by: Denilson Pegaia at: 01/25/2021 21:04:24Last edited by: Denilson Pegaia at: 01/25/2021 21:11:36Denilson Pegaia |
|
This contribution was helpful to7 thankful Users |
4/5/2022 12:43 PM | |
Joined: 9/23/2005 Last visit: 1/22/2025 Posts: 4396 Rating: (1464)
|
Hi, it should work. Maybe you didn't set the schedule task script as assinchron. Here there is a sample project with this implementation working. AttachmentRecipes7_V17_20220405_0741.zip (1270 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
1/10/2023 10:52 AM | |
Joined: 9/23/2005 Last visit: 1/22/2025 Posts: 4396 Rating: (1464)
|
Hi as of TIA V18 there is new functions that helps on this task. |
Denilson Pegaia |
|
This contribution was helpful to2 thankful Users |
Follow us on