TcCOM_Sample13_CppToPlc

Description

This sample provides for communication from a C++ module to a function block of a PLC by means of method call. To this end a TcCOM interface is defined that is offered by the PLC and used by the C++ module.

The PLC page as a provider in the process corresponds to the corresponding project of the TcCOM Sample 01, where an PLC is considered after PLC communication. Here a Caller is now provided in C++, which uses the same interface.

You can find the explanation of the sample in the sub-chapter “Implementation of the sample”.

Downloading the sample: TcCOM_Sample13_CppToPlc.zip

System requirements

TwinCAT version

Hardware

PLC libraries to be linked

TwinCAT 3.1, Build 4020

x86, x64

Tc3_Module