Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel

[Imported] .NEt API tutorial

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Janeway Janeway

[Imported] .NEt API tutorial

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-25 19:42:35 Id:286
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.


**_Hello everyone. Could someone please advise me how to access .Net API help files on CleaeSCADA and if any code examples or training documentation exists specificaly for ClearSCADA?_**



There is the Client API Guide in the Start Menu under Schneider Electric - ClearSCADA

That's the best place for information that I use.


I recently used PowerShell to connect to ClearSCADA via .net API, here are part of the codes, hope it help.

1. Set reference to "ClearScada.Client.dll"

add-type -path "D:\\ClearScada.Client.dll"

2. Create the object

$scx = New-Object ClearScada.Client.Simple.Connection("test")

3. Connect


4. Log on

$scx.LogOn("username", "password")

5. Get all CDNP3Point descendants under the "Project.Group1" folder

$descendants = $scx.GetObject("Project.Group1").GetDescendants("CDNP3Point","")

6. Loop through all descendants and output the "CurrentValue" of each point

foreach ($decendant in $descendants) {

$v = $decendant.GetProperty("CurrentValue")

write-host $v


7. Disconnect