VA Motion Controller Programming Manual
209
10.3.15 Conversion of REAL type data
Conversion of
REAL
type
data
REAL
type data conversion has
11
instructions, which can
convert
REAL
type data into
BOOL, BYTE, WORD, DWORD
,
SINT,
INT, DINT, USINT, UINT, UDINT
and
LREAL
.
REAL
type data conversion instruction
description
REAL type input value whose fractional
part is discardeDAt the time of conversion
When input 0 , output FALSE; when other
values are input, output TRUE
When inputting
0~255
, the output will
be
0~255; if the
input is increased, the output
will repeat
0~255;
input
-1~-255
,
output
255~0;
input and then decrease will
repeat
255~0
When inputting
0~65535
, the output
is
0~65535
. If the input is increased, the
output repeats
0~65535;
input
-1~-65536
,
output
65535~0
, input and then decrease, the
output repeats
65535~0
When inputting 0~2,147,483,647 ,
output 0~2,147,483,647 , input and increase
output
is 2,147,483,647; input -1~-2,147,483,648 ,
output 4,294,967,295~2,147,483,648 , input
and then reduce output is
still 2,147,483,648; accuracy will decrease