Replace In String: Rplc$(661) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Text String Processing Instructions
Flags
Precautions
Example

3-33-9 REPLACE IN STRING: RPLC$(661)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
1238
Name
Label
Error Flag
ER
Equals Flag
=
The maximum number of characters is 4,095 (0FFF hex). If there are more
than that (i.e., if there is no NUL before the 4,096th character), an error will be
generated and the Error Flag will turn ON.
If 0000 (hex) is output to D, the Equals Flag will turn ON.
In this example, LENS$(650) is used to calculate the number of characters
and output the result.
Text string: ABCDE
S:
41
43
45
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
Operation
ON if the calculated result comes to more than 4,095
characters.
ON if the Communications Port Enabled Flag for the com-
munications port number specified as the Com Port num-
ber for Background Execution is OFF when background
processing is specified.
OFF in all other cases.
ON if the calculated result is 0.
OFF in all other cases.
D: D00200
42
44
00
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
Section 3-33
RPLC$(661)
@RPLC$(661)
Not supported
Not supported
Interrupt tasks
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents