question

Mohamed Farhoud avatar image
0 Likes"
Mohamed Farhoud asked Adrian Haws commented

Task sequence unload

Hi, I have the following situation: I added my TS in Rack6's Flow properties. I managed to pick up the blue and Aqua Item types (As needed). I want to add a code to tell the Forklift to unload the blue and Aqua at the Queue. Every time I activate the Travel and Unload tasks " 2 lines in the end of the mentioned code" it messes up the whole logic.

My thinking out of the trial and error is: I should replace the "Involved1" which is "Item" in this case to something that would only point to blue and Aqua. I have no clue how to do it though.

inserttask(ts,TASKTYPE_UNLOAD,item (should be changed), destination,opipno(current,port));

Thanks- Mohamed

(Question related to another here)

FlexSim 16.1.0
transportertask sequencetravelunload
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

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Adrian Haws commented

Hey Mohammed I think I managed to accomplish what you were trying to do. First, instead of calling tasksequence logic in the Use Operator field, I created a Global ItemList in the global tools (with the default fields such as itemType etc). Then I just had the rack push out going items to the list. I had the Queue then pull items from the list, and added a query to the pull designating which items I wanted. Finally I set the Transporter's capacity to 2 so that it could carry both items at a time. I've included an updated version of your model for you to look at. mohamedfarhoudexample.fsm


· 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.

Mohamed Farhoud avatar image Mohamed Farhoud commented ·

Hello @Sam Stubbs This is very neat and elegant. Very well understood. Thanks a lot.

0 Likes 0 ·
Pawel Pawlewski avatar image Pawel Pawlewski commented ·

Hello @Sam Stubbs & @Mohamed Farhoud

Sorry - but it is not neat and elegant from my point of view. Mohammed started to learn a little about Agent Base Simulation ABS and his first task to do was to add a little inteligence to the Operator - now the control is outside Operator in Global Item List so this is not propare way. I will meet Mohammed and I will explain him again his goal :-)

@Pawel Pawlewski

0 Likes 0 ·