EasyManua.ls Logo

Inovance H3U Series - Page 243

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...
242
4
4 Instructions4.6.4 Matrix Rotation and Shift
Function
1) 16-bit operation (VAL and VALP)
The string stored in elements from head address [S] is converted to a 16-bit BIN number. The total
number of characters contained in the string is stored in [D1], and the number of characters in the
fractional part is stored in [D+1]. The BIN number is stored in [D2].
During the string-to-BIN conversion, the data within the range from [S] to the element that stores 00H
is processed as a string.
VAL S D1 D2
S
S+1
S+2
b7-----b0
S+3
b15-----b8
S+4
Terminator
00H
.
-
Total number
of characters
D
Number of characters
in the fractional part
D+1
D+2
ASCII code of the first
character
ASCII code of the third
character
ASCII code of the fifth
character
ASCII code of the seventh
character
ASCII code of the sign
ASCII code of the second
character
ASCII code of the fourth
character
ASCII code of the sixth
character
Integer with the
fractional part discarded
Sign
First character
Second character
Seventh character
String to be converted
The total number of characters contained in the string to be converted and its value (with the decimal point
ignored) must be within the following ranges:
Setting Range
Total number of characters 2 to 8
Number of characters in the
fractional part
0 to 5
Value range (with the decimal
point ignored)
–32,768 to +32,767
For example, 123.45 is
processed as 12345.
Types of characters to be converted
Character Type
Positive number Space (20H)
Negative number Minus sign (2DH)
Decimal point Period (2EH)
Digit 0 (30H) to 9 (39H)
[D1] indicates the total number of characters, including the digits, sign, and decimal point.
[D1+1] indicates the number of characters in the fractional part, that is, the characters to the right of the
decimal point (2EH).
[D2] stores the 16-bit BIN number converted from a string with the decimal point ignored.
When a string is converted to a 16-bit BIN number, the spaces (20H) or 0s (30H) between the sign and a
set of digits other than 0 are ignored.
8
Total number
of characters
Number of characters
in the fractional part
Total number
of characters
Number of characters
in the fractional part
1
-12316-bit BIN data
16-bit BIN data
- 12.3
Ignored
7
4
12
0.0012
Ignored
Sign

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals