SMC_TRAFO_GantryCutter2 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFO_GantryCutter2
Reverse transformation for two-dimensional gantry systems with one rotation axis being controlled in such a way that the knife will point along the path tangent.
Note
For detailed information on transformations see overview to SM_Trafo_POUs.
- InOut:
Scope
Name
Type
Initial
Comment
Input
piTarget position vector (x,y), output of interpolator
vSMC_VECTOR3DVector of current path tangent, output of interpolator
dOffsetXLREALAdditional offset for x-axis
dOffsetYLREALAdditional offset for y-axis
dOffsetRLREALAdditional offset for rotational axis
iDirectionRINT1
Direction of rotaion.
Output
dxLREALResulting position for x-axis
dyLREALResulting position for y-axis.
drLREALRotation of resulting position in degrees