9 home return mode, Home return mode – ADLINK PCI-8158 User Manual

Page 169

Advertising
background image

Function Library

159

6.9 Home Return Mode

@ Name

_8158_set_home_config – Set the configuration for home

return move motion

_8158_home_move – Perform a home return move.

_8158_home_search –Perform an auto search home

@ Description

_8158_set_home_config:

Configures the home return mode, origin(ORG) and index sig-
nal(EZ) logic, EZ count, and ERC output options for the
home_move() function. Refer to section 4.2.10 for the setting
of home_mode control.

_8158_home_move:

This function will cause the axis to perform a home return move
according to the _8164_set_home_config() function settings.
The direction of movement is determined by the sign of velocity
parameter (MaxVel). Since the stopping condition of this func-
tion is determined by the home_mode setting, users should
take care in selecting the initial moving direction. Users should
also take care to handle conditions when the limit switch is
touched or other conditions that are possible causing the axis
to stop. For more detail description, see section 4.2.10

_8158_home_search:

This function will cause the axis to perform a home-search
move according to the _8164_set_home_config() function set-
tings. The direction of movement is determined by the sign of
velocity parameter (MaxVel). Since the stopping condition of
this function is determined by the home_mode setting, users
should take care in selecting the initial moving direction. Users
should also take care to handle conditions when the limit switch
is touched or other conditions that are possible causing the
axis to stop. For more detail description, see section 4.2.11

Advertising