If N = 0 then the block implements a static gain, otherwise both M and N must be greater than 0. If t1 = 0 and t2 = 0, the block also implements a static gain.
Neither output limitation nor anti-windup are implemented.
If N > 0, y = leadMOrderLagCascade[N].y but for such an equation to be compiled, the value of N has to be known during the compilation, thus making it impossible to change N before the simulation.
A workaround has been found with a vector z of the same size as leadMOrderLagCascade, whose components are either 0 or (for the Nth) leadMOrderLagCascade[N].y. The sum of z is therefore leadMOrderLagCascade[N].y.