iLogic is using current parameter instead of resulting one. How do I make it wait for the new one?

iLogic is using current parameter instead of resulting one. How do I make it wait for the new one?

Luke_Y.AGII
Advocate Advocate
337 Views
3 Replies
Message 1 of 4

iLogic is using current parameter instead of resulting one. How do I make it wait for the new one?

Luke_Y.AGII
Advocate
Advocate

This is my first ever(quasi-successful) attempt using iLogic:

ilogic.png

the SegmentNumber parameter controls how many conveyor segments are needed, given a length in feet and/or inches. Everything works, but it is using the current value of "remainder" when run, instead of waiting for the result of ConveyorRunEquation-(floor)ConveyorRunEquation. How can I use the result of Line 2 before it uses the current "remainder" value to compute line 4 etc.?

 

the ConveyorRunEquation is: (ConveyorRun - 4in)/192in

ConveyorRun is User Input in feet/inches

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

A.Acheson
Mentor
Mentor
Accepted solution

You can use the dynamic parameter instead of the local parameter(blue text) all the way down in the rule to ensure it updates as the rule progresses. Setting the status of the parameter to update after change before you begin will also get an instant update. 

Parameter.UpdateAfterChange = True
Parameter("d0") = 1.2

AAcheson_0-1661460869478.png

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

Luke_Y.AGII
Advocate
Advocate

I'm sure this will work, but as a total iLogic noob, im not having any success incorporating it. can you tell me where it should go and what I need to change in my example? Thanks!

0 Likes
Message 4 of 4

Luke_Y.AGII
Advocate
Advocate

...actually, i think i got it!

0 Likes