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 05-28-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default 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
  #2  
Old 05-29-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

It might be easier to add that data as lables using the Source schedule or arrival sequence, and not the interarrival time.
  #3  
Old 05-29-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

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  
Old 05-29-2012
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

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  
Old 05-29-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

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?
Attached Thumbnails
Click image for larger version
Name:	Capture.PNG
Views:	107
Size:	1.4 KB
ID:	1773  

Last edited by jasonjj; 05-29-2012 at 05:22 PM.
  #6  
Old 05-30-2012
Esther Bennett Esther Bennett is offline
Flexsim User
 
Join Date: Mar 2008
Posts: 115
Downloads: 27
Uploads: 0
Thanks: 103
Thanked 116 Times in 50 Posts
Rep Power: 271
Esther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to allEsther Bennett is a name known to all
Default

Hello Jason,

The processor has an option "by global table lookup" for the process time. You can use this option.

Esther
  #7  
Old 05-30-2012
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

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)
  #8  
Old 05-30-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

here is my model.

i am trying it for processor 1 and processor 2

Last edited by jasonjj; 05-30-2012 at 11:04 AM.
  #9  
Old 05-30-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

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  
Old 05-30-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

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 !
  #11  
Old 05-30-2012
jasonjj jasonjj is offline
Flexsim User
 
Join Date: May 2012
Location: Netherlands
Posts: 23
Downloads: 5
Uploads: 0
Thanks: 13
Thanked 0 Times in 0 Posts
Rep Power: 98
jasonjj is on a distinguished road
Default

ok i did it !
  #12  
Old 06-04-2012
Jens Mühlheimer Jens Mühlheimer is offline
Flexsim User
 
Join Date: Jul 2008
Location: Stuttgart, Germany
Posts: 140
Downloads: 8
Uploads: 0
Thanks: 40
Thanked 35 Times in 27 Posts
Rep Power: 174
Jens Mühlheimer will become famous soon enoughJens Mühlheimer will become famous soon enough
Default

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


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.