
WORD
KK=0;
KK=
I8094MF.GET_ERROR(cardNo);
CString
MSGG;
if
(KK
!=
YES)
{
//No ERROR: Step 4 Move X axis
BYTE axis=AXIS_X; //for AXIS_X it can be to AXIS_XYZU
I8094MF.SET_MAX_V(cardNo,
axis,
20000);
I8094MF.NORMAL_SPEED(cardNo,
axis,
0);
//set axis as Symmetrical T curve mode
I8094MF.SET_V(cardNo,
axis,
20000);
//set v=10000 PPS
I8094MF.SET_A(cardNo,
axis,
100000);
//set acc=100000 PPS/S
I8094MF.SET_SV(cardNo,
axis,
10);
//set start speed=1000 PPS
I8094MF.SET_AO(cardNo,
axis,
0);
//set offset pulse (at SV speed)= 0 PS
I8094MF.FIXED_MOVE(cardNo,
axis,
10000);
//run the fixed 10000 Pulse move.
while (I8094MF.STOP_WAIT(cardNo, axis) == NO)
{
DoEvents();
Sleep(1);
//wait for axis to stop
}
long
AA=
I8094MF.GET_LP(cardNo,axis);
//Get X Now position
}
else
{
//Please check the ERROR CODE
//Get X ERROR CODE
KK=
I8094MF.GET_ERROR_CODE(cardNo,
AXIS_X);
//Get Y ERROR CODE
KK=
I8094MF.GET_ERROR_CODE(cardNo,
AXIS_Y);
//Get Z ERROR CODE
KK=
I8094MF.GET_ERROR_CODE(cardNo,
AXIS_Z);
//Get U ERROR CODE
KK=
I8094MF.GET_ERROR_CODE(cardNo,
AXIS_U);
//====================================
}
Please refer to the example “demo_First”
After you finished that, please choose the “Project”->”Setting” menu will appear the a
http:/www.icpdas.com I8094Getting Started ManualVer.2.3 2008/4/28
47