question

Eddiegoqo avatar image
0 Likes"
Eddiegoqo asked Eddiegoqo commented

cycle

Hello everyone, I have a question, please answer it

After running ten times, ROBOT will grab BOX X from Q5 to Q6 and then return to ROBOT to take Q5 BOX to Q1 without looprobot box.fsm

FlexSim 21.0.3
flexsim 21.0.32021
robot-box.fsm (52.5 KiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

You need to be more specific about what you are seeing and questioning.

At what simulaiton time does this occur? To what are you referring when you say "after running ten times"? The robot, the model, replications, ten items?

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

Sorry, the starting point ROBOT1 grabs Q4 BOX to Q1 and the end Q5 BOX grabs Q6 for one time. After ten times, Q5BOX grabs Q6, and then ROBOT1 grabs Q5 and several boxes. After that, it will grab several boxes from Q5 to Q6.

0 Likes 0 ·

1 Answer

Eric M avatar image
1 Like"
Eric M answered Eddiegoqo commented

Here's the model with some updates I made. First, I created a label on the item at the source called "Cycles" and set it to 0. When the box enters Queue2, the label is incremented by 1, meaning it will count up by one each time it enters that queue.

At Queue5, I changed the 'send to port' to a conditional port, so if the "Cycles" label reaches 10, the item will move to Queue6.

I also changed the Queue1 'input' to pull by round robin meaning the robot will switch between Queue4 and 5 each time instead of pulling several from the same Queue (this was happening because it was prioritizing them based on when they entered the queue).

robot-box-em.fsm


1621981820365.png (5.1 KiB)
1621981854665.png (10.7 KiB)
1621981874865.png (6.2 KiB)
robot-box-em.fsm (52.0 KiB)
· 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.

Eddiegoqo avatar image Eddiegoqo commented ·

Thank you, but I found that I can’t catch Q6. I’m sorry to trouble you to take a look.

0 Likes 0 ·
Eric M avatar image Eric M Eddiegoqo commented ·

The first box reaches Q6 at model time 17958. If you increase the inter arrival time of the source it will happen sooner

0 Likes 0 ·
Eddiegoqo avatar image Eddiegoqo Eric M commented ·

thank you

0 Likes 0 ·