I/o control and monitoring, 14 i/o control and monitoring – ADLINK PCI-8134A User Manual

Page 135

Advertising
background image

Additional Function Library

125

I16 set_inp(I16 axis, I16 inp_enable, I16 inp_logic)
I16 set_erc_enable(I16 axis, I16 erc_enable)

Visual Basic (Windows)

B_8134_set_alm_logic (ByVal axis As Integer, ByVal alm_logic As

Integer, ByVal alm_mode As Integer) As Integer

B_8134_set_inp_logic (ByVal axis As Integer, ByVal inp_enable As

Integer, ByVal inp_logic As Integer) As Integer

B_8134_set_erc_enable(ByVal axis As Integer, ByVal erc_enable

As Integer) As Integer

@ Argument

axis: axis number designated to configure
alm_logic: setting of active logic for ALARM

signal

alm_logic=0, active LOW.
alm_logic=1, active HIGH.

inp_logic: setting of active logic for INP signal

inp_logic=0, active LOW.
inp_logic=1, active HIGH.

alm_mode: reacting modes when receiving ALARM

signal.

alm_mode=0, motor immediately stops.
alm_mode=1, motor decelerates then stops.

inp_enable: INP function enable/disable

inp_enable=0, Disabled
inp_enable=1, Enabled

erc_enable: ERC pin output enable/disable

erc_enable=0, Disabled
erc_enable=1, Enabled

@ Return Code

ERR_NoError

7.14

I/O Control and Monitoring

@ Name

_8134_set_servo – Set the output pin for servo ON control
_8134_get_io_status – Get all the I/O status

@ Description

_8134_set_servo:

Set the High/Low output state of general purpose output pin SVON.
Ususally, users can connect this pin to AC servo’s Servo ON pin.

_8134_get_io_status:

Get all the I/O status for each axis. The definition for each bit is as
following:

Advertising