Version 1.0 06/2001 |
return i8092;
default:
Print("Slot %d = No Card\r\n",SlotNum);
return NOCARD;
};
Delay(500);
};
}
4.2 Example: DEMO.cpp
//demo.cpp for
//This program can test all of following command
// | ||
// (0)Exit | (A)i8091_IS_X_STOP | (K)i8091_CSP_MOVE |
// (1)i8091_RESET_SYSTEM | (B)i8091_IS_Y_STOP | (L)i8091_SLOW_DOWN |
// (2)i8091_SET_VAR | (C)i8091_LIMIT_X | (M)i8091_SLOW_STOP |
// (3)i8091_SET_DEFDIR | (D)i8091_LIMIT_Y | (N)i8091_INTP_PULSE |
// (4)i8091_SET_MODE | (E)i8091_LSP_ORG | (O)i8091_INTP_LINE |
// (5)i8091_SET_SERVO_ON | (F)i8091_HSP_ORG | (P)i8091_INTP_LINE02 |
// (6)i8091_SET_NC | (G)i8091_LSP_PULSE_MOVE (Q)i8091_CIRCLE02 | |
// (7)i8091_STOP_X | (H)i8091_HSP_PULSE_MOVE (R)i8091_ARC02 | |
// (8)i8091_STOP_Y | (I)i8091_LSP_MOVE | (S)User Define Testing |
// (9)i8091_STOP_ALL | (J)i8091_HSP_MOVE |
|
// |
|
|
//The output pulse amount can be monitored from i8090 card. When directly
//connect the CW/PULSE, CCW/DIR of i8091 to i8090. The encoder value
//can be shown on the LED display. Its format as following.
//ex: 0.2 1 2 8 :
//5 3.4 0 2 :
//1 0 0.1 0 :
//the dot(.) stands for which axis.
4.3 Example:DEMO1.cpp
//demo1.cpp for
//This a simple program to test
//i8091_INTP_LINE()
//i8091_INTP_LINE02()
http://www.icpdas.com |
| ICPDAS |