the problem of Servo ax-12 and rx-64

thx everyone for interesting in my topic


I'm Bank, now I wanna know how to runing digital servo with Arduino board

in case AX-12 servo now i can movment with the program below

so i want to know ? how the different of potocal about AX-12 and RX-64 because i can't using this program with RX-64

thx and so sorry in my english is not well (I'm form Asia)

#define ReadPin 10
#define WritePin 11

void ControlServo(unsigned char ID,unsigned char LEN,unsigned char INST,unsigned char RED1,unsigned char RED2,unsigned char TOG1,unsigned char TOG2);

void setup() {
// initialize serial communication:
Serial1.begin(1000000);
pinMode (ReadPin,OUTPUT);
pinMode (WritePin,OUTPUT);
}
void ControlServo(unsigned char ID,unsigned char LEN,unsigned char INST,unsigned char RED1,unsigned char RED2,unsigned char TOG1,unsigned char TOG2){
// unsigned char RED1, RED2,TOG1,TOG2,NUMCOUT=0;
digitalWrite(ReadPin,LOW);
digitalWrite(WritePin,HIGH);
unsigned char NUMCOUT = 0;
unsigned char SUM =(ID+LEN+INST+RED1+RED2+TOG1+TOG2);
while(SUM>255){
SUM = SUM - 255;
NUMCOUT++;
}
SUM = 255 - (SUM + NUMCOUT);

unsigned char data[11]={255,255,ID,LEN,INST,RED1,RED2,TOG1,TOG2,SUM};
for(int i=0;i<11;i++){
Serial1.print(data*,BYTE);*

  • }*
    }
    void loop(){
    unsigned char ID,LEN=3,INST=30,RED1=20,RED2=2,TOG1=255,TOG2=2;
    {

  • RED1=2;RED2=2;*

  • ControlServo(3,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

  • RED1=0;RED2=1;*

  • ControlServo(3,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

  • RED1=100;RED2=3;*

  • ControlServo(3,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

  • RED1=2;RED2=2;*

  • ControlServo(6,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

  • RED1=0;RED2=1;*

  • ControlServo(6,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

  • RED1=100;RED2=3;*

  • ControlServo(6,LEN,INST,RED1,RED2,TOG1,TOG2);*

  • delay(1500);*

i'm looking for the example program for RX-64 only ,plz

What is the control protocol for the RX-64?