SMC_TRAFO_Scara3 (FB)ΒΆ
FUNCTION_BLOCK SMC_TRAFO_Scara3
The transformation module is provided to execute backward transformations of 3-jointed Scara systems.
Note
For detailed information on transformation modules see the survey on SoftMotion transformations.
- InOut:
Scope
Name
Type
Comment
Input
piTarget position vector (x,y). Output of Interpolator
dDirectionLREALDirection angle of last joint in degree (0=west, 90=north)
dOffsetALREALAdditional offset for axis A in degree
dOffsetBLREALAdditional offset for axis B in degree
dOffsetCLREALAdditional offset for axis C in degree
dArmLength1LREALLength of robot arm 1
dArmLength2LREALLength of robot arm 2
dArmLength3LREALLength of robot arm 3
bElbowLowBOOLTRUEif elbow is low (FALSE, if elbow is high)Output
bErrorBOOLTRUEif position is invaliddALREALPosition of axis A in degree
dBLREALPosition of axis B in degree
dCLREALPosition of axis C in degree