VA Motion Controller Programming Manual
206
When the contact
C158
is
ON
when this
instruction is executed,
The address
V304
in the unsigned short
integer of
24
rpm to
BYTE
, stored in
the
V 305
In ;
Execution of Results :
24
(
DINT
)
switch
16 # 18 is
(
BYTE
)
10.3.13 Conversion of UINT type data
UINT
type data conversion has
11
instructions, which can
convert
UINT
type data into
BOOL, BYTE, WORD, DWORD
,
SINT,
INT, DINT, USINT, UDINT, REAL
and
LREAL
.
UINT
type data conversion instruction
Description Input value range 0 65535
When input 0 , output FALSE; when other values
are input, output TRUE
When
0~255
is input, the output will be
0~255;
if the
input is increased, the output will
repeat
0~255.
When
0~65535
is input , the output
is
0~65535.
When 0~65535 is input , the output is 0~65535.
When inputting 0~127 , output 0~127; input
128~255 , output -128~-1; input and then
increase output repeat 0~127, -128~-1
When inputting
0~32767
, output
0~32767;
input
32768~65535,
output
-32768~-1
When
0~65535
is input , the output is
0~65535.
When 0~255 is input , the output is 0~255; if
the input is increased, the output repeats 0~255.
When 0~65535 is input , the output is 0~65535.
When
0~65535
is input , the output is
0~65535.
When
0~65535
is input , the output is
0~65535.
usage (take UINT_TO_BYTE as an example)