SMC_TRAFOF_Gantry2Tool1 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFOF_Gantry2Tool1
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 line.
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
dToolALREALTool size = distance(set position) - (machine position)
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])
dnlLREALNormed length of the tool
ratioLREALratio x-interval / y-interval
dnOffsetXLREALX-offset for visualization
dnOffsetYLREALY-offset for visualization