Mid - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 22
String manipulation instructions

MID

Parameter
EN
IN
NbC
Pos
MID
ENO
606
Using the position and number of characters provided, MID yields required parts
of strings.
Arguments
Parameter Type
Data Type
Input
BOOL
Input
STRING
Input
DINT
Input
DINT
Output
STRING
Output
BOOL
MID function language examples
Function block diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When EN = TRUE, generate portion of a string.
When EN = FALSE, no generate operation.
Any non-empty string.
Number of characters to be extracted cannot be greater than the length
of the IN string.
Position of the sub-string. The sub-string first character will be the one
pointed to by Pos (first valid position is 1).
Middle part of the string (its length = NbC).
When the number of characters to extract exceeds the length of the IN
string, NbC is automatically recalculated to get the remainder of the
string only. When NbC or Pos are zero or negative numbers, an empty
string is returned.
Enable out.

Advertisement

Table of Contents
loading

Table of Contents