SMC_TRAFOV_GantryCutter2 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFOV_GantryCutter2
Reverse transformation for two-dimensional gantry systems, taking into account the path velocity and path direction as control variables for the axis.
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.
dVelLREALPath velocity, output of interpolator
vSMC_VECTOR3DVector of current path tangent, output of interpolator
dOffsetXLREALAdditional offset for x-axis
dOffsetYLREALAdditional offset for y-axis
dOffsetRLREALOffset of rotation axis.
iDirectionRINT1
Direction of rotation
Output
dxLREAL0
Resulting position x
dvxLREAL0
Resulting velocity x
dyLREAL0
Resulting position y
dvyLREAL0
Resulting velocity y
drLREAL0
Rotation of resulting position in degrees