TcMarkOption
The constants in this global variable list define the possible marker types (see Marker type). In addition to the marker types, the option RefToCaller is defined, which enables the task references to be displayed in the TwinCAT 3 Realtime Monitor. If this option is activated it must be ORed with the desired marker type.
VAR_GLOBAL CONSTANT
Start : UDINT := 16#E0000000;
Stop : UDINT := 16#C0000000;
SequenceStart : UDINT := 16#A0000000;
SequenceStop : UDINT := 16#80000000;
IntervalStart : UDINT := 16#60000000;
IntervalStop : UDINT := 16#40000000;
RefToCaller : UDINT := 16#08000000; // reference to caller
END_VAR
Sample:
fbLogMark.LogMarkEx(markCounter, TcMarkOption.Start OR TcMarkOption.RefToCaller);
The sample shows the setting of a marker, "markCounter", with the marker type "Start" and the option "RefToCaller".
![]() | If the task references are to be displayed in the TwinCAT 3 Realtime Monitor, you must activate the Show Task Reference option (see Marker group element). |