![]() |
ApossC SDK
V01.15
|
Declaration of the motor commissioning functions. More...
Go to the source code of this file.
Functions | |
| long | sdkMotorCommCurrentStep (long axis, long current, long time, long recordEnable) |
| Current step for setting the current controller. More... | |
| long | sdkMotorCommVelStep (long axis, long velocity, long time, long recordEnable) |
| Velocity step for setting the velocity controller. More... | |
| long | sdkMotorCommPositionRamp (long axis, long distance, long controlMode, long recordEnable) |
| Position ramp for setting the position controller. More... | |
| long | sdkMotorCommHallSignalCheck (long axis) |
| Checking the hall signals. More... | |
| long | sdkMotorCommEncoderUserUnitCheck (long axis) |
| Checking the configured encoders and the user units. More... | |
Declaration of the motor commissioning functions.
Definition in file SDK_Amplifier_MotorCommissioning.mh.
| long sdkMotorCommCurrentStep | ( | long | axis, |
| long | current, | ||
| long | time, | ||
| long | recordEnable | ||
| ) |
Current step for setting the current controller.
This function can be used to do a current step and record it. The controller parameters can then be adjusted until t he desired behaviour of the current controller is achieved. The axis must be correctly parameterised before calling the function. With the help of this function, the attached example and the utility monitor file ut_Control_Loop_Parameter_Slider.zbm the controller can be adjusted. More information about the controller setting can be found in the ApossIDE Help.
| axis | Axis module number |
| current | Current for the step in mA |
| time | Duration of the current step in ms |
| recordEnable | Definition record osciloscope (Only available on MACS6) 0 Record Disable 1 Record Enable |
Definition at line 33 of file SDK_Amplifier_MotorCommissioning.mc.
| long sdkMotorCommEncoderUserUnitCheck | ( | long | axis | ) |
Checking the configured encoders and the user units.
With this function the number of quadcounts, counts per turn and user units can be compared. The encoder must first be correctly configured. The values are printed in the APossIDE.
| axis | Axis module number |
Definition at line 218 of file SDK_Amplifier_MotorCommissioning.mc.
| long sdkMotorCommHallSignalCheck | ( | long | axis | ) |
Checking the hall signals.
With this function, the individual hall states and the position can be read out. The states are printed in the ApossiDE.
| axis | Axis module number |
Definition at line 195 of file SDK_Amplifier_MotorCommissioning.mc.
| long sdkMotorCommPositionRamp | ( | long | axis, |
| long | distance, | ||
| long | controlMode, | ||
| long | recordEnable | ||
| ) |
Position ramp for setting the position controller.
This function can be used to do a positon ramp and record it. The controller parameters can then be adjusted until the desired behaviour of the position controller is achieved. The axis must be correctly parameterised before calling the function. With the help of this function, the attached example and the utility monitor file ut_Control_Loop_Parameter_Slider.zbm the controller can be adjusted. More information about the controller setting can be found in the ApossIDE Help.
| axis | Axis module number |
| distance | Relative distance in user units between start and end position |
| controlMode | Define control typ (default 3) 0 HWAMP_MODE_POS_VEL_CUR: Pos -> Vel -> Cur -> PWM 1 HWAMP_MODE_POS_VEL: Pos -> Vel -> PWM 2 HWAMP_MODE_POS_CUR: Pos -> Cur -> PWM 3 HWAMP_MODE_POS: Pos -> PWM |
| recordEnable | Definition record osciloscope (Only available on MACS6) 0 Record Disable 1 Record Enable |
Definition at line 154 of file SDK_Amplifier_MotorCommissioning.mc.
| long sdkMotorCommVelStep | ( | long | axis, |
| long | velocity, | ||
| long | time, | ||
| long | recordEnable | ||
| ) |
Velocity step for setting the velocity controller.
This function can be used to do a velocity step and record it. The controller parameters can then be adjusted until the desired behaviour of the current controller is achieved. The axis must be correctly parameterised before calling the function. With the help of this function, the attached example and the utility monitor file ut_Control_Loop_Parameter_Slider.zbm the controller can be adjusted. More information about the controller setting can be found in the ApossIDE Help.
| axis | Axis module number |
| velocity | Velocity for the step, scaling is —0x4000 to 0x4000 for -100 to 100% of VELMAX |
| time | Duration of the velocity step in ms |
| recordEnable | Definition record osciloscope (Only available on MACS6) 0 Record Disable 1 Record Enable |
Definition at line 91 of file SDK_Amplifier_MotorCommissioning.mc.