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 06-22-2012
syseo's Avatar
syseo syseo is offline
Flexsim User
 
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default How can I control spatialx,y,z value onLoad trigger in TaskExecuter?

I want to relocate the items in TaskExecuter.
So I used setloc() command to do it onLoad trigger in the first TaskExecuter, but in the next TaskExecuter the items can't be relocated using setloc.

So I want to use spatialx, y, z attribute after finding them in the tree.
But set(spatialx(item), x_pos) command is not effective.

How can I control it onLoad trigger?

I want anyone's help.
  #2  
Old 06-22-2012
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

Sounds like the OnLoad trigger of the second TaskExecuter is not being executed. Have you confirmed that it is?

Can you post a small model of your issue?

I'm guessing you are passing an item from one TE to the next, and depending how you do it the OnLoad may not fire.
  #3  
Old 06-22-2012
syseo's Avatar
syseo syseo is offline
Flexsim User
 
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default Thank you for your concern. Kris

I attach the example model of my working.

The model has a problem not finished.
The queue is displayed in high place and I don't know the reason.
This problem should be fixed and my above issue is to display the item correctly relocated in the second taskexecuter onLoad trigger.

I hope your answer.

Thanks.
  #4  
Old 06-22-2012
syseo's Avatar
syseo syseo is offline
Flexsim User
 
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default Ooops. I attach it again.

Ooops. I attach it again.
Attached Files
File Type: fsm 2s4s_DoubleAGV_Model.fsm (45.2 KB, 77 views)
  #5  
Old 06-22-2012
Kris Geisberger Kris Geisberger is offline
Flexsim Canada, Forum Moderator
 
Join Date: Aug 2007
Location: Canada
Posts: 209
Downloads: 54
Uploads: 1
Thanks: 99
Thanked 389 Times in 133 Posts
Rep Power: 451
Kris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud ofKris Geisberger has much to be proud of
Default

Your model confirms that the OnLoad is not being executed. I don't think the OnLoad trigger is supposed to fire because you told the first TE to unload to the second TE... so technically the second TE is not doing the loading.

You should probably be using a coordinated task sequence, or at least a sub task in your model. However to answer your question in following what you have done, if you really want to use the OnLoad you can manually call the OnLoad after the unload task in your task sequence:

inserttask(ts,TASKTYPE_NODEFUNCTION,getvarnode(teS huttle,"loadtrigger"),item);
The Following User Says Thank You to Kris Geisberger For This Useful Post:
syseo (06-22-2012)


Thread Thread Starter Forum Replies Last Post
How to using TaskExecuter ... Wen Hsing Huang Q&A 4 05-29-2011 07:52 AM
Dispatcher: Which TaskExecuter did the task? Stefan Trabut Q&A 3 04-05-2011 05:49 AM
a question about taskexecuter oliver xie Q&A 1 01-18-2011 03:19 AM
How to transfer a flowitem from a taskexecuter-team to another taskexecuter-team? Frans Zeng Q&A 12 05-20-2010 11:23 PM
TaskExecuter should unload more then one item...How? TilmanDHL Tips and Tricks 1 01-28-2009 01:54 AM


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.