ST_RTMon_MarkDef

Data type that represents a marker.

// defines a mark
TYPE ST_RTMon_MarkDef:
STRUCT
    nContextId : UINT;      // defines the context
    nGroupId : UINT;      // defines the group inside the context
    nEventId : UINT;      // defines the specific event inside the group
END_STRUCT
END_TYPE

Description

Using this data type, it is possible to define a generic marker (without type). This is then transferred in the method LogMarkEx of the function block FB_RTMon_LogMarkBase in addition to the marker type.

nContextId: Using the ContextId, marker groups, i.e. processes to be displayed, can be grouped (e.g. by process type or functional unit).

nGroupId: Defines the process/ process event to be displayed.

nEventId: Optional user record. This can be used, for example, to display the status of a state machine or error codes in the TwinCAT 3 Real-time Monitor.

ST_RTMon_MarkDef 1:

Both the ContextId and the GroupId can be given names in the TwinCAT 3 Real-time Monitor. These can be exported or imported using the User contexts or User contexts functions, so that they are available for a further recording.