question

Andreas BH avatar image
0 Likes"
Andreas BH asked Jeanette F commented

AGV load trailer with batched item - deattach trailer - unload trailer

Hello,

in my model i create 2 trailers and attach them to a task executer. parralel in source 6 items where created. This items (token.item) will be batched in two batches (token.loadbatch).

the first problem is to load these batches to trailers. i get error messages like this:

time: 36.358016 exception: FlexScript exception: Invalid down cast. Object is not an instance of the target type. at MODEL:/Tools/FlowItemBin>packing/Simple c: MODEL:/Tote1 i: MODEL:/Tote1/1


second problem is after loading. my train drive to controlpoint and should deattach trailers (token.trailer). but after deattaching there ist only one trailer left.

the aim is to unload trailers with crane (TSlist) and pickup trailers when unload is finished.

TESTTrain5.fsm

FlexSim 21.0.2
flexsim 21.0.2deattach traileragv load trailerdeatta
testtrain5.fsm (117.9 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.

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello @Andreas BH,

The problem was that the push to list activity pushed a token instead of an item. Also, the split activity wrote over the item label in your split activity.

I revamped your process flow to finish out the tasks you asked for. I utilized subflows in a few places to control the repetitive processes. It is a lot to completely recap, so please review the model and let me know what you have questions about.

Crane unloads AGV trailers.fsm


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

Andreas BH avatar image Andreas BH commented ·

Hello @Jeanette F,

Thank you for your help. it works ver good. Until today i didn't worked with subflows (instead with repeating task sequences).

The only problem i have following: When the TE is shortly before the controlPoint both trailers are lined up. (picture 1)

But after undettaching bith trailer are stacked.(picture 2)

The crane unloads 6 items. When TE attached trailers again they are lined up, again.

0 Likes 0 ·
1.png (101.7 KiB)
2.png (78.8 KiB)
3.png (60.5 KiB)
Jeanette F avatar image Jeanette F ♦♦ Andreas BH commented ·

Hello @Andreas BH,

I noticed the same thing, but I do not know how to prevent that. You could create a new question to see if someone else on the forum could help with that.

0 Likes 0 ·
Andreas BH avatar image
1 Like"
Andreas BH answered Jeanette F commented

Hi @Jeanette F


i found the reason why the trailers are stacked after deattaching. If you deattach at first the first trailer, second trailer automatically fills the gap. Than they are stacked.

We have to deattach at first the second trailer. Than it works fine.


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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hello @Andreas BH,

Thank you for sharing this. That makes sense.

0 Likes 0 ·