Integrating the block diagram controls in .NET
The option displaying the block diagram in the TwinCAT XAE environment can also be integrated in separate visualizations.
A sample program can be downloaded here: BlockdiagramControlSample.zip
- 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 (BlockDiagramBrowser or BlockDiagramTcComObjectbrowser).