CANopen:CAN SDO READ STRING

From SoftMC-Wiki
Revision as of 15:08, 26 August 2014 by Lisa (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To read byte array from the slave
The first sub-index is 0. If only one sub-index exists, we still have to specify 0 (we cannot omit this field).
The read value is returned from the function and can be set to a variable.

Input

Slave address, SDO index, SDO sub-index.

Output

None

Return Value

Value that is read from the slave.

Declaration

public function CAN_SDO_READ_STRING(byval slaveaddress as long, byval index as long, byval subindex as long) as string

Syntax

retVal = CAN_SDO_READ_STRING(<Slave address>, <SDO index>, <SDO sub-index>)

Exceptions

Examples

Version = CAN_SDO_READ_STRING(0, 0x100a,0) ' Read device version
Print Version

See Also