Interrupt control, 16 interrupt control – ADLINK PCI-8134A User Manual

Page 138

Advertising
background image

128

Additional Function Library

max_error As Long) As Integer

@ Argument

axis: axis number designated to set and get position.
pos: actual position or command position
cmd: target command position value
*error_c: error counter value
max_error: error detect value setting

@ Return Code

ERR_NoError

7.16

Interrupt Control

@ Name

_8134_int_enable – Set interrupt event enable
_8134_int_disable – Set interrupt event disable
_8134_int_control – Enable/Disable IRQ channel
_8134_set_int_factor – Set interrupt generating factors
_8134_get_int_status – Get the interrupting status of axis
_8134_link_axis_interrupt – Link a interrupt callback function

@ Description

_8134_int_enable:

This function is used to enable interrupt event generating to host PC.
(Window only).

_8134_int_disable:

This function is used to disable interrupt event generating to host PC.
(Window only).

_8134_int_control :

This function is used to control the hardware interrupt channel
enable or disable. Please call this function after the interrupt events
are enabled.

_8134_set_int_factor:

This function allows users to select factors to initiate the INT signal.
PCI-8134 can generate INT signal to host PC by setting the relative
bit as 1. The definition for each bit is as following:

Bit

Interrupt Factor

0

Stop with the EL signal

1

Stop with the SD signal

2

Stop with the ALM signal

3

Stop with the STP signal

4

Should be set to 0

5

Completion of home return

6

Completion of preset movement (PTP move)

Advertising