258
4
4 Instructions4.6.4 Matrix Rotation and Shift
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
[S].
2. Error 6705 is returned when elements from head address [D] cannot fully store the n retrieved
characters.
3. Error 6706 is returned when the value of n is greater than the number of characters stored in elements
from head address [S].
4. Error 6706 is returned when n is negative.
◆
Application
LEFT: String read left
◆
Overview
The LEFT instruction retrieves a designated number of characters at the left end of a string.
LEFT S D n
String read left Applicable model:
H3U
S Source data Start number of elements that store a string
16-bit instruction (7
steps)
LEFT: Continuous
execution
LEFTP: Pulse
execution
D
Retrieval
result
Start number of elements that store a retrieved
string
n
Retrieved
character
count
Number of characters to be retrieved