EasyManuals Logo

Delta Electronics DVP15MC11T User Manual

Delta Electronics DVP15MC11T
601 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
Page #224 background imageLoading...
Page #224 background image
Chapter 8 Logic Instructions
8_
The rule that Bit-string data are converted into Boolean data is as the following table shows.
Data type
The value of In corresponds to the value of Out
In
Out
In
Out
BYTE BOOL
16#00
FALSE
16#01~16#FF
TRUE
WORD BOOL
16#0000
FALSE
16#0001~16#FFFF
TRUE
DWORD BOOL
16#0000_0000
FALSE
16#0000_0001~16#FFFF_FFFF
TRUE
LWORD BOOL
16#0000_0000_0000_0000
FALSE
16#0000_0000_0000_0001~
16#FFFF_FFFF_FFFF_FFFF
TRUE
Bit string to Bit string
Bit-string data can be converted to Bit-string data. And some instructions are shown below.
There are two kinds of conversion for different types of bit-string data. One is the conversion of
the less-length data to the greater-length data. The other is the conversion of the greater-length
data to the less-length 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.
See the following example that the Byte data in In is converted to the Word data in Out. The
values of Bit0~Bit7 of In are copied and pasted to Bit0~Bit7 of Out. And the values of Bit8~Bit15
of Out are set to 0.
The greater-length data are converted to the less-length data by revising the values of all bits of
the less-length data into the values of the corresponding bits of the greater-length data and the
values of the remaining bits of the greater-length data are not converted and have no impact on
the conversion.
See the following example that the Word data In is converted to the Byte data Out. The values
of Bit0~Bit7 of In are copied and pasted to Bit0~Bit7 of Out. And the values of Bit8~Bit15 of In
are not converted and have no impact on the conversion.
BYTE_TO_WORD
EN ENO
Out
In
WORD_TO_BYTE
EN ENO
Out
In
DWORD_TO_WORD
EN ENO
Out
In
LWORD_TO_BYTE
EN ENO
Out
In
BYTE_TO_WORD
EN ENO
OutIn
10101101
00000000
Bit0Bit7
In
Out
Fill 0
The less-length data are converted
to the greater-length data
10101101
Bit8Bit15
BYTE
WORD
8-153

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta Electronics DVP15MC11T and is the answer not in the manual?

Delta Electronics DVP15MC11T Specifications

General IconGeneral
BrandDelta Electronics
ModelDVP15MC11T
CategoryController
LanguageEnglish

Related product manuals