This model demonstrates the correct behaviour of a tap-changer logic of type MAX by directly prescribing the moniitoring conditions valueUnderStop, valueAboveMax as functions of time. The logic starts with tap changer in position 10.
valueAboveMax becomes true t=1, and becomes false at t=10, while valueUnderStop becomes true at t=15.5.
Locked signal is active in t = [5, 8] interval.
According to the defined time lag intervals (3 second for first tap, 1 second for subsequent taps), the tap starts to decrease at t=4 (i.e. 3 seconds after the monitored value raises above MAX), then stays frozen until t=8 because the locked signal becomes active.
After the locked signal disappears (t=8) and 3 seconds are elapsed (lag for first tap) the tap restarts to decrease, one tap per second, until the Stop is reached.