CANopen:DS402 CONTROL WRD RAW SET

From SoftMC-Wiki
Jump to: navigation, search

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