Error in a program

Hi,
i try to program with FF+ the following algo


i write the followin code but the problem is that i obtain zeo in each step.
Can any one help me to find theproblem in my progam? Please.

code.edp (1.4 KB)

Does the variable Idh need to be initialized (around Idh=2) ?
HTH
Denis