question

lili avatar image
0 Likes"
lili Suspended asked lili Suspended commented

choosing task executers to transfer items based on the next processor

Hi!

I have a model where the flow items are sent to a list after being processed in processor1. After which they can be transported to both processor 2 and processor 3. Items can be transported between processors 1 and 2 via conveyors, but as processor 3 is far away items have to be transported by crane. As there aren't any conditions for different ports I don't know how to simulate such a behavior.

Can I determine the transportation tools based on the processor type? (processor 2 and 3 are both the same type of machine)

Or as a less preferred solution can I choose the transportation tool based on distance?

I'll upload a simpler version of my model here.

Thanks is advance

output transportation.fsm

FlexSim 22.2.0
send to portoutput portassigning task executer
· 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.

Natalie White avatar image Natalie White commented ·

Hi @lili, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered lili Suspended commented

Use a sendtoport to route to a port connected object based on type.

Use the transport dispatcher field (under 'use transport' checkbox)to choose the transport via Customized Logic> Conditonal Transport.

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

lili avatar image lili commented ·
I'll try this thank you
0 Likes 0 ·
lili avatar image lili commented ·

Is there a way I can create the same logic while using send to port> use list> push to list ?

I can work with conditional transport when the condition is based on the port number, but when the flow items are sent to the processors from a list don't know what condition to use. I would appreciate it so much if you could give me an example of the code or the sub flow I can use.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ lili commented ·

It's all about references - once you know the station you can then find the transport to use based on either:

  1. if statements in code
  2. a table lookup
  3. a map
  4. port connections on the station
  5. label pointers on the station

We're not going to make that decision for you - you should consider the alternatives and determine which suits you best based on your application and skill set. Use the online manual to help you understand how each would work.


1 Like 1 ·
lili avatar image lili commented ·

@Jason Lightfoot the next station is chosen automatically. I have a lot of stations and I'm using the push to list option as my output logic. As there are many stations in each stage and only one of them has a different transportation method, I think the best solution would be to write it in flexscript.

The problem is that I haven't worked with codes. Is it possible for you to write an example script for the model I attached?

The exact behavior I want is such that each of the floor storages send the items to processors 2,3,4. Transportation method for processor 2 is the operator, and for processors 3 and 4 is the crane.


And it would be much appreciated if anyone could share the link of some tutorials or sources on the subject.

output transportation_1.fsm

0 Likes 0 ·