Difference between revisions of "CANopen:SET CONTROL PDO DADD"

From SoftMC-Wiki
Jump to: navigation, search
(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=
test
+
Set COBID and location of Control Word inside TPDO
  
 
|INPUT=
 
|INPUT=
Slave address
+
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=
public sub CAN_RESET
+
import_c  SET_CONTROL_PDO_DADD(byval as long,byval as long,byval as long,byval as long)
  
 
|SYNTAX=
 
|SYNTAX=
call CAN_RESET
+
SET_CONTROL_PDO_DADD(<dadd>,<cobid>,<offset>,<size>)
  
 
|EXCEPTIONS=
 
|EXCEPTIONS=
* [[CANOpen:Error Codes|Error_Codes]]
+
None
  
 
|EXAMPLE=
 
|EXAMPLE=
call CAN_RESET
+
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]]
 
}}
 
}}

Revision as of 09:06, 2 July 2014