4 additional program organisation units, 1 smc_getcamslavesetposition, Additional program organisation units – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 157: Smc_getcamslavesetposition
DMS 5.2 EN 03/2011 TD17
L
157
L-force | PLC Designer - SoftMotion
The SM_PLCopen.lib library
Additional program organisation units
6.4
Additional program organisation units
6.4.1
SMC_GetCamSlaveSetPosition
This program organisation unit calculates the current set position of an axis (slave), if this
axis is coupled to the motion of a different (master) axis via a cam. However, neither axis
is moved or affected by this.
This program organisation unit is used if a slave axis is to be moved to the set position
resulting from a cam prior to being connected to that cam.
The program organisation unit calculates the corresponding value within a cycle, so no
Done output is required.
Inputs/outputs (VAR_IN_OUT)
CAMTableID : MC_CAM_ID
Cam; output of MC_CamTableSelect
Master : AXIS_REF
Master axis
Slave : AXIS_REF
Axis for which the cam set position is calculated
Inputs (VAR_IN) of the program organisation unit (any not listed correspond to those for
MC_CamIn):
Enable : BOOL
Activates the program organisation unit.
Outputs (VAR_OUT)
fStartPosition : LREAL
Calculated set position for the slave
Error : BOOL (default: FALSE)
TRUE indicates an error in the function block.
ErrorID : SMC_Error (INT )
Error number