Difference between revisions of "CANopen:SET CONTROL PDO DADD"
m (Text replace - "CANOpen" to "CANopen") |
m (Text replace - "Template:CANopen-Firmware-Functions" to "Template:CANopen Firmware Functions") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Template:CANopen | + | {{Template:CANopen Firmware Functions |
|DESCRIPTION= | |DESCRIPTION= |
Latest revision as of 14:41, 26 August 2014
Set COBID and location of 16-bit Control Word inside TPDO.
Input
dadd: device address (physical network address)
cobid: CAN COBID
offset: offset inside PDO, starting from 0
size: in bytes, for example 0x607a.0 is 4 bytes long
Important note
Control Word and either "Position Command" or "Velocity Command" or "Torque Command" must be mapped to the same PDO.
if Control Word is not mapped, COB id of either pcmd, vcmd or vcmd will be used instead
Output
None
Return Value
None
Declaration
import_c SET_CONTROL_PDO_DADD(byval as long,byval as long,byval as long,byval as long)
Syntax
SET_CONTROL_PDO_DADD(<dadd>,<cobid>,<offset>,<size>)
Exceptions
None
Examples
SET_CONTROL_PDO_DADD(1,0,0,0) ' Unmap Control Word
SET_CONTROL_PDO_DADD(1,0x200,0 , 2) ' Control Word is located in bytes 0 and 1 of TPDO with COBID 0x200