TraceRecordEntry (STRUCT) ¶ TYPE TraceRecordEntry : STRUCT A single entry recorded for a trace variable consisting of a relative time stamp and a (variable-size) data part. The size of the data depends on the type class of the trace variable. InOut: Name Type Comment ulTimeRelative UDINT The relative time stamp (since the trace was first started, see TraceState.tStartTime) in the resolution configured for the trace packet Data BYTE A (variable size) data portion for the sample value
TraceState (STRUCT) ¶ TYPE TraceState : STRUCT The state of a trace packet InOut: Name Type Comment ulState UDINT The state. See TRACE_PACKET_STATE ulFillLevel UDINT The number of recorded samples tStartTime SYSTIME The time of the first start of the trace, all time stamps are relative to this value. tsTriggerState TriggerState The state of the trigger.
TraceTrigger (STRUCT) ¶ TYPE TraceTrigger : STRUCT Configuration of the trace trigger InOut: Name Type Comment tvVariable TraceVariable Specification of the trigger variable ttvLevel TriggerValue Holds the trigger level for analog (i.e. non-boolean) triggers ulFlags UDINT Trigger flags. See TRACE_TRIGGER_FLAGS . byEdge BYTE Trigger edge. See TRACE_TRIGGER_EDGE . byPosition BYTE Number of samples to record after the trigger has fired in percent (0..100) of the buffer size. Deprecated, use ulUpdatesAfterTrigger instead. wAlignmentDummy WORD Alignment bytes ulUpdatesAfterTrigger UDINT Number of samples to record after the trigger has fired. Note: TRACE_TRIGGER_FLAGS_UPDATESAFTERTRIGGER must be set in ulFlags, if this entry is used instead of byPosition.
TraceVarInfo (UNION) ¶ TYPE TraceVarInfo : UNION InOut: Name Type info VariableInformationStruct pInfo POINTER TO VariableInformationStruct2
TraceVariable (STRUCT) ¶ TYPE TraceVariable : STRUCT Definition of a single trace variable InOut: Name Type Comment pszName POINTER TO STRING Name of the variable tvaAddress TraceVariableAddress Address definition of the variable tcClass TypeClass3 Type class of the variable. See enum IBase.TypeClass for the possible values. ulSize UDINT Size in bytes of a sample value
TraceVariableAddress (STRUCT) ¶ TYPE TraceVariableAddress : STRUCT Address description of a single trace variable InOut: Name Type Comment ulAddressFlags UDINT Address flags. See TRACE_VAR_ADDRESS_FLAGS taAddress TraceAddress Trace address definition
TriggerState (STRUCT) ¶ TYPE TriggerState : STRUCT The state of the trigger InOut: Name Type Comment ulState UDINT The state. See TRACE_TRIGGER_STATE dtTriggerDate UDINT The date of the trigger event (in UTC) tTriggerReached SYSTIME The time of the trigger event
TriggerValue (UNION) ¶ TYPE TriggerValue : UNION An union for all possible types of trigger values InOut: Name Type b SINT uc BYTE si INT usi WORD l DINT ul UDINT f REAL ll LINT ull LWORD d LREAL
TypeClass3 (ALIAS) ¶ TYPE TypeClass3 : UDINT See enum IBase.TypeClass for the possible values
TRACE_PACKET_FLAGS (GVL) ¶ Trace packet flags InOut: Scope Name Type Initial Comment Constant TRACE_PACKET_FLAGS_NOT_INITIALIZED UDINT 16#0 The trace packet is not initialized TRACE_PACKET_FLAGS_COMPLETED UDINT 16#1 The trace packet is complete (all records have been added) TRACE_PACKET_FLAGS_AUTOSTART UDINT 16#2 Persistent storage of the trace and automatic start of the trace after reboot or to restore only on request TRACE_PACKET_FLAGS_CONDITION UDINT 16#4 Optional boolean condition for the trace packet is specified TRACE_PACKET_FLAGS_TIMESTAMP_MS UDINT 16#10 Time stamps for the trace samples have milliseond resolution TRACE_PACKET_FLAGS_TIMESTAMP_US UDINT 16#20 Time stamps for the trace samples have microseond resolution TRACE_PACKET_FLAGS_SYSTEM_TRACE UDINT 16#10000 Is used to mark a trace as system trace