question

Keter avatar image
0 Likes"
Keter asked Felix Möhlmann answered

How to reset group control area maxallocation on simulation start?

Hello,

I want to find out how to reset group control area maxallocation on simulation start?

I can reset individual contro area. but I want to reset all as group, hope I can get some advice, thanks!

2024-11-26 171824.pngareaallocationtest-fm.fsm

FlexSim 23.2.0
agvcontrolareamaxallocation
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered
treenode networkCAlinks = Model.find("AGVNetwork>variables/controlAreas");
forobjecttreeunder(networkCAlinks) {     treenode link = a;     ownerobject(link.value).as(Object).setProperty("MaxAllocations", 99); }

Rather than manipulate the number of allowed allocations, you could also try to leave it at one and instead 'manually' allow further allocations.

If you overwrite the return value of the "On Request" event with a 1 (or, to be on the safe side the expression AGV.Request.Allow), the allocation will be allowed regardless of the limit set on the area/point. To block the request use AGV.Request.Block or -1 instead.

1732620213585.png


1732620213585.png (29.0 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.