ID : 350
LetY
Function
To assign a value to Y-axis component of the Vector Type variable, Position Type variable, or Homogeneous Translation Type variable.
Syntax
LetY position variable = formula
Guaranteed Entry
- Position variable
- Designate the Vector Type variable, Position Type variable, or Homogeneous Translation Type variable variable name.
- Formula
- Designate Single Precision Real Number Type data.
Description
A value specified in formula is assigned to the 2nd element (Y) of the designated position variable.
For position variable, Vector Type variable, Position Type variable or Homogeneous Translation Type variable can be specified.
Vvar = v(X, Y, Z)
Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)
Tvar = t(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig)
LetY Vvar = Ivar
'Vvar : v(X, Ivar, Z)
LetY Pvar = Ivar
'Pvar : p(X, Ivar, Z, Rx, Ry, Rz, Fig)
LetY Tvar = Ivar
'Tvar : t(X, Ivar, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig)
Attention
It is not judged whether the assigned variable is a value that can be taken as robot's position.
Example
'!TITLE "Assignment of Vector Type, Position Type or Homogeneous Translation Type to Y-axis
Component"
' Assign Y-axis component of the position type
Sub Sample_LetY
Dim aaa As Position
Dim bbb As Position
aaa = CurPos
aaa = Dev( aaa, P( 0, 10, 0, 0, 0, 0 ) )
' Assign Y-axis component of aaa to Y-axis component of bbb
LetY bbb = PosY( aaa )
' Display Y-axis component of position type on the message output window
PrintDbg bbb
End Sub
ID : 350