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
TRACE_PACKET_STATE (GVL) ¶ Trace state InOut: Scope Name Type Initial Comment Constant TRACE_PACKET_STATE_NO_CONFIG UDINT 16#0 Trace packet not configured TRACE_PACKET_STATE_DISABLED UDINT 16#1 Trace packet disabled TRACE_PACKET_STATE_ENABLED UDINT 16#2 Trace packet enabled TRACE_PACKET_STATE_STARTED UDINT 16#3 Trace packet started TRACE_PACKET_STATE_STOPPED UDINT 16#4 Trace packet stopped
TraceMgrPacketStore (FUN) ¶ FUNCTION TraceMgrPacketStore : RTS_IEC_RESULT Stores a trace packet to a trace file. Both the trace configuration and the current trace values are stored. InOut: Scope Name Type Comment Return TraceMgrPacketStore RTS_IEC_RESULT Returns the runtime system error code (see CmpErrors.library): ERR_PARAMETER if hPacket is not a valid handle, or if pszFileName is not a valid file path ERR_NOMEMORY if the memory is not sufficient for opening the file ERR_NOT_SUPPORTED if writing to files is not supported by the runtime system ERR_NO_OBJECT if opening the file failed ERR_FAILED if creating or writing to the file failed Input hPacket RTS_IEC_HANDLE The trace packet handle Inout Const pszFileName STRING The file path
TraceMgrRecordAdd (FUN) ¶ FUNCTION TraceMgrRecordAdd : RTS_IEC_HANDLE Adds a new record to a trace packet InOut: Scope Name Type Comment Return TraceMgrRecordAdd RTS_IEC_HANDLE Returns the runtime system error code (see CmpErrors.library): ERR_PARAMETER if hPacket is not a valid packet handle, if the variable name is not set, or if the variable type is not supported ERR_NOMEMORY if there is not enough free memory to create the record Input hPacket RTS_IEC_HANDLE The trace packet handle Inout pConfiguration TraceRecordConfiguration The record configuration (in) pResult RTS_IEC_RESULT The result code (out)