SysMCBDGetNextID (FUN)

FUNCTION SysMCBDGetNextID : UDINT

CpuCoreBindingDesc helper function
SysMCBDGetNextID returns the CoreId (i.e. the position) of the next set bit in CpuCoreBindingDesc.CpuCoreBits.
InOut:

Scope

Name

Type

Comment

Return

SysMCBDGetNextID

UDINT

Returns a valid CoreId if ERR_OK, otherwise the result is undefined.

Input

pBindingDesc

POINTER TO CpuCoreBindingDesc

Pointer to the description of the core binding.

uPrevCoreID

UDINT

CoreId found by SysMCBDGetFirstID or a previous call of SysMCBDGetNextID.

pResult

POINTER TO RTS_IEC_RESULT

Pointer to a variable to return an error code.
  • ERR_OK: Next found CoreId is returned.

  • ERR_PARAMETER: CpuCoreBindingDesc is invalid pointer.

  • ERR_END_OF_OBJECT: No more cores were set.