EasyManua.ls Logo

Inovance H3U Series - Page 169

Inovance H3U Series
737 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
Loading...
168
4
4 Instructions4.5.1 Data Conversion
Example:
+$+%
D100
D101
D102
D103
M8161 = ON, 8-bit mode
ǒHEX D100 D10 K6Ǔ
X15
S D n
M8161 = OFF, 16-bit mode
n
+&+'
++
++
H L
D104
++
D105
++
D106
++
D107
+$+
D108
+%+&
+$+%
D100
D101
D102
D103
S
n
+&+'
+
+
++
H L
D104
++
D105
++
D106
++
D107
+$+
D108
+%+&
Data from head
address D100:
D
..ACH
...AH
1
2
3
4
5
6
7
D10
n
Unchanged
n
D
D11D12
8
9
.AC0H
AC02H
C024H
0246H
2468H
468AH
68ABH
..ABH
...AH
1
2
3
4
5
6
7
D10
n
Unchanged
D11D12
8
9
.ABCH
ABCDH
BCD0H
CD01H
D012H
0123H
..ABH
...AH
.ABCH
ABCDH
...AH BCD0H 1234H
...AH
..ACH
.AC0H
AC02H
...AH C024H
The M8161 ag determines which variable width mode to use. When M8161 = OFF, the 16-bit mode is
enabled, whereby the higher and lower bytes of variables are taken for the operation. When M8161 = ON,
the 8-bit mode is enabled, whereby only the lower bytes of variables are taken for the operation and the
higher bytes are discarded. Therefore, the length of the actually used variable area S is increased.
1 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1
D 10
C D 0 1
0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1
D 11
A B
1 0 1 1 1 1 0 0
1 1 0 1 0 0 0 0
D 10
B C D 0
0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0
D 11
A
0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0
D 10
0
2 4 6
0 0 0 0 0 0 0 0 1 0 1 0 1 1 0 0
D 11
A C
1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0
D 10
C 0 2 4
0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0
D 11
A
Bit composition when M8161 = OFF and n = 5
Conversion of D100 to D102
(higher and lower bytes)
Bit composition when M8161 = OFF and n = 6
Conversion of D100 to D102
(higher and lower bytes)
Bit composition when M8161 = ON and n = 5
Conversion of D100 to D104
(lower bytes)
Bit composition when M8161 = ON and n = 6
Conversion of D100 to D105
(lower bytes)
Note:
The RS, HEX, ASCI, and CCD instructions share the M8161 ag. Pay special attention during
programming.
The source data in the S data area must be ASCII characters; otherwise, a conversion error will occur.
If the output data format is BCD, BCD-to-BIN conversion must be performed on the hexadecimal characters
after conversion to get the correct value.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals