question

A25983579 avatar image
0 Likes"
A25983579 asked A25983579 commented

use the technological process to establish a table monitoring

There are 5 kinds of products. I want to use process flow to create a detection product type and quantity feedback to a table, and when the same product is produced, it will be updated in the original quantity, and when the product is transferred, it will also be in the quantity. Make corresponding updates on

訂單清單.fsm

FlexSim 19.0.0
processflow
order-list.fsm (30.5 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered A25983579 commented

If you want to store the quantity directly in the list you push the items (tokens) to, you can use an expression field. In the attached example I use an SQL query to count the rows with the same type and return that number as the field value.

You can also use a global table. By using numbers, rather than letters to identify the types you can have one row correlate to each type and simply increment/decrement the quantity value in various triggers. This is demonstrated on Queue1 in the attached model.

order-list_1.fsm


order-list-1.fsm (143.2 KiB)
· 5
5 |100000

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

A25983579 avatar image A25983579 commented ·

Ok i got it

Then I would like to ask, if I want to create an order to be displayed and the entire system will pick up the order according to the order, how should this be handled?

order list.fsm

0 Likes 0 ·
order-list.fsm (37.5 KiB)
Felix Möhlmann avatar image Felix Möhlmann A25983579 commented ·

Push the items to a list, then the order token can pull the needed amount from it and release the items from the racks. The racks should be set to "Do Not Release Items", so they store the items until they are needed.

order-list(1).fsm

0 Likes 0 ·
order-list1.fsm (38.0 KiB)
A25983579 avatar image A25983579 Felix Möhlmann commented ·

The last question, is there a way to write the order information of the list into the table?

And after completing the order, change the "status" value in the table from 0 to 1?1639491552263.png

0 Likes 0 ·
1639491552263.png (6.1 KiB)
Show more comments