Difference between revisions of "CANopen:CAN SDO WRITE STRING"
(Created page with "{{Template:CANOpen-Functions |DESCRIPTION= CAN_SDO_WRITE_STRING sends array of bytes to the slave over a specific SDO. We have to specify the SDO's index, and its sub-index a...") |
m (Lisa moved page CANOpen:CAN SDO WRITE STRING to CANopen:CAN SDO WRITE STRING: correction of CANopen) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Template: | + | {{Template:CANopen Functions |
|DESCRIPTION= | |DESCRIPTION= | ||
Line 22: | Line 22: | ||
|EXCEPTIONS= | |EXCEPTIONS= | ||
− | * [[ | + | * [[CANopen:Error Codes|Error_Codes]] |
|EXAMPLE= | |EXAMPLE= | ||
call CAN_SDO_WRITE_STRING(1, 0x2010, 0, "New value") | call CAN_SDO_WRITE_STRING(1, 0x2010, 0, "New value") | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[CANopen:CAN SDO READ STRING|CAN_SDO_READ_STRING]] |
− | * [[ | + | * [[CANopen:CAN SDO WRITE STRING|CAN_SDO_WRITE_STRING]] |
− | * [[ | + | * [[CANopen:CAN SDO READ|CAN_SDO_READ]] |
− | * [[ | + | * [[CANopen:CAN SDO WRITE|CAN_SDO_WRITE]] |
}} | }} |
Latest revision as of 14:45, 26 August 2014
CAN_SDO_WRITE_STRING sends array of bytes to the slave over a specific SDO. We have to specify the SDO's index, and its sub-index and the new value, size is derived from string variable
that we would like to write to 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).
Input
Slave address, SDO index, SDO sub-index, the new value to be written.
Output
None
Return Value
Void
Declaration
public sub CAN_SDO_WRITE_STRING(byval slaveaddress as long, byval index as long, byval subindex as long,byval new_val as string)
Syntax
call CAN_SDO_WRITE_STRING(<Slave address>, <SDO index>, <SDO sub-index>, <new value>)
Exceptions
Examples
call CAN_SDO_WRITE_STRING(1, 0x2010, 0, "New value")