Results 1 to 2 of 2

Thread: DERIVATIVE function block clarification

  1. #1
    Join Date
    Oct 2011

    Default DERIVATIVE function block clarification

    I am using the DERIVATIVE function on the CR1051 to calculate the rate of change of a value put onto the CAN bus every 100 ms and read by the CR1051. My PLC cycle time is roughly 20-30 ms.

    What is the best time base to use with the DERIVATIVE function block, the PLC cycle time or the frequency of the data being put onto the CAN bus (100 ms)?


  2. #2
    Join Date
    May 2009
    Minneapolis, MN


    The DERIVATIVE function block comes from 3S so here is what they say:

    In order to obtain the best possible result, DERIVATIVE approximates using the last four values, in order to hold errors which are produced by inaccuracies in the input parameters as low as possible.

    If you are getting 20 - 30 ms scan times I would make your TM value 120 ms. Its a DWORD, so just put in 120.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts