LETJ
(Statement)

Assign a value to a specified link angle of the joint variable.

LETJ <axis number>, <joint variable> = <arithmetic expression>

This statement assigns the value of <arithmetic expression> on the right-hand side to the link angle (<joint variable> on the left-hand side) specified by <axis number>.

DEFJNT lj1, lj2, lj3
|
|
DEFSNG lf1, lf2
|
|
LETJ 1, lj1 = JOINT(2, lj3)
|
'Assign the 2nd-axis link angle lj3 to the 1st-axis lj1
|
LETJ 3, lj2 = lf1 - lf2
|
'Assign the value of (lf1 - lf2) to the 3rd-axis lj2
|