witht35

download witht35

of 13

Transcript of witht35

  • 8/12/2019 witht35

    1/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 1 of 13

    Author: Lanner Group Customer Support Centre

    WITNESS Hints & TipsVersion 3.514/06/01

  • 8/12/2019 witht35

    2/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 2 of 13

    Author: Lanner Group Customer Support Centre

    OverviewHow to use this document:

    This document will be sent by e-mail to all maintained WITNESS customers who

    wish to receive it. The mail will be sent out periodically with a selection of hints &tips to help you use your WITNESS system more effectively. Each issue more tipswill be added and the contents list will be updated. To remove yourself from thelist of people who receive this mail please reply to this e-mail with the textREMOVE in the subject field.

    To search for a tip relating to a particular area then you can use the Find optionfrom the Tools menu.

    The Whats New section in this document will contain a brief summary of newtips in this issue.

    In the body of detail for each tips there will be a reference to the Tip number onour Web site www.lanner.com if the tip is included there in the Support page.Where there is an example model for the tip you can download this from the Web.You may need to Register for on-line support which can be done from thesupport page. We will mail you back with the User name and Password. Theaddress direct to the relevant tip is given. Clicking on this will take you directly tothe tip on the Web.

    W h a t s N e w New tips this issue:

    Tip 3.021: Property Actions for all elements.

    Tip 3.022: In-place editing of path display.

    Tip 3.023: The use of model buttons in WITNESS 2001.

    Tip 3.024: How to record the run time for your model.

    Tip 3.025: Buffered Metafile drawing.

    There is also a direct reference to the tip on the Web where relevant. See abovefor details.

    http://www.lanner.com/http://www.lanner.com/http://www.lanner.com/
  • 8/12/2019 witht35

    3/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 3 of 13

    Author: Lanner Group Customer Support Centre

    Overview................................................................................................................................................2

    Whats New.......................................................................................................................................2

    Modelling tips.......................................................................................................................................4

    Tip 3.001: Labour moves a batch of parts. ..........................................................................4

    Tip 3.002: Different cycle times on machines. ...................................................................4

    Tip 3.003: Customer tip: Documenting Part Routes in Excel. ......................................5

    Tip 3.004: How to model a machine which processes parts in batches where thebatch size may vary......................................................................................................................5

    Tip 3.005: How to model a machine which can setup after its cycle.........................5

    Tip 3.006: Randomly select between two identical machines / activities with a50/50 chance of selecting either one. ....................................................................................6

    Tip 3.007: Fixed maintenance schedule for machines. ...................................................6

    Tip 3.008: How to move windows when you can not see the title bar. ....................7

    Tip 3.009: How to load a model when you open WITNESS . ........................................7

    Tip 3.010: How to stop your model running when all jobs are finished. ..................7

    Tip 3.011: An assembly operation requiring different quantity of material............8

    Tip 3.012: Customer tip: Excel Link Advice. .......................................................................8

    Tip 3.013: Changing the name of an element based on a value read from Excel.9Tip 3.014: Different setup time for each cycle of a multi-cycle machine / task ofa multi task activity. .....................................................................................................................9

    Tip 3.015: How to rewind a read file......................................................................................9

    Tip 3.016: The use of the MATCH rule...................................................................................9

    Tip 3.017: The use of WITNESS system variables. .........................................................10

    Tip 3.018: How to create a message box that gives a message such as"Simulation is finished ". ...........................................................................................................10

    Tip 3.019: Moving a batch to queue / buffer. ...................................................................11

    Tip 3.020: How to easily get the total Work in Progress or Total NumberShipped for all parts or entities in your model. ................................................................11

    Tip 3.021: Property Actions for all elements.....................................................................11

    Tip 3.022: In-place editing of path display. ......................................................................12Tip 3.023: The use of model buttons in WITNESS 2001. .............................................12

    Tip 3.024: How to record the run time for your model. ................................................13

    Tip 3.025: Buffered Metafile drawing...................................................................................13

  • 8/12/2019 witht35

    4/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 4 of 13

    Author: Lanner Group Customer Support Centre

    Modelling tips

    T ip 3 . 0 0 1 : L a b o u r m o v e s a b a t c h o f p a r t s .

    This is Hint #67 on our Web site.

    http://www.lanner.com/Secure/Tips/hint67.html An example model can bedownloaded from the Web.

    This model shows how one or more labour can be made to move a batch of parts.The machine Shelf is a batch machine with a batch quantity of 10. One Man1 isrequired to load the parts into the machine. This is achieved by the ruleIFNPARTS(StageTable) = 10MATCH/ANY Core out of StageTable With Man1 Using Path #(1)

    AND Core out of StageTable Using Path #(9)ELSEWaitENDIF

    Two Man2 are required to unload the machine. This is achieved using the outputruleIFNAVAIL(Man2) = 2 AND NPARTS(ELEMENT) = 10 AND M= 1PUSHto OutBuffer With Man2#(2) Using PathELSEIFNPARTS(ELEMENT) < 10PUSHto OutBuffer Using PathELSEWaitENDIFThe check in the output rule is necessary to prevent the parts moving without thelabour if the labour is not free.In Model / Options on the Paths tab the "Enable Labour Walk To Idle" and "EnableLabour Walk To Move Parts" options have been checked. Also the "Pseudo PathTraverse Time" has been set to PATHLENGTH (ELEMENT) / 10.0. This ensures thetraverse time is proportional to the distance between elements (in this case divideby 10 is a speed up factor).

    T ip 3 . 0 0 2 : D i f fe r e n t c y c l e t i m e s o n m a c h in e s .

    This is Hint #2 on our Web site. http://www.lanner.com/Secure/Tips/hint2.htmlAn example model can be downloaded from the Web.

    Parts have different cycle times on machines as shown below.Machine

    Mach001 Mach002

    Part001 9.247 9.739

    Part002 8.728 8.685

    Rather than using if statements each time a part enters a machine, use a variableand an attribute to reference the cycle time.

    http://www.lanner.com/Secure/Tips/hint67.htmlhttp://www.lanner.com/Secure/Tips/hint2.htmlhttp://www.lanner.com/Secure/Tips/hint2.htmlhttp://www.lanner.com/Secure/Tips/hint67.html
  • 8/12/2019 witht35

    5/13

  • 8/12/2019 witht35

    6/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 6 of 13

    Author: Lanner Group Customer Support Centre

    this case the setup is triggered by value change of the variable setmachine. Thisis checked and changed at the end of the first cycle. In the model the setup willoccur for every part. You could change the condition here to reflect reality foryour model. The finish quantity for cycle 1 is 2 and the output quantity is 1. Thiscreates a second part at the end of the cycle. The actions on finish of cycle 1change the second part to type dummy. The output rule pushes the original part

    to ship. You would push the part to the next stage in your process here. Thedummy part stays at the machine for the setup and the dummy part is used forthe setup and cycle 2. In this way the original part leaves the machine at the endof the first cycle and the setup then occurs.

    T ip 3 .0 0 6 : R a n d o m l y s e l ec t b e t w e en t w o i d e n t i ca l m a ch i n e s

    / a c t i v i t i e s w i t h a 5 0 / 5 0 c h a n ce o f s e l e c t i n g e i t h e r o n e .

    This is Hint #1 on our Web site. http://www.lanner.com/Secure/Tips/hint1.htmlAn example model can be downloaded from the Web.

    Random selection between two identical machines / activities with a 50/50chance of selecting either one. If the machine / activity selected is busy, selectthe other one (if available). Both machines / activities will be utilised equally overtime. Note that the machine / activity dummy is used to pull the parts / entitiesfrom the buffer / queue and an attribute x is set in actions on finish. This is wherethe 50/50 sample is taken. This ensures that if both machines / activities areunavailable then the sample will not be taken again. This is a more accuratemodel since x will not change for any specific part / entity.

    T ip 3 . 0 0 7 : Fi x e d m a i n t e n a n c e s ch e d u l e f o r m a c h i n e s.

    This is Hint #3 on our Web site. http://www.lanner.com/Secure/Tips/hint3.htmlAn example model can be downloaded from the Web.

    The following is a method for modeling a predetermined preventative and fixedmaintenance schedule for a work area with several machines of the same type(defined in WITNESS as a machine element with a quantity > 1). For example,you may have 5 milling machines of the same type on which you want to performpreventative maintenance. The idea is to perform preventative maintenanceindividually, on a weekly basis, so they will not all be out of service during a busyproduction period.In WITNESS, the standard method for modeling a fixed preventative maintenanceschedule for a machine involves adding a breakdown activity to the detail of the

    machine, setting the Breakdown Mode to Available Time, and entering a value forTime Between Failures and for Repair Time. Unfortunately, if you have a quantityof greater than one for this machine, ALL of the machines will breakdown at thesame time.The solution offered here is to use Forced Breakdown and Repair functions (newin WITNESS 8.0) to force each of the machines of a given type first to breakdownat a particular system time, then to repair at a later time.System time values when each machine is scheduled to start and finish itspreventative maintenance period are read into the variable SCHEDULE from theread file DOWNSCHD in Model/Initialize Actions. The Actual data file isDOWNSCHD.TXT and is shown in the table below. This schedule is repeated every36 hours. Two dummy machines and a dummy part are used to check the

    variable SCHEDULE every 2 hours.Oven

    http://www.lanner.com/Secure/Tips/hint1.htmlhttp://www.lanner.com/Secure/Tips/hint3.htmlhttp://www.lanner.com/Secure/Tips/hint3.htmlhttp://www.lanner.com/Secure/Tips/hint1.html
  • 8/12/2019 witht35

    7/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 7 of 13

    Author: Lanner Group Customer Support Centre

    Time 1 2 3 4 5 6 7 8 9

    Down 2 6 10 14 18 22 26 30 34

    Up 4 8 12 16 20 24 28 32 36

    T i p 3 .0 0 8 : H o w t o m o v e w i n d ow s w h e n y o u ca n n o t s ee t h e

    t i t l e b a r .

    This is Hint #72 on our Web site.http://www.lanner.com/Secure/Tips/hint72.html

    Sometimes you may find that the title bar of your windows cannot be seen so thatyou can not move that window. The window can be moved using some standardfunctionality of windows applications. You can use the keyboard to reposition thewindow.Make the required window active. Use Alt and - to select the system menu forthat window Select M to Move. The cursor keys can then be used to position the

    window.Note also that Alt and spacebar can be used to reposition the currently selectedapplication.

    T ip 3 . 0 0 9 : H o w t o l o a d a m o d e l w h e n y o u o p e n W I T N ESS .

    This is Hint #73 on our Web site.http://www.lanner.com/Secure/Tips/hint73.html

    By default, WITNESS will load startup.mod when you open WITNESS from thestart menus. You may wish to create a shortcut to load your own startup model ora project model. This can be done by creating a shortcut to WITNESS first. This

    can be done by right-clicking on witness.exe from windows explorer and selecting"create shortcut". This shortcut can then be dragged on to your desktop to createa shortcut there. To specify the model to open you should add a secondparameter which must be the model name including its path. This parametershould be in double quotes. If there is a space in the folder name you will need todownload the latest upgrade which allows spaces in the model folder name. Thefull command line will look something like this -"C:\Witness 2000\witness.exe" "C:\My models\Mystartup.mod"

    T ip 3 .0 1 0 : H o w t o s t o p y o u r m o d e l r u n n i n g w h e n a l l j o b s a r e

    f i n i s h e d .

    This is Hint #74 on our Web site.http://www.lanner.com/Secure/Tips/hint74.html An example model can bedownloaded from the Web.

    When running your model you may not know how long you need to run it. Youmay be investigating how options may affect the time to process a certainnumber of jobs. This model shows one way in which this can be achieved. Thevariable totalWIP is updated in actions on create and actions on leave for the

    jobs. In actions on leave there is a check to see if this value is zero. If totalWIP iszero then the STOP action is used to stop the model run. Note also that the stringvariable message is set and the OPENWIN action used to display a message.

    Please note that this method assumes that there will always be jobs in the systemuntil the last one is complete.

    http://www.lanner.com/Secure/Tips/hint72.htmlhttp://www.lanner.com/Secure/Tips/hint73.htmlhttp://www.lanner.com/Secure/Tips/hint74.htmlhttp://www.lanner.com/Secure/Tips/hint74.htmlhttp://www.lanner.com/Secure/Tips/hint73.htmlhttp://www.lanner.com/Secure/Tips/hint72.html
  • 8/12/2019 witht35

    8/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 8 of 13

    Author: Lanner Group Customer Support Centre

    T ip 3 . 0 1 1 : A n a s sem b l y o p e r a t i o n r e q u i r i n g d i f f e r e n t q u a n t i t y

    o f m a t e r i a l .

    This is Hint #7 on our Web site. http://www.lanner.com/Secure/Tips/hint7.htmlAn example model can be downloaded from the Web.

    The main objective of this example is to show you an applicable example on howto combine Sequence rules with Name and Integer variables. This example willalso review some tips on how to use Read files, variable input quantity forassembly machines, and elements with multiple quantities.The following description will describe the system layout as well as giving yousome additional information on the basic operation of the plant.Five different parts or materials are assumed to be always available at thebeginning of this model. Whenever needed, a feeder station pulls these parts intothe system. The goal of this station will be to replenish a material storage area,located right before an assembly machine. The feeder station contains fivedifferent machines. Each one of these machines is dedicated to one specificmaterial and has a different cycle time (1, 2, 3, 4, 5 minutes for feeders 1through 5, respectively). The material storage area contains five groups ofbuffers, one for each type of material. The number of buffers for each groupvaries between two and four: three for the group of buffers for materials one andfive, four for the groups of buffers for materials two and four, and two for thegroup of buffers for material three.As the different materials are being sorted into their respective buffers, theassembly machine should be ready to start the assembly of the first combinationof materials. The assembly machine in this model could be an automated machinethat can assemble parts based on a combination of various materials andquantities. If needed, this machine is also capable of running a combination more

    than once before switching combinations. The data for this machine should becontained in an external file so that the modeler can experiment with theproduction schedule. The external file should contain at least the followinginformation: The name of the buffer group from where the parts should beretrieved, the number of parts to be taken from each buffer group, and thenumber of consecutive assemblies to be performed before switchingcombinations. Assume that the cycle time for each assembly combination is 10minutes. Once an assembly operation has taken place, the finished part shouldleave the system and a counter for each type of assembly operation should bekept.

    T ip 3 .0 1 2 : Cu s t o m e r t i p : Ex c e l L in k A d v i c e .

    This is Hint #75 on our Web site.http://www.lanner.com/Secure/Tips/hint75.html

    This tip was supplied by a customer. There are many things that can affect theperformance of linkage between WITNESS and Excel. Operating system, Memory,Other applications running can all change the robustness and operation of thelink.One user has reported the following two tips that may help :i) Disabling the Analysis Toolpak in the Excel Add-ins menu prevented a lock upon his systemii) Opening Excel before running WITNESS. This user found that this was

    necessary on his machine if he wanted to run an Excel linked WITNESS modelimmediately after booting up.Thanks to our customer for this advice.

    http://www.lanner.com/Secure/Tips/hint7.htmlhttp://www.lanner.com/Secure/Tips/hint75.htmlhttp://www.lanner.com/Secure/Tips/hint75.htmlhttp://www.lanner.com/Secure/Tips/hint7.html
  • 8/12/2019 witht35

    9/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 9 of 13

    Author: Lanner Group Customer Support Centre

    T ip 3 . 0 1 3 : Ch a n g i n g t h e n am e o f a n e l e m e n t b a s e d o n a

    v a l u e r e a d f r o m Ex c e l .

    This is Hint #76 on our Web site.http://www.lanner.com/Secure/Tips/hint76.html An example model can be

    downloaded from the Web.

    This functionality was requested twice in the same week by customers. In themodel it is achieved by constructing a string 'wclstr' containing the commands tochange the name of Store001 to the value read from the Excel sheet. Thesecommands are then run as a SETINFO call from the initialise actions of thevariable 'Storename'. The capacity of the buffer / queue is also set in theseactions based on the value read from the Excel sheet. Beware! Once you have runthe model you should not save it since the SETINFO WCL call will not work withthe buffer / queue name changed from its initial value.

    T ip 3 . 0 1 4 : D i f f er e n t s e t u p t i m e f o r e a c h c y c l e o f a m u l t i - c y c le

    m a ch i n e / t a s k o f a m u l t i t a s k a ct i v i t y .

    This is Hint #77 on our Web site.http://www.lanner.com/Secure/Tips/hint77.html An example model can bedownloaded from the Web.

    The model shows how you can model a different setup times for each cycle of amulti-cycle machine / task of a multi task activity. To create a setup at each stagein the process the setup is triggered by 'Value Change' where the value chosen is'CYCLE (ELEMENT)'. The system variable ELEMENT is Process (1) in this case. Thefunction CYCLE returns the number of the current cycle. There are 3 cycles atProcess so this is guaranteed to change at each cycle. The setup time is detailed

    as SetTime (CYCLE (ELEMENT)) which takes the appropriate value from the arraySetTime. Run the model and the messages in the interact box give confirmationof the start and end time of each setup.

    T ip 3 . 0 1 5 : H o w t o r e w i n d a r e ad f i le .

    This is Hint #78 on our Web site.http://www.lanner.com/Secure/Tips/hint78.html

    In your model you may want to close a file if, for example, you need to read thevalues in two different places. The CLOSE action applies to write files only. There

    is no inbuilt function which will rewind a read file. What you could do is to use theSETFILE function. The parameter for this is the file's actual name. You shouldmake this the same as the name already specified on the machine's detail. In thisway the file's actual name remains the same and the read file is rewound. Thenext read statement will read the first line.

    T i p 3 .0 1 6 : T h e u s e o f t h e MATCH r u l e .

    This is Hint #79 on our Web site.http://www.lanner.com/Secure/Tips/hint79.html An example model can bedownloaded from the Web.

    This tip was presented at the UK User Group on 15thMay 2001.

    http://www.lanner.com/Secure/Tips/hint76.htmlhttp://www.lanner.com/Secure/Tips/hint77.htmlhttp://www.lanner.com/Secure/Tips/hint78.htmlhttp://www.lanner.com/Secure/Tips/hint79.htmlhttp://www.lanner.com/Secure/Tips/hint79.htmlhttp://www.lanner.com/Secure/Tips/hint78.htmlhttp://www.lanner.com/Secure/Tips/hint77.htmlhttp://www.lanner.com/Secure/Tips/hint76.html
  • 8/12/2019 witht35

    10/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 10 of 13

    Author: Lanner Group Customer Support Centre

    The MATCH rule in WITNESS is extremely powerful. The on-line help systemdescribes how you can use this to input a matched set of parts/entities and/orlabour/resource units to a machine/activity, or as a labour/resource rule to matchlabour/resource units for a job at that element. One useful feature of the rule isthat nothing will move until all components required to satisfy the rule are

    available. They will then all move together. Please note the importance of the'Output option' for Store1. This is set to 'Any' which ensures that any jobsatisfying the rule can be taken.In the model you can select from the drop down list which MATCH rule to use. Thefive on offer are those given as examples in the on-line help system. The rulecurrently selected is displayed on the 'Main View' window.The choice of rule makes use of the new dialog functionality in WITNESS 2000.This is run from initialise actions and can also be run at any time by stopping themodel and running User Actions. The options available are described within thehelp system.

    T ip 3 .0 1 7 : T h e u s e o f W I T NESS sy s t e m v a r i a b l e s.

    This is Hint #80 on our Web site.http://www.lanner.com/Secure/Tips/hint80.html An example model can bedownloaded from the Web.

    This tip was presented at the UK User Group on 15thMay 2001.

    Within WITNESS there are a number of system variables which can be very usefulin modelling. Note that when you use these variables from actions within afunction they will always refer to the element that is calling the function.ELEMENT - This name variable will return the name of the current element. If the

    element is of quantity greater than one the index will be included. So in actionson finish of an element "process01" of quantity 3 ELEMENT will return process01(2) in any actions or rules within the second instance of process01.N - This integer variable returns the index of the current element. So, if you havea machine / activity "process01" of quantity 3, N will return the index number ofthe current element.M - This is an integer variable that holds the item number within a lot or batch.This can be useful within actions on finish or the output rule of a productionmachine / split activity. Each part / entity could have different actions applied ora different output rule applied.I - This is an integer variable that holds the index of the current vehicle.VTYPE - This name variable holds the name of the current vehicle or NONE if novehicle is present.TIME - This is a real variable that returns the current simulation time.The example model makes use of all of these system variables apart from VTYPE.

    T ip 3 . 0 1 8 : H o w t o c r e a t e a m e ss ag e b o x t h a t g i v e s a

    m e s sa g e s u ch a s " Si m u l a t i o n i s f in i s h e d " .

    This is Hint #81 on our Web site.http://www.lanner.com/Secure/Tips/hint81.html An example model can bedownloaded from the Web.

    The function MSGDLG shows a message but the user must click a button. To havea message only display a string variable on a window and set the value of thisand use the OPENWIN action to show the message. An alternative is to use the

    http://www.lanner.com/Secure/Tips/hint80.htmlhttp://www.lanner.com/Secure/Tips/hint81.htmlhttp://www.lanner.com/Secure/Tips/hint81.htmlhttp://www.lanner.com/Secure/Tips/hint80.html
  • 8/12/2019 witht35

    11/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 11 of 13

    Author: Lanner Group Customer Support Centre

    PRINT action to display a message in the interact box. In the model look inactions on leave for Job. This contains examples of all three options. Note the useof OPENWIN and OPENBOX

    T ip 3 . 0 1 9 : M o v in g a b a t c h t o q u e u e / b u f f e r .

    This is Hint #82 on our Web site.http://www.lanner.com/Secure/Tips/hint82.html An example model can bedownloaded from the Web.

    You may have a situation in your model such that when a buffer / queue has lessthan 10 parts /entities. You may want to replenish such that of 100 parts /entities are in the buffer / queue. The best way to do this is to use a controlvariable 'trigger' whose value can be set to '1' in actions out of the queue / buffer.This will then trigger a dummy batch machine / activity to pull parts / entities in.You should ensure that 'trigger' is reset to zero when the batch has been moved.In the model 'Replenish' takes the batch to replenish 'JobQueue'. The part file is

    used to initialise JobQueue at time zero.

    T ip 3 . 0 2 0 : H o w t o e a s i ly g e t t h e t o t a l W o r k i n Pr o g r e s s o r

    T o t a l N um b e r Sh i p p e d f o r a l l p a r t s o r e n t i t i e s i n y o u r m o d e l .

    This is Hint #31 on our Web site.http://www.lanner.com/Secure/Tips/hint31.html An example model can bedownloaded from the Web.

    This tip was presented at the UK User Group on 15thMay 2001.

    The module here shows how you can get the total number of entities / partsshipped or their total work in progress. The functions Total.Throughput,Total.CurrentWIP and Total.AveWIP make use of the functions ELTCOUNT,ELTNAME and ELTTYPE. They loop though all elements in the model and check ifthe part type is the one required (part / entity in this case). If the element is ofthe required type then the statistic is taken and summed. To use these functionsyou should use Total.Throughput, Total.CurrentWIP and Total.AveWIP in youractions. In this module parts / entities are the selected type but you could applythe same principle to other element types and use the relevant WITNESSfunctions. To test the functions open your model and then open total.mdl. Runour model and then run an immediate action such as "PRINT Total.Throughput()". The total number of parts / entities shipped will be printed in the interact box.

    T ip 3 . 0 2 1 : Pr o p e r t y A c t i o n s f o r a l l e le m e n t s .

    This is Hint #83 on our Web site.http://www.lanner.com/Secure/Tips/hint83.html An example model can bedownloaded from the Web.

    In WITNESS 2001 you now have the option to have property actions on allelement types. Property actions from a designer element are executed when everyou create from that designer element. What this means is that you can write adialog within these to prompt the user to configure this element when creating

    from a designer element.In the model the property actions prompt you to configure the capacity of the

    http://www.lanner.com/Secure/Tips/hint82.htmlhttp://www.lanner.com/Secure/Tips/hint31.htmlhttp://www.lanner.com/Secure/Tips/hint83.htmlhttp://www.lanner.com/Secure/Tips/hint83.htmlhttp://www.lanner.com/Secure/Tips/hint31.htmlhttp://www.lanner.com/Secure/Tips/hint82.html
  • 8/12/2019 witht35

    12/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 12 of 13

    Author: Lanner Group Customer Support Centre

    buffer.

    T ip 3 . 0 2 2 : I n - p l a c e ed i t i n g o f p a t h d i s p l a y .

    This is Hint #84 on our Web site.http://www.lanner.com/Secure/Tips/hint84.html

    With WITNESS 2001 you have the ability to display paths for conveyors, powerand free conveyors and tracks. This allows you greater control over the display ofthese elements. You can display a path which moves around a corner.You have the option to change the display of a path directly on screen "In PlaceEditing".When in Graphical Edit mode : Select the path on screen, by clicking on any partof it. Handles will appear to denote the ends of each section, and Arrows appearbetween the ends, indicating the direction of flow.The entire Path display will be moved , if you hold down the mouse and drag thedisplay. By Pressing CTRL, whilst hovering over an end, "handle", the individual

    point can be re-located, If you Press CTRL and click over a direction handle, thepath is split at that point. The New End can then be moved as described above.Curved paths can be created by the use of multiple short line sections.

    T ip 3 . 0 2 3 : T h e u s e o f m o d e l b u t t o n s i n W I T NESS 2 0 0 1 .

    This is Hint #85 on our Web site.http://www.lanner.com/Secure/Tips/hint85.html An example model can bedownloaded from the Web.

    WITNESS 2001 now includes the ability to add Model toolbars. Model toolbars

    contain actions specific to your model and hence are saved as part of the model.MOD file and are not available when you load a new model. WITNESS toolbarscontain the standard buttons which were available in previous releases ofWITNESS. Buttons from WITNESS toolbars may be added to Model toolbars bydragging and dropping them on from the Commands tab on the Customise dialogbut those from Model toolbars may not be added to WITNESS toolbars."WITNESS toolbar" settings are stored in the registry and will be restoredwhenever you reload WITNESS, regardless of the model."Model Toolbar" settings are saved with the model, and are available only whenthat particular model is loaded by you or you target user.The model Maintmenu3 is based around Maintenance.mod which is supplied inthe WITNESS demo folder. The model has a Model toolbar 'User Control Centre'

    with two static buttons 'Close' and 'Open', two standard buttons 'Close Window 1'and 'Open Window 1' and two WITNESS buttons 'Run' and 'Stop'. The name of thebutton is what appears as you hover the mouse over the button. The promptappears when you press F1 and then click on the button. The text of thestatic buttons is that displayed on the button on the toolbar. For standard buttonsyou may also select an icon and you may enter an action which will be run whenthe button is pressed. In the model the buttons open / close window 1.The WITNESS buttons 'Run' and 'Stop' are added to the toolbar by dragging thesefrom the Command tab in the Customize dialog.

    http://www.lanner.com/Secure/Tips/hint84.htmlhttp://www.lanner.com/Secure/Tips/hint85.htmlhttp://www.lanner.com/Secure/Tips/hint85.htmlhttp://www.lanner.com/Secure/Tips/hint84.html
  • 8/12/2019 witht35

    13/13

    Lanner Group WITNESS Hints & Tips Service summary

    Page 13 of 13

    Author: Lanner Group Customer Support Centre

    T ip 3 .0 2 4 : H o w t o r e c o r d t h e r u n t i m e f o r y o u r m o d e l .

    This is Hint #86 on our Web site.http://www.lanner.com/Secure/Tips/hint86.html An example model can bedownloaded from the Web.

    You may wish to get an accurate figure for the actual time it takes WITNESS torun to run model. The WCL commands TIME_START and TIME_END enable you todo this. In the WCL file Runtime.wcl TIME_START signals the start of therecording interval. TIME_END signals the end of the recording interval. Theresulting time, in seconds is written to the file results.dat. To run the examplesave Runtime.wcl to the WITNESS demo folder and open it from WITNESS. In thefile you will see the length of time that WITNESS has taken to run BELLS.MOD for50000 time units. Note that the model is loaded before the batch starts to excludemodel load time from the result.LOAD BELLS.MODTIME_STARTBATCH TIME, 50000

    TIME_END

    T ip 3 . 0 2 5 : B u f f e r e d M e t a f i le d r a w i n g .

    This is Hint #87 on our Web site.http://www.lanner.com/Secure/Tips/hint87.html

    WITNESS 2001 offers options for drawing complex drawings more efficiently.On the Model Options dialog the "Buffered metafile drawing" option allows you tospecify that .emfs (usually imported .dxf files or clipart) should be drawn assingle bitmaps. The product will automatically create internal bitmaps for all .emfshapes , at the greatest resolution in-use. The product will then draw the bitmap

    instead of the .emf, when refreshing the screen in run-mode.This is particularly effective when you have imported a complex CAD drawing, foruse as a backdrop in your model.From the menus select Model / Options and check the "Buffered Metafile Drawing"option. When you have this option selected you will find that the update of thedisplay of your model in run mode may improve significantly. WITNESS convertsthe .emf to a bitmap which can be updated much more quickly for complexdrawings. If your drawing has a background then the "Buffered Metafiles DrawnTransparent" option may improve the display update further.You should however be aware that although drawing complex .emfs as Bitmapscan be significantly faster, simple drawings that cover a large area, are modeefficiently drawn as .emfs.

    Currently this is a global option and applies to all .emf drawing in the model. Youshould evaluate its effectiveness, having considered the total balance of the useof emfs across the entire model.

    http://www.lanner.com/Secure/Tips/hint86.htmlhttp://www.lanner.com/Secure/Tips/hint87.htmlhttp://www.lanner.com/Secure/Tips/hint87.htmlhttp://www.lanner.com/Secure/Tips/hint86.html