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
|
||||
|
||||
Setvarnum on Conveyor
Hi,
I attached a model in which I try to change speed of conveyor in Reset Trigger. "setvarnum" seems as if it doesn´t work, or do we have to use another command for this?
__________________
Hemmi |
#2
|
||||
|
||||
Sebastian,
here it is: conveyorsetspeed (obj conveyor, num toSpeed) Description Sets the target speed of the conveyor. The conveyor will accelerate/decelerate to the target speed based on its conveyor type's acceleration/deceleration. Example conveyorsetspeed(conveyor, 1); The help contains all commands in relation to the new conveyor modul in section conveyor commands. Best wishes Ralf FlexSim The decision point has a pick list option to change the conveyor's speed BTW. |
The Following 4 Users Say Thank You to RalfGruber For This Useful Post: | ||
syseo (04-16-2015) |
#3
|
||||
|
||||
Hi Sebastian,
If you want to change the speed on the Conveyor type property window, you can also use the following code. setnodenum(node("ConveyorSystem>variables/conveyorTypes/ConveyorType1/speed",model()),5); Regards, Arun KR Last edited by arunkrmahadeva; 04-18-2015 at 09:12 AM. Reason: add description |
The Following 3 Users Say Thank You to arunkrmahadeva For This Useful Post: | ||
Sebastian Hemmann (04-21-2015) |
#4
|
|||
|
|||
Setvarnum on Conveyor
Using both options told by Ralf and arunkrmahadeva works fine. Just complementing that you can see differents flexscript commands to work with conveyors. If you type conveyor you will see some as conveyorinfo, conveyorsenditem, conveyorsetspeed and others. I attached the model here.
__________________
Michael Machado - FlexSim Brasil |
The Following User Says Thank You to mefhsmflexsimbr For This Useful Post: | ||
Sebastian Hemmann (04-21-2015) |
Thread | Thread Starter | Forum | Replies | Last Post |
What is the difference between a Conveyor and Basic Conveyor | shivrash | Q&A | 2 | 07-21-2009 04:09 AM |