A UDT definition that calculates the rate of change for a particular analog value.
Use this formula as guidance:
The UDT should contain an OPC tag with a configurable OPC Item Path and the calculated RateOfChange value.