Chapter 8 Logic Instructions
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
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
DT#1970-1-1-0:0:0~
DT#1970-1-1-0:4:15
UINT
DT
DT#1970-1-1-0:0:0~
DT#1970-1-1-18:12:15
8-165