FUNCTION_BLOCK SMC_GetMaxSetAccDec
This function block may be employed to measure the maximum absolute value of acceleration (or deceleration) of an axis. Measuring will be done if bEnable is TRUE, and will be reset to 0, as long as bResetMax remains TRUE. With dwTimeStamp you can read any DWORD (e.g. call counter), which is taken over and output with a new maximum value.
InOut:
Scope |
Name |
Type |
Initial |
Comment |
Inout |
Axis |
|||
Input |
bEnable |
BOOL |
FALSE |
TRUE: Starts execution of function block. |
dwTimeStamp |
DWORD |
Optional time stamp input; can be used to find out when the maximum has occured. |
||
Output |
bValid |
BOOL |
FALSE |
TRUE: Parameter is available. |
bBusy |
BOOL |
TRUE: Execution of the function block has not been finished. |
||
fMaxAcceleration |
LREAL |
0 |
Maximum acceleration in [u/s²] |
|
dwTimeAtMax |
DWORD |
0 |
Maximum value of dwTimeStamp |