Samples

Description

Programming language

Download

Comments

Sample 1: Adding of Additional Tasks and Variables; TwinCAT Start / Stop

C++

SysManSamples.exe (Self extracting)

Visual Studio 2008 project

Sample 2: OpenConfiguration and CloseConfiguration, Scan Devices, Scan Boxes, Scan Terminals, Adding EtherCAT Devices, Import/Export

C#

SysManSamples.zip

Visual Studio 2010 project (.NET 2.0)

Sample 3: Linking a PLC project

C#

PowerShell

LinkPLCProjectTC2.zip

LinkPLCProjectTC2_PS.zip

Visual Studio 2010 project (.NET 4.0)

Requires Windows PowerShell

Sample 4: Activating a configuration

C#

PowerShell

IronPython

ActivatePreviousConfigurationTC2.zip

ActivatePreviousConfigurationTC2_PS.zip

ActivatePreviousConfigurationTC2_PY.zip

Visual Studio 2010 project (.NET 4.0)

Requires Windows PowerShell

Requires IronPython Interpreter

Sample 5: Linking PLC variables to IO

C#

PowerShell

IronPython

LinkVariablesTC2.zip

LinkVariablesTC2_PS.zip

LinkVariablesTC2_PY.zip

Visual Studio 2010 project (.NET 4.0)

Requires Windows PowerShell

Requires IronPython Interpreter

Sample 6: Activate configuration on a remote target

C#

PowerShell

IronPython

ActivateConfigurationRemoteTC2.zip

ActivateConfigurationRemoteTC2_PS.zip

ActivateConfigurationRemoteTC2_PY.zip

Visual Studio 2010 project (.NET 4.0)

Requires Windows PowerShell

Requires IronPython Interpreter

Sample 7: Creating System Manager project with multiple EtherCAT boxes, including PLC and IO linking (very detailed sample)

C#

PowerShell

IronPython

EtherCATLinkingTC2.zip

EtherCATLinkingTC2_PS.zip

EtherCATLinkingTC2_PY.zip

Visual Studio 2010 project (.NET 4.0)

Requires Windows PowerShell

Requires IronPython Interpreter

Sample 8: Scanning for new devices and boxes

C#

ScanBoxesTC2.zip

Visual Studio 2010 project (.NET 2.0)

Sample 9: Adding an ADS route to a remote target

C#

AddingRoutesTC2.zip

Visual Studio 2010 project (.NET 2.0)