TDF (time difference)

The TDF instruction computes the time difference between TimeA and TimeB.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
TDF
TDF
TDF parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
Instruction enable.
  • TRUE: Perform the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
TimeA
Input
TIME
The start time for time difference computation.
TimeB
Input
TIME
The end time for time difference computation.
ENO
Output
BOOL
Enable output.
Applies to ladder diagram programs.
TDF
Output
TIME
The time difference for the two time inputs.
TDF is a name or PIN ID.

TDF examples

TDF function block diagram example
TDF function block diagram example
TDF ladder diagram example
TDF ladder diagram example
TDF structured text example
TDF structured text example
(* ST Equivalence: *) TESTTIMEDIFF := TDF(TESTTIME1, TESTTIME2) ;
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal