2 smc_cambounds, Smc_cambounds – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 158

L-force | PLC Designer - SoftMotion
The SM_PLCopen.lib library
Additional program organisation units
158
L
DMS 5.2 EN 03/2011 TD17
6.4.2
SMC_CAMBounds
This program organisation unit calculates the maximum setpoints for the position,
velocity and acceleration/deceleration of the slave, if the slave is absolutely bound to a
master via a specified cam and the master is moved at a defined maximum velocity and
acceleration/deceleration.
This program organisation unit is particularly useful, inter alia, if a cam is created or
modified online and you want to check compliance with the maximum values in advance.
Inputs (VAR_IN)
bExecute: BOOL
Activates the calculation.
dMasterVelMax : LREAL (default: 1)
Maximum velocity (absolute value) of the master [u/s]
dMasterAccMax : LREAL (default: 0)
Maximum acceleration/deceleration (absolute value) of the master [u/s²]
dMasterScaling, dSlaveScaling : LREAL (default: 1)
Master/slave scaling factor used for the cam
Inputs/outputs (VAR_IN_OUT) of the program organisation unit:
CAM: MC_CAM_REF
Cam
Outputs (VAR_OUT)
bDone : BOOL
TRUE indicates that the calculation is complete.
bError : BOOL
TRUE indicates an error in the function block.
nErrorID : SMC_Error (INT)
Error number
dMaxPos, dMinPos : LREAL
Maximum/minimum slave position value [u]
dMaxVel, dMinVel : LREAL
Maximum/minimum (may also be negative) slave velocity value [u/s]
dMaxAccDec, dMinAccDec : LREAL
Maximum/minimum (may also be negative) slave acceleration/deceleration value [u/s²]