Rplc - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

RPLC$

Instruction
REPLACE IN STRING
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S1
Text string first word
S2
Replacement text string first word
S3
Number of characters
S4
Beginning position
D
First destination word
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 &0 to &4095)
Note
• 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.
• The data from D to D + the maximum 2,047 words and from either S1 to S1 + the maximum 2,047 words or from S2
to S2 + the maximum 2,047 words cannot overlap.
1078
Mnemonic
Variations
RPLC$
@RPLC$
RPLC$(661)
Block program areas
Step program areas
OK
OK
Description
0
0
Function
code
Replaces a text string with a designated text string
661
from a designated position.
RPLC$
S1: Text string first word
S1
S2: Replacement text string first word
S2
S3
S3: Number of characters
S4
S4: Beginning position
D
D: First destination word
Subroutines
OK
Data type
UINT
UINT
UINT
UINT
UINT
D: First Destination Word
D
to
S2 + maximum 2,047 words
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
Variable
1
1
Variable
15
Text string data: 4,095 characters max. + NUL
0

Advertisement

Table of Contents
loading

Table of Contents