question

Francesco_maria V avatar image
0 Likes"
Francesco_maria V asked Francesco_maria V commented

Robot motion path by item

Hello everyone,

I am new to flexsim and i am trying to model a simple pick and place operation as follow:

Two different objects are generated with a lable (ObjType 1 or 2) inside a queue and depending on the label, each object is picked and place by a manipulator one of two different processors.

I want the robot to execute two different motion paths (that i have already created) with a trigger "OnLoad" as follow:

if item.ObjType = 1 use path x otherwise use path y to reach the station.

is there a way to access the path i want to use through scripting?

thank you everyone for the patience, hope in some help!

FlexSim 22.1.0
robot movementrobot armmotion paths
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Francesco_maria V commented

If you create the task sequence via code you can pass in the path number as a parameter when adding a task that involves travel. The used parameter normally defines the end speed, so when using it to set the path, the path number is signed with a minus.

TaskSequence.addTask(TASKTYPE_FRUNLOAD, item, robot, 0, -pathNumber)

The attached model demonstrates how this can be used (among other things). Depending on the height of the item, a different motion path is used.

RobotArm_ExampleModel_22_1.fsm

For more details, see the documentation.


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Francesco_maria V avatar image Francesco_maria V commented ·
thank you very much for the help! this is what i needed
0 Likes 0 ·