Loading…
Loading…
Method Name: calibrate_feedback_method
Method ID: 0x40AA
Method Label: Calibrate
Method Help: Calibrate Feedback: This procedure calibrates the control drive's Feedback output.
- {
- char status[3];
- char display_string[60];
- int smart_feedback_installed_local;
- int feedback_cal_source_local;
- int io_select_local;
- int string_length;
- int original_drive_operating_mode;
- int value_no_good;
- float feedback_ma_now;
- float feedback_percent;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_all_resp_code(0);
- _add_abort_method(16566);
- send_command(138);
- smart_feedback_installed_local = _ivar_value(16387);
- io_select_local = _ivar_value(16385);
- if (smart_feedback_installed_local != 0 && io_select_local == 1)
- {
- _iassign(4054,32);
- send_command(140);
- feedback_cal_source_local = _ivar_value(16514);
- if (feedback_cal_source_local == 0x01)
- {
- send_command(134);
- original_drive_operating_mode = _ivar_value(16421);
- string_length = 60;
- _get_dictionary_string(19726337,display_string,string_length);
- ACKNOWLEDGE(display_string);
- _iassign(16421,1);
- send(143,status);
Please login for more