Start The Tc Sample - ICP DAS USA I-8094 Getting Started Manual

Pac motion control module
Table of Contents

Advertisement

4.3.3 Start the TC Sample

1. Add the declared contents into the demo100.cpp:
#include
<dos.h>
#include
<math.h>
#include
"8000.h"
#include
"I8094.h"
BYTE cardNo;
long
x_value, y_value, z_value, u_value;
2. Add the relevance code into the main program( Please refer to demo100.cpp):
void
main ()
{
//=================== I-8000 ===================
//Set (slot0~slot7) = cardNO (1~8)。
BYTE slot;
int
Found = 0;
for
(slot = 0; slot < 8; slot++)
{
cardNo = slot + 1;
if
(i8094MF_REGISTRATION(cardNo, slot) == YES)
{
//Found Axis Card。
i8094MF_RESET_CARD(cardNo);
Found++;
}
}
if
(Found == 0)
{
//Not Found。
Print("I-8094 card not found ! \r\n");
return;
}
cardNo = 1;
i8094MF_INIT_CARD(cardNo);
i8094MF_SET_PULSE_MODE(cardNo, AXIS_XYZU, 2);
http:/www.icpdas.com
59
I8094Getting Started ManualVer.2.3 2008/4/28

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-8094f

Table of Contents