FB_RTMon_LogMark

FB_RTMon_LogMark 1:

FUNCTION_BLOCK FB_RTMon_LogMark
VAR_INPUT
    nContextId        : UINT := TwinCAT_SystemInfoVarList._AppInfo.AdsPort;
    bLogCallingTask   : BOOL := TRUE; // specifies whether a reference to the calling task should be set with each mark
END_VAR
VAR_OUTPUT
    bError            : BOOL;         // TRUE if an error occurred
    hrErrorCode       : HRESULT;     // outputs the error code which occurred
END_VAR

Description:

The FB_RTMon_LogMark is an extended function block that enables the setting of "simple" (time) markers.

For "simple" markers, the context of the calling user program is used automatically. The possible marker types (sequence start & stop, interval start & stop or marker) are made available via individual methods. Only the marker ID (marker group) must be transferred by the user. This is used to identify the process to be displayed.

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 …)