Omron CJ - INSTRUCTIONS Reference Manual page 1138

Table of Contents

Advertisement

3. Instructions
Flags
Name
Error Flag
Equal Flag
Function
Within the text string designated by S1,
DEL$(658) deletes the number of characters
designated by S2, from the beginning word
designated by S3, and outputs the result to D
as text string data (with NUL added at the end).
If the number of characters to be deleted
extends beyond the end of the S1 text string,
all of the characters up to the end will be
deleted. If all of the characters from the
beginning of S1 to the end are designated to
be deleted, then 000 hex will be output to D.
DEL$(658) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
Example Programming
In this example, DEL$(658) is used to discard three characters.
D100
D200
D500
D300
1100
Label
ER
• ON if more than 4,095 characters are designated by S1.
• ON if more than 4,095 characters (0FFF hex) are designated by S2.
• ON if the S3 data is not within the range of 1 to 4,095 (0001 to 0FFF hex).
• ON if S3 is greater than S1.
• ON if the Communications Port Enabled Flag for the communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
=
• ON when 0000 hex is output to D.
• OFF in all other cases.
Text string ABCDEFGHI
S1: D100
D101
D
D103
D104
Operation
S2: D200
Three bytes discarded.
S3: D500
From 5th character.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Text string ABCDHI
D: D300
D301
D302
D303
00

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents