Skip to main content

matlab_groupbulkwrite

  • Description

    Base functions for simultaneous dynamixel control on writing to different length data on different control table address.

  • Members

    None

  • Methods

MethodsDescription
groupBulkWriteInitializes members of packet data pointer struct
groupBulkWriteAddParamAdds parameter storage for read
groupBulkWriteRemoveParamRemoves parameter on the storage
groupBulkWriteChangeParamChanges parameter on the storage
groupBulkWriteClearParamClears parameter storage
groupBulkWriteTxPacketTransmits packet to the number of DYNAMIXEL's
  • Enumerator

    None

Method References

groupBulkWrite
  • Syntax
int groupBulkWrite(int port_num, int protocol_version)
  • Parameters
ParametersDescription
port_numPort number
protocol_versionProtocol version
  • Detailed Description

    This function initializes the parameters for packet construction. The function resizes groupData struct and initialzes struct members.

groupBulkWriteAddParam
  • Syntax
bool groupBulkWriteAddParam(int group_num, int id, int start_address, int data_length, int data, int input_length)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
start_addressStart address
data_lengthData length
dataData for write
input_lengthInput data length
  • Detailed Description

    This function pushes id into the DYNAMIXEL ID list, and initializes #group_num parameter storage by setting start_address and param_length. The function deals with 1, 2 or 4 byte data only. The function returns false when the length of input data exceeds parameter or wrong length, or returns true.

groupBulkWriteRemoveParam
  • Syntax
void groupBulkWriteRemoveParam(int group_num, int id)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
  • Detailed Description

    This function removes id and its data for write in the #group_num DYNAMIXEL ID list. The function returns false when no data is in the parameter storage, or returns true.

groupBulkWriteChangeParam
  • Syntax
bool groupBulkWriteChangeParam(int group_num, int id, int start_address, int data_length, int data, int input_length, int data_pos)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
start_addressStart address
data_lengthData length
datadata for write
input_lengthInput data length
data_posData position in the array
  • Detailed Description

    This function pushes new data_length bytes data into #group_num parameter storage of same id. The function returns false when the target ID doesn’t exists in the ID list, or returns true.

groupBulkWriteClearParam
  • Syntax
void groupBulkWriteClearParam(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function clears #group_num DYNAMIXEL ID list.

groupBulkWriteTxPacket
  • Syntax
int groupBulkWriteTxPacket(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function transmits the packet by using BulkWriteTxOnly function. The communication result and the hardware error are available when the function is terminated.