Servo drive interface, 14 servo drive interface – ADLINK PCI-8134A User Manual

Page 106

Advertising
background image

96

Function Library

Visual Basic (Windows)

motion_done (ByVal axis As Integer) As Integer

@ Argument

axis: axis number of motion status

@ Return Code

ERR_NoError

6.14

Servo Drive Interface

@ Name

set_alm_logic – Set alarm logic and alarm mode
set_inp_logic – Set In-Position logic and enable/disable
set_sd_logic – Set slow down point logic and enable/disable
set_erc_enable – Set ERC pin output enable/disable
@ Description set_alm_logic:

Set the active logic of ALARM signal input from servo driver. Two
reacting modes are available when ALARM signal is active.

set_inp_logic:

Set the active logic of In-Position signal input from servo driver. Users
can select whether they want to enable this function. Default state is
disabled.

set_sd_logic:

Set the active logic and latch control of SD signal input from mechanical
system. Users can select whether they want to enable this function.
Default state is disabled.

set_erc_enable:

You can set ERC pin output enable/disable by this function. Default state
is enabled.

@ Syntax

C/C++ (DOS, Windows)

U16 set_alm_logic(I16 axis, I16 alm_logic, I16

alm_mode)

U16 set_inp_logic(I16 axis, I16 inp_logic, I16

inp_enable)

U16 set_sd_logic(I16 axis, I16 sd_logic, I16 sd_latch,

I16 sd_enable)

U16 set_erc_enable(I16 axis, I16 erc_enable)

Visual Basic (Windows)

set_alm_logic (ByVal axis As Long, ByVal alm_logic As

Long, ByVal alm_mode As Long) As Integer

set_inp_logic (ByVal axis As Long, ByVal inp_logic As

Long, ByVal inp_enable As Long) As Integer

set_sd_logic (ByVal axis As Long, ByVal sd_logic As

Long, , ByVal sd_latch As Long, ByVal sd_enable As
Long) As Integer

Advertising