question

Sander avatar image
0 Likes"
Sander asked Sander commented

Conveyor behavior - entry space offset

Hello,


Im trying to set the entry space offset of a conveyor by code. I cant seem to find it anywhere.

I need it to make use that items occupy a certain area based on a variable in the system. It must represent a dry bulk conveyor.

in a previous version this worked:

getvarnode(Model.find("ConveyorSystem"), "conveyorTypes").as(Table)[2][37]

ofc the numbers are wrong.

Kind regards

1741005414068.png


FlexSim 24.0.8
conveyorsystemoffsetentry space
1741005414068.png (12.6 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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Sander commented

It can be set as a property.

conveyorObject.setProperty("EntrySpacePadding", 0.5);

Note that a change will only take effect after the next item has entered the conveyor. So in practice you will need to set the spacing for the next item before the current one enters.

If that is not possible you could try to use a photo eye whose position is adjusted for each new item. The input of the entry transfer is closed until the item has passed the PE.

variable-conveyor-input-spacing.fsm


· 3
5 |100000

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

Sander avatar image Sander commented ·

Thanks Felix. that will help, i can set it for every conveyor.

is it possible to set it for a conveyor type?

In a previous version this worked:

getvarnode(Model.find("ConveyorSystem"), "conveyorTypes").as(Table)[2][37]

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Sander commented ·

No, conveyor types were removed back in version 21.0. All conveyors in the model are automatically added to a "Conveyors" group though. You can loop though that and set the property on each conveyor.

for(int i = 1; i <= Group("Conveyors").length; i++) {
    Group("Conveyors")[i].setProperty("EntrySpacePadding", 0.5);
}
1 Like 1 ·
Sander avatar image Sander Felix Möhlmann commented ·
yes indeed cycling through that would work.

Thanks a lot.

0 Likes 0 ·