User`s guide
Function Library • 103
6.16 Position Control
@ Name
set_position – Set the actual position.
get_position – Get the actual position.
set_command – Set the current command position.
get_position – Get the current command position.
@ Description
set_position()
changes the current actual position to the specified position.
get_position()
reads the current actual position. Note that when feedback signals is
not available in the system, thus external encoder feedback is
Disabled in set_cnt_src() function, the value gotten from this function
is command position.
set_command()
changes the command position to the specified command position.
get_command()
reads the current command position.
@ Syntax
C/C++ (DOS, Windows 95/NT)
U16 set_position(I16 axis, F64 pos)
U16 get_position(I16 axis, F64 *pos)
U16 set_command(I16 axis, F64 pos)
U16 get_command(I16 axis, F64 *pos)
Visual Basic (Windows 95/NT)
get_position (ByVal axis As Integer, pos As Double)
As Integer
set_position (ByVal axis As Integer, ByVal pos As
Double) As Integer
get_command (ByVal axis As Integer, pos As Double)
As Integer
set_command (ByVal axis As Integer, ByVal pos As
Double) As Integer
@ Argument
axis: axis number designated to set and get position.
pos: actual position or command position
@ Return Code
ERR_NoError