GetCoreTemperature

GetCoreTemperature 1:

This method returns the current temperature, the maximum temperature that has occurred since the start of real-time and the temperature limit of a defined real-time core via references.

GetCoreTemperature 2: Return value

Name

Type

Description

GetCoreTemperature

HRESULT

In the event of an error, returns the error code for the error that has occurred.

GetCoreTemperature 3: Inputs

Name

Type

Description

nCurrentTemp

REFERENCE TO UDINT

Returns the current temperature [°C] of the CPU core.

nMaxTemp

REFERENCE TO UDINT

Returns the maximum temperature [°C] of the CPU core that has been observed since the TwinCAT XAR start.

nTempLimit

REFERENCE TO UDINT

Returns the temperature limit [°C] of the CPU core. Exceeding this limit leads to frequency throttling of the core.