CUREXJ (Statement)


Gets the current angle of an extended-joint into a floating-point variable.


CUREXJ(<JntNumber>)


CUREXJ reads an angle detected by the encoder of an extended-joint specified by <JntNumber> into a floating-point variable. If the specified joint is in motion, this command will get the current angle of the joint detected when this command executes.
To get the target angle of an extended-joint, use a DESTEXJ command.



When the machine is locked (Machine Lock state), the CUREXJ command will get not an angle detected by an encoder but a virtual angle (commanded angle).


PROGRAM PRO1
DIM lf1 AS SINGLE
TAKEARM 1
DRIVEA (7,100)
'Move the 7th joint to an angle of 100 degrees.
lf1 = CUREXJ(7)
'Assign current position of 7th joint to lf1.
END


Top