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

Motion control module
Hide thumbs Also See for I-8092F:
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
"I8092.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
(i8092MF_REGISTRATION(cardNo, slot) == YES)
{
//Found Axis Card。
i8092MF_RESET_CARD(cardNo);
Found++;
}
}
if
(Found == 0)
{
//Not Found。
Print("I-8092 card not found ! \r\n");
return;
}
cardNo = 1;
i8092MF_INIT_CARD(cardNo);
i8092MF_SET_PULSE_MODE(cardNo, AXIS_XYZU, 2);
http://www.icpdas.com
56
I8092F Getting Started ManualVer.2.3

Advertisement

Table of Contents
loading

Table of Contents