SMC_TrafoF_4AxisPalletizer (FB)¶
FUNCTION_BLOCK SMC_TrafoF_4AxisPalletizer
Forward transformation for a 4-axis palletizer.
- InOut:
Scope
Name
Type
Comment
Inout
configThe configuration settings of the palletizer
Drive1Axis_Ref_SM3The drive of axis 0
Drive2Axis_Ref_SM3The drive of axis 1
Drive3Axis_Ref_SM3The drive of axis 2
Drive4Axis_Ref_SM3The drive of axis 3
Output
dXLREALThe current x-position of the tool center point in world coordinates
dYLREALThe current y-position of the tool center point in world coordinates
dZLREALThe current z-position of the tool center point in world coordinates
dCLREALThe current roll angle of the tool in degrees
bElbowLowBOOLTRUEthe angle of axis 2 is in the range]-180°,-90°[bElbowStraightBOOLTRUE`, if the angle of axis 2 is equal to ``-90°bBackwardsBOOLFALSE, if the palletizer faces towards the TCP,TRUE, if facing in opposite directionbStraightUpBOOLTRUEthe two arms segments are both vertical (dQ1=0°, dQ2=-90°)vK1PosSMC_Vector3DThe current position of joint 1 in world coordinates
vK2PosSMC_Vector3DThe current position of joint 2 in world coordinates
vK3PosSMC_Vector3DThe current position of joint 3 in world coordinates
vKToolDirSMC_Vector3DThe current (unit) direction of the gripper (x-axis of K5) in world coordinates
dScaleLREALA scaling factor: if the working space is scaled with this factor, it fits in to the cube
[0,1]^3