Replacing String Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

32.7

Replacing String Data

REPLACE(_E)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These functions replace the specified range in a character string, and output the operation result.
Ladder, FBD/LD
[Without EN/ENO]
s1
d
s2
n1
n2
Setting data
■Description, type, data type
Argument
Description
EN
Execution condition (TRUE: Executed, FALSE: Not executed)
s1 (IN1), s2 (IN2)
Input
n1 (L)
Number of characters to be replaced
n2 (P)
Replacement target character start position
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
RnSFCPU RnSFCPU
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s1
d
s2
n1
n2
Structured text
[Without EN/ENO]
d:=REPLACE(s1,s2,n1,n2);
[With EN/ENO]
d:=REPLACE_E(EN,ENO,s1,s2,n1,n2);
Type
Input variable
Input variable
Input variable
Input variable
Output variable
Output variable
Data type
BOOL
ANYSTRING_SINGLE
INT
INT
BOOL
ANYSTRING_SINGLE
32 STRING FUNCTIONS
1957
32.7 Replacing String Data
32

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents