question

Eamon O avatar image
0 Likes"
Eamon O asked Eamon O commented

Referencing the Conveyor a Decision Point is on from Process Flow

I want to reference the conveyor a DP is placed on from its object process flow. i.e. 'wait for event' current.myConveyor: onExit.

1680911590326.png

In the past I've solved this by referencing current.centerObjects[1] and just center connecting each DP to its conveyor. This doesn't scale well though since I have to do that manually for each one.

Thanks in advance. See below for the closest I've managed to get so far.

Did some looking into the treenode, and I can access conveyorPoint variable which sees the conveyor the DP is on.

1680911240784.png

1680910657159.png

However, when I set a debug label to that value, I don't get something very useful, and can't figure out how to climb back up that path to the StraightConveyor7.

1680910999880.png

1680911006617.png

FlexSim 22.2.4
conveyorsdecision pointsvariable referencing
1680910657159.png (2.1 KiB)
1680910999880.png (9.8 KiB)
1680911006617.png (2.8 KiB)
1680911240784.png (11.3 KiB)
1680911590326.png (52.5 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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Eamon O commented

You use ownerobject() on that value to get to the conveyor.

But the wait for event activity has a conveyor field to allow you to set a token label with that value directly.

1681044992821.png


If you're using an object flow where the decision point is 'current', the conveyor is simply:

current.as(Conveyor.DecisionPoint).conveyor



1681044992821.png (13.4 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.

Eamon O avatar image Eamon O commented ·

Perfect! The code line is exactly what I'm looking for. I'll probably extrapolate this in the future too. Thanks Jason :)

0 Likes 0 ·

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.