I'm needing to determine the slope of an analog input on a DL06. I have been spoiled with Do-More, and now I can't figure out how to write a slope function.

Ideally, I would like to measure the slope over about a 1 second period, but a time based stack sounds complicated so I was thinking of a set number of values (ex. 16).

Could somebody please point me in the right direction, or is this too complicated for this plc? Thanks in advance.