LogMark

LogMark 1:

// Logs a mark without start/stop
METHOD LogMark : HRESULT
VAR_INPUT
    nGroupId    : UINT; // Defines the group to which the mark belongs
    nEventId    : UINT; // Set to distinguish different events inside the group
END_VAR

Description

The method creates a marker for the marker ID that was transferred. Optionally, the event ID can be used to distinguish between different user events or to display additional data (formatted as UINT) in the TwinCAT 3 Real-time Monitor display.

Parameter:

nGroupId: Marker ID (marker group) for which the marker is to be written.

nEventId: optional EventId.