beckhoff TwinCAT 3 — 15.25.3.2 Creating an FB in the PLC that creates the C++ object and offers its functionality

C++-samples | TcCOM samples 15.25.3.2 Creating an FB in the PLC that creates the C++ object and offers its functionality | Creating an FB in the PLC that creates the C++ object and off ... 1. Create a PLC and append a new function block there. This Proxy function block should provide the functionality that was programmed in C++. It manages this via an interface pointer that was defined by C++ and is known in the PLC due to the TMC description file. 2. In the declaration part of the function block declare as an output an interface pointer to the interface (IIncrement) which later provides the functionality outward. 3.

Create a library ID, class ID, and the interface ID as member variables, as shown in the previous step. While the interface ID is already available via a global list, the library ID and the class ID, provided they are not yet supposed to be known, are determined by other means. One possible way to do this is to create an instance temporarily and take the information from the dialog before it can be deleted again: TwinCAT 3 320 Version: 1.19.1