I have to 2 products. Product1 and Product2. Product1 is made up of 4 parts and Product2 is made up of 4 parts.
Here Product1 is made up of Part A, B, C ,D and Product2 is made up of Part X,Z,Y,W.
I used a Table File to send the parts.
1. I need a dialog box where I havre to enter the number of Product1 or Product2. If I enter Product1 as 3, then only parts of Product1 has to come from the source. Again if I change the number of Product1 as 2 and Product3 as 1, then the flow of parts should be as per the demand.
How to execute this flow?
Under the tab User Interface in the toolbox there is an object called Dialog that is used to create dialog boxes. They each have e method called "self.callback where you can write a different codes for differnt buttonpresses in the dialog box.
So create three buttons, "create prod 1", "create prod 2" and "create prod 1 and 2". Each button changes the second row of the creation table, setting the number of parts to produce to either 1 or 0, depending on the button.
if you enter product1 as 3, what's the produced sequence ( a,b,c ?)
if you enter product1 as 2,and product 2 (?) as 1, what does that demanded sequence look like (a,b,x ?)
Product1 is made up of part a,b,c,d. So I am sending these parts through few stations and then last to assembly station where these 4 parts are assembled to form Product1.
So If I say I want to produce 3 Product1, then 12 parts of Product1 has to come.
For eg: Product1 is Car
Its parts are Body,door and wheels.
So If I say I want 3 Cars, respectively the parts should come from source.
Similarly for Product2
PlantSimulation already contains several example models (on loads of different topics ). Go to the start menu of PlantSim (the one that opens when you start the application). There you find a button named Example models. Click that and then click "small examples" in the following dialog.
Next, change the catogory to "User Interface" and the topic to "Dialog". Select one of the models in the list and press the button "Open Model"