Difference between revisions of "CANopen:SET TCMD PDO DADD"
m (Lisa moved page CANOpen:SET TCMD PDO DADD to CANopen:SET TCMD PDO DADD: correction of CANopen) |
|||
Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | Set COBID and location of 16-bit Torque Command ([[MC-Basic:axis.TORQUECOMMAND]]) inside TPDO. | + | Set COBID and location of 16-bit Torque Command ([[AXY:MC-Basic:axis.TORQUECOMMAND]]) inside TPDO. |
|INPUT= | |INPUT= |
Revision as of 07:33, 14 August 2017
Set COBID and location of 16-bit Torque Command (AXY:MC-Basic:axis.TORQUECOMMAND) 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_TCMD_PDO_DADD(byval as long,byval as long,byval as long,byval as long)
Syntax
SET_TCMD_PDO_DADD(<dadd>,<cobid>,<offset>,<size>)
Exceptions
None
Examples
SET_TCMD_PDO_DADD(1,0,0,0) ' Unmap Torque Command
SET_TCMD_PDO_DADD(1,0x200,2 , 2) ' Torque Command is located in bytes 2 and 3 of TPDO with COBID 0x200