SMC_CheckLimits (FB)ΒΆ
FUNCTION_BLOCK SMC_CheckLimits
This function block may be employed for checking whether the current set points
of the drive exceed the maximum values configured in the controller.
The result of the check will be indicated by output bLimitsExceeded
.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
Axis
Input
bEnable
BOOL
TRUE
: Starts the execution of function block.bCheckVel
BOOL
TRUE
TRUE
: Checks the velocity.bCheckAccDec
BOOL
FALSE
TRUE
: Checks the set acceleration and the set deceleration.Output
bBusy
BOOL
TRUE
: Execution of function block has nor been finished yet.bError
BOOL
TRUE
: Error has occurred within the function block.iErrorID
SMC_ERROR
Error identification
bLimitsExceeded
BOOL
TRUE
: The current set points exceed the limits which are defined within the PLC configuration and stored within AXIS_REF_SM3 (fSWMaxVelocity
,fSWMaxAcceleration
orfSWMaxDeceleration
).