102
•
Function Library
on_off=1, SVON is HIGH.
*io_status
: I/O status word. Where “1’ is ON and “0” is OFF. ON/OFF state
is read based on the corresponding set logic.
@ Return Code
ERR_NoError
6.16 Position Control
@ Name
_8132_set_position – Set the actual position.
_8132_get_position – Get the actual position.
_8132_set_command – Set the current command position.
_8132_get_position – Get the current command position.
@ Description
_8132_set_position()
changes the current actual position to the specified position.
_8132_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.
_8132_set_command()
changes the command position to the specified command position.
_8132_get_command()
reads the current command position.
@ Syntax
C/C++ (DOS, Windows 95/NT)
U16 _8132_set_position(I16 axis, F64 pos)
U16 _8132_get_position(I16 axis, F64 *pos)
U16 _8132_set_command(I16 axis, F64 pos)
U16 _8132_get_command(I16 axis, F64 *pos)
Visual Basic (Windows 95/NT)
B_8132_get_position (ByVal axis As Integer, pos As Double) As Integer
B_8132_set_position (ByVal axis As Integer, ByVal pos As Double) As
Integer
B_8132_get_command (ByVal axis As Integer, pos As Double) As Integer
B_8132_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