Technical Forum

SIMATIC WinCC flexible

DeleteDataRecord

Thread Starter: Per Olof   Started: 5/30/2012 1:16 PM   Replies: 4

« Previous thread Next thread »
Page 1 of 1 (5 items)
  5/30/2012, 1:16 PM
Joined 5/8/2010
Last visit: 5/8/2013
Posts: 146
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello all,

I would like to use the function 'DeleteDataRecord' in script. What is the syntax ? I have tried

DeleteDataRecord "script_1", 0

But the compiler complains ...

Regards
Per Olof
Top
  5/30/2012, 1:48 PM
Joined 9/28/2005
Last visit: 5/15/2013
Posts: 2912
Rating:
Rated: Excellent [4.02 out of 5 / rated 208 time(s)]. (208) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Per Olof wrote:
Hello all,

I would like to use the function 'DeleteDataRecord' in script. What is the syntax ? I have tried

DeleteDataRecord "script_1", 0

But the compiler complains ...

Regards
Per Olof


Well first of all, I hope your recipe is called "script_1", because first parameter should be recipe name. Furthermore you miss 3 more parameters. Please look help system of WinCC Flex

Regards,
--------------------------------
Darius
Automation engineer/programmer
Top
  5/30/2012, 2:13 PM
Joined 5/8/2010
Last visit: 5/8/2013
Posts: 146
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
DeleteDataRecord "Script_1", 0, hmiOff, hmiOff,SmartTags("General\Status")

I though you only needed the first two :) Thanks.
Top
  5/30/2012, 2:45 PM
Joined 9/28/2005
Last visit: 5/15/2013
Posts: 2912
Rating:
Rated: Excellent [4.02 out of 5 / rated 208 time(s)]. (208) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Per Olof wrote:
DeleteDataRecord "Script_1", 0, hmiOff, hmiOff,SmartTags("General\Status")

I though you only needed the first two :) Thanks.


no problem.
OFT: is your recipe name really "script_1" ?

Regards,
--------------------------------
Darius
Automation engineer/programmer
Top
  5/30/2012, 3:47 PM
Joined 5/8/2010
Last visit: 5/8/2013
Posts: 146
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
:) No, I was just plaing around to get it to work :) Not a good name :)
Top
Page 1 of 1 (5 items)
Actions