beckhoff TE1200 — 9 Automation Interface support

Automation Interface support The settings [ } 13] from Static Analysis can be saved or exported to a *.csa file via Automation Interface. Parameters: For the SaveStaticAnalysisSettings(string bstrFilename) method the destination path of the configuration file must be specified as a transfer parameter. The RunStaticAnalysis method is available from the ITcPlcIECProject3 interface. The methods SaveStaticAnalysisSettings and LoadStaticAnalysisSettings are offered from the interface ITcPlcIECProject4 . C# sample for TC3.1 version >= Build 4026:

// Path to the location to export the SAN configuration string saveCsaPath = @"C:\Users\UserName\Desktop\SaveTest.csa"; // Navigate to PLC project ITcPlcIECProject4 plcIec4 = sysMan.LookupTreeItem("TIPC^Untitled1^Untitled1 Project") as ITcPlcIECProject4; // Save SAN configuration plcIec4.SaveStaticAnalysisSettings(saveCsaPath); Load settings/configuration via Automation Interface Available from TwinCAT 3.1 Build 4026 A ready-made Static Analysis configuration (*.csa file) can be loaded into the PLC project via Automation Interface. The settings [ } 13] loaded by this can then be checked by AI by running the Static Analysis (see above). Parameters:

For the LoadStaticAnalysisSettings(string bstrFilename) method the path of the configuration file to be loaded must be specified as a transfer parameter. The RunStaticAnalysis method is available from the ITcPlcIECProject3 interface. The methods SaveStaticAnalysisSettings and LoadStaticAnalysisSettings are offered from the interface ITcPlcIECProject4 . C# sample for TC3.1 version >= Build 4026:

// Path to load a SAN configuration string loadCsaPath = @"C:\Users\UserName\Desktop\LoadTest.csa"; // Navigate to PLC project ITcPlcIECProject4 plcIec4 = sysMan.LookupTreeItem("TIPC^Untitled1^Untitled1 Project") as ITcPlcIECProject4; // Load SAN configuration plcIec4.LoadStaticAnalysisSettings(loadCsaPath); // Optionally run SAN afterwards plcIec4.RunStaticAnalysis(); Export metrics Available from TwinCAT 3.1 Build 4026.4 The standard metrics can be exported to a text file (*.csv) via the Automation Interface. A current calculation of the metrics is performed implicitly. If this process was executed manually, it would include the following two commands: TE1200 131 Version: 2.11.1