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-12-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 95
Liang Wen Yin is on a distinguished road
Default Coding problem

Hai, I have faced with some problem in my model. I have write the coding in send to port tab of the source queue but it seems like doesn't work well. For the first 3 ranking of itemtype2, the items will send to the processor based on the ranking, but after that, it will stuck at the source queue. It also happend to the itemtypes 1.

Can you please help me out? Is it there have problem with my coding?
If I'm not clear in explanation, please let me know. Thank you.

URGENT...

Best Regards;
Liang Wen Yin
Attached Thumbnails
Click image for larger version
Name:	problem.jpg
Views:	141
Size:	16.3 KB
ID:	1895  
Attached Files
File Type: fsm Concept.fsm (138.7 KB, 99 views)
  #2  
Old 08-13-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

Try having your logic in one place rather than the sendto, pull strategy and pull requirement.
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post:
Liang Wen Yin (08-13-2012)
  #3  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 95
Liang Wen Yin is on a distinguished road
Default

Dear Jason Lightfoot,

Thanks for your advice. I have clear up the unnecessary code in my model. My model are run well initially, but after the itemtypes2 attain ranking no.281 , the items would not send out again & stuck on the source queue. This also happened to the itemtypes3 as shown in the figure that I attached. For itemtypes1, it can run well. Can you please assist me?

Thanks.

Best Regards,
Liang Wen Yin
Attached Thumbnails
Click image for larger version
Name:	Figure.jpg
Views:	127
Size:	20.1 KB
ID:	1898  
Attached Files
File Type: fsm Lattest Model.fsm (137.9 KB, 82 views)
  #4  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 95
Liang Wen Yin is on a distinguished road
Default

Hai, I solved my problem already.
The Following User Says Thank You to Liang Wen Yin For This Useful Post:
Jason Lightfoot (08-13-2012)
  #5  
Old 08-13-2012
Liang Wen Yin's Avatar
Liang Wen Yin Liang Wen Yin is offline
Flexsim User
 
Join Date: Aug 2012
Posts: 15
Downloads: 2
Uploads: 0
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 95
Liang Wen Yin is on a distinguished road
Default

Hello, everyone.

What are the code that should I write so that the operator will not carry one item only to the processor queue if there have consecutive ranking of items. Example, at the source queue there already have items with ranking no2, no3 and no4, the operator should carry theses three items all at once.

Thanks.
Liang Wen Yin


Thread Thread Starter Forum Replies Last Post
Questions on coding Jack Lai Q&A 6 02-07-2012 12:04 AM
Need help for coding on lifts. chrisquek Q&A 5 11-25-2008 03:00 AM
A pitfall in Flexsim coding AlanZhang Gripes and Goodies 7 05-16-2008 03:37 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.