ID : 5474
SysLog.Ctrl.UserData
Function
To record the designated value to the control log.
When using for the origin return, record the current position to the specified origin return number.
Syntax
SysLog.Ctrl.UserData Setting value
Guaranteed Entry
- Setting value
-
Designate the arbitrary value by integer type data or single precision real number type data.
For Origin Return
SysLog.Ctrl.UserData origin return number
Guaranteed Entry
- Origin return number
-
Specify the origin return number by integer type data of 1 or more.
Description
Arbitrary values are recorded in the control log. Recorded in the log together with the command values and other values when the command values are created.
Even if values are changed more frequently than the command creation period, these changes are not reflected in the logs.
For Origin Return
Obtain the current robot position by position type data, and record the current position to the specified origin return number.
When using single precision real number type data as origin return position
In the origin return guidance function, numbers after decimal point are recognized as values rounded down.
For example, if the origin return position is set to 4.1, the point is recognized as 4.
Related Terms
SysLog.Ctrl.Start, SysLog.Ctrl.Stop, SysLog.Ctrl.Clear, Logging
Attention
- See "Acquiring, Displaying and Saving Control Log" in "TEACH PENDANT OPERATION GUIDE" for about how to check the control log with a teach pendant.
- See "Acquisition of Log Data" in "WINCAPSIII GUIDE" for about how to export controller's log data to WINCAPSIII.
See "Displaying and Reading Project List" in "TEACH PENDANT OPERATION GUIDE" for about how to export controller's log data to a USB.
Example
Sub Main
TakeArm 0
ClrPathPoint 3
AddPathPoint 3,P31
AddPathPoint 3,P32
AddPathPoint 3,P33
AddPathPoint 3,P34
AddPathPoint 3,P35
AddPathPoint 3,P36
AddPathPoint 3,P37
AddPathPoint 3,P38
AddPathPoint 3,P39
AddPathPoint 3,P40
AddPathPoint 3,P41
AddPathPoint 3,P42
Speed Mps(700)
Move P,@E P30
'Start recording the control log
SysLog.Ctrl.Clear
SysLog.Ctrl.Start
Move S, @E 3, Next
'Record currently passed path point numbers in the control log in chronological order
Do
SysLog.Ctrl.UserData CurPathPoint(1)
Loop Until MotionComplete
'Stop recording the control log
SysLog.Ctrl.Stop
GiveArm
End SubFor Origin Return
Sub Sample_SysLog.Ctrl.UserData
StartBackTraceLog ' Start the recording of the motion log
' Specify the current position as the origin return position to the origin return number 10.
SysLog.Ctrl.UserData(10)
End SubID : 5474

