LogMark
METHOD LogMark : HRESULT
VAR_INPUT
nContextId : UINT; // defines the context
nGroupId : UINT; // defines the group inside the context
nEventId : UINT; // defines the specific event inside the group
nMarkCtrl : UDINT; // mask for mark options (listed in TcMarkOption)
END_VAR
Description
The method creates a marker for the transferred marker group ID. The marker type is transferred using the parameter nMarkCtrl (see TcMarkOption).
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:
nContextId: defines the context ID under which the marker is to be grouped in the TwinCAT 3 Real-time Monitor.
nGroupId: Marker ID (marker group) for which the marker is to be written.
nEventId: optional EventId.
nMarkCtrl: defines the marker type.