<< 向前        下一页 >>

ID : 9219

LetRx

Function

To assign a value to the Rx rotation element of position type variable.

Syntax

LetRx position type variable = formula

Guaranteed Entry

Position type variable
Designate the 位置型 variable name.
Formula
Designate 单精度实数型 data.

Description

Single precision real number type data specified in formula are assigned to the 4th element (Rx) of the designated position type variable.

Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)

LetRx Pvar = Ivar
'Pvar : p(X, Y, Z, Ivar, Ry, Rz, Fig)

Related Terms

Let, LetP, LetX, LetY, LetZ, LetR, 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 to X-axis Rotation Component of Position Type"
' Assign X-axis rotation component in the current position to bbb
Sub Sample_LetRX

  Dim aaa As Position
  Dim bbb As Position

  aaa = CurPos

  ' Assign X-axis rotation component in the current position to bbb
  LetRX bbb = PosRX( aaa )

  ' Display X-axis rotation component in the current position on the message output window
  PrintDbg bbb

End Sub

ID : 9219

<< 向前        下一页 >>