Difference between revisions of "CANopen:SET TCMD PDO DADD"
(Created page with "{{Template:CANOpen-Firmware-Functions |DESCRIPTION= Set COBID and location of 16-bit Torque Command inside TPDO. |INPUT= dadd: device address (physical network address)<br...") |
(AXY: new links) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Template: | + | {{Template:CANopen Firmware Functions |
|DESCRIPTION= | |DESCRIPTION= | ||
− | Set COBID and location of 16-bit Torque Command inside TPDO. | + | Set COBID and location of 16-bit Torque Command ([[MC-Basic:element.TORQUECOMMAND]]) inside TPDO. |
|INPUT= | |INPUT= | ||
Line 32: | Line 32: | ||
SET_TCMD_PDO_DADD(1,0x200,2 , 2) ' Torque Command is located in bytes 2 and 3 of TPDO with COBID 0x200 | SET_TCMD_PDO_DADD(1,0x200,2 , 2) ' Torque Command is located in bytes 2 and 3 of TPDO with COBID 0x200 | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[CANopen:CAN SDO WRITE|CAN_SDO_WRITE]] |
− | * [[ | + | * [[CANopen:SET CONTROL PDO DADD|SET_CONTROL_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET STATUS PDO DADD|SET_STATUS_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET PCMD PDO DADD|SET_PCMD_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET PFB PDO DADD|SET_PFB_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET VCMD PDO DADD|SET_VCMD_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET VFB PDO DADD|SET_VFB_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET TCMD PDO DADD|SET_TCMD_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET TDCMD PDO DADD|SET_TDCMD_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET CFB PDO DADD|SET_CFB_PDO_DADD]] |
− | * [[ | + | * [[CANopen:SET DOUT PDO DADD|SET_DOUT_PDO_DADD]] |
− | * [[ | + | * [[CANopen:Configuration Example|Configuration_Example]] |
}} | }} |
Latest revision as of 12:51, 13 September 2017
Set COBID and location of 16-bit Torque Command (MC-Basic:element.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