LD Time1
TRANS_TIME
ST Result_DINT
Result_DINT := TRANS_TIME(Time1);
Parameter
|
Type
|
Comment
|
---|---|---|
Time1
|
Duration to convert. Time1 is expressed in tenths of seconds; the value used for the function is therefore rounded off to the second.
|
Parameter
|
Type
|
Comment
|
---|---|---|
Result_DINT
|
Result_INT is a double integer that breaks down as follows:
Example: 16#00233740 corresponds to 23 hours, 37 minutes and 40 seconds.
Note: Result_DINT ranges between 0000:00:00 and 9999:59:59.
|
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)
|