1 smc_coordinatetransformation3d, Smc_coordinatetransformation3d, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 194

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

194

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Function blocks for spatial transformation processes

7.12

Function blocks for spatial transformation processes

Please also see the chapters "

The SM_Trafo.lib library

"

( 216)

and "

Spatial transformations

"

( 238)

. SM_CNC.lib provides the following modules for spatial transformation:

7.12.1

SMC_CoordinateTransformation3D

This program organisation unit calculates the coordinates of a position (available in the old

coordinate system) with reference to the new coordinate system. For this purpose the

coordinate transformation for the new coordinate system is defined in relation to the old

one on the basis of the translation vector and the new unit vectors.

Inputs (VAR_IN)
vX, vY, vZ: SMC_Vector3D
Unit vectors of the new coordinate system with reference to the old coordinate system.
vTranslation: SMC_Vector3D
Translation vector: Vector from the old coordinate origin to the new one with reference to

the old coordinate system
vIn: SMC_Vector3D
Position to be transformed

Outputs (VAR_OUT)
vOut: SMC_Vector3D
Transformed position

Advertising