Samples

In the following you will find Samples that show the handling of the TwinCAT XML Data Server. The samples are consecutively numbered and can be downloaded here.

Getting Started

The basic handling of the TwinCAT XML Data Server is shown. Besides you get to know how to work with structures and arrays.

Function Blocks

Four samples show the usage and configuration of the function blocks included in TcXmlDataSrv.Lib. (Sample 1-4)

Further Samples

This document includes further samples which show an initialization once at program startup and cyclic as well as event-driven writing. (Sample 5-6)

Production Sample

This sample shows the processing of a small production order. It makes use of FB_XmlSrvReadByName and FB_XmlSrvWriteByName. (Sample 7)