question

Lucas avatar image
0 Likes"
Lucas asked Jeanette F commented

Photo Eye and station logic

decision-pint-and-when-is-blocked-to-another-one-1 (1).fsm I need with the station to simulate like transfers and when is only one product that blocked the photoeye have to go to the another one. The station only have to work when is going to the processor if continue conveyor 1 dont have to sopt in the station

FlexSim 23.2.0
conveyorsystemphoto eyestations
· 6
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

What you've defined is working correctly.

What is it you want to do differently? Tell us which flow item at which time should be routed differently. Attached is your model with box numbering added.

decision-pint-and-when-is-blocked-to-another-one-1_boxNumbering.fsm

0 Likes 0 ·
Lucas avatar image Lucas commented ·

In the conveyor 2 until stop are 4 boxes and i want that when is one blocking the photo eye go to another procesor and for exapmle are boxes that went to the second processor and stop in the first station

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Lucas commented ·
Example of the information we need:

"At time 1234.567 seconds Box_035 is routed from the decision point to Processor3 while I wanted it should have gone to Processor 2."

To be honest I don't like your approach - I'd rather have a list of available capacity for each processor and pull from that list to decide where to go.

0 Likes 0 ·
Lucas avatar image Lucas commented ·

At time 45.38 thre boxes to go to another processor and i want when is one .

At time 60,59 the boxes that went to the processor 2 stop and i only want to stop if go tho th processor of this station

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

Try putting a clear time on the photoeyes of 5 second - since at the moment they will clear each time an item moves to a processor - you may get closer to what you want (I don't know - I still can't understand your English, sorry).

Again I think this approach is still flawed since it is very sensitive to the timing. It would be better to manage the quantity you can send to each processor and stop sending when you reach that amount.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Lucas, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I already described a possible solution for sending the items based on amount rather than PE state here, but you didn't reply as to where you were having issues. (Jason also suggested to do something similar by using a list.)

A Process Flow that does this might look like below.

capture2.png

The Decide activity requires some custom code to identify if there is a free lane. Again, see below for a possible example. Note that it uses a parameter in a Parameter Table to control the allowed number of items. The "DestIndex" label can subsequently be used to send the item to the correct Lane/Photo Eye.

// Go through Photo Eyes and check "NumItems" label
for(int i = 1; i <= token.DP.outObjects.length; i++) {     if(token.DP.outObjects[i].labels.assert("NumItems", 0).value < Model.parameters.MaxItemsInLane)     {         // There is still space on this lane - Assign index to token label and increment counter on DP         token.DestIndex = i;         token.DP.outObjects[i].NumItems += 1;         return 1;     } } // No free lane found return 2;

And you don't need stations. You can set a delay at the start or finish of the transfer motion in the Transfer Type properties.

capture1.png


capture1.png (16.1 KiB)
capture2.png (21.0 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.

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.