Skip to main content

java_groupsyncwrite

  • Description

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

  • Members

    None

  • Methods

MethodsDescription
groupSyncWriteInitializes members of packet data pointer struct
groupSyncWriteAddParamAdds parameter storage for read
groupSyncWriteRemoveParamRemoves parameter on the storage
groupSyncWriteChangeParamChanges parameter on the storage
groupSyncWriteClearParamClears parameter storage
groupSyncWriteTxPacketTransmits packet to the number of DYNAMIXEL's
  • Enumerator

    None

Method References

groupSyncWrite
  • Syntax
int groupSyncWrite(int port_num, int protocol_version, short start_address, short data_length)
  • Parameters
ParametersDescription
port_numPort number
protocol_versionProtocol version
start_addressControl table address to start writing data
data_lengthTotal data length
  • Detailed Description

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

groupSyncWriteAddParam
  • Syntax
Boolean groupSyncWriteAddParam(int group_num, byte id, int data, short input_length)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
dataData for write
input_lengthInput data length
  • Detailed Description

    This function pushes id to the DYNAMIXEL ID list, and initializes #group_num parameter storage by adding input_length bytes data. 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.

groupSyncWriteRemoveParam
  • Syntax
void groupSyncWriteRemoveParam(int group_num, byte 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.

groupSyncWriteChangeParam
  • Syntax
Boolean groupSyncWriteChangeParam(int group_num, byte id, int data, short input_length, short data_pos)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
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.

groupSyncWriteClearParam
  • Syntax
void groupSyncWriteClearParam(int group_num)
  • Parameters

    None

  • Detailed Description

    This function clears #group_num DYNAMIXEL ID list.

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

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