818
22 CHARACTER STRING FUNCTIONS
22.3 Extract Mid String
â– Operation result
1. Function without EN/ENO
The following table lists the operation results.
2. Function with EN/ENO
The following table lists the execution conditions and operation results.
*1 When FALSE is output from ENO, data output from (d) is undefined. In that case, modify a program so that the data output from (d) is
not used.
Operation result (d)
No operation error occurred Operation output value
An operation error occurred Indefinite value
Execution condition Operation result
EN ENO (d)
TRUE (Executes operation) TRUE (Operation error did not occur) Operation output value
FALSE (Operation error occurred)
*1
Indefinite value
FALSE (Stops operation) FALSE
*1
Indefinite value
Error code
(SD0/SD8067)
Description
2820 In the corresponding device range of the device specified by (s) and later, "00H" does not exist.
3405 The character string specified by (s) has more than 16383 characters.
Data outside the allowable range was set to (n1) and (n2).
• The value stored in a device specified in (n1) and (n2) is 0 or less.
• The value stored in a device specified in (n2) is any value other than an effective value (-1, 0, 1, or more).
• The value stored in a device specified in (n1) exceeds the number of characters of (s).
• The total of the values stored in devices specified in (n1) and (n2) exceeds the number of characters of (s).