Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1279

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Text String Processing Instructions
Description
Flags
Precautions
Area
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
RPLC$(661) replaces part of the text string designated by S1, from the begin-
ning position designated by S4, with the text string designated by S2, and out-
puts the result to D as text string data (with NUL added at the end). The
number of characters to be replaced is designated by S3.
The maximum number of characters in the result is 4,095 (0FFF hex). If the
number is greater than that, only 4,095 characters will be output (with NUL
added as the 4,096th).
From 0 to 4,095 characters (0000 to 0FFF hex) can be replaced. If the number
is 0, then the text string designated by S1 will be output to D just as it is, with
no change. If the S2 text string is NUL, then the operation will be the same as
deleting the designated range of text in S1.
If the S1 text string from beginning to end is replaced by NUL, then two NUL
characters (0000 hex) will be output to D.
Note RPLC$(661) can be processed in the background. Refer to the SYSMAC CS/
CJ/NSJ Series PLC Programming Manual (W394) for details.
Name
Error Flag
ER
Equals Flag
=
The maximum number of characters for S1 or S2 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.
S1
S2
---
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Label
ON if more than 4,095 characters are designated by S1
or S2.
ON if more than 4,095 characters (0FFF hex) are desig-
nated by S3.
ON if the S4 data is within the range of 1 to 4,095 (0001
to 0FFF hex).
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 0000 (hex) is output to D.
OFF in all other cases.
Section 3-33
S3
S4
#0000 to
#0001 to
---
#0FFF
#0FFF
(binary) or
(binary) or
&0 to
&1 to
&4095
&4095
---
Operation
D
1239

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents