Dynamixel SDK

dxl_write_word

Information of 2 byte can be read on Dynamixel.  The communication result can be checked by dxl_get_result.

 

void dxl_write_word(

   int id,

   int address,

   int value

);

 

Parameters

- id

Dynamixel ID to write information

- address

Address of the information

- value

Values of the information to write on Dynamixel

Return Values

- None

 

Example

dxl_write_word( 2, 30, 512 );

if( dxl_get_result( ) == COMM_RXSUCCESS )

{

     // Succeed to write

}

 

Go back to the list