Difference between revisions of "CANopen:DS402 CONTROL WRD RAW SET"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:CANOpen-Functions
+
{{Template:CANopen Functions
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 24: Line 24:
  
 
|EXCEPTIONS=
 
|EXCEPTIONS=
* [[CANOpen:Error Codes|Error_Codes]]
+
* [[CANopen:Error Codes|Error_Codes]]
 
CAN_6040_NOT_FOUND(20155) : "Object 0x6040 not found" - '''no''' Control Word is mapped to PDO
 
CAN_6040_NOT_FOUND(20155) : "Object 0x6040 not found" - '''no''' Control Word is mapped to PDO
  
Line 31: Line 31:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[CANOpen:CAN SDO READ STRING|CAN_SDO_READ_STRING]]
+
* [[CANopen:CAN SDO READ STRING|CAN_SDO_READ_STRING]]
* [[CANOpen:CAN SDO WRITE STRING|CAN_SDO_WRITE_STRING]]
+
* [[CANopen:CAN SDO WRITE STRING|CAN_SDO_WRITE_STRING]]
* [[CANOpen:CAN SDO READ|CAN_SDO_READ]]
+
* [[CANopen:CAN SDO READ|CAN_SDO_READ]]
* [[CANOpen:CAN SDO READ REAL|CAN_SDO_READ_REAL]]
+
* [[CANopen:CAN SDO READ REAL|CAN_SDO_READ_REAL]]
* [[CANOpen:CAN SDO WRITE|CAN_SDO_WRITE]]
+
* [[CANopen:CAN SDO WRITE|CAN_SDO_WRITE]]
* [[CANOpen:DS402 STATUS RAW GET|DS402_STATUS_RAW_GET]]
+
* [[CANopen:DS402 STATUS RAW GET|DS402_STATUS_RAW_GET]]
  
 
}}
 
}}

Latest revision as of 15:13, 26 August 2014

Provides a low-level access to DS402 Control word (object 0x6040).
Control word is maintained by SoftMC firmware and sent to the device each cycle over TPDO.
This function enables application to send arbitrary value to Control Word object over TPDO.

Input

axis
value

Output

None

Return Value

None

Declaration

public sub DS402_CONTROL_WRD_RAW_SET(ax as generic axis, byval cntrword as long)

Syntax

call DS402_CONTROL_WRD_RAW_SET(a1, 0x7) ' start sending value 0x7 to the control word of the device

Exceptions

CAN_6040_NOT_FOUND(20155) : "Object 0x6040 not found" - no Control Word is mapped to PDO

Examples

call DS402_CONTROL_WRD_RAW_SET(a1, 0x7) ' start sending value 0x7 to the control word of the device

See Also