How to check whether the conveyor item is moving or stopped?

How to check whether the conveyor item is moving or stopped?

damka
Not applicable
8 Views
2 Replies
Message 1 of 3

How to check whether the conveyor item is moving or stopped?

damka
Not applicable

[ FlexSim 22.2.4 ]

In my model, I have many accumulation conveyors, which move many items at the same time. Some of them are stopped by logic in process flow, others stop, e.g. when the distance between objects has reached the minimum.... Is there any way, using flexscript or process flow, to check whether a given conveyor item is currently in the stopped state or is moving?

0 Likes
Accepted solutions (1)
9 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You can get some way towards this by checking a simple data type value of the Conveyor.Item (traversal) but it does not detect when the item is moving as part of an accumulation. Here's an example using the cylinder shape's draw code to change the color to green when moving and red otherwise.

The real question is why you would need to do this and whether an alternative method would suffice.

ConveyorItemState.fsm

Message 3 of 3

damka
Not applicable

Thank you very much for your reply!

Yes,

getsdtvalue(stdNode,valName);

is exactly what I was looking for.

I managed to find the the state variable in my model earlier, but I didn't know how to access it.

1704289576834.png

Thank you again.

Greetings and happy New Year!

Dam.

0 Likes