Mid; Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions

MID

The MID instruction extracts a text string with the specified number of characters from the specified
character position.
Instruction
MID
Get String Any
Variables
Name
Meaning
In
Source
string
L
Number of
characters
P
First char-
acter
Out
Extraction
result
Bit strings
In
L
P
Out
Function
The MID instruction extracts a text string with the number of characters specified by number of charac-
ters L from the source string In. The first character to extract is specified by first character P. A NULL
character is placed at the end of extraction result Out.
2-524
Name
FB/FUN
FUN
I/O
Description
Text string from which to
extract characters
Number of characters to
Input
extract
First character to extract
Output
Extracted text string
OK
OK
Graphic expression
(@)MID
EN
ENO
In
Out
L
P
Valid range
Depends on data type.
0 to 1985
1 to 1985
Depends on data type.
Integers

NJ-series Instructions Reference Manual (W502)

ST expression
Out:=MID(In, L, P);
Unit
Default
''
---
1
---
---
Times, durations,
dates, and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents