C++-samples | Sample11: Module communication: method call PLC module to C++ ... Step 8: compile PLC code 1. Right-click on the PLC project and click on Build . р The compilation result shows "1 succeeded - 0 failed". Step 9: link PLC FB with C++ instance The benefits of all previous steps now become apparent: The PLC FB FB_StateMachine can be configured with regard to linking with every instance of the C++ module StateMachine. This is a very flexible and powerful method of connecting PLC and C++ modules on the machine with each other. 1. Navigate to the instance of the PLC module in the left-hand tree and select the Symbol Initialization tab on the right-hand side.
р All instances of FB_StateMachine are listed; in this sample we have only defined one FB instance in POU MAIN. TwinCAT 3 283 Version: 1.19.1