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

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
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
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.
S1: Text string first word
RPLC$(661)
S2: Replacement text string first word
S1
S3: Number of characters
S2
S4: Beginning position
S3
D: First destination word
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
Step program areas
Subroutines
OK
Section 3-33
RPLC$(661)
@RPLC$(661)
Not supported
Not supported
Interrupt tasks
OK
1237

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents

Save PDF