94
•
Function Library
set_arc_division:
This function specifies the maximum angle (in degrees) between
successive points along the arc. The default is 5 degrees.
arc_optimization:
This function enables (
optimize =
TRUE
) or disable (
optimize =
FALSE
) the automatic calculation of the optimum acceleration for an
arc. The default state for arc optimization is enabled. When
arc_optimization()
is enabled, circular intepolation is greatly
improved by choosing the best acceleration for the motion. The
optimum acceleration is given by the following formula:
A
opt
= V
2
/d;
where A
opt
, is the best acceleration, V is the
set_move_speed()
velocity, d is the segment length. If the acceleration is higher than A
opt
,
the linear portions may be noticeable. If the acceleration is lower than
A
opt
, the motion will be slowed during the arc and it will lose its
roundness. Both
arc_xy()
and
arc_zu()
automatically change the
acceleration to A
opt
during the circular interpolated move.
set_move_ratio:
This function configures scale factors for the specified axis. Usually,
the axes only need scale factors if their mechanical resolutions are
different. For example, if the resolution of feedback sensors is two
times resolution of command pulse, then
ratio = 2
.
@ Syntax
C/C++ (DOS, Windows 95/NT)
U16 _8132_map_axes(U16 n_axes, U16 *map_array)
U16 _8132_set_move_speed(F64 str_vel, F64 max_vel)
U16 _8132_set_move_accel(F64 Tacc)
U16 _8132_set_move_saccel(double tlacc, double tsacc)
U16 _8132_set_arc_division(F64 degrees)
U16 _8132_arc_optimization(U16 optimize)
U16 _8132_set_move_ratio(U16 axis, F64 ratio)
Visual Basic (Windows 95/NT)
B_8132_map_axes (ByVal n_axes As Integer, map_array As Integer) As
Integer
B_8132_set_move_speed (ByVal str_vel As Double, ByVal max_vel As
Double) As Integer
B_8132_set_move_accel (ByVal accel As Double) As Integer
B_8132_set_move_saccel(ByVal Tlacc As Double, ByVal Tsacc As Double)
As Integer
B_8132_set_arc_division (ByVal axis As Integer, ByVal degrees As Double)
As Integer
B_8132_arc_optimization (ByVal optimize As Long) As Integer
B_8132_set_move_ratio (ByVal axis As Integer, ByVal ratio As Double) As