EasyManua.ls Logo

Vector VEC-VA Series

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Type conversion FU
Features
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
instruction
input value
output
value
description
TIME_TO_DINT
TIME
DINT
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
IL
programming language
LD, FBD
programming language
LD IN
TIME_TO_DINT
ST OUT
ST
programming language
OUT:=TIME_TO_DINT ( IN )
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet

Table of Contents

Related product manuals