question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

Enabling specific agv to enter the control area at same time

I have a layout where I want to make specific TaskExecuter(TE) to enter the control area.

For example, while TE3 is in the area, either TE1 or TE2 can enter the area at the same time, if TE1 is in the area, only TE3 can enter the area (as defined in TEMatrix table). With the model attached, I try to control with process flow, but I can't seem to succeed.

I'm trying with following approach. 1) When first TE reaches control area, stop TE and stack the TE to the list. 2)If the there is only one TE in the list, resume TE. 3) When second TE reaches the control area, check both TEMatrix and list. 4)If this TE is ok to resume according to the TEMatrix, resume. if not stop until first TE is deallocated. 5)When first TE is deallocated, delete this TE from the list.

I'm already unsuccessful with 2). Is my approach incorrect? Should I use globaltable instead of list?

Crossing_3way.fsm

FlexSim 20.1.3
processflowflexsim 20.1.3task executers
capture021.jpg (204.4 KiB)
crossing-3way.fsm (48.1 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.

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Ryosuke S commented

The first problem is that you've used an instanced process flow on the task executers. It should be instanced by the control are or global.

You only need to stop TE1 or TE2 if either of those is already in the area. That's it.


Model attached.crossing-3way_jl.fsm


1611669565015.png (33.9 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.

Ryosuke S avatar image Ryosuke S commented ·

@jason.lightfoot Thank you for your reply. It's amazing to know we can create the logic with such simple flow. Just one small question. I noticed that there is Assign Label setting token.TE to activeTE. Why is this needed? because I don't see label activeTE been used. Thank you.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ryosuke S commented ·
You're right - it's no longer used - I had it in there before I realized how simple it could be - but I left it in for reference just to easily check which TE is active. You can remove it
2 Likes 2 ·
Ryosuke S avatar image Ryosuke S Jason Lightfoot ♦ commented ·
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.