67/71
User’s Manual
v1.07
wCK series
SendOperCommand((6<<5)|ServoID, (ROTATE_CCW<<4)|SpeedLevel);
}
else if(RotationDir==ROTATE_CW) {
SendOperCommand((6<<5)|ServoID, (ROTATE_CW<<4)|SpeedLevel);
}
RotNum = GetByte(TIME_OUT1);
GetByte(TIME_OUT1);
return RotNum;
}
/*****************************************************************************/
/* Function that sends Synchronized Position Move Command to wCK module */
/* Input : LastID, SpeedLevel, *TargetArray, Index
*/
/*
Return
:
None
*/
/****************************************************************************/
void SyncPosSend(char LastID, char SpeedLevel, char *TargetArray, char Index)
{
int i;
char CheckSum;
i = 0;
CheckSum = 0;
SendByte(HEADER);
SendByte((SpeedLevel<<5)|0x1f);
SendByte(1);
while(1) {
if(i>LastID) break;
SendByte(TargetArray[Index*(1)+i]);
CheckSum = CheckSum ^ TargetArray[Index*(1)+i];
i++;
}
CheckSum = CheckSum & 0x7f;
SendByte(CheckSum);
}
/********************************************************************/
/* Function that sends Baud rate Set Command to wCK module
*/
/* Input : ServoID, NewBaud
*/
/* Return : New Baudrate if succeed, 0xff if fail
*/
/********************************************************************/
char BaudrateSet(char ServoID, char NewBaud)
{
SendSetCommand((7<<5)|ServoID, 0x08, NewBaud, NewBaud);
Содержание wCK series
Страница 1: ...wCK series User s Manual Intelligent Modular Robot Ver 1 07 ...
Страница 9: ...9 71 User s Manual v1 07 wCK series Figure1 6a Application VariousArticulatedRobots ...
Страница 12: ...12 71 User s Manual v1 07 wCK series Figure1 8c BlowUpPicture Figure1 8b Dimension ...
Страница 16: ...16 71 User s Manual v1 07 wCK series Figure2 1d JointTypeforConnectionStyles JOINT 1 JOINT 2 JOINT 3 ...
Страница 17: ...17 71 User s Manual v1 07 wCK series JOINT 4 JOINT 5 JOINT 6 ...
Страница 18: ...18 71 User s Manual v1 07 wCK series JOINT 7 JOINT 8 JOINT 9 ...
Страница 19: ...19 71 User s Manual v1 07 wCK series JOINT 10 JOINT 12 JOINT 11 ...
Страница 26: ...26 71 User s Manual v1 07 wCK series Figure2 4a wCKProgrammerScreenLayout Figure2 4b Setting ProgrammingArea ...
Страница 29: ...29 71 User s Manual v1 07 wCK series PDgainControl PIDgainControl ...