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
FAQ Downloads Calendar Search Mark Forums Read

Q&A Using Flexsim and building models

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2013
Gavin Douglas Gavin Douglas is offline
Flexsim User
 
Join Date: Feb 2008
Posts: 65
Downloads: 1
Uploads: 0
Thanks: 27
Thanked 1 Time in 1 Post
Rep Power: 148
Gavin Douglas is on a distinguished road
Default Counting Flow Items

I was wondering if I could count the number of flow items being “packed” onto a pallet when the combiner is still collecting items. I tried to put a counter on the “on entry” trigger all doing something like: if (port==2) counter++; however this is yielding strange results. Of course I could wait until the process is finished and just do: content (item). However, this doesn’t really help me. Any help? Thanks?
__________________
"A bird is an instrument working according to mathematical law, which is within the capacity of man to reproduce." -Leonardo da Vinci, 1502
Reply With Quote
  #2  
Old 03-07-2013
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: 769
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

You can just use getvarnum(<combinerobject>, "currentcomponentsum") for the current pallet.

For all items you should be able to increment your counter when port>1.
Reply With Quote
The Following User Says Thank You to Jason Lightfoot For This Useful Post:
Gavin Douglas (03-08-2013)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flow Items imported shape don't appear on other computers Ayoub EL BOUCHTILI Flexsim Student Forum 1 02-25-2013 07:17 PM
Indexnum of 3d shape flow items shashanktrivedi Q&A 2 04-25-2011 04:51 AM
Recycling Flow Items Joe Allen Q&A 1 09-16-2008 03:57 PM
Sequence of Flow Items Through a Processor Anthony Timmiss Q&A 0 06-11-2008 02:26 AM
Flow items with states AlanZhang Q&A 16 11-30-2007 10:32 AM


All times are GMT -6. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.