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.
B YTE_TO_WO RD
EN
ENO
Out
In
WORD_TO _BY TE
EN
ENO
Out
In
DWO RD_TO _WORD
EN
E NO
Out
In
LWORD_TO_B YTE
EN
E NO
Out
In
BY TE _TO _WORD
EN
ENO
Out
In
1
0
1
0
1
1
0
1
0
0
0
0
0
0
0
0
Bit0
Bit7
In
O ut
Fi ll
0
The less -lengt h dat a are conv ert ed
to the gre ater-lengt h dat a
1
0
1
0
1
1
0
1
Bit 8
B it 15
B YTE
WO RD
8-153
Содержание DVP15MC11T
Страница 9: ...Memo viii...
Страница 15: ...DVP15MC11T Operation Manual _2 MEMO 2 4...
Страница 71: ...DVP15MC11T Operation Manual _7 Memo 7 10...
Страница 81: ...DVP15MC11T Operation Manual _8 Timing Chart F_TRG_CLK F_TRG_Q 8 10...
Страница 158: ...Chapter 8 Logic Instructions 8_ The program 1 ASIN EN ENO In Out ASIN_EN ASIN_In Out1 8 87...
Страница 213: ...DVP15MC11T Operation Manual _8 The program 1 LIMIT EN ENO MN Out MX In LIMIT_EN LIMIT_MN LIMIT_MX LIMIT_In Out1 8 142...
Страница 216: ...Chapter 8 Logic Instructions 8_ The program 1 BAND EN ENO MN Out MX In BAND_EN BAND_MN BAND_MX BAND_In Out1 8 145...
Страница 249: ...DVP15MC11T Operation Manual _8 8 178...
Страница 285: ...DVP15MC11T Operation Manual _8 Memo 8 214...
Страница 286: ...9 Chapter 9 Introductions of Axis Parameters Table of Contents 9 1 Description of Axis Parameters 9 2 9 1...
Страница 323: ...DVP15MC11T Operation Manual 10 MEMO 10 34...
Страница 549: ...DVP15MC11T Operation Manual A MEMO A 16...
Страница 571: ...DVP15MC11T Operation Manual C Memo C 10...
Страница 572: ...D Appendix D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2 D 1...