Advanced Samples

TwinCAT ADS .NET

Descripion

Linking into TwinCAT3 (C#)

Linking into Microsoft Visual Studio (C#)

Linking into Microsoft Visual Studio .NET (VB)

Linking into Borland Developer Studio 2006 (Delphi for .NET)

Linking into Delphi Prism (Embarcadero Prism XE2, Oxygene for .NET)

Description

Visual C#

Visual Basic
(for .NET Framework)

Delphi Prism
(Embarcadero Prism XE2, Oxygene for .NET)

Delphi for .NET
(Borland Developer Studio 2006)

Sample 1: Accessing an array in the PLC

Sample01.zip

Sample01.exe

Sample01.exe

Sample01.exe

Sample 2: Transmitting a structure to the PLC

Sample02.zip

Sample02.exe

Sample02.exe

Sample02.exe

Sample 3: Event driven reading

Sample03.zip

Sample03.exe

Sample03.exe

Sample03.exe

Sample 4: Reading and writing of string variables

Sample04.zip

Sample04.exe

TwinCAT.Ads.NET
v1.0.0.10 and higher:
Sample04b.exe

Sample04.exe

Sample04.exe

Sample 5: Reading and writing of DATE/TIME variables

Sample05.zip

Sample05.exe

Sample05.exe

Sample05.exe

Sample 6: Read PLC variable declaration

Sample06.zip

Sample06.exe

Sample06.exe

Sample06.exe

Sample 7: Reading and writing of PLC variables of any type

Sample07.zip

Sample07.exe

Sample07.exe

Sample07.exe

Sample 8: Detect state changes of TwinCAT router and PLC

Sample08.zip

-

Sample08.exe

-

Sample 9: ADS-Sum Command: Reading or writing several variables

Sample09.zip

-

Sample09.exe

-

Sample 10: Reading of SMB values from TwinCAT I/O driver

-

Sample10.exe

-

-

Sample 11: Delete a handle of a PLC variable

Sample11.zip

-

Sample11.exe

-

Sample 12: Read flag synchronously from the PLC

Sample12.zip

-

Sample12.exe

-

Sample 13: Write flag synchronously into the PLC

Sample13.zip

-

Sample13.exe

-

Sample 14: Start/stop PLC

Sample14.zip

-

Sample14.exe

-

Sample 15: Access by variable name

Sample15.zip

-

Sample15.exe

-

TwinCAT ADS Webservice

Description

Sample code

Sample 1: Consumer in C# to read and write PLC variables

Sample01.exe

Sample 1: Consumer in Delphi 8 for .NET to read and write PLC variables

Sample01.exe