SysMCGetCurrentCoreID (FUN)

FUNCTION SysMCGetCurrentCoreID : UDINT

Function to read current CoreId the calling process or task is running on.

InOut:

Scope

Name

Type

Comment

Return

SysMCGetCurrentCoreID

UDINT

Returns the current CoreId.

Input

pResult

POINTER TO RTS_IEC_RESULT

Pointer to a variable to return an error code (optional)
  • ERR_OK: Call was successful.

  • ERR_FAILED: Function failed for any reason on OS level.

  • ERR_NOTIMPLEMENTED: Function is not implemented.

  • ERR_NOT_SUPPORTED: Function is not supported.