question

Joe Hugan avatar image
0 Likes"
Joe Hugan asked Ben Wilson commented

Position of flow item on transporter

In the attached model, I need the loads to appear behind the transporter as if they are being tugged. This is NOT a tugger application. The hitch is fixed and the flow item does not articulate. There will never be more than one rack behind. Essentially, I need to know how to move the point where the parts stack on the transporter. This has always given me trouble and the philosophy behind how to make this change in FlexSim has never really sunk in. Can you tell me generically how to make a change like this and show me by altering one of the transporters in the attached model.

Thank you!

FlexSim 16.0.1
transporterpositionflow item
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

·
LeGrand Gold avatar image
3 Likes"
LeGrand Gold answered Ben Wilson commented

Joe,

The key to doing this kind of thing is remembering where an object's origin is (i.e. x=0, y=0, z=0), which is always the bottom left corner. To keep this straight in my mind, I like to reset the rotation of the model by right-clicking in an empty space and going to View --> Reset View Rotation. Then I zoom in on the object I am going to work on. In your model, I also drew a small red box at the origin of Olive_AGV_1. You can delete this box by deleting the code in the Custom Draw trigger.

Also, remember that the pallet's origin is also the bottom left corner.

The code to position an item in the AGV is in the OnLoad trigger. The main command is setloc(object, xloc, yloc, zloc).

I calculate how far back to move the pallet when it is picked up, which in this case is the size of the pallet. But, since I want to move the pallet backwards, it is the negative size of the pallet.

Then, to center the pallet in the y axis, I move it down by half of the AGV's ysize and then back up by half of the pallet's ysize. To move the pallet down, I go negative and to go back up, I add.

Finally, the z location is simply 0 to put it on the ground, or you can raise it by using something larger than 0.

Incidentally, if you do not need to change all three of the locations (x, y, and z), you can use: set(spatialx(item), -xsize(item)). For example, if you look closely at the combiners where Olive_AGV_1 picks up the pallets, you will notice that the pallets are slightly sunk into the combiner. In Olive_Market Place_3's OnEntry trigger, I put the following command: set(spatialz(item), zsize(current)). This just raisers the pallet up to be on top no matter what the the zsize of the combiner is.

· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

You can find some additional information regarding object positioning in this question and answer, especially in @Matthew Gillespie's comment.

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.