Changeset 8869 for trunk/MagicSoft/Cosy/devdrv/macs.cc
- Timestamp:
- 02/21/08 22:03:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r8866 r8869 85 85 case 0xc500: return "Error reset"; 86 86 case 0xe225: return "Motor overload"; 87 case 0xe249: return "Positioning command velocity exceeds limit bipolar"; 87 88 case 0xe250: return "Drive overtemp warning"; 88 89 case 0xe251: return "Motor overtemp warning"; … … 108 109 case 0xf630: return "Negative sw end-switch"; 109 110 case 0xf634: return "Emergency-Stop"; 110 case 0xf643: return "Positive h w end-switch";111 case 0xf644: return "Negative h w 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"; 113 114 case 0xf878: return "Velocity loop error"; 114 115 } … … 514 515 515 516 // REMOVE THIS AND LET CC START THE NODE 516 //StartNode();517 StartNode(); 517 518 518 519 gLog << inf2 << "- " << GetNodeName() << ": Checking armed status." << endl; … … 638 639 { 639 640 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; 644 646 SendSDO(0x6004, 1, (LWORD_t)pos); 645 647 fPosActive = kTRUE; // Make sure that the status is set correctly already before the first PDO … … 651 653 { 652 654 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; 657 660 SendSDO(0x6004, 0, (LWORD_t)pos); 658 661 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.