question

Daniele S avatar image
0 Likes"
Daniele S asked Daniele S commented

ProcessFlow, automatic analysis of multiple fabrication orders

Hello everybody,

I'm a Flexsim beginner user, so probably for you this is a easy question.

I have a ProcessFlow with a Schedule Source which imports information from a table (Excel).

The table is a list of several (more or less 60) fabrication orders, each orders (so each row of my table) contains information about the name of the component, the arrival day, the quantity to be produced (from 40 to 300), the processing time of each component of that particular fabrication order and of its shape.

capture.png


Now, I want create ONE object for each fabrication order (not for the fabrication order quantity) into a Queue which is called MasterStock.

The component should contain inside information extracted from the initial table (quantity, name, processing time that I will use later) and whose shape is imported from a Solidworks model. For what concerns the shape, I have create my object in Solidworks (STL file) and I put it inside the FlowItem Bin.

How can I extract information from my table? How can I associate these information to the fabrication order object? Is it possible to change the shape in automatic (for example, the shape is associated by using the basic FlowItem with the same name of the fabrication order)?

I can't do it manually, I need to use an automatic procedure because my fabrication orders change frequently.

Last question, is it possible to move the fabrication order object from the MasterStock to another queue and to unpack the entire quantity of components? Components should be separate before enter into the process.

w31-102.stl

w32-180.stl

w33-183.stl

simulation-process-multipleobjects1-05m01.fsm

FlexSim 18.0.0
processflowexcel importmoveobjectunpackimport information
capture.png (7.5 KiB)
w31-102.stl (798.7 KiB)
w32-180.stl (258.7 KiB)
w33-183.stl (387.8 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kari Payton avatar image
0 Likes"
Kari Payton answered Daniele S commented

@Daniele S I think you're headed in the right direction! To help I created a simple process flow consisting of 3 things: source, create object, and a 1 line code snip.

1. On the source create labels that directly reference back to the table. The format for the reference is:

Table("tableName")[row number][column number]

So on your source add labels to your created token then for each label put the reference to the cell in the table.

2. Create an object in the queue. If you want to put the labels from the tokens to the item itself when you create an object add a label. Make the value token.label. For example, if I want the Name label from the token put on the item. On create object I created a label value token.Name.

3. Create a custom code to change the shape. I sued the function setobjectshapeindex(object, flow item number). What's cool is that you can reference a 3d object in your flow item using the number that is is on the list of flow items. i.e a box = 1, sphere = 3, W23_180_ = 14. I created a label in the last column of the table called "flowItemNumber" as the reference.

I put the flow in a box Test Example in your model. Hope this helps!10228-simulation-process-multipleobjects1-05m01.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Daniele S avatar image Daniele S commented ·

thank you very much,

actually I was looking for a solution like the one proposed by Kari, but I think I will also integrate the case logic proposed by Raja.

Thank you

0 Likes 0 ·
Raja Sekaran avatar image
0 Likes"
Raja Sekaran answered Raja Sekaran edited

Hi @Daniele S

I have reattached the model with changes.

For creating one object for each order, set quantity as 1 for each arrival and add that information(fabrication order Quantity, parameters etc) as a label value as shown in the pic below.

For each fabrication order, I have set label value named as Type.

In create object activity, using Object/Flowitem by Case picklist option, define the object shape of the created item based on the label value(Type).

Using assign labels to created objects, I have added the labels(DistrubtionparamA, Qty) to the created items.Check the labels associated with created items in MasterStock queue.

After creating items in Master Stock Queue, I have used Separator to split the entire quantity.

Hope this is what you are trying to do.

Thanks.

support-fabrication-2.fsm


capture-1.png (7.6 KiB)
capture-3.png (12.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.