You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old June 11th, 2015, 10:04 AM   #1
JEANST
Member
France

JEANST is offline
 
Join Date: Jun 2015
Location: PARIS
Posts: 53
Creating recipe with Wincc Flexible 2008 SP3

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
  Reply With Quote
Old June 12th, 2015, 04:39 PM   #2
Combo
Lifetime Supporting Member
Belgium

Combo is offline
 
Join Date: Jul 2002
Location: Belgium
Posts: 2,768
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")


Quote:
Originally Posted by JEANST View Post
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
  Reply With Quote
Old June 16th, 2015, 01:30 AM   #3
JEANST
Member
France

JEANST is offline
 
Join Date: Jun 2015
Location: PARIS
Posts: 53
hello

Hello

thanks for reply
it sounds good
i will test this and tell you about this
  Reply With Quote
Old June 16th, 2015, 04:37 AM   #4
Combo
Lifetime Supporting Member
Belgium

Combo is offline
 
Join Date: Jul 2002
Location: Belgium
Posts: 2,768
Project

If you dont manage to get it work, I can send you my project.

regards
Gerry

Quote:
Originally Posted by JEANST View Post
Hello

thanks for reply
it sounds good
i will test this and tell you about this
  Reply With Quote
Old June 22nd, 2015, 10:08 AM   #5
JEANST
Member
France

JEANST is offline
 
Join Date: Jun 2015
Location: PARIS
Posts: 53
Hello Yes i would be interesting to have a look at your code
if possible thanks to propose
  Reply With Quote
Old June 28th, 2015, 04:20 PM   #6
Combo
Lifetime Supporting Member
Belgium

Combo is offline
 
Join Date: Jul 2002
Location: Belgium
Posts: 2,768
Can you give me your email in PM pls

Can you give me your email in PM pls
I will send you my project.

Kind regards
G

Quote:
Originally Posted by JEANST View Post
Hello Yes i would be interesting to have a look at your code
if possible thanks to propose
  Reply With Quote
Old June 29th, 2015, 03:46 AM   #7
Combo
Lifetime Supporting Member
Belgium

Combo is offline
 
Join Date: Jul 2002
Location: Belgium
Posts: 2,768
Okay, thank you for your PM, I have send you my project that I did in 2009.
Kind regards,

G
  Reply With Quote
Old July 9th, 2015, 08:18 AM   #8
Combo
Lifetime Supporting Member
Belgium

Combo is offline
 
Join Date: Jul 2002
Location: Belgium
Posts: 2,768
helped

And it helped you out ?

Kind regards,
G
  Reply With Quote
Old May 8th, 2016, 05:52 AM   #9
Max_Tor
Member
Italy

Max_Tor is offline
 
Join Date: May 2016
Location: Modena
Posts: 1
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!
  Reply With Quote
Old May 15th, 2019, 12:27 PM   #10
tonsc2002
Member
Thailand

tonsc2002 is offline
 
Join Date: Sep 2012
Location: Songkhla
Posts: 3
Project example

Quote:
Originally Posted by Combo View Post
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
tonsc2002@gmail.com

Thank you
Vorapob
  Reply With Quote
Old May 15th, 2019, 12:30 PM   #11
tonsc2002
Member
Thailand

tonsc2002 is offline
 
Join Date: Sep 2012
Location: Songkhla
Posts: 3
Project example

Quote:
Originally Posted by JEANST View Post
Hello

thanks for reply
it sounds good
i will test this and tell you about this
Can you give me completed project please ?
Best Regards,
Vorapob
tonsc2002@gmail.com
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
WinCC Flexible 2008 ADV-> WinCC TIA portal ADV rQx LIVE PLC Questions And Answers 0 December 16th, 2014 02:24 PM
Siemens SIMATIC WinCC flexible 2008 Advanced - Installation Fails Saulo35 LIVE PLC Questions And Answers 4 October 7th, 2013 08:14 AM
WinCC Flexible 2008 SP3 and string multiplexing flapus LIVE PLC Questions And Answers 1 January 26th, 2013 01:48 PM
Problem with WinCC 2008 Flexible Liam Moran LIVE PLC Questions And Answers 2 October 26th, 2012 11:49 AM
WinCC Flexible 2008 SP3. "Filter" for Alarm view. JesperMP LIVE PLC Questions And Answers 0 October 9th, 2012 07:26 AM


All times are GMT -4. The time now is 01:22 PM.


.