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
|
|||
|
|||
message never received from network node to quay crane
Hi everybody,
I send a mesage from OnArrival of a NetworkNode to a Quay crane which is connected to it as follows: sendmessage(node("/GantryCrane1", model()),current,8); then in messagetrigger of the QuayCrane I use the following functions: pt( getname(msgsendingobject)); or pt(getname(parnode(1))); or msgparam(1) to print something to console but I get nothing. While it seems that "messagetrigger " is frequently called (because the window scrolbar is moving up and down quickly during the run) but the print command in it is not ran. SO how to receive that message inside the quay crane to ask the quay crane to let say stay IDLE for certain time until another transporter arrives. any comment aprpeciated. |
#2
|
|||
|
|||
Message
Shahin,
It seems strange the error you have reported. Try one of this solutions: 1) Have you checked that node("/GantryCrane1", model()) exists?? 2) Have you got the OnMessage Code at the Crane's OnMessage Trigger?? 3) Is the Crane connected to the network?? Good luck! |
The Following User Says Thank You to Juan Segui For This Useful Post: | ||
Shahin Gelareh (12-15-2011) |
#3
|
||||
|
||||
Hello Shahin,
I think you have written in your code: pt(getname(msgsendingobject())); and you have left the brackets only here. Further on have checked if the on arrival-trigger is fired. Jörg Last edited by Jörg Vogel; 12-15-2011 at 10:39 AM. Reason: another idea |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Shahin Gelareh (12-15-2011) |
#4
|
|||
|
|||
Hello Jörg,
Thank you for your comment. in the tree edit windows there a trigger called "messagetrigger" (I havnt seen OnMessage anywhere) and inside that I leave just a normal simple pt("hello");pr(); but even that does not appear in the output console. In fact this is a Quay crane not a Gantry --- sorry for my mistake. the braces i added also did not solve the issue. regards, |
#5
|
||||
|
||||
You need to toggle the node as Flexscript and build Flexscript after editing it from the tree.
Also, you aren't going to be able to do what you are trying to do by sending the quay crane a message. The task sequences in CT are complicated coordinated task sequences created by the CT dll based on the information you specify in the Planners. You do not have direct control over what happens with the objects like you do in regular Flexsim. Flexsim CT trades flexibility for simplicity. |
The Following User Says Thank You to Phil BoBo For This Useful Post: | ||
Shahin Gelareh (12-15-2011) |
Thread | Thread Starter | Forum | Replies | Last Post |
Network Node Error | Ryan Haferbecker | Q&A | 2 | 11-24-2010 12:05 PM |
Network node TreeView | shafizad | Q&A | 5 | 08-25-2010 04:33 AM |
How to color network node | Nico Zahn | Q&A | 5 | 05-25-2010 07:04 AM |
Is it possible to let quay crane load two container at same time? | zhang xin | Container Terminal (CT) Library | 3 | 12-14-2009 09:32 AM |
Release from Network Node | Gavin Douglas | Q&A | 2 | 06-12-2008 12:39 PM |