question

Joe Hugan avatar image
1 Like"
Joe Hugan asked anthony.johnson edited

How do I access lane conveyors from merge controller

How do I reference the individual conveyor lanes that are being controlled by a merge controller so I can set different release criteria for each lane that changes as the model runs?

FlexSim 16.0.1
merge controllercustom release
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

anthony.johnson avatar image
4 Likes"
anthony.johnson answered anthony.johnson commented

Looks like that was an oversight.

Instead of accessing the conveyor objects, you could try storing relevant data on the merge controller itself, through something like a label table.

If you absolutely have to have access to the conveyor, you can get it with the command:

ownerobject(tonode(getnodenum(rank(getvarnode(merge, "slugBuildLanes"), laneNum))))

Although I'm always hesitant to suggest digging into tree internals because it can cause compatibility issues if/when we change those tree internals. So, use at your own risk.

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

Joe Hugan avatar image Joe Hugan commented ·

Thank you Anthony

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ Joe Hugan commented ·

Hey Joe,

This forum works a little different than our other user forum in that each "Answer" is meant to be an actual answer to the question, not a reply to a previous post. Post-reply conversations are meant to be done in the comments of each answer. This makes answer finding easier for people who are skimming. So I've converted your answer into a comment.

0 Likes 0 ·
Show more comments