Position of flow item on transporter

Position of flow item on transporter

joe_hugan
Not applicable
164 Views
2 Replies
Message 1 of 3

Position of flow item on transporter

joe_hugan
Not applicable

[ FlexSim 16.0.1 ]

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!

0 Likes
Accepted solutions (1)
165 Views
2 Replies
Replies (2)
Message 2 of 3

legrand_gold
Not applicable
Accepted solution

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.

Message 3 of 3

Ben_WilsonADSK
Community Manager
Community Manager

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

0 Likes