Integrating the block diagram controls
The control that displays the block diagram in the TwinCAT XAE environment can also be integrated as a control in your own visualizations.
The following steps are required:
- 1. Create a new Windows Forms application.
- 2. Add TwinCAT.BlockDiagram.dll to the toolbox:
- 3. To do this, select the "Choose Items..." entry in the context menu.
- 4. Navigate to TwinCAT.Blockdiagram.dll, which can be found under <TwinCAT installation path>\3.1\Components\TcBlockDiagram.
- 5. Add a TcBlockdiagram control instance to the Windows Forms object using drag and drop.