question

Pooja I avatar image
0 Likes"
Pooja I asked Felix Möhlmann commented

Cycle time mapping

Dear Team,

The station has both LH and RH cycle times, and it should pull the highest value from the global table based on the type. If only one cycle time is available (e.g., for Station 4), it should pull that specific time.

I have implemented this logic using custom code; however, an error has occurred.

Please advise on how to resolve this issue.

Thank you.

CT Distribution_V1.fsm

FlexSim 25.0.0
cycle time
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

The process time code doesn't fit the format of the CT table at all. You are assigning the name of the station (Station_1, Station_2, ...) to the "col" variable. Which is then used as the row identifier, but the row headers do not match the station names. And if they did the next line would generate a random whole number value between the value of the first and second column of the table.

Based on your description it should be something like this:

capture1.png


capture1.png (37.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.

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

Thank you for your response.

I have updated the global table as per your instructions.

Could you please update the code in the model I have attached?

Looking forward to your response.

Thanks

ct-distribution-v2.fsm


· 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.