Dynamixel SDK

dxl_read_word

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

 

int dxl_read_word(

   int id,

   int address

);

 

Parameters

- id

Dynamixel ID to read information

- address

Address value of information

 

Return Values

- The read data value

 

Example

data = dxl_read_word( 2, 36 );

if( dxl_get_result( ) == COMM_RXSUCCESS )

{

     // data 사용

}

 

Go back to the list