question

Mathilde DOUSSET avatar image
0 Likes"
Mathilde DOUSSET asked Joerg Vogel edited

How to have an initial quantity on a conveyor at time 0?

Hi!

I explain my system: I have one combiner who products a pallets of rearaxles (3 rearaxles per pallets), this pallets are taken by an AGV to unload on a conveyor 3. Then, an other AGV load this pallets (who are on teh conveyor 3) and unload it on the conveyor 1.

I would like at time 0 , the conveyor 3 have already a pallets (4 pallets), is it possible?

Thank you for your help

livraisonaxeavant.fsm

,

FlexSim 16.2.0
conveyorstime
5 |100000

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

Kari Payton avatar image
2 Likes"
Kari Payton answered

Hi @Mathilde DOUSSET one way that may work is to duplicate your sources and combiners to input pallets onto conveyor 3 at the startup. I copied the source and combiner, then changed the arrival of the pallets source to a schedule input of 1. However, it's not exactly at time 0. Stepping through the model is at 3 seconds before the pallets are on the conveyor. 3938-livraisonaxeavant.fsm


5 |100000

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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited
@Mathilde DOUSSET
for(int numpallets = 1; numpallets <= 4;numpallets++)
{createcopy(node("MODEL:/Tools/FlowItemBin/Pallet_train_avant/Pallet_train_avant"),model(),1);
	setitemtype(last(model()),1);
for(int index = 2; index >= 0; index--)
{createcopy(node("MODEL:/Tools/FlowItemBin/Train_avant/Train_avant"),last(model),1);
nodefunction(node("MAIN:/project/exec/globals/nodefunctions/palletentry"),last(model()),last(last(model())));
setitemtype(last(last(model())),1);
}
moveobject(last(model),node("MODEL:/EntryTransfer54"),1);}

The above code creates 4 pallets with 3 train_avant items on it in the EntryTransfer54 of the conveyor3. The line nodefunction executes the palletentry mechanism to place the train_avant on top.

You can execute the code in a script console or any onReset trigger.

5 |100000

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

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.