<< Prev        Next >>

ID : 349

LetX

Function

To assign a value to X-axis component of the Vector Type variable, Position Type variable, or Homogeneous Translation Type variable.

Syntax

LetX 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 1st element (X) 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)

LetX Vvar = Ivar
'Vvar : v(Ivar, Y, Z)

LetX Pvar = Ivar
'Pvar : p(Ivar, Y, Z, Rx, Ry, Rz, Fig) LetX Tvar = Ivar
'Tvar : t(Ivar, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Fig)

Related Terms

Let, LetP, LetY, LetZ, LetR, LetRx, LetRy, LetRz, LetO, LetA, LetF, LetJ

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 X-axis
Component" ' Assign X-axis component in the position type current position Sub Sample_LetX Dim aaa As Position Dim bbb As Position aaa = CurPos ' Assign X-axis component of aaa to X-axis component of bbb LetX bbb = PosX( aaa ) ' Display X-axis component of position type on the message output window PrintDbg bbb End Sub

ID : 349

<< Prev        Next >>