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.
The basic handling of the TwinCAT XML Data Server is shown. Besides you get to know how to work with structures and arrays.
Four samples show the usage and configuration of the function blocks included in TcXmlDataSrv.Lib. (Sample 1-4)
This document includes further samples which show an initialization once at program startup and cyclic as well as event-driven writing. (Sample 5-6)
This sample shows the processing of a small production order. It makes use of FB_XmlSrvReadByName and FB_XmlSrvWriteByName. (Sample 7)
Further Information