SAVEERROR Save slave’s error in EEPROM |
Syntax
Binary code
// Retrieve oldest 3 errors and save them in the EEPROM LONG error_code; //define variable error_code GETERROR error_code; //Read oldest error from motion controller RAM SAVEERROR error_code; // Save the error in the motion controller EEPROM GETERROR error_code; //Read second error from motion controller RAM SAVEERROR error_code; // Save the error in the motion controller EEPROM GETERROR error_code; //Read third error from motion controller RAM SAVEERROR error_code; // Save the error in the EEPROM SEND error_code; // Send third error code to the host
|