DriveTests¶
-
class
ingeniamotion.drive_tests.
DriveTests
(motion_controller)¶ -
digital_halls_test
(servo='default', axis=1, apply_changes=True)¶ Executes the digital halls feedback test given a target servo and axis. By default test will make changes in some drive registers like feedback polarity and others suggested registers. To avoid it, set
apply_changes
toFalse
.- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {"FBK_DIGHALL_POLARITY": 0}, # (str) Human readable result message "result_message": "Feedback test pass successfully" }
- Return type
- Raises
TestError – In case the servo or setup configuration makes impossible fulfilling the test
-
incremental_encoder_1_test
(servo='default', axis=1, apply_changes=True)¶ Executes the incremental encoder 1 feedback test given a target servo and axis. By default test will make changes in some drive registers like feedback polarity and other suggested registers. To avoid it, set
apply_changes
toFalse
.- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {"FBK_DIGENC1_POLARITY": 0}, # (str) Human readable result message "result_message": "Feedback test pass successfully" }
- Return type
- Raises
TestError – In case the servo or setup configuration makes impossible fulfilling the test
-
incremental_encoder_2_test
(servo='default', axis=1, apply_changes=True)¶ Executes incremental encoder 2 feedback test given a target servo and axis. By default test will make changes in some drive registers like feedback polarity and other suggested registers. To avoid it, set
apply_changes
toFalse
.- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {"FBK_DIGENC2_POLARITY": 0}, # (str) Human readable result message "result_message": "Feedback test pass successfully" }
- Return type
- Raises
TestError – In case the servo or setup configuration makes impossible fulfilling the test
-
absolute_encoder_1_test
(servo='default', axis=1, apply_changes=True)¶ Executes absolute encoder 1 feedback test given a target servo and axis. To know more about it see
digital_halls_test()
.
-
absolute_encoder_2_test
(servo='default', axis=1, apply_changes=True)¶ Executes absolute encoder 2 feedback test given a target servo and axis. To know more about it see
digital_halls_test()
.
-
secondary_ssi_test
(servo='default', axis=1, apply_changes=True)¶ Executes secondary SSI feedback test given a target servo and axis. To know more about it see
digital_halls_test()
.
-
commutation
(servo='default', axis=1, apply_changes=True)¶ Executes a commutation calibration given a target servo and axis. By default commutation will make changes in some drive registers like commutation angle offset and other suggested registers. To avoid it, set
apply_changes
toFalse
.- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {"COMMU_ANGLE_OFFSET": 0.12}, # (str) Human readable result message "result_message": "Phasing process finished successfully" }
- Return type
- Raises
TestError – If servo or setup configuration makes impossible complete the calibration.
-
phasing_check
(servo='default', axis=1)¶ Checks servo phasing.
- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {}, # (str) Human readable result message "result_message": "Phasing process finished successfully" }
- Return type
-
sto_test
(servo='default', axis=1)¶ Check STO
- Parameters
- Returns
Dictionary with the result of the test:
{ # (int) Result code "result_severity": 0, # (dict) Suggested register values "suggested_registers": {}, # (str) Human readable result message "result_message": "Phasing process finished successfully" }
- Return type
-