SIMATIC Automation Tool API for .NET framework
6.3 Referencing the API in a customer application
SIMATIC Automation Tool V2.1 user guide
70 Manual, V2.1.1 07/2016, A5E33042676-AC
Referencing the API in a customer application
The API is delivered as a single DLL:
AutomationToolAPI.dll
This DLL was created with Microsoft Visual Studio 2010 using the .NET framework 4.0. It
can be used with applications created with this version of Visual Studio or later, up to and
including Visual Studio 2015 SP2. All code examples and screen captures in this document
were made with Visual Studio 2015 SP2 in the C# programming language.
To include the API in your application, you must add
AutomationTool.dll as a "reference" in
the Visual Studio solution.
In any source file where the API classes are referenced, you must add the following
using
statement referencing the API namespace.
using Siemens.Automation.AutomationTool.API;
In order to compile any of the code samples in this document, the correct
using statement
must be present in the same source file (*.cs) as the example code. For simplicity, the
individual code examples in this document will not include the using statement.
To use the API at runtime, the correct version of S7 communications must be installed on the
PG/PC. The easiest way to ensure you have the correct files is to install the SIMATIC
Automation tool on that machine. Once installed, the API dll (AutomationToolAPI.dll) can be
placed in any folder on the PG/PC and used successfully.