1024
Text String Processing Instructions Section 3-31
3-31-9 REPLACE IN STRING: RPLC$(661)
Purpose Replaces a text string with a designated text string from a designated position.
Ladder Symbol
Variations
Applicable Program Areas
Operands S1: Text String
S2: Replacement Text String
S3: Number of Characters (0000 to 0FFF hex or &0 to &4095)
S4: Beginning Position (0001 to 0FFF hex or &1 to &4095)
Note (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.
RPLC$(661)
S1
S2
S3
S4
D
S1: Text string first word
S2: Replacement text string first word
S3: Number of characters
S4: Beginning position
D: First destination word
Variations Executed Each Cycle for ON Condition RPLC$(661)
Executed Once for Upward Differentiation @RPLC$(661)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
15 0
S1
to
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15 0
S2
to
Text string data: 4,095 characters max. + NUL
S2 + maximum 2,047 words
15 0
D
to
Text string data: 4,095 characters max. + NUL
S2 + maximum 2,047 words