Page 1 of 1

g15 cube servo sync write parameter

PostPosted: Thu Apr 03, 2014 7:47 pm
by casionee
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?

Re: g15 cube servo sync write parameter

PostPosted: Fri Apr 04, 2014 1:30 pm
by waiweng83
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

Re: g15 cube servo sync write parameter

PostPosted: Fri Apr 04, 2014 3:46 pm
by casionee
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?

Re: g15 cube servo sync write parameter

PostPosted: Fri Apr 04, 2014 4:14 pm
by waiweng83
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.

Re: g15 cube servo sync write parameter

PostPosted: Fri Apr 04, 2014 4:59 pm
by casionee
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.

Re: g15 cube servo sync write parameter

PostPosted: Tue Apr 08, 2014 4:28 pm
by waiweng83
No, it will not reset the ID unless you overwrite it explicitly.