question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Omar Aguilera Rico answered

Why am I not able to acquire the resource?

Hi, I am trying to acquire an AGV through the resource activity. Below the configuration for the resource and how I am trying to acquire it. Anything wrong?


1654714448533.png1654714502204.png

Also, I am trying to filter the AGVs to be available as resources by using this query (for 1 and for 2 load capacities):

1654714632638.png

Will this filter out AGVs ? Cause I have a feeling that "Puller" refers more to the flowitem requiring the transport...

FlexSim 22.1.2
acquire resource
1654714448533.png (33.2 KiB)
1654714632638.png (27.2 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.

Julio R avatar image
0 Likes"
Julio R answered Enrique Elizaga commented

Hello @Enrique Elizaga ,

First, your acquire should work without the Query, the resoure seems to be set up fine, we should check out how the acquire is set up. Here is a very basic example of a resource set up as you did that is working:

AGV Group Resource.fsm

For the Query one, are your trying to filter the AGV with a CAPACITY higher than 2 or the tokens?

If you are trying to filter the AGV you should declare the label inside the resource.

captura.png

If you are trying to filter the tokens I believe you cannot do it with a resource since we can only ORDER BY the backorders, so I would suggest using a list instead.


captura.png (61.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.

Enrique Elizaga avatar image Enrique Elizaga commented ·

Hi @Julio R , out of the resources in the group. I want to keep the AGVs whose label "LOADS" is equal to 1. I am trying to filter on aquire.

1654719210036.png


Thanks in advance.

0 Likes 0 ·
1654719210036.png (465.0 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Enrique Elizaga commented ·

Query should be WHERE value.LOADS=1 but you can also just use WHERE LOADS=1

0 Likes 0 ·
Enrique Elizaga avatar image Enrique Elizaga Jason Lightfoot ♦♦ commented ·
This is correct! It works perfectly.
0 Likes 0 ·
Jeanette F avatar image
1 Like"
Jeanette F answered Jeanette F edited

Hello @Enrique Elizaga,

If Capacity is a column in the list then you can write the Query like this

WHERE CAPACITY = 2

I can be of more help if you post your model.

5 |100000

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

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico answered

Hello @Enrique Elizaga , I share the following model (FlexSim v22.1.2) where in a PF I assign the Query in Resource and in another PF the Query in Acquire.


I hope it is useful to you.

Query en Acquiere Or Resource.fsm


5 |100000

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