Delta AS Series Programming Manual page 1061

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
2116
$RPLC
Device
X
Y
M
S
1
S
2
S
3
S
4
D
Data
type
S
1
S
2
S
3
S
4
D
Symbol
Explanation
1.
This instruction replaces the characters in S
matches the character in S
instruction stores the result in D.
2.
For example, the instruction replaces the four characters starting from the sixth character in the string
"1234567890" with "MN", and the result is "12345MN0".
Operand
P
S
, S
, S
, S
1
2
3
S
T
C
HC
Pulse instruction
AS
S
1
: New string
S
2
: Number of characters in S
S
3
S
4
D : Device where the result is stored
with the characters in S
1
. The number of characters that are replaced is indicated by the value in S
4
Cha p ter 6 App l ied Ins truc tio ns
, D
Replacing the characters in a string
4
D
FR
SM
SR
16-bit instruction
AS
String to be searched and matching
characters replaced
to be replaced
1
The string S
replaces the characters in S
2
character indicated by the value in S
, starting from the character in S
2
Function
E
K
16#
"$"
32-bit instruction
-
starting from the
1
.
4
that
1
, and the
3
6 - 7 8 1
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents