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.

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.