ADLINK AMP-208C User Manual

Page 187

Advertising
background image

Motion Control Theory

173

AMP-204C / AMP-208C

You may use interrupt function in Windows environment as
described below:

1. Set up interrupt events
2. Enable main interrupt switch
3. Waiting for interrupt trigger
4. Reset interrupt to non-signaled state
5. Close interrupt event and main interrupt switch

See table below for relevant APS APIs:

I32 APS_int_enable (I32 Board_ID, I32 Enable);

I32 APS_set_int_factor (I32 Board_ID, I32 Item_No, I32

Factor_No, Enable);

I32 APS_get_int_factor (I32 Board_ID, I32 Item_No, I32

Factor_No, *Enable);

HANDLE APS_int_no_to_handle (I32 Int_No);

I32 APS_wait_single_int (I32 Int_No, I32 Time_Out);

I32 APS_wait_multiple_int (I32 Int_Count, I32 *Int_No_Array,

I32 Wait_All, I32 Time_Out);

I32 APS_reset_int (I32 Int_No);

I32 APS_set_int (I32 Int_No);

CAUTION

Digital input signal (DI) status changes are detected by
controller in every motion cycle. Interrupt can be generated
only when the period of external input signal change cycle is
greater than that of motion cycle.

Advertising
This manual is related to the following products: