question

sanaz karamimoghaddam avatar image
0 Likes"
sanaz karamimoghaddam asked Joshua S commented

How to acquire Resource with a reference to a group of object that are created using a process flow?

Hi all, I want to create my TEs, add them to a group, and the acquire them as the resource for a process flow. Process flow is used to create the TEs, and to transport the items using an AGV network. I am using "Push to list" in the load area so the process flow would pull from that list. I am facing some problems.

First, when I create the TEs, they are placed on the model origin (0,0,0), and not the destination I mentioned. In my actual model, I use "Move Object" activity to place the TEs on the a control point near loading station. In this sample model that I attached, even with move object activity, the TE s are located off the AGV network and on the (0,0,0) location. Additionally, the TEs are not being shown in the group that they are added to. (In actual model, the TEs are shown in the group as group members, but not with their own names, they are referenced by their container (Control Point10). E.g. ControlPoint10/Vessel1 The second problem is that when I'm using the group as the object reference for the resource, the Resource activity somehow does not consider them to be available and won't assign them to the activities.

resourcegroup.fsmvessels-group.png

FlexSim 16.2.0
agvprocess flowtask executerresourcegroupmember
vessels-group.png (25.2 KiB)
resourcegroup.fsm (33.3 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

Matt Long avatar image
0 Likes"
Matt Long answered Joshua S commented

There is a bug currently in the Create Object when creating objects onto Control Points of an AGV Network. The AGV will be properly connected to the network, they just aren't positioned on the control point (at least until they receive a task sequence). You don't need to call Move Object, just use a Change Visual at set the position to the position of the control point.

Next, your tokens are getting stuck on the Pull from List because your Queue is partitioning by centerobject(current, 1) and your Pull from List is partitioning by 0. Set the Queue's partition id to 0 and they will be able to pull from the list.

When the Resource is in Object Mode, it only evaluates its Resource Reference and Count at the start of the model. Since your Group has no members in it at the beginning, there are no Resources available. If you want to use a dynamic group of objects you should use a List instead. When you create the AGVs, push them to a List and instead of using an Acquire and Release, use a Pull from List for the acquire and then push the AGV back to the List on when you want to release them.

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