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 04-16-2015
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default 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?
Attached Files
File Type: fsm Setvarnum_Conveyor.fsm (67.6 KB, 305 views)
__________________
Hemmi
  #2  
Old 04-16-2015
RalfGruber's Avatar
RalfGruber RalfGruber is offline
FlexSim Software Products
 
Join Date: Jul 2007
Location: Orem, UT, USA
Posts: 195
Downloads: 37
Uploads: 0
Thanks: 518
Thanked 294 Times in 124 Posts
Rep Power: 345
RalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to beholdRalfGruber is a splendid one to behold
Default

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  
Old 04-18-2015
arunkrmahadeva's Avatar
arunkrmahadeva arunkrmahadeva is offline
CCS, India
 
Join Date: Sep 2013
Location: India
Posts: 71
Downloads: 67
Uploads: 0
Thanks: 285
Thanked 101 Times in 51 Posts
Rep Power: 145
arunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rougharunkrmahadeva is a jewel in the rough
Default

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  
Old 04-19-2015
mefhsmflexsimbr mefhsmflexsimbr is offline
FlexSim Brasil
 
Join Date: May 2013
Location: Campinas, SP Brasil
Posts: 23
Downloads: 10
Uploads: 0
Thanks: 73
Thanked 10 Times in 8 Posts
Rep Power: 92
mefhsmflexsimbr is on a distinguished road
Default 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.
Attached Thumbnails
Click image for larger version
Name:	conveyorcommands.png
Views:	350
Size:	15.7 KB
ID:	2826  
Attached Files
File Type: fsm Setvarnum_ConveyorbyMM.fsm (68.8 KB, 311 views)
__________________
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


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.