Examples
The following examples have been developed with different
hardware.
Sample 2 - Tutorial
The usage of the library function blocks is described as tutorial in the chapters 'Linking into a PLC Program' and 'Configuration in the TwinCAT System Manager'. The employment of different hardware is mentioned here too.
Sample 3 - Usage of virtual serial com ports
with installation > v2.3.0 supported
This example can be used for various applications with virtual
com ports.
It is possible to send a user-defined data stream and to receive
any incomming data.
This sample is no application sample. It is a test program to
test the communication to the USB device.
Only the call of SerialLineControlAds is specific if the
application uses a virtual com port. The handling of write and read
data is identical to applications using real serial ports.
Note: Attend the installation guide on the overview page.
It is recommended to check the operativeness of the VirtualComPort
driver of your device first with a windows terminal program.
No linking in the TwinCAT system manager is needed.
The sample can be used for a comfortable start-up and test of the
device. The sample includes a visualization.
Project Download