<< Prev        Next >>

ID : 342

LetF

Function

To assign a value to a figure element (FIG) of Position Type variable or Homogeneous Translation Type variable.

Syntax

LetF position variable = formula

Guaranteed Entry

Position variable
Designate Position Type variable or Homogeneous Translation Type variable.
Formula
Designate Integer Type data.

Description

A value specified in formula is assigned to figure element (FIG) of the designated Position Type variable or Homogeneous Translation Type variable.

Elements other than figure elements (FIG) cannot be changed.

Tvar = t(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, tFig)
Pvar = p(X, Y, Z, Ox, Oy, Oz, pFig)

LetF Tvar = Ivar
'Tvar : t(X, Y, Z, Ox, Oy, Oz, Ax, Ay, Az, Ivar)

LetF Pvar = Ivar
'Pvar : p(X, Y, Z, Ox, Oy, Oz, Ivar)

Related Terms

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

Attention

It is not judged whether the assigned variable is a value that can be taken as robot's position.

Example

'!TITLE "Assignment to Position Type or Homogeneous Translation Type Figure Component"
' Assign the current posture to aaa
Sub Sample_LetF

  Dim aaa As Position

  ' Assign the current figure component to aaa
  LetF aaa = CurFig

  ' Display the current figure component on the message output window
  PrintDbg aaa

End Sub

ID : 342

<< Prev        Next >>