BASIC commands
PROGRAMMING MANUAL
61
R
e
vi
si
o
n
1
.0
3.2.50 CHANGE_DIR_LAST
/i
fig. 14
/i
Type
Axis parameter
Syntax
CHANGE_DIR_LAST
Description
Allows the program to examine the change in direction in radians of the last
programmed
MOVESP
/
MOVEABSSP
/
MOVECIRCSP
move of 2 or more
axes.
CHANGE_DIR_LAST
is always positive.
Arguments
N/A
START_DIR_LAST=45°
CHANGE_DIR_LAST=90°
Example
MOVESP(100,100)
PRINT "START_DIR_LAST: ";START_DIR_LAST/(2*PI)*360[0];" Deg"
PRINT "CHANGE_DIR_LAST: ";CHANGE_DIR_LAST/(2*PI)*360[0];" Deg"
PRINT "END_DIR_LAST: ";END_DIR_LAST/(2*PI)*360[0];" Deg"
PRINT
MOVESP(-100,100)
PRINT "START_DIR_LAST: ";START_DIR_LAST/(2*PI)*360[0];" Deg"
PRINT "CHANGE_DIR_LAST: ";CHANGE_DIR_LAST/(2*PI)*360[0];" Deg"
PRINT "END_DIR_LAST: ";END_DIR_LAST/(2*PI)*360[0];" Deg"
Results in:
START_DIR_LAST: 45 Deg
CHANGE_DIR_LAST: 45 Deg
END_DIR_LAST: 45 Deg
START_DIR_LAST: -45 Deg
CHANGE_DIR_LAST: 90 Deg
END_DIR_LAST: -45 Deg
See also
MOVESP
,
START_DIR_LAST
,
END_DIR_LAST