ATTENTIONThis 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 |
#1
|
|||
|
|||
Source Flowitem properties using Global table
hi
i trying to do a small assignment. From source i want it comes 8 flowitem with specifict properties like Platenumber, length, width, processtime to a conveyor . i put this data in a Global table. but i dont understand how i can connect this global data to source output. Thanks |
#3
|
|||
|
|||
Thanks .. i was able to do that.. My next intention is to use different process time for each of this 8 flowitem. so i put this process time in a global table and set this in Processor's process time .
How i can check that the processor is actually following the data from global table? process time really varying for different flowitem . |
#4
|
||||
|
||||
Think the easiest way would be to connect a Visual Tool to your Processor via Centerport Connection.
Visual Tool can show processtime if you make it show Text and set "Display Object Stat" as shown text.
__________________
Hemmi |
#5
|
|||
|
|||
Object stat: 1 , it shows like this and dont change anymore.
i actually want the Processor's Process time should follow the time i set in global table. which command i should use ? by default Row = getitemtype(item); Col =1 i have to change this command? Last edited by jasonjj; 05-29-2012 at 05:22 PM. |
#7
|
||||
|
||||
Hi jasonjj,
there is a way to reference to a tablecell. But for this you just should share your model. Comand would be something like: return gettablenum("YourTable",getinput(current),1); Alternatively the standard way would be, to give item all informations (via labels) and get this informations on different processes. As far as I know you can include this in source. Maybe this gives you another idea to solve your task easier!?
__________________
Hemmi Last edited by Sebastian Hemmann; 05-30-2012 at 02:10 AM. |
The Following User Says Thank You to Sebastian Hemmann For This Useful Post: | ||
jasonjj (05-30-2012) |
#9
|
|||
|
|||
In the template for the Visual Tool text that shows Object Statistics, double click the statistics "Content" (which shows 1 when an item enters) in order to get a list of available statistics (it doesn't pop up automatically every time I use the template, hence the need to double click) , and choose "CurrentProcessTime".
Also step through your model and look at the event list to check that you have a process finish event at the time you expected. |
#10
|
|||
|
|||
ok it seems following my global table processing time now ! but the problem i see is the processtime not exactly taken for exact itemtype. it looks random !
|
#12
|
|||
|
|||
I had a similar problem some time ago. Different process times depending on machines and itemtype.
So I created a GlobalTable with all the process times in the following format: Machine | 301 | 302| 303| 304 --------------------------------------- 1324-01 | 12 | 12 | 22 | 33 --------------------------------------- 1324-02 | 22 | 22 | 40 | 54 First column includes the machine numbers in string format, from the second column on I used number data for the itemtypes and process times. Every processor has a label named "machine" with its machine number (Format: 1234-01) The process time code now looks like this: Code:
string tablename = "processtimes"; int row = 1; int col = 1; for (row;row <= gettablerows(tablename);row++) // Look through table rows { if (comparetext(gettablestr(tablename,row,1),getlabelstr(current,"machine"))) { for (col;col <= gettablecols(tablename);col++) // Look through cols { if (gettablenum(tablename,1,col) == getitemtype(item)) { break; } } break; } } return (gettablenum(tablename,row,col) |
Thread | Thread Starter | Forum | Replies | Last Post |
Plotting Global Table | shashanktrivedi | Q&A | 2 | 06-17-2011 05:50 AM |
Tasksequence by using global table | Jelmer Js | Q&A | 7 | 04-20-2011 09:01 AM |
Global Table string value | Congshi Wang | Q&A | 1 | 05-24-2010 07:38 AM |
Can I make a column of a global table to type table? | qin tian | Q&A | 0 | 10-01-2008 09:27 PM |
Global Table Number Precision | Sung Kim | Tips and Tricks | 8 | 03-27-2008 04:25 PM |