ID : 3912
J2T
Function
To convert Joint Type data into Homogeneous Translation Type data to return.
Syntax
J2T(joint type data)
Guaranteed Entry
- Joint type data
- Designate Joint Type data.
Return Value
Return Homogeneous Translation Type data.
Description
Joint Type data is converted into Homogeneous Translation Type data and returned.
Calculation result reflecting current work coordinates and current tool coordinates is returned.
Attention
The argument joint type data is calculated even if it is out of the motion space. To see if it is within the motion space, use the OutRange function.
Example
'!TITLE "Conversion from Joint Type to Homogeneous Translation Type"
' Convert the current angle acquired in joint type into homogeneous translation type
Sub Sample_J2T
Dim aaa As Joint
Dim bbb As Trans
' Acquisition of current angle
aaa = CurJnt
' Conversion from joint type to homogeneous translation type
bbb = J2T( aaa )
' Display the current angle converted into homogeneous translation type on the message output window
PrintDbg bbb
End Sub
ID : 3912