ID : 9221
LetRz
Function
To assign a value to the Rz rotation element of 位置型 variable.
Syntax
LetRz position type variable = formula
Guaranteed Entry
Description
Single precision real number type data specified in formula are assigned to the 6th element (Rz) of the designated position type variable.
Pvar = p(X, Y, Z, Rx, Ry, Rz, Fig)
LetRz Pvar = Ivar
'Pvar : p(X, Y, Z, Rx, Ry, Ivar, 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 Z-axis Rotation Component of Position Type"
' Assign Z-axis rotation component in the current position to bbb
Sub Sample_LetRZ
Dim aaa As Position
Dim bbb As Position
aaa = CurPos
' Assign Z-axis rotation component in the current position to bbb
LetRZ bbb = PosRZ( aaa )
' Display Z-axis rotation component in the current position on the message output window
PrintDbg bbb
End Sub
ID : 9221

