Start here for access to our Knowledge Base to get answers to over one hundred thousand questions online in seconds.Find Answers
...See what we've been doing in some of our major markets.Find your Location
Access tailored services, 24/7 self-service and expert help. Anywhere, anytime, any project.Discover now
Everything you need to know about our IoT technology backbone.Learn more
Explore our global offerings or select your country from one of our five regions.Global
Découvrez nos offres globales ou sélectionnez votre pays dans l’une de nos cinq régions.
Theis sample program is intended to demonstrate one or more programming functions or methods and is presented as programming example only. Schneider Electric assumes no liability for the use or application of this example program or any portion thereof.
sInstanceName = InputBox("Enter instance name")
If Len(sInstanceName) > 0 Then
'Specify ClearSCADA Server object.
Set oServer = CreateObject ("Serck.ScxV6Server")
' Provide connection information to connect to the ClearSCADA Database. The SystemName should be the same as in the Configure Connections utility.
oServer.Connect "SystemName", "UserName", "UserPassword"
' Get references to the Group to create the instance in.
Set oGroup = oServer.FindObject (Server.ThisObject.Parent.FullName)
' Create the instance by passing the class information.
Set oNewUser = oGroup.Create("CTemplateInstance")
' Name the instance.
Server.SetOPCValue oNewUser.FullName + ".TemplateId", 9
Sign up for all the latest solutions, offers and best practices straight to your inbox.
We are excited that you have joined the group. You will receive your welcome email soon describing the program and what to expect in the upcoming weeks. Enjoy!