This example move a position motor 3 times with a constant velocity.
To do that, the example follows the steps below:
Connect a drive via EtherCAT-CoE.
Select the operation mode in profile position, that is, position mode and trapezoidal profile.
According to this documentation Max. profile acceleration, Max. profile deceleration and Max. profile velocity have to be configured.
Enable the motor.
Run a position ramp 3 times.
Disable the motor.
Disconnect the drive.
Fixes # INGM-411
Type of change
Please add a description and delete options that are not relevant.
[x] Position ramp example.
Tests
[x] Unit test for position_ramp example.
[x] Run tests.
Documentation
Please update the documentation.
[x] Update docstrings of every function, method or class that change.
[x] Use type hints for every function and argument.
[x] Build documentation locally to verify changes.
Code formatting
[x] Use black package to format the code: black -l 100 ingeniamotion tests. It is recommended to configure the code editor to automatically format the code using black with a max length line of 100.
Example to perform a position ramp
Description
This example move a position motor 3 times with a constant velocity. To do that, the example follows the steps below:
Fixes # INGM-411
Type of change
Please add a description and delete options that are not relevant.
Tests
Documentation
Please update the documentation.
Code formatting
black -l 100 ingeniamotion tests
. It is recommended to configure the code editor to automatically format the code using black with a max length line of 100.