question

Vanessa E avatar image
0 Likes"
Vanessa E asked Connor A commented

How an Operator (TaskExecuter) can travel with BasicFR?

How can I program an Operator to travel with a BasicFR without using a ProcessFlow?

Operator goes to a Rack and place Box on a BasicFR and then travel with the BasicFR + Box, then arrive to a Processor and Take the Box to start the process in the Processor, the take the BasicFR again to the Rack to load material (Box) again?


Regards

FlexSim 21.1.0
basicfr
· 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.

Connor A avatar image Connor A commented ·

Hi @Vanessa E, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

You could define your own task sequence and dispatch it to the operator. The "Use Transport" option can be used for this. Instead of returning the object that transports the item, you build and dispatch the task sequence in custom code.

The necessary commands can be found in the manual.

https://docs.flexsim.com/en/21.2/Reference/TaskSequences/TaskSequenceConcepts/TaskSequenceConcepts.html

https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/FlexScriptAPIReference/TaskExecuter/TaskSequence.html

Attached is an example model where this method is used.

CustomTaskSequence.fsm

Note: Rather than use the "BasicFR1" directly I create a copy in the reset trigger of Queue3. This is done, because if you reset the model while the BasicFR is currently carried by the operator it will get deleted. In the trigger I check whether the previous object still exists by looking at the label of the rack that should contain a reference to it. If not, a copy is created and assigned to the label.

The label is used so I can get a reference to the object when building the task sequence regardless of where it currently is in the model.


· 4
5 |100000

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

Vanessa E avatar image Vanessa E commented ·

Thanks that's just what I was looking for, you know which will be the way of visually see that the BasicFR1 is being pushed and not elevated, like the box(BasicFR) is at floor level and the operators just "push" in Z Axis = 0, and not lifting?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Vanessa E commented ·

You can adjust the location of the item "inside" in the operator with the "Set Location" option in the "On Load" trigger. You will probably have to try around a bit until you find the correct coordinates.

1635924587484.png

You can change the animation the operator uses when moving with an object. "Push", "Push2", "PushCart" and "PushWheelchair" might be suitable to have the operator push an object along.

1635924549450.png

OperatorPushObject.fsm

0 Likes 0 ·
Vanessa E avatar image Vanessa E Felix Möhlmann commented ·

But in the first model, where the BasicFR is like the the Material Car, how can this be solved? Because with the previous code this is what happen


1636004246321.png


Also the Box that should be on top of BasicFR but is also down, could place the box on top of the BasicFR and then push it?

0 Likes 0 ·
1636004246321.png (75.1 KiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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