FB_RTMon_LogMarkBase

FB_RTMon_LogMarkBase 1:

FUNCTION_BLOCK FB_RTMon_LogMarkBase
VAR_INPUT
END_VAR
VAR_OUTPUT
    bError        : BOOL;        // TRUE if an error occurred
    hrErrorCode   : HRESULT;     // outputs the error code which occurred
END_VAR

Description:

FB_RTMon_LogMarkBase is a basic function block that enables the setting of (time) markers.

In contrast to the function block FB_RTMon_LogMark, the context ID itself must be transferred here. This makes it possible to group the processes to be displayed (for example, by process type or functional unit).

Optionally, an event ID is also available in which the user can transfer a user record (e.g. status of a state machine, error message).