3. Instructions
MID$
Instruction
GET STRING MIDDLE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S1
Text string first word
S2
Number of characters
S3
Beginning position
D
First destination word
S1: Text String
15
Text string data: 4,095 characters max. + NUL
S1
to
S1 + maximum 2,047 words
S2: Number of Characters
0000 to 0FFF hex or &0 to &4095
S3: Beginning Position
0001 to 0FFF hex or &1 to &4095
Note
• The data from S1 to S1 + the maximum 2,047 words and from D to D + the maximum 2,047 words must be in the
same area.
• The data from S1 to S1 + the maximum 2,047 words and from D to D + the maximum 2,047 words can overlap.
1044
Mnemonic
Variations
MID$
@MID$
Block program areas
Step program areas
OK
OK
Description
0
to
Function
code
Reads a designated number of characters from
654
any position in the middle of a text string.
MID$
MID$(654)
S1: Text string first word
S1
S2: Number of characters
S2
S3
S3: Beginning position
D
D: First destination word
Subroutines
Interrupt tasks
OK
Data type
UINT
UINT
UINT
UINT
D: First Destination Word
D
to
D + maximum 2,047 words
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or transition
programs
OK
OK
Size
Variable
1
1
Variable
15
Text string data: 4,095 characters max. + NUL
to
0
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers