Delete String: Del$(658) - 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
Example

3-33-10 DELETE STRING: DEL$(658)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
The range for the beginning position designated by S4 is the 1st to the
4,095th character (0001 to 0FFF hex). If the setting is outside of this range, an
error will be generated and the Error Flag will turn ON.
If the beginning position designated by S4 is beyond the text string designated
by S1, 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.
Set the first destination word D so that it does not overlap with the areas set
with the replacement text string first word S2. RPLC$(654) will not work cor-
rectly if these areas overlap.
In this example, RPLC$(654) is used to read three characters.
Text string ABCDEFGHI
S1:
Deletes a designated text string from the middle of a text string.
DEL$(658)
S1
S2
S3
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
S1: Text String
S1 + maximum 2,047 words
S3: D00300
Three characters replaced
D2: D00200
Text string M
D4: D00500
From 5th byte.
S1: Text string first word
S2: Number of characters
S3: Beginning position
D: First destination word
Step program areas
OK
OK
15
S1
Text string data: 4,095 characters max. + NUL
to
Section 3-33
Text string ABCDHI
D:
DEL$(658)
@DEL$(658)
Not supported
Not supported
Subroutines
Interrupt tasks
OK
0
1241

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents