question

Justin Brozzo avatar image
0 Likes"
Justin Brozzo asked Adrian Haws edited

How to create a object identifier number without using process flow?

How can I create an identifier from a source that will create a "object number"? So I have a main line of processors and an inside line of processors that are merged at several areas. My goal is to have the main source create an object number say 1-40 and keep this with the object. At several points on the main line, using the on exit trigger of a processor, a source is triggered on the inside line, ( a sub assembly line). I am looking to have that source that was triggered create a object with the same identifying number as the object that triggered it. The inside line will then process the object and then go to a queue where I want it to wait for the main line object with the same number then using a combiner combine the two. This process will be repeated several times through the line. I have attached an extremely simplified model where if it can be done, I can impliment it to my model.

pflexsimnewpractice-identifiers.fsm

To Recap:

1. I want source 3 to create an object and identify it (1-40) I am okay with this being done through a global table or other ways, I just don't know the best way to do it.

2. On Exit of processor two I have it triggering source 7. I am looking for source 7 to create an object with the same identifier (1-40) as the object that triggered it.

3. I want the main object to meet the inside line object at combiner five where it will merge the same objects, matching object #1 with object #1 from the inside line.

4. If anyone can help explain the best way this can be done I would greatly appreciate it. If that is too confusing, I have attached a simplified model where it can be implemented for my review. Either way I appreciate the help.

FlexSim 16.1.0
itemtypematch labelitemtype by porttriggered sourceidentifiers
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

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Justin Brozzo commented

Check out the attached model.

1. I set the On Creation trigger to use the Set Itemtype and Color pickoption which randomly assigns an itemtype between 1 and 40 using the duniform(1, 40) command.

2. In the On Exit trigger of Source 7 I also use the Set Itemtype and Color pickoption, but I look up what the itemtype of the item in Processor 2 is and use that for the new item.

3. I checked the Pull Strategy checkbox on Combiner 5 and Set the Pull Requirement field to use the Itemtype by port pickoption. There I specified that the itemtype of port 2 needs to be the same value of the combiner's match label. I set the match label to the itemtype of the entering item in the On Entry trigger of the combiner.


· 2
5 |100000

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

Justin Brozzo avatar image Justin Brozzo commented ·

That sounds like a great plan, I will try that bright and early tomorrow. I guess the only thing left that I am looking to solve is somewhat connected to this and you may be able to help!

1. I am looking to create a process for the inside line, in this case ( the source 7) only to create the corresponding item type( same as source 3 ) if there is say less than 3 in the queue that source 7 is sending it to.

Essentially, what I am trying to prevent is objects from the inside line being created and continuing to build up, when objects from the main line are sent to a reject sink before the lines merge.

If there is any way this can be incorporated that would be amazing!

Once again I appreciate it!

0 Likes 0 ·
Justin Brozzo avatar image Justin Brozzo commented ·

@Matthew Gillespie If you have time there is an addition below! Great idea above!

0 Likes 0 ·

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.