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

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | Instruction enable.
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 ladder diagram example

TDF structured text example

(* ST Equivalence: *) TESTTIMEDIFF := TDF(TESTTIME1, TESTTIME2) ;
Results

Provide Feedback