SMC_Trafo_4AxisPalletizer (FB)¶
FUNCTION_BLOCK SMC_Trafo_4AxisPalletizer
Inverse transformation for a 4-axis palletizer.
Assumptions:
All a_i in the config are non-negative,
a_2anda_3are not less thang_fSMC_CNC_EPSThe valid range for axis 0 (
dQ0) is contained in]-180°, 180°[The valid range for axis 1 (
dQ1) is contained in[-90°, 90°]The valid range for axis 2 (
dQ2) is contained in]-180°, 90°[The valid range for axis 3 (
dQ3) is not constrained and may be greater than360°
- InOut:
Scope
Name
Type
Initial
Comment
Inout
configThe configuration settings of the palletizer
Input
piThe current position and orientation in world coordinates:
dX,dY,dZ, and CbElbowLowBOOLFALSE
Whether axis 2 is in the range
]-180°, -90°[ (TRUE)or[-90°,90°] (FALSE)bBackwardsBOOLFALSE
Whether axis 0 is set so that the palletizer faces the target (
FALSE) or that it faces the opposite direction (TRUE)Output
dQ0LREALThe value of axis 0 in degrees
dQ1LREALThe value of axis 1 in degrees
dQ2LREALThe value of axis 2 in degrees
dQ3LREALThe value of axis 3 in degrees
bErrorBOOLWhether an error occured during the computation
resultThe detailed result of the computation