question

Sandeep Kumar I avatar image
0 Likes"
Sandeep Kumar I asked Sandeep Kumar I commented

Stopping and resuming items in stations in conveyors

In the sample model attached, I am trying to send object from first station to second station on the conveyor, only when the second station gets empty.

I have defined a process flow accordingly and set conditions using subnodes.length command. But the logic doesn't seem to work the way I wanted it to. Could you help me in this?

conveyor-stations.jpgconveyor-stations.fsm

FlexSim 18.1.2
process flowconveyorsstop objectresume object
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

·
Joshua S avatar image
1 Like"
Joshua S answered Sandeep Kumar I commented

This model should do what you are looking for. Also for referencing subnodes, when an item arrives at a station, it doesn't become a node under it, the item is still a subnode of the conveyor.12978-conveyor-stations.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.

Sandeep Kumar I avatar image Sandeep Kumar I commented ·

@Joshua. Perfect. Thank you.

I understand now what sub nodes refer to in stations.

Could you tell me what this ''attrs'' means in your command?

model().find("Station10").as(Object).attrs.state_current.value

0 Likes 0 ·
Joshua S avatar image Joshua S Sandeep Kumar I commented ·

attrs is short for attributes. There is a whole list of attrs values that you can pull from or set.

1 Like 1 ·
pic1.png (17.1 KiB)
Sandeep Kumar I avatar image Sandeep Kumar I Joshua S commented ·

@Joshua S Thanks for sharing.

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.