User`s guide

Function Library 95
6.11 Home Return
@ Name
set_home_config Set the configuration for home return.
home_move Perform a home return move.
@ Description
set_home_config:
Configure the logic of origin switch and index signal needed for
home_move() function. If you need to stop the axis after EZ signal is
active(home_mode=1 or 2), you should keep placing ORG signal in
the ON status until the axis stop. If the pulse width of ORG signal is
too short to keep it at ON status till EZ goes ON, you should select the
org_latch as enable. The latched condition is cancelled by the next
start or by disabling the org_latch. Three home return modes are
available. Refer to Chapter4.1.5 for the setting of home_mode control.
home_move:
This function will cause the axis to perform a home return move
according to the setting of set_home_config() function. The direction
of moving is determined by the sign of velocity parameter(svel, mvel).
Since the stopping condition of this function is determined by
home_mode setting, user should take care to select the initial moving
direction. Or user should take care to handle the condition when limit
switch is touched or other conditions that is possible causing the axis
to stop. Executing v_stop() function during home_move() can also
cause the axis to stop.
@ Syntax
C/C++ (DOS, Windows 95/NT)
U16 set_home_config(I16 axis, I16 home_mode, I16
org_logic, I16 org_latch, I16 EZ_logic)
U16 home_move(I16 axis, F64 svel, F64 mvel, F64
accel)
Visual Basic (Windows 95/NT)
set_home_config (ByVal axis As Long, ByVal
home_mode As Long, ByVal org_logic As Long,
ByVal org_latch As Long, ByVal EZ_logic As Long)
As Integer
home_move (ByVal axis As Long, ByVal str_vel As
Double, ByVal max_vel As Double, ByVal accel As
Double) As Integer
@ Argument
axis: axis number designated to configure and perform home
returning