Changeset 12587 for trunk/Cosy


Ignore:
Timestamp:
11/21/11 11:17:20 (13 years ago)
Author:
tbretz
Message:
Added sending the command to set the FACT Led voltages
Location:
trunk/Cosy/devdrv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosy/devdrv/dkc.cc

    r10032 r12587  
    7878                 case 0xe8260: return "Torque limit active";
    7979    case 0xe264: return "Target position out of numerical range";
    80     case 0xe829: return "Positive position limit exceeded";
    81     case 0xe830: return "Negative position limit exceeded";
     80    case 0xe829: case 0xe8029: return "Positive position limit exceeded";
     81    case 0xe830: case 0xe8030: return "Negative position limit exceeded";
    8282    case 0xe831: return "Position limit reached during jog";
    8383    case 0xe834: return "Emergency-Stop";
     
    9494    case 0xf228: case 0xf2028: return "Excessive control deviation";
    9595    case 0xf250: return "Overflow of target position preset memory";
     96    case 0xf257: return "Command position out of range";
    9697    case 0xf269: return "Error during release of the motor holding brake";
    9798    case 0xf276: return "Absolute encoder out of allowed window";
     
    441442    SendSDO(0x3007, (LWORD_t)cvel);
    442443    WaitForSdo(0x3007);
     444}
     445
     446void Dkc::SetLedVoltage(LWORDS_t volt)
     447{
     448    SendSDO(0x4000, (LWORD_t)volt);
     449    WaitForSdo(0x4000);
    443450}
    444451
  • trunk/Cosy/devdrv/dkc.h

    r10029 r12587  
    9797    void SetRpmMode(BYTE_t mode=TRUE);
    9898    void SetRpmVelocity(LWORDS_t cvel);
     99    void SetLedVoltage(LWORDS_t cvel);
    99100
    100101    void StartRelPos(LWORDS_t pos);
Note: See TracChangeset for help on using the changeset viewer.