question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

FlexSim 2024 Beta: Allocate Control Area

Hi It seems that the script under the Allocate Control Area for Conveyor is for AGV.


1699249488228.png


Could this cause an error as below?

time: 39.704861 exception: FlexScript exception: Invalid down cast. Object is not an instance of the target type. at MODEL:/Station1>variables/onArrival

1699249598215.png


David

FlexSim 23.2.2
conveyorallocate control area
1699249488228.png (49.7 KiB)
1699249598215.png (140.8 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.

Iago MF avatar image Iago MF commented ·

Hi David,

I think it is working as intended, see the example on the documentation:

1699266582204.png

That conveyor item will block that control area, so travelers will not be able to pass through it.

You still have the acquire and release scripts for control sections on conveyors.

I hope it helps you!

0 Likes 0 ·
1699266582204.png (22.2 KiB)
David Chan avatar image David Chan Iago MF commented ·
Sorry folks. I did not realized that is a few feature. Thanks

David


0 Likes 0 ·

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

You should pass a Control Area object to the Control Area field. You are passing a Station object. Connect the center port of your station to a control area, not another station.

Also, you'll get better answers if you post an actual model demonstrating the issue instead of screenshots.

5 |100000

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