FUNCTION_BLOCK SMC_ChangeDynamicLimits
Sets the dynamic limits (velocity, acceleration, jerk) for an axis. May only be called if the axis is in state power_off or standstill.
InOut:
Scope |
Name |
Type |
Comment |
Inout |
Axis |
||
Input |
bExecute |
BOOL |
Rising edge: Changes the limits. |
fMaxVelocity |
LREAL |
The maximum velocity in [u/s]. Must be positive. |
|
fMaxAcceleration |
LREAL |
The maximum acceleration in [u/s²]. Must be positive. |
|
fMaxDeceleration |
LREAL |
The maximum deceleration in [u/s²]. Must be positive. |
|
fMaxJerk |
LREAL |
The maximum jerk in [u/s³]. Must be positive. |
|
Output |
bDone |
BOOL |
TRUE: New limits have been set. |
bError |
BOOL |
TRUE: An error has occurred. |
|
bBusy |
BOOL |
TRUE: The function block is in operation. |
|
ErrorID |
SMC_ERROR |
Error identification |