Loading…
Loading…
Method Name: restore_to_factory_settings_method
Method ID: 0x409C
Method Label: Restore to factory
Method Help: Restore to Factory Settings: This function overwrites all control drive configuration and calibration with factory settings. Use this option to restore a control drive to original factory operation.
- {
- char status[3];
- char xmtr_status[25];
- char display_string[60];
- int torque_sensor_installed_local;
- int torque_sensor_enabled_local;
- int smart_feedback_installed_local;
- int string_length;
- int number_of_tries;
- long status_mask;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_all_resp_code(0);
- string_length = 60;
- _get_dictionary_string(19726337,display_string,string_length);
- ACKNOWLEDGE(display_string);
- _add_abort_method(16566);
- ACKNOWLEDGE(literal_string(311));
- PUT_MESSAGE(literal_string(312));
- _iassign(16421,1);
- send(143,status);
- if (status[0])
- {
- display_response_status(143,status[0]);
- }
- _iassign(4054,0);
- _iassign(16508,0x01);
- send(131,status);
- if (status[0])
- {
- display_response_status(131,status[0]);
- }
- _iassign(4054,0);
- send(151,status);
- if (status[0])
- {
- display_response_status(151,status[0]);
- }
Please login for more