EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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
Page #828 background imageLoading...
Page #828 background image
826
22 CHARACTER STRING FUNCTIONS
22.7 Replacing Character String
• The value input to (n2) specifies the number of the head character position of a character string to be replaced.
Ex.
When the value input to (n1) and (n2) is 5
• A value input to (s1) and (s2) is the STRING type data value and within the range from 0 to 255 byte(s).
• A value input to (n1) is the INT type data value and within the range from 0 to 255. (However, the value must be within the
number of characters of the character string to be input to (s1).)
• A value input to (n2) is the INT type data value and within the range from 1 to 255. (However, the value must be within the
number of characters of the character string to be input to (s1).)
â– 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
"ABCDEFGH123"
42H (B) 41H (A)
44H (D) 43H (C)
32H (2) 31H (1)
34H (4) 33H (3)
32H (2) 35H (5)
00H 33H (3)
2nd word
3rd word
4th word
5th word
6th word
1st word
32H (2) 31H (1)
34H (4) 33H (3)
36H (6)
00H
35H (5)
High-order byte Low-order byte
"123456"
2nd word
3rd word
4th word
1st word
42H (B) 41H (A)
44H (D) 43H (C)
46H (F) 45H (E)
48H(H) 47H(G)
32H (2) 31H (1)
00H 33H (3)
High-order byte Low-order byte
2nd word
3rd word
4th word
5th word
6th word
1st word
High-order byte Low-order byte
"ABCD1234523"
Value to be input to (s2)
Value to be input to (s1) Output value
(d)
Number of
characters to be
replaced n1: 5
Head character
position of a character
string to be replaced
n2: 5th character

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals