SMC_CalcDirectionFromVector (FB)ΒΆ
FUNCTION_BLOCK SMC_CalcDirectionFromVector
By use of this function the orientation (dAlpha)
of the tool can be calculated.
Note
For detailed information on transformation function blocks
see the survey on SM_Trafo_POUs.
- InOut:
Scope
Name
Type
Initial
Comment
Input
vSMC_VECTOR3DTangent vector
v. In general,vwill be identical to the outputvecActTangentof the interpolator.eDirSMC_tangential
Input
eDirspecifies, whether the direction has to be calculated parallel to a path tangent (SMC_tangential), or oppositely (SMC_opp_tangential) or orthogonally to the path (SMC_orthogonal_r(right to the path tangent) resp.SMC_orthogonal_l(left to the path tangent)).Output
dDirLREALThe angle
dDiris measured in degrees. It will remain constant during standstill of the interpolator, i.e. whenvis the zero vector.eDiris mostly either used as set value at SMC_ControlAxisByPos for a directional axis or as inputdAlphafor the transformation.