![]() |
ApossC SDK
V01.15
|
Functions for the axis setup. More...
Go to the source code of this file.
Functions | |
| long | sdkSetupPositionPIDControl (long axis, long kprop, long kint, long kder) |
| Set parameters for PID position control loop. More... | |
| long | sdkSetupPositionPIDControlExt (long axis, long kprop, long kint, long kder, long kilim, long kilimtime, long bandwidth, long ffvel, long kffacc, long kffdec) |
| Set extended parameters for PID position control loop. More... | |
| long | sdkSetupAxisUserUnits (long axis, long posencrev, long posencqc, long posfact_z, long posfact_n, long feedrev, long feeddist) |
| Setup to convert the resolution of the machine in user units. More... | |
| long | sdkSetupAxisMovementParam (long axis, long velres, long maxRpm, long ramptype, long rampmin, long jerkmin, long poserr) |
| Defines parameters which are required for the calculation of ramps and velocities. More... | |
| long | sdkSetupAxisJerkLimited (long axis, long jerkmin1, long jerkmin2, long jerkmin3, long jerkmin4) |
| Definition of the jerk limited extended parameter. More... | |
| long | sdkSetupAxisDirection (long axis, long posdrct) |
| Definition of the rotation direction of the axis. More... | |
| long | skdSetupAxisSoftwareLimit (long axis, long negLimitUu, long posLimitUu) |
| Setting up a software axis limitation in user units. More... | |
| long | skdEnableAxisSoftwareLimit (long axis, long active) |
| Activation of the axis software limits. More... | |
| long sdkSetupAxisDirection | ( | long | axis, |
| long | posdrct | ||
| ) |
Definition of the rotation direction of the axis.
The application defines what is a forward and backward movement of the motor. With the help of this function this definition can be adjusted.
| axis | Axis module number |
| posdrct | Parameter to set the rotation direction (default 0) 1 Normal direction -1 Invert direction |
Definition at line 186 of file SDK_Axis_Setup.mc.
| long sdkSetupAxisJerkLimited | ( | long | axis, |
| long | jerkmin1, | ||
| long | jerkmin2, | ||
| long | jerkmin3, | ||
| long | jerkmin4 | ||
| ) |
Definition of the jerk limited extended parameter.
Function to set the extended jerk limited parameters. This topic is described in the ApossIDE Help on the page "Limited Jerk". If the parameters JERKMIN2 - 4 are set to the value 0, the jerk limit is taken from the parameter JERKMIN.
| axis | Axis module number |
| jerkmin1 | Defines the minimum time [ms] required before reaching the maximum acceleration (default 100) |
| jerkmin2 | Defines the minimum time [ms] required to ramp the acceleration down from maximum acceleration to 0 (default 0) |
| jerkmin3 | Defines the minimum time [ms] required to ramp the deceleration up from 0 to maximum deceleration (default 0) |
| jerkmin4 | Defines the minimum time [ms] required to ramp the deceleration down from maximum deceleration to 0 (default 0) |
Definition at line 162 of file SDK_Axis_Setup.mc.
| long sdkSetupAxisMovementParam | ( | long | axis, |
| long | velres, | ||
| long | maxRpm, | ||
| long | ramptype, | ||
| long | rampmin, | ||
| long | jerkmin, | ||
| long | poserr | ||
| ) |
Defines parameters which are required for the calculation of ramps and velocities.
The function sets all basic parameters which are needed for the calculation of the ramps and velocities.
| axis | Axis module number |
| velres | Velocity resolution, Scaling used for the velocity and acceleration/deceleration commands (default 100) |
| maxRpm | Defines the rated speed of the drive. This value is listed in RPM (default 1000) |
| ramptype | Defines the ramptype (default 0) 0 RAMPTYPE_TRAPEZ: Trapezoid ramp 2 RAMPTYPE_JERKLIMITED: Jerk limited ramp |
| rampmin | Maximum acceleration (default 1000) |
| jerkmin | Minimum time (ms) required before reaching the maximum acceleration (default 100) just usefull for ramptype "RAMPTYPE_JERKLIMITED" |
| poserr | The Maximum Tolerated Position Error POSERR defines the tolerance allowed between the current actual position and the calculated command position (default 20000) |
Definition at line 136 of file SDK_Axis_Setup.mc.
| long sdkSetupAxisUserUnits | ( | long | axis, |
| long | posencrev, | ||
| long | posencqc, | ||
| long | posfact_z, | ||
| long | posfact_n, | ||
| long | feedrev, | ||
| long | feeddist | ||
| ) |
Setup to convert the resolution of the machine in user units.
The basic resolution of the entire machine is 1 encoder quadcount. Using the above formula, this can be converted to the resolution of the machine in user units. This is the highest precision to which an application may specify positions. For example, if 1 uu equals 10 qc, then the command "AxisPosRelStart(0,1);" will move the motor foward by 10 qc; it will not be possible for the application program to move the motor by only 5 qc. Conversely, if the motor moves forward by only 1 qc, then the Apos command is likely to return the same actual position value even though the motor has moved to a new position; the application program will be unable to differentiate between these two motor positions. More information are available in the Help of ApossIDE: "How to Set Up Resolution and Gear Parameters".
| axis | Axis module number |
| posencrev | Number of revolutions of the motor |
| posencqc | Number of quadcounts in POSENCREV revolutions |
| posfact_z | Number of revolutions of the input shaft |
| posfact_n | Number of revolutions of the output shaft in POSFACT_Z revolutions of the input shaft |
| feedrev | Number of revolutions of the gear box output shaft |
| feeddist | Distance travelled (in user units) in FEEDREV revolutions of the gear box output shaft |
Definition at line 104 of file SDK_Axis_Setup.mc.
| long sdkSetupPositionPIDControl | ( | long | axis, |
| long | kprop, | ||
| long | kint, | ||
| long | kder | ||
| ) |
Set parameters for PID position control loop.
The function sets the basic factors of the position PID controller. With the function sdkSetupPositionPIDControlExt() the extended factors of the position controller can be set. More information are available in the Help of ApossIDE in the topic "Control Loop Design".
| axis | Axis module number |
| kprop | Proportional value for PID position control loop (default 30) |
| kint | Integral value for PID position control loop (default 0) |
| kder | Derivative value for PID position control loop (default 0) |
Definition at line 36 of file SDK_Axis_Setup.mc.
| long sdkSetupPositionPIDControlExt | ( | long | axis, |
| long | kprop, | ||
| long | kint, | ||
| long | kder, | ||
| long | kilim, | ||
| long | kilimtime, | ||
| long | bandwidth, | ||
| long | ffvel, | ||
| long | kffacc, | ||
| long | kffdec | ||
| ) |
Set extended parameters for PID position control loop.
The function sets the extended factors of the position PID controller. With the function sdkSetupPositionPIDControl() the basic factors of the position controller can be set. More information are available in the Help of ApossIDE in the topic "Control Loop Design".
| axis | Axis module number |
| kprop | Proportional value for PID position control loop (default 30) |
| kint | Integral value for PID position control loop (default 0) |
| kder | Derivative value for PID position control loop (default 0) |
| kilim | Limit value for the integral sum of the PID position control loop (default 1000) |
| kilimtime | Time used to increase or decrease the integral limit (default 0) |
| bandwidth | Bandwidth within which the PID filter is active. 1000 equals to 100% velocity setpoint (default 1000) |
| ffvel | Velocity Feed forward (default 0) |
| kffacc | Acceleration Feed forward (default 0) |
| kffdec | Deceleration Feed Forward (default 0) |
Definition at line 65 of file SDK_Axis_Setup.mc.
| long skdEnableAxisSoftwareLimit | ( | long | axis, |
| long | active | ||
| ) |
Activation of the axis software limits.
This function enables or disables the software limits set with the xy function skdSetupAxisSoftwareLimit().
| axis | Axis module number |
| active | Parameter to enable / disable the software limit 0 Disable software limit 1 Enable software limit |
Definition at line 238 of file SDK_Axis_Setup.mc.
| long skdSetupAxisSoftwareLimit | ( | long | axis, |
| long | negLimitUu, | ||
| long | posLimitUu | ||
| ) |
Setting up a software axis limitation in user units.
For additional safety a software axis limit can be set. This function is for setting the limits and must be activated with the function skdEnableAxisSoftwareLimit(). The limit is set in user units.
| axis | Axis module number |
| negLimitUu | Negative axis limit [Uu] |
| posLimitUu | Positive axis limit [Uu] |
Definition at line 215 of file SDK_Axis_Setup.mc.