Integration in TwinCAT and Test

The PLC samples are provided as TwinCAT 3 PLC project files. To import a PLC project into TwinCAT XAE, first create a new TwinCAT 3 Solution. Then select the Add Existing Item command in the context menu of the PLC node and select the downloaded sample file (Plc 3.x Project archive (*.tpzip)) as the file type in the dialog that opens. After confirming the dialog, the PLC project is added to the Solution.

Integration in TwinCAT and Test 1:

Two computers are required to start the sample. Alternatively, the test may be carried out with two runtime systems on a single PC. The constants with the port numbers and the IP addresses of the communication partners have to be modified accordingly.

Sample configuration with two computers:

Device A

Please perform the following steps to configure the sample on device A:

Device B

To install the sample on device B, proceed as follows:

Integration in TwinCAT and Test 2: