SMC_TRAFOF_Gantry2 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFOF_Gantry2
Forward transformation for two-dimensional gantries (X/Y).
Each instance of SMC_TRAFOF_GANTRY2 can be connected
to a visualization template named SMC_VISU_Gantry2 .
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
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])
ratioLREALRatio x-interval / y-interval
dnOffsetXLREALX-offset for visualization
dnOffsetYLREALY-offset for visualization