SMC_TRAFO_GantryCutter3 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFO_GantryCutter3
Reverse transformation for three-dimensional gantry systems with one rotation axis being controlled in such a way that the knife will point along the path tangent.
- InOut:
Scope
Name
Type
Initial
Comment
Input
piTarget position vector (x,y), ouput of interpolator
vSMC_VECTOR3DVector of current path tangent, output of interpolator
dOffsetXLREALAdditional offset for x-axis
dOffsetYLREALAdditional offset for y-axis
dOffsetZLREALAdditional offset for z-axis
dOffsetRLREALAdditional offset for rotational axis
iDirectionRINT1
Direction of rotation
Output
dxLREAL0
Resulting target position for x-axis
dyLREAL0
Resulting target position for y-axis
dzLREAL0
Resulting target position for z-axis
drLREAL0
Rotation of resulting position in degrees