LogMark

LogMark 1:

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 Realtime Monitor display.

LogMark 2: Return value

Name

Type

Description

LogMark

HRESULT

Returns the error code in the event of an error.

LogMark 3: Inputs

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

Name

Type

Description

nContextId

UINT

Defines the context ID under which the marker is to be grouped in the TwinCAT 3 Realtime Monitor.

nGroupId

UINT

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

nEventId

UINT

Optional EventId

nMarkCtrl

UDINT

Defines the marker type.