![]() |
ApossC SDK
V01.15
|
Functions for aligning a motor. More...
Go to the source code of this file.
Functions | |
| long | sdkMotorAlignment (long axis, long mode, long maxCurrent, long alignCurrent) |
| The purpose of this function is to find the rotor position of a brushless motor in relation to the encoder position feedback. More... | |
| long | sdkMotorMultiAlignment (long axis, long axisNumber, long mode, long maxCurrent, long alignCurrent) |
| The purpose of this function is to find the rotor position of a brushless motor in relation to the encoder position feedback. More... | |
| long | sdkSetMotorAlignmentOffset (long axis, long elPol, long poselOffset) |
| This function sets the offset of the electric field in relation to an absolute encoder. More... | |
| long sdkMotorAlignment | ( | long | axis, |
| long | mode, | ||
| long | maxCurrent, | ||
| long | alignCurrent | ||
| ) |
The purpose of this function is to find the rotor position of a brushless motor in relation to the encoder position feedback.
The function will start a program in the amplifier, which will apply a magnetic field to the rotor. The rotor will then align to this field. The field will then be varied a bit back and forth to commit the measurement. To use this function the maximum current of the motor must also be specified.
| axis | Axis module number |
| mode | Mode of aligment 1: For brushless motors 3: For stepper motors |
| maxCurrent | Maximum current of the motor |
| alignCurrent | Current for the alignment function |
Definition at line 34 of file SDK_Amplifier_MotorAlignment.mc.
| long sdkMotorMultiAlignment | ( | long | axis, |
| long | axisNumber, | ||
| long | mode, | ||
| long | maxCurrent, | ||
| long | alignCurrent | ||
| ) |
The purpose of this function is to find the rotor position of a brushless motor in relation to the encoder position feedback.
The function is the same as function sdkMotorAlignment() - but several motors can be started in simultaneous. The same current is set for each axis.
| axis | Axis module number (lowest axis) |
| axisNumber | Number axes. These must be lined up and increased by one for each axis |
| mode | Mode of aligment 1: For brushless motors 3: For stepper motors |
| maxCurrent | Maximum current of the motor |
| alignCurrent | Current for the alignment function |
Definition at line 79 of file SDK_Amplifier_MotorAlignment.mc.
| long sdkSetMotorAlignmentOffset | ( | long | axis, |
| long | elPol, | ||
| long | poselOffset | ||
| ) |
This function sets the offset of the electric field in relation to an absolute encoder.
If an absolute encoder is used and the offset between rotor/ encoder is already known, the classic motor alignment can be dispensed with. The offset and the polarity can be determined with the function sdkMotorAlignment() during commissioning.
| axis | Axis module number |
| elPol | Encoder polarity vs. electrical polarity (default -1) 1 HWAMP_ELPOL_REGULAR: Electrical polarity is equal encoder's polarity -1 HWAMP_ELPOL_INVERS: Electrical polarity is inverse to encoder's polarity |
| poselOffset | Sets the offsets for the aligned absolute encoders. |
Definition at line 143 of file SDK_Amplifier_MotorAlignment.mc.