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 10-16-2009
juan alberto juan alberto is offline
Flexsim User
 
Join Date: May 2009
Location: Valencia, Spain
Posts: 74
Downloads: 14
Uploads: 0
Thanks: 19
Thanked 3 Times in 2 Posts
Rep Power: 138
juan alberto is on a distinguished road
Default Content table

Hi,

I have a question on racks.

Normally, when it enters a box to the rack, automatically adds 1 to the variable content to the rack.

My question is:

How can I do to that on entering a box on the rack, do not add one in the variable contenttable?

Thanks.
  #2  
Old 10-19-2009
Dirk-Jan Dirk-Jan is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Utrecht, Netherlands
Posts: 43
Downloads: 35
Uploads: 0
Thanks: 11
Thanked 22 Times in 16 Posts
Rep Power: 170
Dirk-Jan will become famous soon enough
Default

Hi Juan,

I am not sure why you want to do that, but it is possible on the OnEntryTrigger to set the value back with 1.

The following code written OnEntry of the warehouserack can do this:


//-----------------------------------------
// Set content table 1 back on entry of item.
treenode ContentTable = getvarnode(current,"contenttable");
int Bay = rackgetbayofitem(current, item);
int Level = rackgetlevelofitem(current, item);

settablenum(ContentTable, Bay, Level, gettablenum(ContentTable, Bay, Level ) - 1 );

//-----------------------------------------
The Following User Says Thank You to Dirk-Jan For This Useful Post:
Rachid Kolfin (10-19-2009)


Thread Thread Starter Forum Replies Last Post
Starting content in the Queue Bartosz Misiurek Q&A 4 10-04-2009 02:25 PM
Can I make a column of a global table to type table? qin tian Q&A 0 10-01-2008 09:27 PM
Batch/Max Content Gavin Douglas Q&A 4 07-09-2008 12:28 AM
School table asid_amin_o Q&A 10 02-25-2008 03:57 AM
How to get interval average,max,etc of a queue content ? qin tian Q&A 5 02-14-2008 10:11 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.