![MOTKA MK-200 Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/motka/mk-200/mk-200_user-manual_1837971019.webp)
19
CSerial port;
If(port.open(2, 115200))
// Open serial port and configured
{
// to baud 115200 bps
char SE[6] = “SE, T”;
// Servo enable for Axis B
SL[5] = 0x0D;
// Terminate with Carriage Return
char SL[10] = “SL, 30000”;
// Speed limit
SL[9] = 0x0D;
// Terminate with Carriage Return
char AL[11] = “AL, 100000”;
// Acceleration limit
AL[10] = 0x0D;
// Terminate with Carriage Return
char DL[11] = “DL, 100000”;
// Deceleration limit
DL[10] = 0x0D;
// Terminate with Carriage Return
char MR[10] = “MR, 50000”;
// Move Relative
MR[9] = 0x0D;
// Terminate with Carriage Return
port.send(SL, sizeof(SL));
// Set speed limit
port.send(AL, sizeof(AL));
// Set acceleration limit
port.send(DL, sizeof(DL));
// Set deceleration limit
port.send(SE, sizeof(SE));
// Enable motor
port.send(MR, sizeof(MR));
// Move motor
}
Example 3 – Profiled Move of Multiple Axes
In this example, both Axis A and B move independently at the same time.
CSerial port;
If(port.open(2, 115200))
// Open serial port and configured
{
// to baud 115200 bps
char SE[8] = “SE T, T”;
// Servo enable for Axis A and B
SL[7] = 0x0D;
// Terminate with Carriage Return
char SL[15] = “SL 30000, 5000”;
// Speed limits
SL[14] = 0x0D;
// Terminate with Carriage Return
char AL[17] = “AL 100000, 80000”;
// Acceleration limits
AL[16] = 0x0D;
// Terminate with Carriage Return
char DL[17] = “DL 100000, 10000”;
// Deceleration limits
DL[16] = 0x0D;
// Terminate with Carriage Return
char MR[16] = “MR 50000, 75000”;
// Move Relative
Содержание MK-200
Страница 1: ...M MK K 2 20 00 0 U Us se er r s s M Ma an nu ua al l Revision 1 1 MOTKA LLP ...
Страница 4: ...4 List of Tables Table 1 MK 200 pin definitions 9 Table 2 Document revision history 26 ...
Страница 7: ...7 Related documents Command Reference MOTKA Motion Companion User s Manual ...
Страница 23: ...23 Figure 14 Recommended PCB footprint ...
Страница 27: ...27 ...