10/6/2006 11:27 AM | |
Posts: 3149 Rating: (171)
|
Hi, perhaps you could save pretious time by buying this tool ??? https://www.automation.siemens.com/hmi/html_76/products/software/wincc_addons/wcc_addon_profil_nr18.htm Enjoy your weekend, nemo |
10/11/2006 6:01 PM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
Well I gave this a go and now my head is spinning [:o][:P] Attachments7 address format.pdf (370 Downloads) |
10/18/2006 6:04 AM | |
Joined: 5/19/2006 Last visit: 12/3/2024 Posts: 549 Rating: (107)
|
Sub InputValue_OnPropertyChanged(Byval Item, Byval value) Dim s7addressObj, anyType, anyNum, anySubArea, anyArea, anyOffset1, anyOffset2 Set s7addressObj = New S7Address With s7addressObj .Address = value If (.IsValidAddress) Then Item.ForeColor = vbBlack Item.ToolTipText = "" anyType = .DataType anyNum = .DataNo anySubArea = .SubArea anyArea = .Area anyOffset1 = .Offset1 anyOffset2 = .Offset2 Else Item.ForeColor = vbRed Item.ToolTipText = .ErrorText anyType = 0 anyNum =0 anySubArea = 0 anyArea = 0 anyOffset1 = 0 anyOffset2 = 0 End If Item.OutputValue = .Address End With 'Other code in here End Sub AttachmentS7AddressClass.zip (391 Downloads) |
Last edited by: Dec at: 10/18/2006 6:43 AMLast edited by: Dec at: 10/18/2006 6:07 AM |
|
10/20/2006 11:31 AM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
Very nice [8)] |
Follow us on