SMC_CAMBounds (FB)¶
FUNCTION_BLOCK SMC_CAMBounds
This function block calculates the minimum/maximum position and an estimate of the minimum/maximum velocity and acceleration values of the slave being coupled in absolute mode to a master, which is moved according to a prescribed maximum velocity and acceleration/deceleration.
This module is especially helpful when a cam disc is created and modified in online mode and the observance of the maximum values have to be checked in advance.
Note: The minimum/maximum velocity and acceleration values are estimates of lower/upper bounds which do not necessarily have to be reached.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
CAMReference to cam
Input
bExecuteBOOLRising edge: Starts the execution of the function block.
dMasterVelMaxLREAL1
Absolute maximum velocity of master
dMasterAccMaxLREAL0
Absolute maximum acceleration/deceleration of master
dMasterScalingLREAL1
Scaling factor for master applied to cam
dSlaveScalingLREAL1
Scaling factor for slave applied to cam
Output
bDoneBOOLTRUE: Calculation has been terminated.bBusyBOOLFALSE
TRUE: Execution of function block has not been finished.bErrorBOOLTRUE: Error has occurred within the function block.nErrorIDSMC_ERRORError identification
dMaxPosLREALMaximum slave position value [u].
dMinPosLREALMinimum slave position value [u].
dMaxVelLREALMaximum slave velocity value [u/s].
dMinVelLREALMinimum slave velocity value [u/s].
dMaxAccDecLREALMaximum slave acceleration/deceleration value [u/s²]
dMinAccDecLREALMinimum slave acceleration/deceleration value [u/s²]