question

Dam avatar image
0 Likes"
Dam asked Dam commented

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

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?

FlexSim 22.2.4
conveyorsystemconveyor item
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
3 Likes"
Jason Lightfoot answered Dam commented

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


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

Dam avatar image Dam commented ·

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 0 ·
1704289576834.png (15.3 KiB)