Ignore:
Timestamp:
02/21/08 22:03:06 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r8866 r8869  
    8585    case 0xc500: return "Error reset";
    8686    case 0xe225: return "Motor overload";
     87    case 0xe249: return "Positioning command velocity exceeds limit bipolar";
    8788    case 0xe250: return "Drive overtemp warning";
    8889    case 0xe251: return "Motor overtemp warning";
     
    108109    case 0xf630: return "Negative sw end-switch";
    109110    case 0xf634: return "Emergency-Stop";
    110     case 0xf643: return "Positive hw end-switch";
    111     case 0xf644: return "Negative hw end-switch";
    112     case 0xf870: return "24V DC error.";
     111    case 0xf643: return "Positive hardware end-switch activated";
     112    case 0xf644: return "Negative hardware end-switch activated";
     113    case 0xf870: return "24V DC error";
    113114    case 0xf878: return "Velocity loop error";
    114115    }
     
    514515
    515516    // REMOVE THIS AND LET CC START THE NODE
    516     //StartNode();
     517    StartNode();
    517518
    518519    gLog << inf2 << "- " << GetNodeName() << ": Checking armed status." << endl;
     
    638639    {
    639640        gLog << err << GetNodeName() << ": ERROR - Moving without being armed is not allowed." << endl;
    640         return;
    641     }
    642 
    643     gLog << dbg << GetNodeName() << ": Starting abolsute positioning to " << (LWORD_t)pos << " ticks." << endl;
     641        SetZombie();
     642        return;
     643    }
     644
     645    gLog << dbg << GetNodeName() << ": Starting abolsute positioning to " << (LWORDS_t)pos << " ticks." << endl;
    644646    SendSDO(0x6004, 1, (LWORD_t)pos);
    645647    fPosActive = kTRUE; // Make sure that the status is set correctly already before the first PDO
     
    651653    {
    652654        gLog << err << GetNodeName() << ": ERROR - Moving without being armed is not allowed." << endl;
    653         return;
    654     }
    655 
    656     gLog << dbg << GetNodeName() << ": Starting relative positioning by " << (LWORD_t)pos << " ticks." << endl;
     655        SetZombie();
     656        return;
     657    }
     658
     659    gLog << dbg << GetNodeName() << ": Starting relative positioning by " << (LWORDS_t)pos << " ticks." << endl;
    657660    SendSDO(0x6004, 0, (LWORD_t)pos);
    658661    fPosActive = kTRUE; // Make sure that the status is set correctly already before the first PDO
Note: See TracChangeset for help on using the changeset viewer.