Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1272

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Text String Processing Instructions
Description
Flags
Precautions
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
Within the text string identified by the first word designated by S1 until the
NUL code (00 hex), MID$(654) reads 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 read extends beyond the end of the text
string designated by S1, the string will be output up to the end.
Note MID$(654) 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 range for the beginning position designated by S3 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.
S1
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
#0000 to
#0FFF
(binary) or
&0 to &4095
---
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.
ON if more than 4,095 characters (0FFF hex) are desig-
nated by S2.
ON if the S3 data is 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 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
S2
S3
#0001 to
---
#0FFF
(binary) or
&1 to &4095
Operation
D
1233

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents