Industry Online Support
Technical Forum
5/29/2012 3:52 PM | |
Posts: 24 Rating: (0) |
Hi, Like I mentioned in the subject , I want to write data to a global data block array from VB script. I saw this post on the forum. https://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&objId=53751832&nodeid0=29157705&load=treecontent&lang=en&siteid=cseus&aktprim=0&objaction=csview&extranet=standard&viewreg=WW I read that you could read data from an array, just like this: Example (Array tag with controller link) Dim Tag_01 'Internal script tag Tag_01 = SmartTags("DB10_HMI_Data")(2) But how do I write data to an array location ? This does not work: SmartTags("DB10_HMI_Data")(2) = 8 Any way I don’t get any error. But the program cannot further execute de code from there. |
Last edited by: MKS02 at: 5/31/2012 8:26 AMLast edited by: MKS02 at: 5/29/2012 4:06 PM |
|
5/30/2012 5:09 PM | |
Posts: 3037 Rating: (192)
|
Hello, I have tested your script. SmartTags("DB10_HMI_Data")(2) = 8 It works in my project. Tweety |
5/31/2012 9:06 AM | |
Posts: 8946 Rating: (999) |
selected TAG is integer? |
5/31/2012 9:23 AM | |
Posts: 24 Rating: (0) |
@ IBN-Serviceyes it is ^^ |
Follow us on