Changeset 1702 for trunk/MagicSoft/Cosy/devdrv/macs.cc
- Timestamp:
- 01/13/03 18:18:15 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.cc
r1701 r1702 243 243 WaitForSdo(0x2004); 244 244 */ 245 EnableTimeout(kFALSE);246 247 245 lout << "- " << GetNodeName() << ": Requesting Mac Software Version." << endl; 248 246 RequestSDO(0x100a); 249 247 WaitForSdo(0x100a); 250 248 249 if (IsZombie()) 250 return; 251 252 EnableTimeout(kFALSE); 251 253 SetRpmMode(FALSE); 252 254 … … 437 439 fPdoPos = (data[4]<<24) | (data[5]<<16) | (data[6]<<8) | data[7]; 438 440 439 fPosActive = data[3]&0x02; 440 fRpmActive = data[3]&0x04; 441 // data[3]&0x01; // motor not moving 442 fPosActive = data[3]&kPosActive; // positioning active 443 fRpmActive = data[3]&kRpmActive; // RPM mode switched on 444 // data[3]&0x08; // - unused - 445 // data[3]&0x10; // - unused - 446 // data[3]&0x20; // - unused - 447 fInControl = data[3]&0x40; // motor uncontrolled 448 // data[3]&0x80; // axis resetted (after errclr, motor stop, motor on) 449 450 fStatus = data[3]; 441 451 442 452 fPdoTime.SetTimer(tv); … … 450 460 // 451 461 // errnum==0 gives a sudden information that something happened. Now the 452 // microcontroller is running inside its interrup procedure which462 // microcontroller is running inside its interrupt procedure which 453 463 // stopped the normal program. The interrupt procedure should try to clear 454 464 // the error state of the hardware. This should never create a new error!
Note:
See TracChangeset
for help on using the changeset viewer.