Robot motion path by item

Robot motion path by item

francesco_maria_v
Not applicable
22 Views
2 Replies
Message 1 of 3

Robot motion path by item

francesco_maria_v
Not applicable

[ FlexSim 22.1.0 ]

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!

0 Likes
Accepted solutions (1)
23 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

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.

Message 3 of 3

francesco_maria_v
Not applicable
thank you very much for the help! this is what i needed
0 Likes