Difference between revisions of "CANopen:DS402 CONTROL WRD RAW SET"
(Created page with "{{Template:CANOpen-Functions |DESCRIPTION= Provides a low-level access to DS402 Control word (object 0x6040).<br> Control word is maintained by SoftMC firmware and sent to th...") |
m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Template: | + | {{Template:CANopen Functions |
|DESCRIPTION= | |DESCRIPTION= | ||
Line 24: | Line 24: | ||
|EXCEPTIONS= | |EXCEPTIONS= | ||
− | * [[ | + | * [[CANopen:Error Codes|Error_Codes]] |
− | CAN_6040_NOT_FOUND : "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 |
|EXAMPLE= | |EXAMPLE= | ||
Line 31: | Line 31: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[CANopen:CAN SDO READ STRING|CAN_SDO_READ_STRING]] |
− | * [[ | + | * [[CANopen:CAN SDO WRITE STRING|CAN_SDO_WRITE_STRING]] |
− | * [[ | + | * [[CANopen:CAN SDO READ|CAN_SDO_READ]] |
− | * [[ | + | * [[CANopen:CAN SDO READ REAL|CAN_SDO_READ_REAL]] |
− | * [[ | + | * [[CANopen:CAN SDO WRITE|CAN_SDO_WRITE]] |
− | * [[ | + | * [[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