SupervisorOperationGetNext (FUN)

FUNCTION SupervisorOperationGetNext : RTS_IEC_HANDLE

Iteration interface to get the next registered operation. Must be started with SupervisorOperationGetFirst()

Error code:
  • ERR_OK: The next operation was successfully retrieved

  • ERR_NOTINITIALIZED: The operation memory is not initialized

  • ERR_END_OF_OBJECT: There are no registered operations left

InOut:

Scope

Name

Type

Comment

Return

SupervisorOperationGetNext

RTS_IEC_HANDLE

Handle to the first operation or RTS_INVALID_HANDLE in case of an error

Input

hPrevOperation

RTS_IEC_HANDLE

Handle to the previous operation retrieved via SupervisorOperationGetFirst() or subsequent calls of SupervisorOperationGetNext()

pResult

POINTER TO RTS_IEC_RESULT

Pointer to error code