FB_CaseStateMachine icon indicating copy to clipboard operation
FB_CaseStateMachine copied to clipboard

change step from variable table

Open runtimevic opened this issue 8 months ago • 2 comments

Hello @FellowWithLaptop,

If you want to change the step from the variable table, the steps in the sequence are not coordinated with the new value....

Image Image

How can I manually change to another step in the sequence... for example from a table of variables by writing a new value?...

runtimevic avatar Jun 22 '25 20:06 runtimevic

Ah yes. The block only stores a reference to the variable via the constructor (FB_Init) call. This could also have negative effects in the event of an OnlineChange. However, it is not intended to swap the variable, as a LastStep variable is also stored internally. I could imagine an Init method that reinitializes the block.

FellowWithLaptop avatar Jul 23 '25 12:07 FellowWithLaptop

Hello, Could you change the code to add the init method?

runtimevic avatar Jul 23 '25 17:07 runtimevic