question

Maksim B avatar image
0 Likes"
Maksim B asked Ben Wilson commented

Set a chest on a specific place on the conveyor

How can I set a chest on a specific place on the conveyor? I mean the operator comes to the conveyor with the box and I would like him to put it on the conveyor at x = 5. I wrote something like this:

treenode adres = token.MergeAdres;

Object adresitem = adres.last;

adresitem.location.x = 5;

but it still sets the chest at the beginning of the conveyor. How can i fix this?

FlexSim 20.0.7
conveyorflexsim 20.0.7specificplacechest
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @maksim.b, was matt.long's or joerg.vogel's answer helpful? If so, please click the red "Accept" button on one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

Matt Long avatar image
2 Likes"
Matt Long answered tannerp commented

The operator drops the item based upon the location of the entry transfer. If your entry transfer is at the beginning of the conveyor he will drop it there.

You can move the entry transfer to the side to move that entry point.

In quick properties you'll see a field for Distance Along Conveyor that you can set to 5.

Additionally, you can use the red arrows on the sides of the entry transfer to create a range for the entry. The operator will choose the closest location along that transfer to drop the item off at.

Hope this helps!


1595512670674.png (36.6 KiB)
1595512688279.png (44.6 KiB)
1595512703921.png (7.6 KiB)
1595512718148.png (61.6 KiB)
· 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.

Maksim B avatar image Maksim B commented ·

Thank you for the answer, but is there a way to manipulate this by a code?

0 Likes 0 ·
tannerp avatar image tannerp Maksim B commented ·

@maksim.b,

You can use the spatial variables to adjust the size of the transfers.

0 Likes 0 ·
Matt Long avatar image Matt Long tannerp commented ·

That doesn't work because the Conveyor's build their layout when you hit reset. So changing values in the tree won't affect the actual running data.

0 Likes 0 ·
Matt Long avatar image Matt Long Maksim B commented ·

If you extend the entry transfer along the length of the conveyor as explained above, you can use a custom task sequence to move the operator to conveyor at the point you want the item to be dropped. Then when you use the unload task, the operator will drop it where he's at.

Here's an example model that shows the Operator dropping in a different location each time. ConveyorDrop.fsm

0 Likes 0 ·
conveyordrop.fsm (49.0 KiB)