96
•
Operation Theorem
3. Start moving command
_7443_start_tr_move(0,12000,0,10000,0.1,0.1);
4. Wait axis 0 interrupt event
STS=WaitForSingleObject(hEvent[0],15000);
ResetEvent(hEvent[0]);
if( STS==WAIT_OBJECT_0 )
{
_7443_get_int_status(0, &error, &event);
if( event == 0x01 ) …… ; // Success
}
else if( STS==WAIT_TIME_OUT)
{
// Time out, fail
}
PPCI7443 Interrupt Service Routine (ISR) with DOS
A DOS function library is equipped with PPCI7443 for users to develop
applications under DOS environment. This library also provides some
functions for users to work with ISR. It is highly recommended to write
programs according to the following example for applications should work
with ISR. Since PCI-bus has the ability to do IRQ sharing when multiple
PPCI7443 are applied, each PPCI7443 should have a corresponding ISR.
For users who use the library we provide, the names of ISR are fixed, such
as: _
7443_isr0(void), _7443_isr1(void)…etc. The sample program are
described as below. It is assumed that two PPCI7443 are plugged on the
slot , axis 1 and axis5 are asked to work with ISR.:
// header file declare
#include
“pci_7443.h”
void main(void) {
I16 TotalCard,i;
// Initialize cards
_7443_initial(&TotalCard);
if( TotalCard == 0 ) exit(1);
_7443_set_int_factor(0,0x1); // Set int factor
_7443_int_control(0,1);
// enable int service
:
:
// Insert User’s Code in Main
Summary of Contents for PPCI7443
Page 1: ...PPCI7443 Advanced 4 Axes Servo Stepper Motion Control Card User s Guide Version 2 00...
Page 2: ......
Page 6: ......
Page 8: ......
Page 42: ...34 Single Connections...
Page 82: ...74 Operation Theorem _7443_set_home_config _7443_home_move Refer to section 6 9...
Page 108: ......
Page 118: ......