EasyManua.ls Logo

Inovance H3U Series - Page 264

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...
263
4
4 Instructions 4.6.4 Matrix Rotation and Shift
The character indicated by [S2] and subsequent characters contained in the string from head address [D]
are replaced by a number (indicated by [S2+1]) of characters at the left end (beginning) of the string from
head address [S1].
The source string starts with [S1] and ends with 00H.
When the value in [S2+1] is 0, the instruction is not executed.
When the value in [S2+1] is –1, all characters of the string from head address [S1] replace those of the
string from head address [D].
If the value in [S2+1] is greater than the number of characters within the range from the character indicated
by [S2] to the last one, only the characters within this range are replaced, and redundant characters of the
source string are discarded.
31H (0)
33H (3)
35H (5)
S+1
S+2
b7-----b0
37H (7)
S+3
30H (0)
32H (2)
36H (6)
b15----- b8
S+4
34H (4)
00H
38H (8)
S
“012345678”
S2
5
S2+1
8
“ABCDEFGHI”
D+1
D+2
EE
D+3
EE
D
Eighth
character
First
character
Start point on the left of the
string in [D]
Number of characters on the left
of the string in [S1]
42H(B)
44H(D)
46H(F)
D+1
D+2
EE
48H(H)
D+3
41H(A)
43H(C)
47H(G)
EE
D+4
45H(E)
00H
49H(I)
D
42H(B)
44H(D)
41H(A)
43H(C)
31H(0)
33H(3)
30H(0)
32H(2)
“ABCD01234
Replace the content from the fifth character to the last one
The extra content 35H (5) to 37H (7) is not stored.
.
Fifth
character
Fifth
character
D+4
00H
34H(4)
An error is returned in the following conditions. The error ag M8067 is set to ON to identify this error and
the error code is stored in D8067.
1. Error 6705 is returned due to out-of-range search when 00H is not found in elements from head address
[S1] or [D].
2. Error 6706 is returned when the value in [S2] is greater than the number of characters contained in the
string from head address [D].
3. Error 6706 is returned when the value of n in [S2] is negative.
4. Error 6706 is returned when the value in [S2+1] is –2 or less.
5. Error 6706 is returned when the value in [S2+1] exceeds the number of characters from head address [S1].
Application

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals