beckhoff TE1000 TwinCAT 3 — 6.2.3 Creating license requests

Samples | Licensing Selecting a licensing device To add licensing hardware to the TwinCAT license configuration, either the device name or its ObjectID can be used. The former is suitable to use if the device name is known, e.g. if the I/O device was generated in advance. The latter can be determined from the XML description above. Code snippet (C#): ItcSmTreeItem el6070dev1 = license.CreateChild("NameOfDevice", 0, null, "Term 2 (EL6070)"); // DeviceName ItcSmTreeItem el6070dev2 = license.CreateChild("NameOfDevice", 0, null, "50462722"); // ObjectID Code snippet (PowerShell):

$el6070dev1 = $license.CreateChild("NameOfDevice", 0, $null, "Term 2 (EL6070)"); // DeviceName $el6070dev2 = $license.CreateChild("NameOfDevice", 0, $null, "50462722"); // ObjectID System requirements Required TwinCAT version TwinCAT v3.1.4022.4 6.2.2 Activating license response files | Activating license response files The following article describes how license response files can be loaded via the TwinCAT Automation Interface. This function is provided via the XML description of the “License” node. License TIRC^License 59 ... ... The to the license response file can be specified in the XML area .

This XML document can then be loaded via a ConsumeXml() to the “License” node in order to activate the license response file. The parameter is only required in special cases and can be given any value, e.g. 0. Code snippet (C#): ITcSmTreeItem license = systemManager.LookupTreeItem("TIRC^License"); license.ConsumeXml(xmlDescriptionFromAbove); System requirements Required TwinCAT version TwinCAT v3.1.4022.4 6.2.3 Creating license requests | Creating license requests A TwinCAT license request file with the extension .tclrq contains the information required to generate a license. It is submitted to Beckhoff, which then issues the corresponding license file.

Starting with TwinCAT Build 4026.7, this file can be generated directly via the Automation Interface. To do this, call ConsumeXml with an LicenseRequest element on the license node. TE1000 194 Version: 1.7.0