4 smc_determinecuboidbearing – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 242

L-force | PLC Designer - SoftMotion
The SM_Trafo.lib library
Transformation function blocks
242
L
DMS 5.2 EN 03/2011 TD17
9.1.7.4
SMC_DetermineCuboidBearing
Program organisation unit for determining the position of a cuboid (corner point, edge
alignment) in space by specifying 6 (3/2/1) points:
Inputs (VAR_IN)
A1, A2, A3: SMC_Vector3D
Three points on a lateral surface A of the cuboid, which must not lie on a straight line
B1, B2: SMC_Vector3D
Two points on different lateral surfaces of the cuboid, the projections of which onto
surface A must not be identical
C1: SMC_Vector3D
Points on another lateral surface of the cuboid
Outputs (VAR_OUT)
M: SMC_Vector3D
Corner point of the cuboid
vAB, vBC, vCA: SMC_Vector3D
Unit vectors on the edge lines of the cuboid
bError : BOOL
Invalid input values
nError: WORD