![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301277.webp)
1237
Text String Processing Instructions
Section 3-33
Flags
Precautions
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.
Example
In this example, LENS$(650) is used to calculate the number of characters
and output the result.
3-33-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
Name
Label
Operation
Error Flag
ER
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.
Equals Flag
=
ON if the calculated result is 0.
OFF in all other cases.
S:
41
43
45
42
44
00
D: D00200
Text string: ABCDE
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
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...