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.

Joerg Vogel avatar image Joerg Vogel commented ·
@Ryusuke T, this looks like an idea! Or what question do you have?
0 Likes 0 ·

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.

Ryusuke T avatar image Ryusuke T commented ·

@Arun Kr ,

Thank you for sending the sample model.

I will consider it as a reference.

I posted it as an idea.

I apologize if I posted in the wrong area.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Ryusuke T commented ·
In Process Flow, you don't need the area restriction pick options. You can get the same functionality with shared assets. You can use a zone, list, or resource to control the logic more precisely rather than using those pick options that are designed specifically for triggers without the full power of Process Flow available.
0 Likes 0 ·