beckhoff TE1000 TwinCAT 3 — 6.3.12 Configuring CPU cores

Samples | System 172.17.60.153.1.1 172.17.60.153 3.1.4026 Windows (10.0) 6.3.12 Configuring CPU cores | Configuring CPU cores Using the real-time node TIRS , you can read the CPU cores of a target system and configure the distribution between Windows and TwinCAT real time (core isolation). If cores are re-isolated, the target system must be restarted. However, this restart is triggered only if the desired distribution is not already active on the target system. Requirements ITcSysManager2 is available for SetTargetNetId . Administrator rights are available on the target system. The target system must be online (accessible) for the transfer. Recommended procedure 1.

Determine available cores (optional): When an online connection is established, ProduceXml on the TIRS node returns , which specifies the number of cores on the target system. MaxCPUs corresponds exactly to this core count, because the available cores are distributed. 2. Set the configuration: Set MaxCPUs and Affinity to the desired distribution yourself (see the bitmask table below). Optionally, you can add CPUs for detailed parameters. 3. Apply: Add and to a block and write it using ConsumeXml . and from a ProduceXml reflect the status of the project, not that of the target system. For a new project, there is only one core listed there ( #x0000000000000001 , 1 ).

These values must therefore be actively set to the desired number of cores. Simply writing back the XML as-is has no effect. The number of cores actually available is determined solely by . What each element does TE1000 213 Version: 1.7.0 Item Effect TOTAL TOTAL is the total number of cores in the target system ( ) that will be distributed. This does not refer to the number of cores used by real-time processes. N (NonWindowsCPUs) specifies how many of these are reserved exclusively for real-time processes. The highest N cores enabled via are isolated. Select which cores the real time system will use, and enable them. The value is a hexadecimal bit mask (see below).

This is what actually activates the cores. … Optional. Configures detailed parameters (LoadLimit, BaseTime, LatencyWarning) for each activated core. true Transfers the configuration to the target system. true Requests the restart required for isolation.