Chapter 8 Logic Instructions
8-171
The Integer data are converted into the Real-number data as the following table shows.
The value of In corresponds to the value of Out
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
REAL -2147483648~2147483647
2.147483e+9~2.147483e+9
LINT
REAL
-9223372036854775808~
9223372036854775807
9.223372e+18~9.223372e+18
LREAL
-9223372036854775808~
9223372036854775807
-9.22337203685477e+18~
9.22337203685477e+18
Integer to Time or Date
The Integer data are converted into the Time or Date data and some instructions are shown as
below.
The rule for the conversion of the Integer data into the Time or Date data is the same as that
for the conversion of the Integer data into the unsigned integer data.
The Integer data are converted into the Time or Date data as the following table shows.
The value of In corresponds to the value of Out
USINT
DT 16#00~16#FF
DT#1970-1-1-0:0:0~ DT#1970-
1-1-0:4:15
UINT
DT 16#0000~16#FFFF
DT#1970-1-1-0:0:0~ DT#1970-
1-1-18:12:15