ITcPlcProject
The class ITcPlcProject enables developers to set properties for a PLC project. It usually targets the root node of a PLC project, as shown in the picture below.
The following C# code snippet shows an example about how this class may be used in Automation Interface code:
Please note: If you would like tocompile a PLC project, please use the compiler functionalities of the Visual Studio COM objectEnvDTE, as shown in many of our Samples .
Methods
|
ITcPlcProject methods |
Description |
Available since |
|---|---|---|
|
Equals the entry "Activate Boot project" from the TwinCAT XAE context menu |
TwinCAT 3.1 |
Properties
|
ITcPlcProject properties |
Get/Set |
Description |
Available since |
|---|---|---|---|
|
BootProjectAutoStart |
Yes / Yes |
Equals the checkbox "Autostart Boot Project" in the dialog shown above |
TwinCAT 3.1 |
|
BootProjectEncryption |
Yes / Yes |
Equals the dropdown box "Encryption" in the dialog shown above |
TwinCAT 3.1 |
|
TmcFileCopy |
Yes / Yes |
Equals the checkbox "Copy TMC File to Target" in the dialog shown above |
TwinCAT 3.1 |
Version information
|
Required TwinCAT version |
|
This interface is supported in TwinCAT 3.1 and above |