Delta Electronics DVP15MC11T Operation Manual page 225

Table of Contents

Advertisement

DVP15MC11T Operation Manual
The Bit-string data are converted into the Bit-string data as the following table shows.
Bit string to Integer
The Bit-string data can be converted to the Integer data. And some instructions are shown
below.
_8
The rule for the conversion of bit-string data into integer data is consistent with that for the
conversion of bit-string data into bit-string data.
The less-length data is converted to the greater-length data by writing the values of all bits of
the less-length data to corresponding bits of the greater-length data and setting the values of
the remaining bits of the greater-length data to 0.
8-154
B it15
*
*
*
*
*
In
Not c onv erted
WO RD_ TO _BYTE
E N
ENO
In
O ut
Data type
In
Out
WORD
16#00~16#FF
DWORD
16#00~16#FF
BYTE
LWORD
16#00~16#FF
BYTE
16#**00~16#**FF
DWORD
16#0000~16#FFFF
WORD
LWORD
16#0000~16#FFFF
BYTE
16#****_**00~16#****_**FF
WORD
16#****_0000~16#****_FFFF
DWORD
LWORD
16#0000_0000~16#FFFF_FFFF
16#****_****_****_**00~
BYTE
16#****_****_****_**FF
16#****_****_****_0000~
LWORD
WORD
16#****_****_****_FFFF
16#****_****_0000_0000~
DWORD
16#****_****_FFFF_FFFF
BYTE_ TO _USINT
EN
In
B YTE_TO_I NT
EN
In
The greate r-d ata are conv erted
t o the les s-lengt h da ta
B it 8
Bit7
*
*
*
1
0
1
1
0
1
Out
The value of In corresponds to the value of Out
In
BYTE_ TO_ SINT
ENO
EN
Out
In
WORD_TO_I NT
ENO
EN
Out
In
B it0
1
0
1
0
1
WORD
1
0
1
0
1
BYTE
Out
16#0000~16#00FF
16#0000_0000~16#0000_00FF
16#0000_0000_0000_0000~
16#0000_0000_0000_00FF
16#00~16#FF
16#0000_0000~16#0000_FFFF
16#0000_0000_0000_0000~
16#0000_0000_0000_FFFF
16#00~16#FF
16#0000~16#FFFF
16#0000_0000_0000_0000~
16#0000_0000_FFFF_FFFF
16#00~16#FF
16#0000~16#FFFF
16#0000_0000~16#FFFF_FFFF
ENO
Out
ENO
Out

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents