question

Axel Z2 avatar image
0 Likes"
Axel Z2 asked Axel Z2 commented

Problem with Exit Transfer of a Conveyor

Hello Community hello @Jörg Vogel @Tanner Poulton,

i have to sinks connected to a conveyor which carrys two different items. A pallet and a combined pallet with a engine on it. My idea was to label the pallet and the engine when they Exit the combiner where the are combined to one Entity.

and on the Exit Transfer properties of the conveyor i said "send to port " = conditional port and the condition is that when the item.Type == "Type1" the Entity should use sink 1 and otherwise sink2.

the Problem is that all Entitys the pallet and the pallet combined with the engine go to sink1. Is there something wrong with the label ?

version2.fsm

FlexSim 19.1.1
exit transfer conveyor
cn2.png (32.1 KiB)
cc2.png (54.5 KiB)
version2.fsm (55.7 KiB)
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

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Axel Z2 commented

@Axel Z2

There are 2 things wrong with your model. On the onexit of the combiner you write item.Type1 = item.Type but all pallets entering have no label with the name Type. They only have a label called "mylabel".

The 2nd mistake is that for the condition you write item.Type = "Type1". This means that you expect a label on the item that is called Type and that contains a string "Type1". But on the exit of the combiner you actually created a label called Type1. So it looks like your mixing a few things up.

If you want to split empty and full pallets you could write a condition like this on the exit transfer and you don't have to do anything else:

item.subnodes.length > 0

Other tip, take a good look at the system console. It gives you a lot of information. For instance in this case it would have already told you that the label Type did not exist on the pallets:

time: 9721.721770 exception: FlexScript exception: Label property Type retrieved on /Combiner2/Pallet. Label does not exist. at MODEL:/Combiner2>variables/exittrigger

So you should always first fix all your errors before you continue modelling or asking help. Ofcourse you can always ask help about your errors.

· 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.

Axel Z2 avatar image Axel Z2 commented ·

hey @steven.hamoen,

yeah i missed a few Things up. like you said I just had to Change the onexit of the combiner to item.type1 = item.mylabel …. and it was Always in the System console^^ thank you for your tip :)

now im working with your 2nd advice and use the item.subnodes.length > 0 to sort the full and empty pallets.

have a nice day :)

0 Likes 0 ·