APIs, concepts, guides, and more

◆ ServiceChannelReadString()

const char *const ServiceChannelReadString ( int32_t index,
int32_t subIndex,
int32_t byteCount,
uint32_t timeoutMilliseconds = SDOTimeoutMillisecondsDefault )
Description:
Read a string from the SDO. The index, subIndex, byteCount, and valid numeric values are drive specific. Refer to the drive manual to determine these values.
Parameters
indexThe memory address to write to
subIndexThe sub index to write to
byteCountThe number of bytes to write
timeoutMillisecondsThe time in ms used in two ways: first as the wait for the service channel to become available (a previous operation, possibly from another process, may still be in progress), then as the wait for the read response. Each wait generates a timeout error if exceeded, so a call can take up to twice this value before erroring. (Default: SDOTimeoutMillisecondsDefault)
Returns
(char*) The string value at the specified location
See also
SDOTimeoutMillisecondsDefault