question

Kamil KS avatar image
0 Likes"
Kamil KS asked Kamil KS commented

How to refer to a token item that is being transported ?

Hello,

I am creating some transportation model logic and I want to make the process efficient by telling operators to travel only with max capacity of 2 pallets. I added a ,,Decide" and conditional decide. I have an idea to refer to an item being transported token and get its

.length

but i don't know how to refer to it. Maybe there is another solution. I also added Zones to restrict the area ,,Bufor" for only one transporter that can be there at the time but I am not sure if I did it correctly.
Could you please help me ? transportationlogic-v05.fsm

FlexSim 18.2.0
tokens
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Kamil KS

Attached is your model with the change that I made to your Decide:Max capacity PF block. But it seems that there is some other problem with the logic. Not knowing what is supposed to happen in your model I'm not sure what to suggest. If you could explain what is supposed to happen in the model, we may be able to give you a more definitive answer.

Thanks.

transportationlogic-v05-jn1.fsm

1 Like 1 ·
Kamil KS avatar image Kamil KS commented ·

Transporter capacity are 2 pallets. If a transporter travel to Queue to load one pallet it needs to wait till the next pallet arrives and than load the second one. Each and every transporter can leave the Queue only if it is carrying 2 pallets.

As I see token in your change is refering to Transporter but i need to refer to an item that it is carrying (pallet).

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Kamil KS commented ·
@Kamil KS

Actually, it's referring to the number of items in the transporter, not the transporter itself. The label "transporter" on the token is referring to the transporter itself. If you wanted to reference a specific item in the transporter you would use: token.transporter.length[x], where x is the rank of the item within the transporter. But from your description, you just want to make sure that the transporter has 2 items in it, correct?

Not exactly sure why you are using the Zone block. I'll look at the model and see if I can offer any suggestions.

0 Likes 0 ·
Kamil KS avatar image Kamil KS Jeff Nordgren commented ·

The problem is that transporter is always carrying 1 pallet. Even tough I have typed 2 in the capacity. I also tried with a List sequence but it isn't working properly. transportationlogic-v06.fsm

Well I wanted to have only one operator in the Queue while he is waiting for second pallet that is why i used zone.

0 Likes 0 ·

1 Answer

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered Kamil KS commented
@Kamil KS

OK, I believe I understand now what you are after. Attached is your first model with the second revision of changes that I've made to it. Look at the model and see if it is now working as you would like it to work.

Thanks.

transportationlogic-v05-jn2.fsm


· 3
5 |100000

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

Kamil KS avatar image Kamil KS commented ·

Thank you very much for your help and patience (it's not so easy to understand me sometimes).I replaced Event Triggered Source with Schedule Source. I often use different number of operators/transporters in PF and change it in Resource section. Do you know how to set automatically Quantity in Shcedule from a Resource ? I saw it in tutorial but only with Groups.

0 Likes 0 ·
resource.png (39.2 KiB)
Jeff Nordgren avatar image Jeff Nordgren Kamil KS commented ·

@Kamil KS

Attached is the sample model that will create the number of tokens specified in the Resource/Count field. I also deleted the Sink block so the tokens can loop back up to the Source block again and start the process all over. Is this what you were looking for?

Thanks.

transportationlogic-v05-jn4.fsm

0 Likes 0 ·
Kamil KS avatar image Kamil KS Jeff Nordgren commented ·

Than you vey much, I really appreciate your help. Could you explain me a bit the

.first

command that you have used in the model. I read notifications about it but I am not getting the whole point of using it in that scenario,

0 Likes 0 ·