ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > Flexsim CT > Container Terminal (CT) Library
Downloads

  #1  
Old 11-03-2011
Jack Lai Jack Lai is offline
Flexsim User
 
Join Date: Nov 2011
Posts: 32
Downloads: 17
Uploads: 0
Thanks: 22
Thanked 0 Times in 0 Posts
Rep Power: 106
Jack Lai is on a distinguished road
Default Problem on Itemtype id

I am now trying the gate part, in my test, I hope different type of containers, like Empty/Laden/No container on trucks can have different inception time when they go through the gate house, so I try to assign different container type with a itemtype id. However, I don't know how to set the container id. When a truck is generated by the gate planner, all container id is 0, but the box generated by a source can have different id. Does anyone know how to set id to the container on trucks that generated by the gate planner? Many thanks.
Attached Thumbnails
Click image for larger version
Name:	itemid.jpg
Views:	125
Size:	78.3 KB
ID:	1541  
Attached Files
File Type: fsm gate.fsm (1.11 MB, 90 views)
  #2  
Old 11-03-2011
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

In a trigger on a Gate object, you can reference the truck using "item".

You can use the content(item) command to determine whether the truck has a chassis and/or a container.

If the truck doesn't have a chassis, content(item) will be 0.
If the truck has a chassis and no container, content(item) will be 1.
If the truck has a chassis and a container, content(item) will be 2.

If the truck has a container, you can get the container type (This has a special meaning in CT) using this command:
Code:
getcontainerstat(getcontainerid(rank(item,2)),CONTAINER_STAT_TYPE)
The number returned is the row number in the Container Types table.
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post:
Jorge Toucet (11-04-2011)
  #3  
Old 11-07-2011
Jack Lai Jack Lai is offline
Flexsim User
 
Join Date: Nov 2011
Posts: 32
Downloads: 17
Uploads: 0
Thanks: 22
Thanked 0 Times in 0 Posts
Rep Power: 106
Jack Lai is on a distinguished road
Default

Hello, I am now trying another way to simulate the gatehouse inception process. I setup a model; use the source to generate a box with type 1 to 4. In this model, I hope different types of box will have different distributions in the processor. But I don’t know how to set it in the processor. Many thanks for advice.
Attached Files
File Type: fsm 01gate.fsm (44.5 KB, 84 views)
  #4  
Old 11-07-2011
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

Use the "Cases by Value" pick option for the Process Time and type the distributions into each case.
The Following User Says Thank You to Phil BoBo For This Useful Post:
Jack Lai (11-07-2011)


Thread Thread Starter Forum Replies Last Post
Process Maximum Content (depends on itemtype) shafizad Q&A 4 03-04-2015 07:53 AM
Dynamic Scripting itemtype shashanktrivedi Q&A 3 05-25-2011 10:44 PM
Can i divide a itemtype? wilmermoncada Q&A 2 11-27-2009 08:41 AM
Get itemtype for a flowitem in a task KelvinHo Q&A 4 10-21-2009 09:47 PM
how to get number of itemtype Vic Li Q&A 11 08-19-2009 11:20 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.