EasyManua.ls Logo

Inovance H3U Series - The String

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...
240
4
4 Instructions4.6.4 Matrix Rotation and Shift
When the 32-bit BIN number in [S2] is positive, the sign is encoded into 20H (space); when it is
negative, the sign is encoded into 2DH (minus sign).
When a number other than 0 is set in [S1+1], a decimal point (2EH) is inserted at the immediate
position prior to a number of characters indicated by [S1+1]. No decimal point is inserted when the
value in [S1+1] is 0.
If the value in [S1+1] is greater than the number of characters contained in the 32-bit BIN number in
[S2+1, S2], the system aligns characters to the right and then adds 0s (30H) on the left.
With the decimal point and sign excluded, if the total number of characters indicated by [S1] is greater
than the number of characters contained in the 32-bit BIN number in [S2+1, S2], spaces (20H) are
inserted between the sign and the value.
An error will occur when the number of characters contained in the 32-bit BIN number in [S2] is greater.
The string after conversion is appended with 00H to indicate the end of the string.
When the total number of characters is even, 0000H is stored in the element after the one that stores
the last character. When the total number of characters is odd, 00H is stored in the higher byte (eight
bits) of the element that stores the last character.
10
Total number of characters
Total number of characters
Total number of characters
3
Number of characters in the fractional part
Number of characters in the fractional part
Number of characters in the fractional part
12345.678
Number of characters
in the fractional part
Added automatically
12345678
13
10
0.0000054321
Added automatically
54321
13
2
32-bit BIN data
32-bit BIN data
32-bit BIN data
- 5432.10
Changed to 20H (space)
543210
3. Errors
An operation error occurs in the following conditions. The error ag M8067 is set to ON to identify this error
and the error code is stored in D8067.
The value in [S1] is out of range. (Error code: K6706)
Setting Range
16-bit operation 2 to 8
32-bit operation 2 to 13
The value in [S1+1] is out of range. (Error code: K6706)
Setting Range
16-bit operation 0 to 5
32-bit operation 0 to 10
The value in [S1+1] is greater than the value in [S1] minus 3. (Error code: K6706)
The total number of characters (including the sign and decimal point) indicated by [S1] is less than the
number of characters contained in the BIN number in [S2]. (Error code: K6706)

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals