8 diagnostic blocks, 1 smc_getmaxsetvelocity, 2 smc_getmaxsetaccdec – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 43: Diagnostic blocks

DMS 5.2 EN 03/2011 TD17
L
43
L-force | PLC Designer - SoftMotion
The SoftMotion drive interface
SM_DriveBasic.lib and automatic code generation
Outputs (VAR_OUTPUT)
bDone : BOOL (Default: FALSE)
If TRUE is set, the drive is referenced and is at standstill.
bCommandAborted : BOOL (Default: FALSE)
If this is TRUE, the command was aborted by another.
bError : BOOL (Default: FALSE)
TRUE indicates that an error has occurred in the function block.
nErrorID: SMC_ERROR
Error number
3.2.8
Diagnostic blocks
3.2.8.1
SMC_GetMaxSetVelocity
This function block is able to measure the amount (setpoint) speed of an axis. The
measurement is carried out if bEnable is TRUE and is reset to 0 as long as bResetMax is
TRUE. dwTimeStamp offers the possibility to accept or output any DWORD (e.g. call
counter) with a new maximum value.
3.2.8.2
SMC_GetMaxSetAccDec
This block operates similar to SMC_GetMaxSetVelocity and determines the acceleration or
deceleration with the greatest amount.