LD Source_Value
SUB_TOD_PL7 Time_to_Sub
ST Result_Value
Result_Value := SUB_TOD_PL7(Source_Value, Time_to_Add);
Parameter
|
Type
|
Comment
|
---|---|---|
Source_Value
|
DINT,
ARRAY [0..3] OF INT
|
Date or time.
|
Time_to_Sub
|
DINT,
ARRAY [0..3] OF INT
|
Period to be subtracted from Source_Value
Note : this time is expressed in the TIME format of PL7 (with an accuracy of the order of one tenth of a second). As the DT and TOD types of PL7 (converted under Control Expert into DINT or tables of 4 INT) are expressed to the nearest second, Time_to_Sub is rounded to the nearest second.
|
Parameter
|
Type
|
Comment
|
---|---|---|
Result_Value
|
DINT,
ARRAY [0..3] OF INT
|
Result_Value is of the same type as Source_Value.
|