Configuration¶
-
class
ingeniamotion.configuration.
Configuration
(motion_controller)¶ Configuration.
-
class
BrakeOverride
(value)¶ Brake override configuration enum
-
OVERRIDE_DISABLED
= 0¶
-
RELEASE_BRAKE
= 1¶
-
ENABLE_BRAKE
= 2¶
-
-
BRAKE_OVERRIDE_REGISTER
= 'MOT_BRAKE_OVERRIDE'¶
-
PROFILE_MAX_ACCELERATION_REGISTER
= 'PROF_MAX_ACC'¶
-
PROFILE_MAX_VELOCITY_REGISTER
= 'PROF_MAX_VEL'¶
-
POWER_STAGE_FREQUENCY_REGISTER
= 'DRV_PS_FREQ_SELECTION'¶
-
POSITION_AND_VELOCITY_LOOP_RATE_REGISTER
= 'DRV_POS_VEL_RATE'¶
-
release_brake
(servo='default', axis=1)¶ Override the brake status to released in the target servo and axis.
-
enable_brake
(servo='default', axis=1)¶ Override the brake status of the target servo and axis.
-
disable_brake_override
(servo='default', axis=1)¶ Disable the brake override of the target servo and axis.
-
default_brake
(servo='default', axis=1)¶ Disable the brake override of the target servo and axis, as
disable_brake_override()
.
-
load_configuration
(config_path, servo='default')¶ Load a configuration file to the target servo.
-
save_configuration
(output_file, servo='default')¶ Save the servo configuration to a target file.
-
set_max_acceleration
(acceleration, servo='default', axis=1)¶
-
set_max_velocity
(velocity, servo='default', axis=1)¶
-
get_position_and_velocity_loop_rate
(servo='default', axis=1)¶ Get position & velocity loop rate frequency.
-
get_power_stage_frequency
(servo='default', axis=1, raw=False)¶ Get Power stage frequency register.
-
get_power_stage_frequency_enum
(servo='default', axis=1)¶ Return Power stage frequency register enum.
-
set_power_stage_frequency
(value, servo='default', axis=1)¶ Set power stage frequency from enum value. See :func: get_power_stage_frequency_enum.
-
AUXILIAR_FEEDBACK_REGISTER
= 'CL_AUX_FBK_SENSOR'¶
-
COMMUTATION_FEEDBACK_REGISTER
= 'COMMU_ANGLE_SENSOR'¶
-
POSITION_FEEDBACK_REGISTER
= 'CL_POS_FBK_SENSOR'¶
-
REFERENCE_FEEDBACK_REGISTER
= 'COMMU_ANGLE_REF_SENSOR'¶
-
class
SensorType
(value)¶ Summit series feedback type enum
-
ABS1
= 1¶ Absolute encoder 1
-
QEI
= 4¶ Digital/Incremental encoder 1
-
HALLS
= 5¶ Digital halls
-
SSI2
= 6¶ Secondary SSI
-
BISSC2
= 7¶ Absolute encoder 2
-
QEI2
= 8¶ Digital/Incremental encoder 2
-
SMO
= 9¶ SMO
-
INTGEN
= 3¶ Internal generator
-
-
VELOCITY_FEEDBACK_REGISTER
= 'CL_VEL_FBK_SENSOR'¶
-
get_absolute_encoder_1_resolution
(servo='default', axis=1)¶ Reads ABS1 encoder resolution in the target servo and axis.
-
get_absolute_encoder_2_resolution
(servo='default', axis=1)¶ Reads ABS2 encoder resolution in the target servo and axis.
-
get_auxiliar_feedback
(servo='default', axis=1)¶ Reads auxiliar feedbacks value in the target servo and axis.
- Parameters
- Returns
Type of feedback configured
- Return type
-
get_auxiliar_feedback_category
(servo='default', axis=1)¶ Reads auxiliar feedbacks type {ABSOLUTE or INCREMENTAL} in the target servo and axis.
- Parameters
- Returns
Category {ABSOLUTE, INCREMENTAL} of the selected feedback.
- Return type
-
get_auxiliar_feedback_resolution
(servo='default', axis=1)¶ Reads auxiliar feedbacks resolution in the target servo and axis.
-
get_commutation_feedback
(servo='default', axis=1)¶ Reads commutation feedbacks value in the target servo and axis.
- Parameters
- Returns
Type of feedback configured.
- Return type
-
get_commutation_feedback_category
(servo='default', axis=1)¶ Reads commutation feedbacks type {ABSOLUTE or INCREMENTAL} in the target servo and axis.
- Parameters
- Returns
Category {ABSOLUTE, INCREMENTAL} of the selected feedback.
- Return type
-
get_commutation_feedback_resolution
(servo='default', axis=1)¶ Reads commutation feedbacks resolution in the target servo and axis.
-
get_digital_halls_resolution
(servo='default', axis=1)¶ Reads digital halls pole pairs in the target servo and axis.
-
get_incremental_encoder_1_resolution
(servo='default', axis=1)¶ Reads incremental encoder 1 resolution in the target servo and axis.
-
get_incremental_encoder_2_resolution
(servo='default', axis=1)¶ Reads incremental encoder 2 resolution in the target servo and axis.
-
get_position_feedback
(servo='default', axis=1)¶ Reads position feedbacks value in the target servo and axis.
- Parameters
- Returns
Type of feedback configured
- Return type
-
get_position_feedback_category
(servo='default', axis=1)¶ Reads position feedbacks type {ABSOLUTE or INCREMENTAL} in the target servo and axis.
- Parameters
- Returns
Category {ABSOLUTE, INCREMENTAL} of the selected feedback.
- Return type
-
get_position_feedback_resolution
(servo='default', axis=1)¶ Reads position feedbacks resolution in the target servo and axis.
-
get_reference_feedback
(servo='default', axis=1)¶ Reads reference feedbacks value in the target servo and axis.
- Parameters
- Returns
Type of feedback configured
- Return type
-
get_reference_feedback_category
(servo='default', axis=1)¶ Reads reference feedbacks type {ABSOLUTE or INCREMENTAL} in the target servo and axis.
- Parameters
- Returns
Category {ABSOLUTE, INCREMENTAL} of the selected feedback.
- Return type
-
get_reference_feedback_resolution
(servo='default', axis=1)¶ Reads reference feedbacks resolution in the target servo and axis.
-
get_secondary_ssi_resolution
(servo='default', axis=1)¶ Reads secondary SSI encoder resolution in the target servo and axis.
-
get_velocity_feedback
(servo='default', axis=1)¶ Reads velocity feedbacks value in the target servo and axis.
- Parameters
- Returns
Type of feedback configured
- Return type
-
get_velocity_feedback_category
(servo='default', axis=1)¶ Reads velocity feedbacks type {ABSOLUTE or INCREMENTAL} in the target servo and axis.
- Parameters
- Returns
Category {ABSOLUTE, INCREMENTAL} of the selected feedback.
- Return type
-
get_velocity_feedback_resolution
(servo='default', axis=1)¶ Reads velocity feedbacks resolution in the target servo and axis.
-
set_auxiliar_feedback
(feedback, servo='default', axis=1)¶ Writes auxiliar feedbacks value in the target servo and axis.
- Parameters
feedback (SensorType) – feedback sensor number
servo (str) – servo alias to reference it.
default
by default.axis (int) – axis that will run the test.
1
by default.
-
set_commutation_feedback
(feedback, servo='default', axis=1)¶ Writes commutation feedbacks value in the target servo and axis.
- Parameters
feedback (SensorType) – feedback sensor number
servo (str) – servo alias to reference it.
default
by default.axis (int) – axis that will run the test.
1
by default.
-
set_position_feedback
(feedback, servo='default', axis=1)¶ Writes position feedbacks value in the target servo and axis.
- Parameters
feedback (SensorType) – feedback sensor number
servo (str) – servo alias to reference it.
default
by default.axis (int) – axis that will run the test.
1
by default.
-
set_reference_feedback
(feedback, servo='default', axis=1)¶ Writes reference feedbacks value in the target servo and axis.
- Parameters
feedback (SensorType) – feedback sensor number
servo (str) – servo alias to reference it.
default
by default.axis (int) – axis that will run the test.
1
by default.
-
set_velocity_feedback
(feedback, servo='default', axis=1)¶ Writes velocity feedbacks value in the target servo and axis.
- Parameters
feedback (SensorType) – feedback sensor number
servo (str) – servo alias to reference it.
default
by default.axis (int) – axis that will run the test.
1
by default.
-
class