![background image](http://html2.mh-extra.com/html/icp-das-usa/i-8092f/i-8092f_user-manual_3531635170.webp)
ICPDAS
I-8092F Software User Manual
170
A.7.7 Interrupt Function
Table A-10 Synchronous Action functions
函式名稱
敘述
i8092_BPINT_ENABLE
致能位元補間中斷。
i8092_BPINT_DISABLE
除能位元補間中斷。
i8092_CIINT_ENABLE
致能連續補間中斷。
i8092_CIINT_DISABLE
除能連續補間中斷。
i8092_INTFACTOR_ENABLE
致能各中斷條件因子。
i8092_INTFACTOR_DISABLE
除能各中斷條件因子。
i8092_SYNC_MODE
Format:
void
i8092_SYNC_MODE(
unsigned char
cardNo,
WORD
axis,
WORD
sm6data,
WORD
sm7data)
Function:
Writes data to the WR6, WR7 registers and uses 64h command to set the conditions
for synchronous action mode.
Parameters:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1.
sm6data is the data for the WR6 register.
sm7data is the data for the WR6 register.
Example:
//Set the X axis (0x1) as the
Provocative
axis, Y axis (0x2) as the
Active
//axis. However the activation factor is the logic position counter value
//exceeded the value of COMP+ register (P
≥
C+), and the action is the positive
//fixed pulse driving.
i8092_SET_SYNCMODE(1, 0x1, 0x2001 , 0x0);
i8092_SET_SYNCMODE(1, 0x2, 0x0, 0x0010);