Chapter 15 Functions
15-31
P2T (Function)
Function
Transforms position type data to homogeneous transformation type data.
Format
P2T (<Position type>)
Explanation
This statement transforms the data designated in <Position type> to
homogeneous transformation type data. The value to be obtained reflects the
tool and work coordinate systems that are set at the moment.
Related Terms
J2P, J2T, P2J, T2J, T2P
Example
DEFTRN lt1, lt2
DIM lp1 As Point
Lt1 = P2T(lp1) 'Assigns lp1 data transformed to
'homogeneous transformation type data to lt1.
6-axis lt2 = P2T((350, 0, 450, 0, 0, 180))
'Assigns the data of (350, 0, 450, 0, 0, 180)
'transformed to homogeneous transformation type
data
'to lt2.
4-axis lt2 = P2T((100, 100, 300, 45))
'Assigns the data of (
100, 100, 300, 45
)
'transformed to homogeneous transformation type
data
'to lt2.
Comments to this Manuals