4 smc_determinecuboidbearing, Smc_determinecuboidbearing – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 197

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

197

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Function blocks for spatial transformation processes

7.12.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

Advertising