question

Ryusuke T avatar image
-1 Like"
Ryusuke T asked Phil BoBo commented

Want to add a function choice to the custom code in the process flow

Hi,

Currently, custom code needs to be created when performing area restrictions, etc. within the processing flow. I would like you to add it to the options in the same way as station triggers.

image1.pngimage2.png


Thank you for advance.

FlexSim 22.0.16
customcodearea restriction
image1.png (13.1 KiB)
image2.png (22.1 KiB)
· 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.

1 Answer

Arun Kr avatar image
0 Likes"
Arun Kr answered Phil BoBo commented

Presuming this as a question, you can copy the entry and exit restriction area code from the triggers and paste it inside a custom code activity in the pf. But when using pf, a combination of stop item, resume item and zone can be used to easily accomplish what you are looking for.

Note: some modification in the trigger code is required to fit the code in the process flow. Especially the variables already defined by FlexSim.

Attaching a sample model here.

AreaRestn.fsm

Regards,

Arun KR


arearestn.fsm (48.7 KiB)
· 2
5 |100000

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