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 Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 08-27-2015
Rahel Carolina
Guest
 
Posts: n/a
Downloads: 30
Uploads: 0
Default Different Bin Size

Hi Forum,

I need to create 5 different size of bin in my model, so currently on reset, the racks will create some bins with specific material number and type of bin. (see picture attached)
I wanted to set the size of bin automatically on reset (size x, y, and z are stated in Global Table).
If it's possible, I want to set the size of bin on reset without having to change all the code at each rack. As you can see I have a lot of racks in my model.

I put this code OnRunStart (Model trigger) but nothing happened. Can someone please help me?
Thanks before.

BR,
Rahel
Attached Thumbnails
Click image for larger version
Name:	BinSize.jpg
Views:	355
Size:	293.7 KB
ID:	3003  
  #2  
Old 08-27-2015
Jing Chen
Guest
 
Posts: n/a
Downloads: 2
Uploads: 0
Default

Hi! Rachel

I think maybe its's a reference error.
Try "treenode Binsnode = node("/Tools/FlowItemBin/Tote/Tote",model());" to find the right path of Tote in FlowItemBin.

Hope it helps
  #3  
Old 08-28-2015
Rahel Carolina
Guest
 
Posts: n/a
Downloads: 30
Uploads: 0
Default

Hi Jing Chen,

Thanks for replying.
But it's still not working
Is it maybe because there are no bins/totes yet when the run starts?

Do anyone have any ideas?
  #4  
Old 08-28-2015
Jing Chen
Guest
 
Posts: n/a
Downloads: 2
Uploads: 0
Default

Well,
Rachel, It is really strange.

I attach a simple model, You can change the y size by changing the value in table.
I also write the codes in OnRunStart trigger, And it works fine.
Attached Files
File Type: fsm Change_FlowBinSize_OnRunStart.fsm (14.3 KB, 323 views)
  #5  
Old 08-28-2015
Rahel Carolina
Guest
 
Posts: n/a
Downloads: 30
Uploads: 0
Default

Hi Jing Chen,

Thanks for the model.
I guess I cannot use in OnRunStart trigger because there are command:

string TypeofBin = getlabelstr(Binsnode,"BinType");

that command functioned to read the label in Totes and get the "BinType" first before setting the size.
But when the run starts, there are still no value in the label.
  #6  
Old 08-28-2015
Jing Chen
Guest
 
Posts: n/a
Downloads: 2
Uploads: 0
Default

When did you set the label value in ItemBin?
It should be set (maybe in OnModelReset ?)before the OnRunStart trigger fire to ensure getting the correct value in the label.
  #7  
Old 09-01-2015
Rahel Carolina
Guest
 
Posts: n/a
Downloads: 30
Uploads: 0
Default

I set the value in the label when the bins enter the flow rack. But it's ok.
I put the code in each flow rack for now. Because I need to present my simulation this Friday.
Thanks for replying anyway

Tags
flowitem, size


Thread Thread Starter Forum Replies Last Post
Model Size Reached??? Huh? CasimiraFederspiel Installation 1 11-14-2012 12:32 AM
Changing grid size Christian Norregaard Q&A 4 04-02-2012 03:49 AM
array size juan alberto Q&A 0 12-21-2010 03:03 AM
Crane Frame Size Martijn van Oostenbrugge Q&A 0 08-17-2010 07:30 AM
optimal size of a 3DS file David Chan Q&A 4 04-28-2008 08:05 AM


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.