question

Mathilde DOUSSET avatar image
1 Like"
Mathilde DOUSSET asked Adrian Haws edited

I need to help to decrypt a code C+?

Hi,

I have a code C+ in my conveyor and I would like understand it to correct it

Thank you for your help!

FlexSim 16.2.0
code c+
codeconveyor2.png (42.3 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.

Mathilde DOUSSET avatar image Mathilde DOUSSET commented ·

I join you my model:

100agv-autosave.fsm

0 Likes 0 ·
100agv-autosave.fsm (13.1 MiB)
Matt Long avatar image Matt Long commented ·

Can you be more specific about what your question is? The code looks pretty well documented already.

0 Likes 0 ·
Mathilde DOUSSET avatar image Mathilde DOUSSET Matt Long commented ·

My problem is : When I put "Run Speed" in max, the conveyor 2 didn't have gearbox , so I think that there is anything to modify in the code c+?

0 Likes 0 ·

1 Answer

·
Matt Long avatar image
2 Likes"
Matt Long answered Adrian Haws edited

The first potential issue I see is that there's an entry transfer in between Conveyor1 and Conveyor 3. I'm thinking that entry transfer should probably be at the other end of Conveyor1.

Looking at your model, on reset BasicFR1 closes all of hte separators output ports. Then randomly opens a port for a separator which then sends its container to a Queue and items to EntryTransfer741. Then their output is closed and waits for BasicFR1 to open their ports again to release the next set of items. Now with that understanding, looking at your code to pick a random output makes a little more sense.

In order to debug, I added the following code to line 33:

pf(time());pt(": ");pt(nodetopath(itemOfQueue, 1));pr();

The last entry it gives is:

839282.357539: MODEL:/Separator60

Looking at Separator60 you can see that there is a pallet sitting on it, but no gear boxes. If I continue to run the model, no gear boxes are ever added to Separator60. The pallet is stuck on the Separator because the Queue it's supposed to be sending the pallets (or containers) to has a max content of 1. Your AGV is never picking the pallet up. This appears to be because Rack47 has reached its max content of 2 because it can't send items out because its downstream object Videmoteur has reached its max content of 1000.

Basically your model has jammed up because all of your objects have reached their max contents and have no way of clearing out their contents.

· 5
5 |100000

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

Mathilde DOUSSET avatar image Mathilde DOUSSET commented ·

Thank you; I added the code in line 33, and it start.

But I have a similar problem in Basic FR2 but If I added the same code, it doesn't start.

I join my model

100agv-2.fsm

Thank you for your help

0 Likes 0 ·
100agv-2.fsm (13.2 MiB)
Matt Long avatar image Matt Long Mathilde DOUSSET commented ·

Code seems to be firing just fine in BasicFR2. If you add a pt("BasicFR2 "); to the beginning of line 33 that'll help you distinguish between the two.

1 Like 1 ·
Mathilde DOUSSET avatar image Mathilde DOUSSET Matt Long commented ·

No because if I wait about 15000 seconds , there aren't any things in a conveyor...

0 Likes 0 ·
Show more comments
Mathilde DOUSSET avatar image Mathilde DOUSSET commented ·

I have put a sink after the empty queue but it doesn't change my problem.

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.