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 - CAM- Reference to cam - Input - bExecute- BOOL- Rising edge: Starts the execution of the function block. - dMasterVelMax- LREAL- 1 - Absolute maximum velocity of master - dMasterAccMax- LREAL- 0 - Absolute maximum acceleration/deceleration of master - dMasterScaling- LREAL- 1 - Scaling factor for master applied to cam - dSlaveScaling- LREAL- 1 - Scaling factor for slave applied to cam - Output - bDone- BOOL- TRUE: Calculation has been terminated.- bBusy- BOOL- FALSE - TRUE: Execution of function block has not been finished.- bError- BOOL- TRUE: Error has occurred within the function block.- nErrorID- SMC_ERROR- Error identification - dMaxPos- LREAL- Maximum slave position value [u]. - dMinPos- LREAL- Minimum slave position value [u]. - dMaxVel- LREAL- Maximum slave velocity value [u/s]. - dMinVel- LREAL- Minimum slave velocity value [u/s]. - dMaxAccDec- LREAL- Maximum slave acceleration/deceleration value [u/s²] - dMinAccDec- LREAL- Minimum slave acceleration/deceleration value [u/s²] 
