question

Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann asked Matthew Gillespie commented

Item entering Conveyor on trailing edge

Hi,

I´m looking for an easy solution for items entering conveyors on a special Position depending on the items size.

As far as I found out any Transferpoint (and Entrytransfer if it is on the start side) lets items enter Conveyors with their leading edge.

Entrytransfers positioned anywhere along the Conveyor let Items enter this Entrypoint with their Center.

But I´m looking for a solution that lets Items enter Conveyors with their trailing edge.

My idea was to take an Entrytransfer along the conveyor.

And I then tryed to set the Position of the Entrytransfer dynamicly by Code to the right Point. But this didn´t work.

My actual try is to Position a Photo Eye exactly on the same distance as the Entry Transfer Point and add an "Transfer Item" logic in the OnBlock Trigger to move item by half of it´s length allong the conveyor.

In the attached model you find a simple example but it seems as if the Photo Eyes don´t get informations about transfered Items and so the first one is even blocked after the item left:

and the second Photo Eye doesn´t recognice the items leading edge:

So does anybody have a good idea or solution how to solve it?

Maybe I´m using an completly wrong Approach!?

example-transferitemonconveyor.fsm

FlexSim 17.2.2
conveyorphoto eyetrailing edge
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

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Matthew Gillespie commented

@sebastian.hemmann, you are right it depends on the center of the item. The function which set the middle of the entrytransfer is

function_s(transfer, "setDistAlongConveyor", transferSY/2);

The variable transferSY contains the size of the entering item. I set the new position in the OnEntry trigger of a queue previous to the entrytransfer. The queue has a capacity of 1.


· 2
5 |100000

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

Sebastian Hemmann avatar image Sebastian Hemmann commented ·

Thanks again for the quick and very helpful reply Jörg. It seems not to be the first time I´m looking for an Option "function_s()" or "function_n()" is the solution for. Do you maybe have a good hint where to find any overview about that stuff? Help and even the Forum says "for development use" and gives a very small Explanation.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Sebastian Hemmann commented ·

function_s() is a command like nodefunction(). It just executes code on a node. Specifically it looks for a node with the specified name in the eventfunctions node of the specified object. The library objects have lots of different methods on them, but we've only chosen to expose certain of them as commands or dot syntax methods. There are several reasons for not exposing a certain function on an object. One big one is that when we expose a function we are committing to maintain that option so that it continues to work (if at all possible) in future versions. Other times the function is very specific and won't be used by most users.

For now, we will sometimes point out a function_s() call when a user needs it for a specific purpose, but we don't intend to expose it for everyone or guarantee it will be maintained.

1 Like 1 ·

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.