SMC_TRAFO_Bipod_Arm (FB)

FUNCTION_BLOCK SMC_TRAFO_Bipod_Arm

The transformation computes the inverse transformation of a bipod with two rotary axes.

The origin of the coordinate system is at the center of the tool plate if both axes are in zero position (horizontal). The direction of positive rotation is shown for the first axis A and the second axis B.

In the above diagram, both axes are in position 0°.

Note

For more information on the supported transformations, see the chapter on CNC transformations.

InOut:

Scope

Name

Type

Comment

Input

pi

SMC_PosInfo

Target position vector (x,y), output of interpolator

dArmLength1

LREAL

Length of first link (motor to “elbow”), must be positive.

dArmLength2

LREAL

Length of second link (“elbow” to platform), must be positive. If dArmLength2 < dArmLength1 + dDistance/2, an error is returned, no solution is possible.

dDistance

LREAL

Horizontal distance of the two motors, must be non-negative.

dOffsetA

LREAL

Additional offset of axis A in angular degrees

dOffsetB

LREAL

Additional offset of axis B in angular degrees

Output

bError

BOOL

TRUE, if position is invalid.

dA

LREAL

Target position of axis A in degree

dB

LREAL

Target position of axis B in degree