Text String Processing Instructions
3-31-9 REPLACE IN STRING: RPLC$(661)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Note
1024
Replaces a text string with a designated text string from a designated position.
RPLC$(661)
S1
S2
S3
S4
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation
Immediate Refreshing Specification
Block program areas
OK
OK
S1: Text String
15
S1
Text string data: 4,095 characters max. + NUL
to
S1 + maximum 2,047 words
S2: Replacement Text String
15
S2
Text string data: 4,095 characters max. + NUL
to
S2 + maximum 2,047 words
S3: Number of Characters (0000 to 0FFF hex or &0 to &4095)
S4: Beginning Position (0001 to 0FFF hex or &1 to &4095)
15
D
Text string data: 4,095 characters max. + NUL
to
S2 + maximum 2,047 words
(1) The data from S1 to S1 + the maximum 2,047 words, from S2 to S2 + the
maximum 2,047 words, and from D to D + the maximum 2,047 words
must be in the same area.
S1: Text string first word
S2: Replacement text string first word
S3: Number of characters
S4: Beginning position
D: First destination word
Step program areas
Subroutines
OK
0
0
0
Section 3-31
RPLC$(661)
@RPLC$(661)
Not supported
Not supported
Interrupt tasks
OK
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers