

LD Input_IN1
DELTA_TOD Input_IN2
ST Delay1
Delay1:= DELTA_TOD(Input_IN1, Input_IN2);
| Parameter               | Type               | Comment               | 
|---|---|---|
| Input_IN1               | DINT,               ARRAY [0...3] OF INT                | Date or time for which we wish to calculate the variation from Input_IN2.               | 
| Input_IN2               | DINT,               ARRAY [0...3] OF INT                | Date or time for which we wish to calculate the variation from Input_IN1               | 
| Parameter               | Type               | Comment               | 
|---|---|---|
| Delay1               | Delay1 contains the absolute value of the time elapsed between the two inputs Input_IN1 and Input_IN2.                Note: this time is expressed with a precision of a tenth of second.               | 
| Field    | Limits    | Comment    | 
|---|---|---|
| Year    | [1990,2099]    | Year    | 
| Month    | [01,12]    | The leading 0 is displayed; it can be omitted during data entry.    | 
| Day    | [01,31]    | For months 01/03/05/07/08/10/12    | 
| [01,30]    | For months 04/06/09/11    | |
| [01,29]    | For month 02 (leap years)    | |
| [01,28]    | For month 02 (non-leap years)    |