Technical Forum

SIMATIC WinCC

C-script to VB-script Help

Thread Starter: ch0k0pe   Started: 6/1/2012 8:59 PM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  6/1/2012, 8:59 PM
Joined 10/20/2011
Last visit: 5/22/2013
Posts: 19
Rating:
Rated: Outstanding [4 out of 5 / rated 1 time(s)]. (1) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I need help converting this C-script to VB-script.

if(GetTagBit("M700_3_2")==1)
SetTagBit("M700_0_2",0), 
SetTagBit("M700_4_2",1);

Im not very good with VB-script, i tried many ways but i keep getting syntax error.
If somebody can help me with this code or sending me a link with a manual for this.

Thanks
Top
  6/4/2012, 9:45 AM
Joined 10/11/2006
Last visit: 5/23/2013
Posts: 1741
Rating:
Rated: Outstanding [3.45 out of 5 / rated 77 time(s)]. (77) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

see the WinCC online help chapter
Working with wincc > VBS for creating procedure and actions > Exaamples of VBScript > Examples in WinCC > Example: Writing tag valus
Top
Page 1 of 1 (2 items)
Actions