question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Reset Conveyor Behaviour

Hi I am not sure if this a bug. After I have checked the box Update on reset and selected the table, nothing happen to the Conveyor Behavior table. will you be able to check?

Thanks

David

FlexSim 21.2.4
conveyor behaviourupdate on reset
· 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.

Connor A avatar image Connor A commented ·

Hi @David Chan,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered David Chan commented

You need to have a query in the Update Query box for it to execute during reset. You can click the Generate button to auto generate a starting query. However, it looks like its using some old names that need to be updated. The following updated query should work for the default Conveyor Behavior table.

1637018085940.png

UPDATE Objects() AS Obj
    INNER JOIN $1 AS Src
    ON Obj.Object = Src.Object
SET
    Obj.IsAccumulating = Src.IsAccumulating, 
    Obj.Speed = Src.Speed, 
    Obj.Acceleration = Src.Acceleration, 
    Obj.Deceleration = Src.Deceleration, 
    Obj.StopSpaceSizeFactor = Src.StopSpaceSizeFactor, 
    Obj.StopSpacePadding = Src.StopSpacePadding, 
    Obj.MoveSpaceSizeFactor = Src.MoveSpaceSizeFactor, 
    Obj.MoveSpacePadding = Src.MoveSpacePadding, 
    Obj.RestartDelay = Src.RestartDelay, 
    Obj.EntrySpaceSizeFactor = Src.EntrySpaceSizeFactor, 
    Obj.EntrySpacePadding = Src.EntrySpacePadding

1637018085940.png (19.1 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.

David Chan avatar image David Chan commented ·
@Matthew Gillespie Thanks and it works now.


David

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.