7 interrupt, 8144_set_motion_interrupt_factor, Interrupt – ADLINK PCI-8144 User Manual

Page 139

Advertising
background image

Function Library

129

6.7

Interrupt

_8144_set_motion_interrupt_factor

Set factors of motion related interrupts

Description:

This function allows users to enable or disable interrupt output
when the motor is stopped in start_r_move or when it is stoped
using EL, STP and ORG signals or software stop command.
Once the Interrupt function is enabled, you can use
_8144_wait_single_motion_interruptt()

to wait

event. Disable the motion interrupt by set the factor to 0. Notice
that, this function will valid on next motion command.

Syntax:

I16 _8144_set_motion_interrupt_factor( I16

AxisNo, I16 MotionIntFactorInBit )

B_8144_set_motion_interrupt_factor( ByVal AxisNo

As Integer, ByVal MotionIntFactorInBit As

Integer ) As Integer

Parameters:

I16 AxisNo

: The axis number is designated to receive the

command.

Card ID Physical axis AxisNo

0

0

0

1

1

2

2

3

3

1

0

4

1

5

2

6

3

7

2

0

8

...

...

Advertising