VA Motion Controller Programming Manual
215
The implementation of the results :
75.69
turn to
75
(Note: This function is rounded up ,
the number after the decimal point is rounded
off)
10.3.18 Conversion of TIME type data
TIME_TO _DINT
type
conversion
The TIME_TO _DINT
type conversion function converts
a
TIME
type input value into AD
INT
type output value ( any time
value is converted to a millisecond value and then the millisecond
value is converted to
DINT
) .
The TIME
type data must be an
unsigned number starting with
T#
. The time value greater
than
#2147483647
will be negative because the
DINT
type is a
signed number and its maximum value is
2,147,483,647
. For
example, the input value
T#4294967295
A millisecond will result in an output value of
-1
.
TIME_TO_DINT
data type conversion instruction processing
Input value range T#0~2147483647M
S ( equal to T#0~2147483.647S , converted
to DINT output value
0~2147483647; input value
range T#2147483648~4294967295 ,
converted to DINT output
value -2147483648~-1 .
usage
LD, FBD
programming language
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet