Mid; Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
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
character
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-552
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

NY-series Instructions Reference Manual (W560)

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

Table of Contents