question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Jeff Nordgren answered

​How to fit in the rack by means of a list?

acomodo-en-rack-por-medio-de-etiquetas-bahia-nivel.fsm I want to make the boards conform according to a list (in this case I am using a Gobal Table "Rack Position") that fences in order of row (row 1, row 2, row 3 ..) and that depending the rows of the Global Table Pallet Source creates pallets, for example, if 10 rows will be 10 pallets. How can I do this?

FlexSim 17.1.4
rackpositionlist entries
5 |100000

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

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

IF I'm understanding your question correctly, you can fit the number of pallets created with the number of rows in your table easily using a process flow. (Unfortunately you cannot enter FlexScript directly into the table fields on a Scheduled Source in the 3D model view) Instead we'll use a simple process flow.

In the process flow, drag out a Scheduled Source to create tokens. Open it's properties and go to the quantity, and in the value field write: Table("TableName").numRows. This will create a number of tokens, equal to the number of rows in your table.

Then just have the process flow create a pallet in a queue connected to the combiner (Instead of where the Source was.) And have the queue feed into the combiner, just like the Source did.

7958-acomodo-en-rack-por-medio-de-etiquetas-bahia.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.

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered
@Omar Aguilera Rico

Attached is your model with the changes that I've made.

In the Pallet Source I added code in the OnExit trigger to close the output port of the source after creating the number of rows in the Posicion Rack global table. And modified the code in the OnCreation trigger to assign each pallet an itemtype (Type) that corresponds to the proper row in the global table.

Then in the Rack, I modified the code in the Place in Bay and Place in Level code to use the itemtype of the pallet for the row in the table to find the right row and level in the table to place the pallet.

Take a look at the model and see if it is doing what you were wanting it to do. If you have any questions or problems, please let us know.

Thanks.

acomodo-en-rack-jn1-v1714.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.