question

Maria B17 avatar image
0 Likes"
Maria B17 asked Jason Lightfoot edited

How to add time to each multiprocessor process with flexscript

I have a large project that requires carrying a lot of different information for the same process. In short, the process is the same but times change depending on the product. I've used flexscript before and have a little experience with it, but I'm not able to find the functions that would give me access to do what I need.

Basically I have several multiprocessors that always perform the same process, but the time for these processes varies depending on the product I receive.

1706881195184.png

As in the table, I have all these processes to be carried out at the station, but for product x it is one time and for y it is another time. Also note that I have some automatic operations in which I will not need to use the operator (this must also be done by script).

I would like to know if it is possible to change these properties of all my multiprocessors according to the product that is coming in.

1706881402556.png




FlexSim 24.0.1
flexscriptprocesstimemultiprocess
1706881195184.png (7.8 KiB)
1706881402556.png (80.6 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

In the process time fields you can refer to the process step name using c.up.name. You can use that along with the item type to look up the processing time.

Table("ProcessTimes")[item.Type][c.up.name]   // item.Type specifies the row number or row header string   while c.up.name should match a column header

You can put the table on the multiprocessor itself if needed as a label. Then the expression for every process time becomes.

current.labels["processTimes"].as(Table)[item.Type][c.up.name] 


5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

In each process you can select in a multiprocessor values by case template.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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