Berryh, welcome.
The method I suggested first computes the amount of change over a specific time interval. Next it is necessary to determine if this change exceeds the allowed amount of change during that interval, whatever it is. The way to do this is with a comparrison. The solution I posted compares the change in tank level, in reg. 40003, to a max alarm value, reg. 40004. The simplest way to do a comparrison in a Modicon PLC is with a SUB instruction. The Modicon SUB instruction block has three different outputs. The state of these output is dependent on the result of the SUB instruction. These three outputs can be used to determine if the change in level is greater than the alarm point, equal to the alarm point, or less than the alarm point. If the OP wanst to alarm when the rate of change is greater than or equal to the setpoint, then he will tie two of the SUB instruction ouputs to a single alarm coil and leave the third unconnected in his logic.