g15 cube servo sync write parameter

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

g15 cube servo sync write parameter

Postby casionee » Thu Apr 03, 2014 7:47 pm

hi guys, i am new in using g15 cube servo and i am trying to implement the sync write function in order to control 2 g15 for my line following robot simultaneously. however, i found that i have difficulty to understand of the user manual data as shown in the image i uploaded. I hope anyone can help to explain the problem that i highlighted in the image.
is it 0x04 of the data length parameter has the meaning of 16bits data size or anything else?
Attachments
g15codequestion.png
I don't understand of meaning the value of highlighted on the data length parameter
casionee
Greenhorn
 
Posts: 3
Joined: Thu Apr 03, 2014 6:13 pm

Re: g15 cube servo sync write parameter

Postby waiweng83 » Fri Apr 04, 2014 1:30 pm

The data length means how many bytes you want to write to the G15.
In your example, the data length is 4. That means 4 bytes of data will be writen to each G15.

Data for G15 ID 0x00 = 0x10, 0x00, 0x50, 0x01
Data for G15 ID 0x01 = 0x20, 0x02, 0x60, 0x03
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 205
Joined: Wed Apr 15, 2009 2:17 pm

Re: g15 cube servo sync write parameter

Postby casionee » Fri Apr 04, 2014 3:46 pm

thanks for your help!!!
"user program has to wait for 25 ms after the EEPROM write command is sent before sending the next command. Any command sent within this period may not be processed. This is to ensure no interruption to EEPROM write process." this phrase i get from g15 user manual on page 18. then my question is how about when we synchronus write or write to the RAM of g15, how long should i delay to avoid interruption such in EEPROM? is there any difference between these 2 functions(synchronus write or write) when accessing RAM?
casionee
Greenhorn
 
Posts: 3
Joined: Thu Apr 03, 2014 6:13 pm

Re: g15 cube servo sync write parameter

Postby waiweng83 » Fri Apr 04, 2014 4:14 pm

There is no different in timing when using sync write or write.
For writting to RAM, you still need to wait for 25ms before sending the next data for the G15 to process the previous data.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 205
Joined: Wed Apr 15, 2009 2:17 pm

Re: g15 cube servo sync write parameter

Postby casionee » Fri Apr 04, 2014 4:59 pm

when using synchronous write, will it reset all my 2 servo id since it use universal id? My left g15 servo i set with id 10 and the right 1 i set with 5 before using synchronous write.
casionee
Greenhorn
 
Posts: 3
Joined: Thu Apr 03, 2014 6:13 pm

Re: g15 cube servo sync write parameter

Postby waiweng83 » Tue Apr 08, 2014 4:28 pm

No, it will not reset the ID unless you overwrite it explicitly.
With the power of dream, nothing is impossible...
User avatar
waiweng83
Moderator
 
Posts: 205
Joined: Wed Apr 15, 2009 2:17 pm


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 6 guests

cron