EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1129 background imageLoading...
Page #1129 background image
1091
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Text String Processing Instructions
3
MID$
MID$
Applicable Program Areas
Operands
S1: Text String D: First Destination Word
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.
Instruction Mnemonic Variations
Function
code
Function
GET STRING MIDDLE MID$ @MID$ 654
Reads a designated number of characters from
any position in the middle of a text string.
Symbol
MID$
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S1 Text string first word UINT Variable
S2 Number of characters UINT 1
S3 Beginning position UINT 1
D First destination word UINT Variable
S1: Text string first word
S2: Number of characters
S3: Beginning position
D: First destination word
MID$(654)
S1
S2
S3
D
15 0
S1
to to
Text string data: 4,095 characters max. + NUL
S1 + maximum 2,047 words
15 0
D
to to
Text string data: 4,095 characters max. + NUL
D + maximum 2,047 words

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals