question

Unax Urrutia avatar image
0 Likes"
Unax Urrutia asked Felix Möhlmann commented

Creating a variable in the sink to count items

I want to know how could I create a varible in the sink triggers (On Entry) that is based on a Table. The value, I want it to be a code.

FlexSim 23.2.3
sinkvariablecounter
5 |100000

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

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

If you assign flexscript to a table cell that is does not need any external paramters then you can use the standard syntax "Table(tableName)[row][col]".

To pass in parameters, access the node of the cell and use "evaluate()" on it. ("Table(tableName).cell(row, col).evaluate(params)")

flexscript-table-example.fsm


· 9
5 |100000

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

Unax Urrutia avatar image
0 Likes"
Unax Urrutia answered Felix Möhlmann commented

Hello @Felix Möhlmann

Thank you vey much for your detailed answer. It has been very useful.

I have some questions related to this:

  • Could it be posible to repeat the demad table from the start once it is finished and continue with the time?
  • What information gives me in a practical way the itemcounts varible table?
  • Could it be possible to define an hour in each day to start pulling the items to the sink?

Thanks a lot!

Best regards,

· 1
5 |100000

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