question

Owen_liaw H avatar image
0 Likes"
Owen_liaw H asked Owen_liaw H commented

Is that possible if use the elevator or queue for carry the few woods ?

4.fsm

1644932125748.png

1644932139715.png

1644932172825.png

1644932189457.png

For the last figure, my problem is about how to use (elevator or queue) to carry the objects (woods), it will drop a bit (z-axis location) when new lines of wood is sorted to the certain locations by following the length (y-size).

Elevator or queue ? which one is suggested to use for this situation

FlexSim 19.0.0
elevatorqueue load
1644932125748.png (878.0 KiB)
1644932139715.png (879.3 KiB)
1644932172825.png (139.0 KiB)
1644932189457.png (165.0 KiB)
4.fsm (38.0 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.

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Owen_liaw H commented

Hello @Owen_liaw H,

It would be best to use a queue. You will want to use triggers. I created an on entry trigger that checks to see if there is a complete line of flow items (6 items were in each row). If there are then the queue is dropped down.

int NewLine = 6; // number of flowitems per line in Queue
int Content = current.stats.content.value; //The number of flowitems in the Queue
if (Content%6 == 0){ // Check to see if there is a completed row of flowitems
   double x = current.location.x; // the Queue location in the x direction
   double y = current.location.y; // the Queue location in the y direction
   double z = current.location.z-item.size.z; // the Queue location in the z direction 
   //The Queue will be moved down in the z direction the distance of the flowitems z size.
   setloc(current, x, y, z); // Set the location for the Queue
}

You will also want an on reset trigger to reset the queues location.

You will see these changes implemented on the first queue in the model.

Model_JF (2).fsm


model-jf-2.fsm (38.3 KiB)
· 5
5 |100000

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

Owen_liaw H avatar image Owen_liaw H commented ·
Thank u for ur custom code, i still trying to understand the codes
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Owen_liaw H commented ·

I added comments to each line of code to try and help you understand it.

0 Likes 0 ·
Owen_liaw H avatar image Owen_liaw H Jeanette F ♦♦ commented ·
Yea, I understood already
0 Likes 0 ·
Owen_liaw H avatar image Owen_liaw H commented ·

I got other question about the stack at first queue, it had 12 items in low, but other queue don't have this problem

1644988383814.png


0 Likes 0 ·
1644988383814.png (176.3 KiB)
Jeanette F avatar image Jeanette F ♦♦ Owen_liaw H commented ·

This has to do with the logic the Queue uses to stack the items. To change this you will need to change Item Placement to Do Nothing. You will also need to incorporate a custom code for on entry trigger to place the flowitems how you would like.

1645056694373.png

I incorporated the default packing method in the on entry trigger. The code for the default packing method can be found if you go to toolbox, open the FlowItem Bin, select the pallet flow item, and then at the bottom of the window select edit packing method. Then you can select the script scroll next to the Default packing method to see the code that I copied over to the Queue.

1645056936253.pngDropping Queue As It Fills.fsm

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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