Difference between revisions of "CANopen:CAN SDO WRITE REAL"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "CANOpen" to "CANopen")
m (Lisa moved page CANOpen:CAN SDO WRITE REAL to CANopen:CAN SDO WRITE REAL: correction of CANopen)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:CANopen-Functions
+
{{Template:CANopen Functions
  
 
|DESCRIPTION=
 
|DESCRIPTION=

Latest revision as of 14:43, 26 August 2014

CAN_SDO_WRITE_REAL Download single precision floating point value to the device. We have to specify the SDO's index, and its sub-index, its size, and the new value
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_REAL(byval slaveaddress as long, byval index as long, byval subindex as long, byval new_val as double)

Syntax

call CAN_SDO_WRITE_REAL(<Slave address>, <SDO index>, <SDO sub-index>, <SDO size in bits>, <new value>)

Limitations

<new Value> will be converted from Double to Single precision floating point

Exceptions

Examples

call CAN_SDO_WRITE(1, 0x2020, 0, 1.234)

See Also