Creating recipe with Wincc Flexible 2008 SP3

JEANST

Member
Join Date
Jun 2015
Location
PARIS
Posts
68
Hello

I'm looking for a way to do the following but i don't know if it's possible..

I use Wincc flexible runtime PC

i use the recipes as follows

1 recipe (recipe name = Customer name)
parameters for each recipe(customer) => param 1, param2, ...
datarecords = list of the products reference for the concerning customer


I would like to know if it is possible to create a new recipe (new Customer) directly from the runtime application to enable operators to create new customers when necessary. by VBScript functions or other way.

usually i create the new recipe directly in winccflexible but they will not in the future.

I read many things on create/copy/delete datarecords from 1 recipe but nothing on create the whole recipe

Any help would be greatly appreciated :)
 
Hey

Hello,

I have done something like this.

In VBScript I used Export Recipes and Import Recipes from CSV files. The CSV files are exported in VBSCRIPT because I used the customername in de CSV filenames. With an Import button I could import the exported CSV files. 1 customer.csv file is a complete recipe. The records in it are the orders.

I can give you the vb script =>

Export:
Code:
Dim fso
If SmartTags("Databasename") <> "" Then	
Set fso = CreateObject("Scripting.FileSystemObject")
SmartTags("File") = SmartTags("Databasename") & ".csv"
ExportDataRecords "Order Database", 0, "C:\S\ORDERS\" & SmartTags("File"), hmiOverwriteWithConfirmation, hmiOn, Null
End If

Import:
Code:
DeleteDataRecord "Order Database", 0, hmiOff, hmiOn, Null

Delay(2) '2 seconds delay

SmartTags("File") = SmartTags("Databasename") & ".csv"
ImportDataRecords "C:\S\ORDERS\" & SmartTags("File"), 0, hmiOverwriteAlways, hmiOn, Null

Delay(2) '2 seconds delay

LoadDataRecord "Order Database", 1, Null
SetDataRecordTagsToPLC "Order Database", Null
ResetBit SmartTags("BATCH STATUS.VERZENDEN")



Hello

I'm looking for a way to do the following but i don't know if it's possible..

I use Wincc flexible runtime PC

i use the recipes as follows

1 recipe (recipe name = Customer name)
parameters for each recipe(customer) => param 1, param2, ...
datarecords = list of the products reference for the concerning customer


I would like to know if it is possible to create a new recipe (new Customer) directly from the runtime application to enable operators to create new customers when necessary. by VBScript functions or other way.

usually i create the new recipe directly in winccflexible but they will not in the future.

I read many things on create/copy/delete datarecords from 1 recipe but nothing on create the whole recipe

Any help would be greatly appreciated :)
 
Interesting POST... maybe you can help me!!

Hello!

I'have to do something like you described in first post...
I have to manage recipe via VB Script... is it possibile?
In particular I have to:
1 - import complete recipe list via .csv file
2 - create new recipe via VBScript
3 - change recipe name and elements via VB Script

Is it possible?

Thank you!
 
Project example

Hello,

I have done something like this.

In VBScript I used Export Recipes and Import Recipes from CSV files. The CSV files are exported in VBSCRIPT because I used the customername in de CSV filenames. With an Import button I could import the exported CSV files. 1 customer.csv file is a complete recipe. The records in it are the orders.

I can give you the vb script =>

Export:
Code:
Dim fso
If SmartTags("Databasename") <> "" Then	
Set fso = CreateObject("Scripting.FileSystemObject")
SmartTags("File") = SmartTags("Databasename") & ".csv"
ExportDataRecords "Order Database", 0, "C:\S\ORDERS\" & SmartTags("File"), hmiOverwriteWithConfirmation, hmiOn, Null
End If

Import:
Code:
DeleteDataRecord "Order Database", 0, hmiOff, hmiOn, Null

Delay(2) '2 seconds delay

SmartTags("File") = SmartTags("Databasename") & ".csv"
ImportDataRecords "C:\S\ORDERS\" & SmartTags("File"), 0, hmiOverwriteAlways, hmiOn, Null

Delay(2) '2 seconds delay

LoadDataRecord "Order Database", 1, Null
SetDataRecordTagsToPLC "Order Database", Null
ResetBit SmartTags("BATCH STATUS.VERZENDEN")
--------------------------------------------------------------------------
Dear Combo,
Can you give me this example project with VB code to me please
[email protected]

Thank you
Vorapob
 

Similar Topics

Hello I'm looking for a way to do the following but i don't know if it's possible.. I use Wincc TIA V15 comfort panel i use the recipes as...
Replies
2
Views
3,539
Does any one have a sample code for creating recipe in RSLogix 5000. I need to be able to save 20 recipes that could have up to 20 ingredients...
Replies
2
Views
2,322
Good afternoon, I need to create a recipes display on the hmi ns8, to change the parameters of a servo and some strings . The PLC that im using is...
Replies
0
Views
2,752
The idea here is to provide for a brief rapid influx of message codes while preventing sequentially repeating the same message. i.e. if two...
Replies
23
Views
519
Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
57
Back
Top Bottom