SMC_TRAFOF_Gantry2Tool2 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFOF_Gantry2Tool2
Forward transformation for two-dimensional gantries (X/Y) with tool offset, i.e. with the tool axis differing from the z-axis. The tool is approximated by a rectangular triangle.
Note
For detailed information on transformations see Overview to SM_Trafo_POUs.
- InOut:
Scope
Name
Type
Comment
Inout
DriveXAXIS_REF_SM3Reference to x-axis
DriveYAXIS_REF_SM3Reference to y-axis
Input
dOffsetXLREALOffset x-position. Equivalent to SMC_TRAFO_Gantry2
dOffsetYLREALOffset y-position. Equivalent to SMC_TRAFO_Gantry2
dAlphaLREALAngle indicating orientation of tool, can be calculated by use of SMC_CalcDirectionFromVector
dToolALREALSize of
dToolA(see scheme)dToolBLREALSize of
dToolB(see scheme)minXLREALLower bound of move range in x-direction (for visualization purpose)
maxXLREALUpper bound of move range in x-direction (for visualization purpose)
minYLREALLower bound of move range in y-direction (for visualization purpose).
maxYLREALUpper bound of move range in y-direction (for visualization purpose)
Output
dxLREALX-Position
dyLREALY-Position
dnxLREALNormed x-position (with value in [0,1])
dnyLREALNormed y-position (with value in [0,1])
dntxLREALNormed x-position of triangle edge in tool
dntyLREALNormed y-position of triangle edge in tool
dnl1LREALNormed length of
dToolAdnl2LREALNormed length of
dToolB.ratioLREALRatio x-interval / y-interval
dnOffsetXLREALX-offset for visualization
dnOffsetYLREALY-offset for visualization