ID : 9220
LetRy
Function
To assign a value to the Ry rotation element of position type variable.
Syntax
LetRy position type variable = formula
Guaranteed Entry
Description
Single precision real number type data specified in formula are assigned to the 5th element (Ry) of the designated position type variable.
Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)
LetRy Pvar = Ivar
'Pvar : p(X, Y, Z, Rx, Ivar, Rz, Fig)
Attention
It is not judged whether the assigned variable is a value that can be taken as robot's position.
Example
'!TITLE "Assignment to Y-axis Rotation Component of Position Type"
' Assign Y-axis rotation component in the current position to bbb
Sub Sample_LetRY
Dim aaa As Position
Dim bbb As Position
aaa = CurPos
' Assign Y-axis rotation component in the current position to bbb
LetRY bbb = PosRY( aaa )
' Display Y-axis rotation component in the current position on the message output window
PrintDbg bbb
End Sub
ID : 9220

