question

Aditya S2 avatar image
0 Likes"
Aditya S2 asked Natalie White commented

Conveyor length using custom code

Hello,

I am trying to change conveyor start point using custom code and reading values from global table for one of my models. The issue I am facing is, the conveyor has entry point at the start for inserting flow items from a queue. however, while changing the Start.x position of conveyor using in process flow, the entry point disappears/does not apper at correct entry location (aka the start of conveyor)

How can I fix this?

conveyor_length.fsm

FlexSim 22.2.4
conveyors
conveyor-length.fsm (41.0 KiB)
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Aditya S2, was Julie Weller's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Julie Weller avatar image
0 Likes"
Julie Weller answered Jason Lightfoot commented

Hi @Aditya S2! I looked at your model and I'm not seeing that issue happen (I also checked and I'm using the same version of FlexSim as you are)... See the attached GIF:

aditya-help.gif

When I run it the entry point moves along to the front as that shows


aditya-help.gif (859.1 KiB)
· 4
5 |100000

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

Aditya S2 avatar image Aditya S2 commented ·
It seems to be working now. Saved and Restarted the model and it seems to have fixed it.

On a different note, I am also trying to change the conveyors other properties (specifically: speed, entry/moving and stopping space from global tables). Is there a manual where I can see the custom codes to use to set these parameters?

0 Likes 0 ·
Julie Weller avatar image Julie Weller Aditya S2 commented ·

@Aditya S2 You can check out the docs page! Here's the link to the website (specifically the conveyor coding page):

https://docs.flexsim.com/en/23.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Conveyor/Conveyor.html

0 Likes 0 ·
Aditya S2 avatar image Aditya S2 Julie Weller commented ·
Thanks!

I dont see any references to how to change the move, stop and entry space padding. Is there a specific command I can use to change those values for conveyors using values from global table?


0 Likes 0 ·
Show more comments

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.