![]() |
ApossC SDK
V01.15
|
Functions for the integrated amplifier setup. More...
Go to the source code of this file.
Functions | |
| long | sdkSetupAmpDcMotor (long axis, long controlMode, long polePairs, long maxCur, long encQc, long maxRpm) |
| Sets the amplifier parameters for a DC motor. More... | |
| long | sdkSetupAmpBldc120Motor (long axis, long controlMode, long polePairs, long maxCur, long encQc, long maxRpm) |
| Sets the amplifier parameters for a BLDC 120° motor Deprecated: Use sdkSetupAmpBldcMotor() and HWAMP_HALL_ALIGNMENT. More... | |
| long | sdkSetupAmpBldcMotor (long axis, long hallAligment, long controlMode, long polePairs, long maxCur, long encQc, long maxRpm) |
| Sets the amplifier parameters for a BLDC motor. More... | |
| long | sdkSetupAmpStepMotor_CL (long axis, long controlMode, long steps, long maxCur, long encQc, long maxRpm) |
| Sets the amplifier parameters for a stepper motor (closed loop) More... | |
| long | sdkSetupAmpStepMotor_OL (long axis, long steps, long maxCur, long maxRpm) |
| Sets the amplifier parameters for a stepper motor (closed loop) More... | |
| long | sdkSetupAmpPmsmMotor (long axis, long controlMode, long polePairs, long maxCur, long encQc, long maxRpm) |
| Sets the amplifier parameters for a brushless, PMSM commuted motor (no Hall sensors are used) More... | |
| long | sdkSetupAmpHallPmsmMotor (long axis, long controlMode, long polePairs, long maxCur, long encQc, long maxRpm, long elPol) |
| Sets the amplifier parameters for a brushless, PMSM commuted motor (Hall sensors are used) More... | |
| long | sdkSetupCurrentPIControl (long axis, long curkprop, long curkint, long curkilim) |
| Set parameters for PI current control loop. More... | |
| long | sdkSetupVelocityPIControl (long axis, long velkprop, long velkint, long velkilim) |
| Set parameters for PI velocity control loop. More... | |
| long | sdkSetupVirtualI2T (long axis, long nominalCur, long thermalTime) |
| Function to generate a virtual I2T protection. More... | |
| long sdkSetupAmpBldc120Motor | ( | long | axis, |
| long | controlMode, | ||
| long | polePairs, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a BLDC 120° motor
Deprecated: Use sdkSetupAmpBldcMotor() and HWAMP_HALL_ALIGNMENT.
The function sets the amplifier parameters for a BLDC 120° motor. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| polePairs | Number of pole pairs (default 1) |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 85 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpBldcMotor | ( | long | axis, |
| long | hallAligment, | ||
| long | controlMode, | ||
| long | polePairs, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a BLDC motor.
The function sets the amplifier parameters for a BLDC motor. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| hallAligment | Hall aligment. See SDO Dictionary Index: 4000, SubIndex: 88 (default 5) |
| 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 |
| polePairs | Number of pole pairs (default 1) |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 122 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpDcMotor | ( | long | axis, |
| long | controlMode, | ||
| long | polePairs, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a DC motor.
The function sets the amplifier parameters for a DC motor. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| polePairs | Number of pole pairs (default 1) |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 48 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpHallPmsmMotor | ( | long | axis, |
| long | controlMode, | ||
| long | polePairs, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm, | ||
| long | elPol | ||
| ) |
Sets the amplifier parameters for a brushless, PMSM commuted motor (Hall sensors are used)
The function sets the amplifier parameters for a brushless, PMSM commuted motor. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| polePairs | Number of pole pairs (default 1) |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
| 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 |
Definition at line 268 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpPmsmMotor | ( | long | axis, |
| long | controlMode, | ||
| long | polePairs, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a brushless, PMSM commuted motor (no Hall sensors are used)
The function sets the amplifier parameters for a brushless, PMSM commuted motor. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkMotorAlignment() sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| polePairs | Number of pole pairs (default 1) |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 230 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpStepMotor_CL | ( | long | axis, |
| long | controlMode, | ||
| long | steps, | ||
| long | maxCur, | ||
| long | encQc, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a stepper motor (closed loop)
The function sets the amplifier parameters for a stepper motor in closed loop. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| steps | Steps per revolution |
| maxCur | Maximal current allowed in mA (default 2000) |
| encQc | Resolution of the encoder for position feed back in increments qc (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 159 of file SDK_Amplifier_MACS.mc.
| long sdkSetupAmpStepMotor_OL | ( | long | axis, |
| long | steps, | ||
| long | maxCur, | ||
| long | maxRpm | ||
| ) |
Sets the amplifier parameters for a stepper motor (closed loop)
The function sets the amplifier parameters for a stepper motor in closed loop. Additionally the controller mode can be selected. Depending on the mode, the controllers must then be parameterized.
The following functions are available: sdkSetupPositionPIDControl() / sdkSetupPositionPIDControlExt(), sdkSetupCurrentPIControl(), sdkSetupVelocityPIControl()
| axis | Axis module number |
| 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 |
| steps | Steps per revolution |
| maxCur | Maximal current allowed in mA (default 2000) |
| maxRpm | Maximum velocity in RPM, Use for scale the parameters for the velocity controller (default 1500) |
Definition at line 193 of file SDK_Amplifier_MACS.mc.
| long sdkSetupCurrentPIControl | ( | long | axis, |
| long | curkprop, | ||
| long | curkint, | ||
| long | curkilim | ||
| ) |
Set parameters for PI current control loop.
The function sets the factors of the current PI controller. More information are available in the Help of ApossIDE.
| axis | Axis module number |
| curkprop | Proportional factor of current controller (default 200) |
| curkint | Integral factor of current controller (default 100) |
| curkilim | Integral limit of current controller (default 1000) |
Definition at line 293 of file SDK_Amplifier_MACS.mc.
| long sdkSetupVelocityPIControl | ( | long | axis, |
| long | velkprop, | ||
| long | velkint, | ||
| long | velkilim | ||
| ) |
Set parameters for PI velocity control loop.
The function sets the factors of the velocity PI controller. More information are available in the Help of ApossIDE.
| axis | Axis module number |
| velkprop | Proportional factor of velocity controller (default 200) |
| velkint | Integral factor of velocity controller (default 5) |
| velkilim | Integral limit of velocity controller (default 1000) |
Definition at line 315 of file SDK_Amplifier_MACS.mc.
| long sdkSetupVirtualI2T | ( | long | axis, |
| long | nominalCur, | ||
| long | thermalTime | ||
| ) |
Function to generate a virtual I2T protection.
This function activates a virtual I2T protection. More information about this can be found in the ApossIDE help.
| axis | Axis module number |
| nominalCur | Nominal current (max. continuous load current) in mA |
| thermalTime | Therm. Winding time constant in ms |
Definition at line 336 of file SDK_Amplifier_MACS.mc.