This is part of 2.2.0-devlatest release: 2.1.0.
🚧 Development version – not released yet! 🚧

MLxLogEntry

0.2.0
since lib: v2.2.0  

Data for a MotoLogix command log entry.

See MLxLogging for details on logged data per MotoLogix command.

Version history

0.2.0

  deGroot

Changes

Changed:
  • data type for timeStamp changed to DINT
show full history

0.1.0

  deGroot

Changes

Added:
  • initial version

Overview

nametypedefaultcomment
timeStampDINT0time of log event [ms since midnight]
commandIdUSINT0command identifier
robotNumberSINT-1robot number (-1=none)
targetNumberSINT-1command specific target number (-1=none)
bufferEntrySINT-1assigned buffer entry number (-1=none)
bufferEntriesActiveUSINT0number of active buffer entries
systemStateUSINT0MotoLogix system state
dataARRAY[0..6] OF DINT[0,0,0,0,0,0,0]command specific data
userDataARRAY [0..1] OF DINT[0,0]additional user data

Details

timeStamp

DINT
(default: 0)

Time of log event.

  • It reflects the time at which the process of sending the command data to the robot controller started
  • It formats the time as the number of milliseconds since midnight (00:00 hours)

commandId

USINT
(default: 0)

Command identifier.

valueexplanation
01MLxAbort
02MLxReset
03MLxResetAndHold
04MLxRestart
05MLxEnable
06MLxStop
07MLxHold
09MLxRobotSetDigitalOutputWithMot
10MLxRobotConvSyncStart
11MLxRobotConvSyncStop
12MLxRobotConvSyncStopWithAxisMot
13MLxRobotConvSyncStopWithLinMot
15MLxGetErrorDetail
16MLxGetModuleInfo
17MLxRobotMoveLinearAbsolute
18MLxRobotMoveLinearRelative
19MLxRobotMoveAxisAbsolute
20MLxRobotMoveAxisRelative
22MLxRobotJogAxes
23MLxRobotJogTCP
24MLxRobotSetBasePose
25MLxRobotSetToolProperties
26MLxRobotSetUserFrame
27MLxRobotSetFrameShift
28MLxRobotCoordinateTransform
29MLxRobotSetProperties
30MLxRobotGetProperties
31MLxRobotSetCubicIZByCenterPoint
32MLxRobotSetCubicIZByTwoCorners
33MLxRobotSetHomeOffsets
34MLxRobotJogAxesToPoint
35MLxRobotJogTCPToPoint
36MLxRobotGetHomeOffsets
37MLxSetGlobalParameter
51MLxBvarsGet
52MLxDvarsGet
53MLxIvarsGet
54MLxRvarsGet
55MLxSvarsGet
61MLxBvarsSet
62MLxDvarsSet
63MLxIvarsSet
64MLxRvarsSet
65MLxSvarsSet
71MLxRobotMoveAxisPvarAbsolute
72MLxRobotMoveLinearPvarAbsolute
200MLxRobotPositionVariableSet
201MLxRobotPositionVariableGet
204MLxWriteApplicationDataToYRC
205MLxRobotSelectTool
206MLxRobotMoveLinAbsoWithBase
207MLxRobotMoveLinRelaWithBase
208MLxRobotMoveAxisAbsoWithBase
209MLxRobotMoveAxisRelaWithBase
210MLxGetMessageDetail
219MLxRobotSetServoFloatOn
220MLxRobotSetServoFloatOff
221MLxRobotSetServoFloatProperties
223MLxRobotSetCollisionDetectionStatus
224MLxRobotSelectCollisionDetection
225MLxRobotSetCollisionDetectionProperties
226MLxRobotGetCollisionDetectionStatus
227MLxRobotGetCollisionDetectionTorque
228MLxRobotResetCollisionDetectionTorque
229MLxSetLimitStatus
230MLxGetLimitStatus
233MLxRobotSetSearch
234MLxRobotResetSearch
235MLxRobotGetSearchResult
236MLxRobotGetSearchPosition
240MLxGetSafetyCRC
241MLxGetConfigLog
242MLxRobotCalcToolCalib

robotNumber

SINT
(default: -1)

Robot number (-1=none).

targetNumber

SINT
(default: -1)

Command specific target number (-1=none).

bufferEntry

SINT
(default: -1)

Assigned buffer entry number.

valueexplanation
-1system command, not using the command buffer
0-nentry in the command buffer

bufferEntriesActive

USINT
(default: 0)

Number of active buffer entries. This is the same as the commandsInUse output of MLxCommunicationWrite.

It helps to understand what fill levels the command buffer reaches when running your MotoLogix application.

systemState

USINT
(default: 0)

MotoLogix system state. Check the state transitions diagram to learn more about below states.

valueexplanation
00-Initializing
11-EnablingToIdle
22-EnablingToHeld
33-Idle
44-Running
55-Holding
66-Held
77-Aborting
88-ServosOffAborted
99-StoppingToIdle
1010-StoppingToServosOff
1111-StoppingToServosOffHeld
1212-ServosOffReady
1313-ServosOffHeld
1414-FatalFault

data

ARRAY[0..6] OF DINT
(default: [0,0,0,0,0,0,0])

Command specific data. See MLxLogging for details.

Conversion

Floating point (REAL) values are converted to integer (DINT) with the specified precision. Example of a conversion to .01 unit (resulting in a precision of two decimals):

// conversion of a REAL to a DINT (.01 unit)
// 1234.56789 -> 123457
varDint := REAL_TO_DINT(varReal * 100)

userData

ARRAY [0..1] OF DINT
(default: [0,0])

This allows you to store additional information with every log entry. It can be of great value when analyzing log data.

Some examples for user data:

  • Index of the sent motion command (PosTable.LoadIndex)
  • State machine variable

Example for converting a floating point variable:

// conversion of a REAL using factor 100
// 1234.56789 -> 123457
varDint := REAL_TO_DINT(varReal * 100)

Pages built with Hugo - 12 Dec 2025 12:31 CET