question

Borja Lorenzo avatar image
0 Likes"
Borja Lorenzo asked Felix Möhlmann answered

Creation of orders from a Global Table

Hello,

I am sharing this simplified model of an assembly line. Each Decision Points represents a station where an operation is performed.
In each DP, the operation to be performed is described. The first operation is: DPW_CP_AM_MAG_FRONT, and the last one, where the set is released, is DPW_CP_AM_OUT.
In the first DP and the fourth DP (DPW_CP_AM_MAG_BACK), two components are added, while the rest are handling operations.

A list of orders collected in GlobalTable 1 will enter the system.

This list provides information about the reference of each order, the quantities per order, and the operations to be performed for each order (where 0 means the operation is not performed and 1 means the operation is performed).

My initial approach is to create a Global List where all the order units will be added as a complete list of tasks to be carried out. Once the list is completed, the assembly process will end.

The totes are constantly circulating on the conveyors, but when there are no more units to manufacture (0 rows in the Global List), they will continue circulating empty.

To generate these entries in the Global List, I would like to create as many tokens as I have total units, but identifying the order they belong to and the operations they require.

I would need help to create and input this list of tasks into the Global List.

If the approach can be improved, please correct me.

Best regards.

20240911 Montaje simplificado.fsm

FlexSim 24.1.1
tokensglobaltableordersgloballist
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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

Have a source create as many tokens as there are rows in the order table and assign the row number as a label to the token. In the Schedule Source, the variable "tokenIndex" is available. For the first token that gets created per row of the Source's schedule table it will be 1, for the second 2 and so on. Since there is only one row in the schedule and it creates as many tokens as there are rows in the order table, this index can be used to denote which row of the order table the token belongs to.

These tokens are then assigned the "Ops" values from the order table as a label. In the attached model I use a query to assign all Ops values to an array label in a single operation but you can of course also create one label per value.

The token then goes on to create as many tokens as the "Unidades" column of its row mandates. These then push themselves to a list.

20240911-montaje-simplificado_1.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.