Difference between revisions of "CANopen:SET CONTROL PDO DADD"
(Created page with "{{Template:CANOpen-Firmware-Functions |DESCRIPTION= test |INPUT= Slave address |OUTPUT= None |RETURN VALUE= None |DECLARATION= public sub CAN_RESET |SYNTAX= call CAN_RES...") |
|||
Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | + | Set COBID and location of Control Word inside TPDO | |
|INPUT= | |INPUT= | ||
− | + | dadd: device address (physical network address)<br> | |
+ | cobid: CAN COBID<br> | ||
+ | offset: offset inside PDO, starting from 0<br> | ||
+ | size: in bytes, for example 0x6040.0 is 2 bytes long<br> | ||
+ | '''Important note'''<br> | ||
+ | Control word and pcmd/vcmd/tcmd must be mapped to the '''same''' PDO.<br> | ||
+ | if Control Word is not mapped, COB id of either pcmd, vcmd or vcmd will be used <br> | ||
|OUTPUT= | |OUTPUT= | ||
Line 14: | Line 20: | ||
|DECLARATION= | |DECLARATION= | ||
− | + | import_c SET_CONTROL_PDO_DADD(byval as long,byval as long,byval as long,byval as long) | |
|SYNTAX= | |SYNTAX= | ||
− | + | SET_CONTROL_PDO_DADD(<dadd>,<cobid>,<offset>,<size>) | |
|EXCEPTIONS= | |EXCEPTIONS= | ||
− | + | None | |
|EXAMPLE= | |EXAMPLE= | ||
− | + | SET_CONTROL_PDO_DADD(0x200,1 , 0 , 2) 'control word is located in fist two bytes of TPDO with COBID 0x200 | |
− | + | |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]] | ||
}} | }} |