3/27/2014 3:13 PM | |
Joined: 12/12/2011 Last visit: 12/30/2020 Posts: 821 Rating: (41)
|
Hi Martin, it is possible to access WinCC tags from external. But not via Runtime, because there is no interface. So, the accesspoint should be the sql database. Best Regards, Healthcheck |
Grundkurs/Systemkurs WinCC V7: |
|
4/10/2014 3:07 PM | |
Posts: 2 Rating: (0) |
Hi Healthcheck, thanks for your help. It was indeed the right way to solve my problem. Best Regards, Martin |
This contribution was helpful to1 thankful Users |
4/12/2014 8:17 AM | |
Joined: 9/1/2005 Last visit: 8/1/2024 Posts: 4104 Rating: (194) |
follow up question published by alriskis split to a seperate thread with the subjectaccessing Tags via SQL. Best regards CS Moderator |
My Forum is the place to personalize your profile, |
|
4/29/2014 12:46 PM | |
Joined: 7/20/2007 Last visit: 6/26/2024 Posts: 43 Rating: (4) |
Hi, i attash a small vbs script to detect the WinCC online project with a vbs file. ' test.vbs file Dim HMIRuntime Dim HMITags Set HMIRuntime = CreateObject("CCHMIRUNTIME.HMIRUNTIME") Set HMITags = CreateObject("CCHMITAGS.HMITAGS") MsgBox HMIRuntime.ActiveProject.Name 'and read tag MsgBox HMITags ("@DatasourceNameRT").Read Attachmentreadtag.zip (305 Downloads) |
Last edited by: io ba at: 5/15/2014 7:53 PMLast edited by: io ba at: 4/29/2014 2:40 PMplc.nanospic.com |
|
This contribution was helpful to1 thankful Users |
5/15/2014 9:21 AM | |
Posts: 291 Rating: (68) |
Hi Martin, Please try the followings (.vbs): It works well here in my testing. ============================================== Dim McpName Dim MyTagValue_Get Dim MyTagValue_SetRet 'Please make sure that the WinCC-RT has been activated. Set Mcp = CreateObject("WinCC-Runtime-Project") If Not Mcp Is Nothing Then McpName = Mcp.RuntimeProject MyTagValue_Get = Mcp.getvalue("rACT_POS_VN") MyTagValue_SetRet = Mcp.SetValue("rACT_POS_VN", 1032.32) End If wscript.echo McpName Set Mcp = Nothing ======================================================= Best regards, Komi AttachmentVBS_SetTagValue.zip (305 Downloads) |
This contribution was helpful to3 thankful Users |
Follow us on